]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_controls_wrap.cpp
buttonbar.cpp/.h must be in GUI_CMN_SRC/HDR as toolbkg.cpp which is in common depends...
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 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
554f62e9 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);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
093d3ff1 46#endif
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
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
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
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
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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
093d3ff1
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;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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
093d3ff1 388*/
7449af73
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;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
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. */
554f62e9 481 if (!type) return NULL;
093d3ff1
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
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
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);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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);
093d3ff1 556 }
7449af73
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);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
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;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
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
093d3ff1
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
093d3ff1
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
554f62e9
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
554f62e9
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
093d3ff1 764#endif
554f62e9
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
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
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
554f62e9
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
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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)
7449af73 1012
d55e5bfc 1013
554f62e9 1014/* Runtime API */
d55e5bfc 1015
554f62e9
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)
7449af73 1019
554f62e9
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
7449af73 1025
d55e5bfc 1026
554f62e9 1027/* Runtime API implementation */
093d3ff1 1028
554f62e9 1029/* Error manipulation */
093d3ff1 1030
554f62e9
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
554f62e9
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;
093d3ff1 1044}
d55e5bfc 1045
554f62e9 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1047
554f62e9 1048/* Set a constant value */
093d3ff1 1049
554f62e9
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
554f62e9 1056/* Append a value to the result obj */
d55e5bfc 1057
554f62e9
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;
c32bde28 1084 } else {
554f62e9
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);
c32bde28 1096 }
554f62e9
RD
1097 return result;
1098#endif
d55e5bfc 1099}
093d3ff1 1100
554f62e9 1101/* Unpack the argument tuple */
093d3ff1 1102
554f62e9
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*/
093d3ff1
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*/
7449af73 1605#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
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 */
093d3ff1
RD
1609#endif
1610 };
1611
554f62e9 1612 static PyTypeObject pyswigobject_type;
7449af73 1613 static int type_init = 0;
093d3ff1 1614 if (!type_init) {
554f62e9
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 */
093d3ff1 1628#endif
554f62e9
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 */
093d3ff1 1647#if PY_VERSION_HEX >= 0x02020000
554f62e9
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
093d3ff1 1669#if PY_VERSION_HEX >= 0x02030000
554f62e9 1670 0, /* tp_del */
093d3ff1
RD
1671#endif
1672#ifdef COUNT_ALLOCS
554f62e9 1673 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1674#endif
554f62e9 1675 };
7449af73 1676 pyswigobject_type = tmp;
554f62e9 1677 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1678 type_init = 1;
1679 }
7449af73 1680 return &pyswigobject_type;
093d3ff1
RD
1681}
1682
1683SWIGRUNTIME PyObject *
554f62e9 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1685{
554f62e9
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;
7449af73 1692 }
554f62e9 1693 return (PyObject *)sobj;
093d3ff1
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;
554f62e9 1703 swig_type_info *ty;
093d3ff1
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
554f62e9 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
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 }
554f62e9 1716 fputs(v->ty->name,fp);
093d3ff1
RD
1717 fputs(">", fp);
1718 return 0;
1719}
9d7dfdff 1720
093d3ff1
RD
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))) {
554f62e9 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1727 } else {
554f62e9 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
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))){
554f62e9 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1738 } else {
554f62e9 1739 return PyString_FromString(v->ty->name);
093d3ff1
RD
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
554f62e9
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);
093d3ff1
RD
1750}
1751
554f62e9 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1753
1754SWIGRUNTIME PyTypeObject*
7449af73 1755PySwigPacked_type(void) {
554f62e9
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 */
093d3ff1
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
554f62e9 1833 0, /* tp_del */
093d3ff1
RD
1834#endif
1835#ifdef COUNT_ALLOCS
554f62e9 1836 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1837#endif
554f62e9 1838 };
7449af73 1839 pyswigpacked_type = tmp;
554f62e9 1840 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1841 type_init = 1;
1842 }
7449af73 1843 return &pyswigpacked_type;
093d3ff1
RD
1844}
1845
1846SWIGRUNTIME PyObject *
554f62e9 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1848{
554f62e9
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
093d3ff1 1851 void *pack = malloc(size);
7449af73
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
554f62e9
RD
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
7449af73 1860 }
093d3ff1 1861 }
554f62e9 1862 return (PyObject *) sobj;
093d3ff1
RD
1863}
1864
554f62e9 1865SWIGRUNTIME swig_type_info *
093d3ff1
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
554f62e9
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 }
093d3ff1
RD
1876}
1877
093d3ff1 1878/* -----------------------------------------------------------------------------
554f62e9 1879 * pointers/data manipulation
093d3ff1
RD
1880 * ----------------------------------------------------------------------------- */
1881
554f62e9
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
093d3ff1 1887
554f62e9
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
093d3ff1 1894
554f62e9 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1896
554f62e9
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1899{
554f62e9
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);
093d3ff1 1922 } else {
554f62e9
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
093d3ff1 1925 }
093d3ff1 1926 }
554f62e9
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;
093d3ff1
RD
1943 }
1944}
1945
554f62e9
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 }
093d3ff1 1957 }
554f62e9 1958 return 0;
093d3ff1
RD
1959}
1960
554f62e9
RD
1961/* Convert a pointer value */
1962
093d3ff1 1963SWIGRUNTIME int
554f62e9
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 }
093d3ff1 1988 } else {
554f62e9
RD
1989 if (ptr) *ptr = vptr;
1990 break;
093d3ff1 1991 }
093d3ff1 1992 }
554f62e9
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 }
093d3ff1
RD
2038 }
2039}
2040
554f62e9
RD
2041/* Convert a function ptr value */
2042
093d3ff1 2043SWIGRUNTIME int
554f62e9
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);
093d3ff1 2047 } else {
554f62e9
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;
093d3ff1
RD
2065 }
2066}
2067
554f62e9 2068/* Convert a packed value value */
093d3ff1 2069
093d3ff1 2070SWIGRUNTIME int
554f62e9
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 }
093d3ff1 2080 }
554f62e9
RD
2081 return SWIG_OK;
2082}
093d3ff1 2083
554f62e9
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
093d3ff1 2087
554f62e9
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
093d3ff1 2092
554f62e9
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 }
093d3ff1 2111 }
554f62e9
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
093d3ff1 2116 }
554f62e9
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);
093d3ff1 2122 }
554f62e9
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;
093d3ff1 2136 }
554f62e9
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;
093d3ff1 2143 }
554f62e9
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
093d3ff1
RD
2154}
2155
554f62e9
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 }
093d3ff1 2171#endif
554f62e9
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
093d3ff1 2176
554f62e9
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]);
093d3ff1 2187 } else {
554f62e9 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2189 }
554f62e9 2190 return SWIG_Py_Void();
093d3ff1 2191 }
554f62e9
RD
2192}
2193
2194/* Create a new pointer object */
093d3ff1 2195
093d3ff1 2196SWIGRUNTIME PyObject *
554f62e9 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2198 if (!ptr) {
554f62e9
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;
093d3ff1 2209 }
093d3ff1 2210 }
554f62e9 2211 return robj;
093d3ff1 2212 }
093d3ff1
RD
2213}
2214
554f62e9
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
093d3ff1 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2220}
2221
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
2229
7449af73
RD
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
093d3ff1
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 }
093d3ff1 2244#endif
7449af73
RD
2245 }
2246 return (swig_module_info *) type_pointer;
093d3ff1
RD
2247}
2248
7449af73
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2251 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2259 return SWIG_ERROR;
7449af73
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
554f62e9 2264 return SWIG_ERROR;
7449af73
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));
554f62e9 2272 return SWIG_ERROR;
7449af73
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
554f62e9 2275 return SWIG_ERROR;
7449af73 2276 Py_DECREF(o);
554f62e9 2277 return SWIG_OK;
093d3ff1 2278}
7449af73 2279#endif
093d3ff1 2280
554f62e9
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
7449af73
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);
554f62e9 2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2306 } else {
2307 Py_XDECREF(pointer);
7449af73
RD
2308 }
2309}
093d3ff1 2310
554f62e9
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
093d3ff1 2316}
093d3ff1 2317
554f62e9
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]
7449af73
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]
554f62e9
RD
2625static swig_type_info *swig_types[164];
2626static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
7449af73
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)
093d3ff1
RD
2629
2630/* -------- TYPES TABLE (END) -------- */
2631
554f62e9
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
093d3ff1
RD
2646
2647/*-----------------------------------------------
2648 @(target):= _controls_.so
2649 ------------------------------------------------*/
2650#define SWIG_init init_controls_
2651
2652#define SWIG_name "_controls_"
2653
554f62e9
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
093d3ff1
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
554f62e9 2735 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2736
2737
554f62e9
RD
2738SWIGINTERNINLINE PyObject *
2739SWIG_From_int (int value)
2740{
2741 return SWIG_From_long (value);
2742}
093d3ff1
RD
2743
2744
554f62e9
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
093d3ff1
RD
2755
2756
2757SWIGINTERN int
554f62e9 2758SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2759{
2760 if (PyNumber_Check(obj)) {
2761 if (val) *val = PyInt_AsLong(obj);
554f62e9 2762 return SWIG_OK;
093d3ff1 2763 }
554f62e9 2764 return SWIG_TypeError;
093d3ff1
RD
2765}
2766
2767
093d3ff1 2768SWIGINTERN int
554f62e9
RD
2769SWIG_AsVal_int (PyObject * obj, int *val)
2770{
093d3ff1 2771 long v;
554f62e9
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;
093d3ff1 2776 } else {
554f62e9 2777 if (val) *val = static_cast< int >(v);
093d3ff1 2778 }
554f62e9
RD
2779 }
2780 return res;
d55e5bfc
RD
2781}
2782
c32bde28 2783 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2784
093d3ff1 2785SWIGINTERN int
554f62e9 2786SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2787{
c32bde28
RD
2788 if (obj == Py_True) {
2789 if (val) *val = true;
554f62e9
RD
2790 return SWIG_OK;
2791 } else if (obj == Py_False) {
c32bde28 2792 if (val) *val = false;
554f62e9 2793 return SWIG_OK;
093d3ff1 2794 } else {
554f62e9
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;
c32bde28 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);
554f62e9 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
554f62e9 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 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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);
554f62e9 2881SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2882 self->AppendText(text);
2883 }
554f62e9 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
554f62e9 2942SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2943{
7e08d4ef 2944 unsigned long v;
554f62e9
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);
554f62e9 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 }
554f62e9 2961SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2962 self->SetClientData(new wxPyUserData(clientData));
2963 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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);
554f62e9 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 {
7449af73 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
554f62e9 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 }
554f62e9 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 }
554f62e9 3077SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3078 wxPoint pos;
3079 self->GetItemPosition(item, pos);
3080 return pos;
3081 }
554f62e9 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 }
554f62e9 3087SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3088 if (!PyCallable_Check(func))
ae8162c8 3089 return false;
d55e5bfc
RD
3090 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3091 }
554f62e9 3092SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3093
3094 return self;
3095
3096
3097
3098 }
3099
3100#include <wx/treectrl.h>
3101#include "wx/wxPython/pytree.h"
3102
3103 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
554f62e9
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 {
7449af73 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"))) {
ae8162c8
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
554f62e9 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 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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 }
554f62e9 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));
ae8162c8 3192 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3193 PyList_Append(rval, item);
a07a67e6 3194 Py_DECREF(item);
d55e5bfc
RD
3195 }
3196 wxPyEndBlockThreads(blocked);
3197 return rval;
3198 }
554f62e9 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);
ae8162c8 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 }
554f62e9 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);
ae8162c8 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 }
554f62e9 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);
ae8162c8 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);
c32bde28 3231
7449af73 3232SWIGINTERNINLINE PyObject*
554f62e9 3233 SWIG_From_bool (bool value)
c32bde28 3234{
554f62e9 3235 return PyBool_FromLong(value ? 1 : 0);
c32bde28
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
caef1a4d 3252 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3253
60d5fcc1
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
caef1a4d 3288 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
caef1a4d 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
caef1a4d 3324IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
caef1a4d 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
554f62e9 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);
554f62e9 3338SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3339 wxDateTime rv;
3340 self->GetRange(&rv, NULL);
3341 return rv;
3342 }
554f62e9 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
554f62e9
RD
3351SWIGINTERN int ButtonNameStr_set(PyObject *) {
3352 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3353 return 1;
d55e5bfc
RD
3354}
3355
3356
554f62e9
RD
3357SWIGINTERN PyObject *ButtonNameStr_get(void) {
3358 PyObject *pyobj = 0;
3359
3360 {
d55e5bfc 3361#if wxUSE_UNICODE
554f62e9 3362 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3363#else
554f62e9 3364 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3365#endif
554f62e9
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 {
554f62e9
RD
3426 arg3 = wxString_in_helper(obj2);
3427 if (arg3 == NULL) SWIG_fail;
3428 temp3 = true;
d55e5bfc 3429 }
554f62e9
RD
3430 }
3431 if (obj3) {
d55e5bfc 3432 {
554f62e9
RD
3433 arg4 = &temp4;
3434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3435 }
554f62e9
RD
3436 }
3437 if (obj4) {
d55e5bfc 3438 {
554f62e9
RD
3439 arg5 = &temp5;
3440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3441 }
554f62e9
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 }
554f62e9
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 }
554f62e9
RD
3458 arg7 = reinterpret_cast< wxValidator * >(argp7);
3459 }
3460 if (obj7) {
d55e5bfc 3461 {
554f62e9
RD
3462 arg8 = wxString_in_helper(obj7);
3463 if (arg8 == NULL) SWIG_fail;
3464 temp8 = true;
d55e5bfc 3465 }
554f62e9
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
554f62e9
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 {
554f62e9
RD
3580 arg4 = wxString_in_helper(obj3);
3581 if (arg4 == NULL) SWIG_fail;
3582 temp4 = true;
d55e5bfc 3583 }
554f62e9
RD
3584 }
3585 if (obj4) {
d55e5bfc 3586 {
554f62e9
RD
3587 arg5 = &temp5;
3588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3589 }
554f62e9
RD
3590 }
3591 if (obj5) {
d55e5bfc 3592 {
554f62e9
RD
3593 arg6 = &temp6;
3594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3595 }
554f62e9
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 }
554f62e9
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 }
554f62e9
RD
3612 arg8 = reinterpret_cast< wxValidator * >(argp8);
3613 }
3614 if (obj8) {
d55e5bfc 3615 {
554f62e9
RD
3616 arg9 = wxString_in_helper(obj8);
3617 if (arg9 == NULL) SWIG_fail;
3618 temp9 = true;
d55e5bfc 3619 }
554f62e9
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
554f62e9
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
554f62e9
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 {
554f62e9
RD
3807 arg4 = &temp4;
3808 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3809 }
554f62e9
RD
3810 }
3811 if (obj4) {
d55e5bfc 3812 {
554f62e9
RD
3813 arg5 = &temp5;
3814 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3815 }
554f62e9
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 }
554f62e9
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 }
554f62e9
RD
3832 arg7 = reinterpret_cast< wxValidator * >(argp7);
3833 }
3834 if (obj7) {
f20a2e1f 3835 {
554f62e9
RD
3836 arg8 = wxString_in_helper(obj7);
3837 if (arg8 == NULL) SWIG_fail;
3838 temp8 = true;
f20a2e1f 3839 }
554f62e9
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
554f62e9
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 }
554f62e9
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 }
554f62e9
RD
3953 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3954 }
3955 if (obj4) {
d55e5bfc 3956 {
554f62e9
RD
3957 arg5 = &temp5;
3958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3959 }
554f62e9
RD
3960 }
3961 if (obj5) {
d55e5bfc 3962 {
554f62e9
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 }
554f62e9
RD
3982 arg8 = reinterpret_cast< wxValidator * >(argp8);
3983 }
3984 if (obj8) {
d55e5bfc 3985 {
554f62e9
RD
3986 arg9 = wxString_in_helper(obj8);
3987 if (arg9 == NULL) SWIG_fail;
3988 temp9 = true;
d55e5bfc 3989 }
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
RD
4469SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 return SWIG_Python_InitShadowInstance(args);
4471}
d55e5bfc 4472
554f62e9
RD
4473SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4474 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4475 return 1;
d55e5bfc
RD
4476}
4477
4478
554f62e9
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 {
554f62e9
RD
4548 arg3 = wxString_in_helper(obj2);
4549 if (arg3 == NULL) SWIG_fail;
4550 temp3 = true;
d55e5bfc 4551 }
554f62e9
RD
4552 }
4553 if (obj3) {
4554 {
4555 arg4 = &temp4;
4556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4557 }
554f62e9
RD
4558 }
4559 if (obj4) {
d55e5bfc 4560 {
554f62e9
RD
4561 arg5 = &temp5;
4562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4563 }
554f62e9
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 }
554f62e9
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 {
554f62e9
RD
4584 arg8 = wxString_in_helper(obj7);
4585 if (arg8 == NULL) SWIG_fail;
4586 temp8 = true;
b1fcee84 4587 }
554f62e9
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
554f62e9
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) {
093d3ff1 4701 {
554f62e9
RD
4702 arg4 = wxString_in_helper(obj3);
4703 if (arg4 == NULL) SWIG_fail;
4704 temp4 = true;
093d3ff1 4705 }
554f62e9
RD
4706 }
4707 if (obj4) {
093d3ff1 4708 {
554f62e9
RD
4709 arg5 = &temp5;
4710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4711 }
554f62e9
RD
4712 }
4713 if (obj5) {
d55e5bfc 4714 {
554f62e9
RD
4715 arg6 = &temp6;
4716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4717 }
554f62e9
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 }
554f62e9
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) {
093d3ff1 4737 {
554f62e9
RD
4738 arg9 = wxString_in_helper(obj8);
4739 if (arg9 == NULL) SWIG_fail;
4740 temp9 = true;
093d3ff1 4741 }
554f62e9
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
554f62e9
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
554f62e9
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}
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
RD
5038SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 return SWIG_Python_InitShadowInstance(args);
5040}
d55e5bfc 5041
554f62e9
RD
5042SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5043 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5044 return 1;
d55e5bfc
RD
5045}
5046
5047
554f62e9
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) {
093d3ff1 5116 {
554f62e9
RD
5117 arg3 = &temp3;
5118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5119 }
554f62e9
RD
5120 }
5121 if (obj3) {
d55e5bfc 5122 {
554f62e9
RD
5123 arg4 = &temp4;
5124 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5125 }
554f62e9
RD
5126 }
5127 if (obj4) {
d55e5bfc 5128 {
554f62e9
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 }
554f62e9
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 &""'");
093d3ff1 5157 }
554f62e9
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 {
554f62e9
RD
5165 arg8 = wxString_in_helper(obj7);
5166 if (arg8 == NULL) SWIG_fail;
5167 temp8 = true;
d55e5bfc 5168 }
554f62e9
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
554f62e9
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 {
554f62e9
RD
5281 arg4 = &temp4;
5282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5283 }
554f62e9
RD
5284 }
5285 if (obj4) {
d55e5bfc 5286 {
554f62e9
RD
5287 arg5 = &temp5;
5288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5289 }
554f62e9
RD
5290 }
5291 if (obj5) {
d55e5bfc 5292 {
554f62e9
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 }
554f62e9
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 {
554f62e9
RD
5329 arg9 = wxString_in_helper(obj8);
5330 if (arg9 == NULL) SWIG_fail;
5331 temp9 = true;
d55e5bfc 5332 }
554f62e9
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
554f62e9
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
554f62e9
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}
554f62e9
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
554f62e9
RD
5441SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5442 PyObject *pyobj = 0;
5443
5444 {
d55e5bfc 5445#if wxUSE_UNICODE
554f62e9 5446 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5447#else
554f62e9 5448 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5449#endif
554f62e9
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 {
554f62e9
RD
5514 arg3 = wxString_in_helper(obj2);
5515 if (arg3 == NULL) SWIG_fail;
5516 temp3 = true;
d55e5bfc 5517 }
554f62e9
RD
5518 }
5519 if (obj3) {
d55e5bfc 5520 {
554f62e9
RD
5521 arg4 = &temp4;
5522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5523 }
554f62e9
RD
5524 }
5525 if (obj4) {
d55e5bfc 5526 {
554f62e9
RD
5527 arg5 = &temp5;
5528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5529 }
554f62e9
RD
5530 }
5531 if (obj5) {
d55e5bfc 5532 {
554f62e9
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 }
554f62e9
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 {
554f62e9
RD
5569 arg9 = wxString_in_helper(obj8);
5570 if (arg9 == NULL) SWIG_fail;
5571 temp9 = true;
d55e5bfc 5572 }
554f62e9
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
554f62e9
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 {
554f62e9
RD
5697 arg4 = wxString_in_helper(obj3);
5698 if (arg4 == NULL) SWIG_fail;
5699 temp4 = true;
d55e5bfc 5700 }
554f62e9
RD
5701 }
5702 if (obj4) {
d55e5bfc 5703 {
554f62e9
RD
5704 arg5 = &temp5;
5705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5706 }
554f62e9
RD
5707 }
5708 if (obj5) {
d55e5bfc 5709 {
554f62e9
RD
5710 arg6 = &temp6;
5711 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5712 }
554f62e9
RD
5713 }
5714 if (obj6) {
d55e5bfc 5715 {
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
RD
5748 arg9 = reinterpret_cast< wxValidator * >(argp9);
5749 }
5750 if (obj9) {
d55e5bfc 5751 {
554f62e9
RD
5752 arg10 = wxString_in_helper(obj9);
5753 if (arg10 == NULL) SWIG_fail;
5754 temp10 = true;
d55e5bfc 5755 }
554f62e9
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
554f62e9
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
554f62e9 5817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5818#else
554f62e9 5819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5820#endif
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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;
6155}
6156
6157
6158SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6159 PyObject *resultobj = 0;
6160 wxComboBox *arg1 = (wxComboBox *) 0 ;
6161 long *arg2 = (long *) 0 ;
6162 long *arg3 = (long *) 0 ;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 long temp2 ;
6166 int res2 = SWIG_TMPOBJ ;
6167 long temp3 ;
6168 int res3 = SWIG_TMPOBJ ;
6169 PyObject *swig_obj[1] ;
6170
6171 arg2 = &temp2;
6172 arg3 = &temp3;
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6178 }
6179 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->GetSelection(arg2,arg3);
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_Py_Void();
6187 if (SWIG_IsTmpObj(res2)) {
6188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6189 } else {
6190 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6192 }
6193 if (SWIG_IsTmpObj(res3)) {
6194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6195 } else {
6196 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6198 }
6199 return resultobj;
6200fail:
6201 return NULL;
d55e5bfc
RD
6202}
6203
6204
554f62e9
RD
6205SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6206 PyObject *resultobj = 0;
6207 wxComboBox *arg1 = (wxComboBox *) 0 ;
6208 int result;
6209 void *argp1 = 0 ;
6210 int res1 = 0 ;
6211 PyObject *swig_obj[1] ;
6212
6213 if (!args) SWIG_fail;
6214 swig_obj[0] = args;
6215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6216 if (!SWIG_IsOK(res1)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6218 }
6219 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228fail:
6229 return NULL;
6230}
6231
6232
6233SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = 0;
6235 wxComboBox *arg1 = (wxComboBox *) 0 ;
6236 wxString *arg2 = 0 ;
6237 bool result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 bool temp2 = false ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char * kwnames[] = {
6244 (char *) "self",(char *) "string", NULL
6245 };
6246
6247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6251 }
6252 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6253 {
6254 arg2 = wxString_in_helper(obj1);
6255 if (arg2 == NULL) SWIG_fail;
6256 temp2 = true;
6257 }
6258 {
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 {
6265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6266 }
6267 {
6268 if (temp2)
6269 delete arg2;
6270 }
6271 return resultobj;
6272fail:
6273 {
6274 if (temp2)
6275 delete arg2;
6276 }
6277 return NULL;
6278}
6279
6280
50f151d7
RD
6281SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj = 0;
6283 wxComboBox *arg1 = (wxComboBox *) 0 ;
6284 int arg2 ;
6285 wxString *arg3 = 0 ;
6286 void *argp1 = 0 ;
6287 int res1 = 0 ;
6288 int val2 ;
6289 int ecode2 = 0 ;
6290 bool temp3 = false ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6293 PyObject * obj2 = 0 ;
6294 char * kwnames[] = {
6295 (char *) "self",(char *) "n",(char *) "string", NULL
6296 };
6297
6298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6300 if (!SWIG_IsOK(res1)) {
6301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6302 }
6303 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6304 ecode2 = SWIG_AsVal_int(obj1, &val2);
6305 if (!SWIG_IsOK(ecode2)) {
6306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6307 }
6308 arg2 = static_cast< int >(val2);
6309 {
6310 arg3 = wxString_in_helper(obj2);
6311 if (arg3 == NULL) SWIG_fail;
6312 temp3 = true;
6313 }
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 (arg1)->SetString(arg2,(wxString const &)*arg3);
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 resultobj = SWIG_Py_Void();
6321 {
6322 if (temp3)
6323 delete arg3;
6324 }
6325 return resultobj;
6326fail:
6327 {
6328 if (temp3)
6329 delete arg3;
6330 }
6331 return NULL;
6332}
6333
6334
554f62e9
RD
6335SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxComboBox *arg1 = (wxComboBox *) 0 ;
6338 bool arg2 ;
6339 void *argp1 = 0 ;
6340 int res1 = 0 ;
6341 bool val2 ;
6342 int ecode2 = 0 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char * kwnames[] = {
6346 (char *) "self",(char *) "editable", NULL
6347 };
6348
6349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6351 if (!SWIG_IsOK(res1)) {
6352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6353 }
6354 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6355 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6356 if (!SWIG_IsOK(ecode2)) {
6357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6358 }
6359 arg2 = static_cast< bool >(val2);
6360 {
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 (arg1)->SetEditable(arg2);
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_Py_Void();
6367 return resultobj;
6368fail:
6369 return NULL;
d55e5bfc
RD
6370}
6371
6372
554f62e9
RD
6373SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxComboBox *arg1 = (wxComboBox *) 0 ;
6376 void *argp1 = 0 ;
6377 int res1 = 0 ;
6378 PyObject *swig_obj[1] ;
6379
6380 if (!args) SWIG_fail;
6381 swig_obj[0] = args;
6382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6383 if (!SWIG_IsOK(res1)) {
6384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6385 }
6386 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetInsertionPointEnd();
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
6397}
6398
6399
6400SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 long arg2 ;
6404 long arg3 ;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 long val2 ;
6408 int ecode2 = 0 ;
6409 long val3 ;
6410 int ecode3 = 0 ;
6411 PyObject * obj0 = 0 ;
6412 PyObject * obj1 = 0 ;
6413 PyObject * obj2 = 0 ;
6414 char * kwnames[] = {
6415 (char *) "self",(char *) "_from",(char *) "to", NULL
6416 };
6417
6418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6420 if (!SWIG_IsOK(res1)) {
6421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6422 }
6423 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6424 ecode2 = SWIG_AsVal_long(obj1, &val2);
6425 if (!SWIG_IsOK(ecode2)) {
6426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6427 }
6428 arg2 = static_cast< long >(val2);
6429 ecode3 = SWIG_AsVal_long(obj2, &val3);
6430 if (!SWIG_IsOK(ecode3)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6432 }
6433 arg3 = static_cast< long >(val3);
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 (arg1)->Remove(arg2,arg3);
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 resultobj = SWIG_Py_Void();
6441 return resultobj;
6442fail:
6443 return NULL;
d55e5bfc
RD
6444}
6445
6446
554f62e9
RD
6447SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 PyObject *resultobj = 0;
6449 wxComboBox *arg1 = (wxComboBox *) 0 ;
6450 bool result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 PyObject *swig_obj[1] ;
6454
6455 if (!args) SWIG_fail;
6456 swig_obj[0] = args;
6457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6460 }
6461 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 return resultobj;
6472fail:
6473 return NULL;
d55e5bfc
RD
6474}
6475
6476
554f62e9
RD
6477SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 void *argp1 = 0 ;
6481 int res1 = 0 ;
6482 PyObject *swig_obj[1] ;
6483
6484 if (!args) SWIG_fail;
6485 swig_obj[0] = args;
6486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6487 if (!SWIG_IsOK(res1)) {
6488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6489 }
6490 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 (arg1)->Undo();
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_Py_Void();
6498 return resultobj;
6499fail:
6500 return NULL;
d55e5bfc
RD
6501}
6502
6503
554f62e9
RD
6504SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Redo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526fail:
6527 return NULL;
d55e5bfc
RD
6528}
6529
6530
554f62e9
RD
6531SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SelectAll();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553fail:
6554 return NULL;
f78cc896
RD
6555}
6556
6557
554f62e9
RD
6558SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 bool result;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 PyObject *swig_obj[1] ;
6565
6566 if (!args) SWIG_fail;
6567 swig_obj[0] = args;
6568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6569 if (!SWIG_IsOK(res1)) {
6570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6571 }
6572 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6573 {
6574 PyThreadState* __tstate = wxPyBeginAllowThreads();
6575 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 {
6580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6581 }
6582 return resultobj;
6583fail:
6584 return NULL;
9d7dfdff
RD
6585}
6586
6587
554f62e9
RD
6588SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCut();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613fail:
6614 return NULL;
121b9a67
RD
6615}
6616
6617
554f62e9
RD
6618SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643fail:
6644 return NULL;
121b9a67
RD
6645}
6646
6647
554f62e9
RD
6648SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673fail:
6674 return NULL;
d55e5bfc
RD
6675}
6676
6677
554f62e9
RD
6678SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703fail:
6704 return NULL;
d55e5bfc
RD
6705}
6706
6707
554f62e9
RD
6708SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj = 0;
6710 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6711 SwigValueWrapper<wxVisualAttributes > result;
6712 int val1 ;
6713 int ecode1 = 0 ;
6714 PyObject * obj0 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "variant", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6720 if (obj0) {
6721 ecode1 = SWIG_AsVal_int(obj0, &val1);
6722 if (!SWIG_IsOK(ecode1)) {
6723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6724 }
6725 arg1 = static_cast< wxWindowVariant >(val1);
6726 }
6727 {
6728 if (!wxPyCheckForApp()) SWIG_fail;
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = wxComboBox::GetClassDefaultAttributes(arg1);
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6735 return resultobj;
6736fail:
6737 return NULL;
d55e5bfc
RD
6738}
6739
6740
554f62e9
RD
6741SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6742 PyObject *obj;
6743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6744 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6745 return SWIG_Py_Void();
b519803b
RD
6746}
6747
554f62e9
RD
6748SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6749 return SWIG_Python_InitShadowInstance(args);
6750}
b519803b 6751
554f62e9
RD
6752SWIGINTERN int GaugeNameStr_set(PyObject *) {
6753 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6754 return 1;
b519803b
RD
6755}
6756
6757
554f62e9
RD
6758SWIGINTERN PyObject *GaugeNameStr_get(void) {
6759 PyObject *pyobj = 0;
6760
6761 {
6762#if wxUSE_UNICODE
6763 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6764#else
6765 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6766#endif
6767 }
6768 return pyobj;
6769}
6770
6771
6772SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj = 0;
6774 wxWindow *arg1 = (wxWindow *) 0 ;
6775 int arg2 = (int) -1 ;
6776 int arg3 = (int) 100 ;
6777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6779 wxSize const &arg5_defvalue = wxDefaultSize ;
6780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6781 long arg6 = (long) wxGA_HORIZONTAL ;
6782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6784 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6785 wxString *arg8 = (wxString *) &arg8_defvalue ;
6786 wxGauge *result = 0 ;
6787 void *argp1 = 0 ;
6788 int res1 = 0 ;
6789 int val2 ;
6790 int ecode2 = 0 ;
6791 int val3 ;
6792 int ecode3 = 0 ;
6793 wxPoint temp4 ;
6794 wxSize temp5 ;
6795 long val6 ;
6796 int ecode6 = 0 ;
6797 void *argp7 = 0 ;
6798 int res7 = 0 ;
6799 bool temp8 = false ;
6800 PyObject * obj0 = 0 ;
6801 PyObject * obj1 = 0 ;
6802 PyObject * obj2 = 0 ;
6803 PyObject * obj3 = 0 ;
6804 PyObject * obj4 = 0 ;
6805 PyObject * obj5 = 0 ;
6806 PyObject * obj6 = 0 ;
6807 PyObject * obj7 = 0 ;
6808 char * kwnames[] = {
6809 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6810 };
6811
6812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6814 if (!SWIG_IsOK(res1)) {
6815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6816 }
6817 arg1 = reinterpret_cast< wxWindow * >(argp1);
6818 if (obj1) {
6819 ecode2 = SWIG_AsVal_int(obj1, &val2);
6820 if (!SWIG_IsOK(ecode2)) {
6821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6822 }
6823 arg2 = static_cast< int >(val2);
6824 }
6825 if (obj2) {
6826 ecode3 = SWIG_AsVal_int(obj2, &val3);
6827 if (!SWIG_IsOK(ecode3)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6829 }
6830 arg3 = static_cast< int >(val3);
6831 }
6832 if (obj3) {
b519803b 6833 {
554f62e9
RD
6834 arg4 = &temp4;
6835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
b519803b 6836 }
554f62e9
RD
6837 }
6838 if (obj4) {
b519803b 6839 {
554f62e9
RD
6840 arg5 = &temp5;
6841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
b519803b 6842 }
554f62e9
RD
6843 }
6844 if (obj5) {
6845 ecode6 = SWIG_AsVal_long(obj5, &val6);
6846 if (!SWIG_IsOK(ecode6)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6848 }
6849 arg6 = static_cast< long >(val6);
6850 }
6851 if (obj6) {
6852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6853 if (!SWIG_IsOK(res7)) {
6854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6855 }
6856 if (!argp7) {
6857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
b519803b 6858 }
554f62e9
RD
6859 arg7 = reinterpret_cast< wxValidator * >(argp7);
6860 }
6861 if (obj7) {
b519803b 6862 {
554f62e9
RD
6863 arg8 = wxString_in_helper(obj7);
6864 if (arg8 == NULL) SWIG_fail;
6865 temp8 = true;
b519803b 6866 }
554f62e9
RD
6867 }
6868 {
6869 if (!wxPyCheckForApp()) SWIG_fail;
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6876 {
6877 if (temp8)
6878 delete arg8;
6879 }
6880 return resultobj;
6881fail:
6882 {
6883 if (temp8)
6884 delete arg8;
6885 }
6886 return NULL;
b519803b
RD
6887}
6888
6889
554f62e9
RD
6890SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 wxGauge *result = 0 ;
6893
6894 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge();
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6903 return resultobj;
6904fail:
6905 return NULL;
6906}
6907
6908
6909SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6910 PyObject *resultobj = 0;
6911 wxGauge *arg1 = (wxGauge *) 0 ;
6912 wxWindow *arg2 = (wxWindow *) 0 ;
6913 int arg3 = (int) -1 ;
6914 int arg4 = (int) 100 ;
6915 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6916 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6917 wxSize const &arg6_defvalue = wxDefaultSize ;
6918 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6919 long arg7 = (long) wxGA_HORIZONTAL ;
6920 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6921 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6922 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6923 wxString *arg9 = (wxString *) &arg9_defvalue ;
6924 bool result;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 void *argp2 = 0 ;
6928 int res2 = 0 ;
6929 int val3 ;
6930 int ecode3 = 0 ;
6931 int val4 ;
6932 int ecode4 = 0 ;
6933 wxPoint temp5 ;
6934 wxSize temp6 ;
6935 long val7 ;
6936 int ecode7 = 0 ;
6937 void *argp8 = 0 ;
6938 int res8 = 0 ;
6939 bool temp9 = false ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 PyObject * obj2 = 0 ;
6943 PyObject * obj3 = 0 ;
6944 PyObject * obj4 = 0 ;
6945 PyObject * obj5 = 0 ;
6946 PyObject * obj6 = 0 ;
6947 PyObject * obj7 = 0 ;
6948 PyObject * obj8 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6955 if (!SWIG_IsOK(res1)) {
6956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6957 }
6958 arg1 = reinterpret_cast< wxGauge * >(argp1);
6959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6960 if (!SWIG_IsOK(res2)) {
6961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6962 }
6963 arg2 = reinterpret_cast< wxWindow * >(argp2);
6964 if (obj2) {
6965 ecode3 = SWIG_AsVal_int(obj2, &val3);
6966 if (!SWIG_IsOK(ecode3)) {
6967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6968 }
6969 arg3 = static_cast< int >(val3);
6970 }
6971 if (obj3) {
6972 ecode4 = SWIG_AsVal_int(obj3, &val4);
6973 if (!SWIG_IsOK(ecode4)) {
6974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6975 }
6976 arg4 = static_cast< int >(val4);
6977 }
6978 if (obj4) {
b519803b 6979 {
554f62e9
RD
6980 arg5 = &temp5;
6981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
b519803b 6982 }
554f62e9
RD
6983 }
6984 if (obj5) {
b519803b 6985 {
554f62e9
RD
6986 arg6 = &temp6;
6987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
b519803b 6988 }
554f62e9
RD
6989 }
6990 if (obj6) {
6991 ecode7 = SWIG_AsVal_long(obj6, &val7);
6992 if (!SWIG_IsOK(ecode7)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6994 }
6995 arg7 = static_cast< long >(val7);
6996 }
6997 if (obj7) {
6998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6999 if (!SWIG_IsOK(res8)) {
7000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
b519803b 7001 }
554f62e9
RD
7002 if (!argp8) {
7003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7004 }
7005 arg8 = reinterpret_cast< wxValidator * >(argp8);
7006 }
7007 if (obj8) {
b519803b 7008 {
554f62e9
RD
7009 arg9 = wxString_in_helper(obj8);
7010 if (arg9 == NULL) SWIG_fail;
7011 temp9 = true;
b519803b 7012 }
554f62e9
RD
7013 }
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 {
7021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7022 }
7023 {
7024 if (temp9)
7025 delete arg9;
7026 }
7027 return resultobj;
7028fail:
7029 {
7030 if (temp9)
7031 delete arg9;
7032 }
7033 return NULL;
7034}
7035
7036
7037SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxGauge *arg1 = (wxGauge *) 0 ;
7040 int arg2 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 int val2 ;
7044 int ecode2 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "range", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7055 }
7056 arg1 = reinterpret_cast< wxGauge * >(argp1);
7057 ecode2 = SWIG_AsVal_int(obj1, &val2);
7058 if (!SWIG_IsOK(ecode2)) {
7059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7060 }
7061 arg2 = static_cast< int >(val2);
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 (arg1)->SetRange(arg2);
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_Py_Void();
7069 return resultobj;
7070fail:
7071 return NULL;
b519803b
RD
7072}
7073
7074
554f62e9
RD
7075SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7076 PyObject *resultobj = 0;
7077 wxGauge *arg1 = (wxGauge *) 0 ;
7078 int result;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081 PyObject *swig_obj[1] ;
7082
7083 if (!args) SWIG_fail;
7084 swig_obj[0] = args;
7085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7088 }
7089 arg1 = reinterpret_cast< wxGauge * >(argp1);
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 result = (int)((wxGauge const *)arg1)->GetRange();
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_From_int(static_cast< int >(result));
7097 return resultobj;
7098fail:
7099 return NULL;
7100}
7101
7102
7103SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj = 0;
7105 wxGauge *arg1 = (wxGauge *) 0 ;
7106 int arg2 ;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 int val2 ;
7110 int ecode2 = 0 ;
7111 PyObject * obj0 = 0 ;
7112 PyObject * obj1 = 0 ;
7113 char * kwnames[] = {
7114 (char *) "self",(char *) "pos", NULL
7115 };
7116
7117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7121 }
7122 arg1 = reinterpret_cast< wxGauge * >(argp1);
7123 ecode2 = SWIG_AsVal_int(obj1, &val2);
7124 if (!SWIG_IsOK(ecode2)) {
7125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7126 }
7127 arg2 = static_cast< int >(val2);
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 (arg1)->SetValue(arg2);
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 resultobj = SWIG_Py_Void();
7135 return resultobj;
7136fail:
7137 return NULL;
b519803b
RD
7138}
7139
7140
554f62e9
RD
7141SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7142 PyObject *resultobj = 0;
7143 wxGauge *arg1 = (wxGauge *) 0 ;
7144 int result;
7145 void *argp1 = 0 ;
7146 int res1 = 0 ;
7147 PyObject *swig_obj[1] ;
7148
7149 if (!args) SWIG_fail;
7150 swig_obj[0] = args;
7151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7152 if (!SWIG_IsOK(res1)) {
7153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7154 }
7155 arg1 = reinterpret_cast< wxGauge * >(argp1);
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (int)((wxGauge const *)arg1)->GetValue();
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_From_int(static_cast< int >(result));
7163 return resultobj;
7164fail:
7165 return NULL;
b519803b
RD
7166}
7167
7168
554f62e9
RD
7169SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7170 PyObject *resultobj = 0;
7171 wxGauge *arg1 = (wxGauge *) 0 ;
7172 bool result;
7173 void *argp1 = 0 ;
7174 int res1 = 0 ;
7175 PyObject *swig_obj[1] ;
7176
7177 if (!args) SWIG_fail;
7178 swig_obj[0] = args;
7179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7180 if (!SWIG_IsOK(res1)) {
7181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7182 }
7183 arg1 = reinterpret_cast< wxGauge * >(argp1);
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (bool)((wxGauge const *)arg1)->IsVertical();
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 {
7191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7192 }
7193 return resultobj;
7194fail:
7195 return NULL;
7196}
7197
7198
7199SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 int arg2 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 int val2 ;
7206 int ecode2 = 0 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 char * kwnames[] = {
7210 (char *) "self",(char *) "w", NULL
7211 };
7212
7213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7215 if (!SWIG_IsOK(res1)) {
7216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7217 }
7218 arg1 = reinterpret_cast< wxGauge * >(argp1);
7219 ecode2 = SWIG_AsVal_int(obj1, &val2);
7220 if (!SWIG_IsOK(ecode2)) {
7221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7222 }
7223 arg2 = static_cast< int >(val2);
7224 {
7225 PyThreadState* __tstate = wxPyBeginAllowThreads();
7226 (arg1)->SetShadowWidth(arg2);
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 resultobj = SWIG_Py_Void();
7231 return resultobj;
7232fail:
7233 return NULL;
f20a2e1f
RD
7234}
7235
7236
554f62e9
RD
7237SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 wxGauge *arg1 = (wxGauge *) 0 ;
7240 int result;
7241 void *argp1 = 0 ;
7242 int res1 = 0 ;
7243 PyObject *swig_obj[1] ;
7244
7245 if (!args) SWIG_fail;
7246 swig_obj[0] = args;
7247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7250 }
7251 arg1 = reinterpret_cast< wxGauge * >(argp1);
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_From_int(static_cast< int >(result));
7259 return resultobj;
7260fail:
7261 return NULL;
7262}
7263
7264
7265SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj = 0;
7267 wxGauge *arg1 = (wxGauge *) 0 ;
7268 int arg2 ;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 int val2 ;
7272 int ecode2 = 0 ;
7273 PyObject * obj0 = 0 ;
7274 PyObject * obj1 = 0 ;
7275 char * kwnames[] = {
7276 (char *) "self",(char *) "w", NULL
7277 };
7278
7279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7281 if (!SWIG_IsOK(res1)) {
7282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7283 }
7284 arg1 = reinterpret_cast< wxGauge * >(argp1);
7285 ecode2 = SWIG_AsVal_int(obj1, &val2);
7286 if (!SWIG_IsOK(ecode2)) {
7287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7288 }
7289 arg2 = static_cast< int >(val2);
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 (arg1)->SetBezelFace(arg2);
7293 wxPyEndAllowThreads(__tstate);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 resultobj = SWIG_Py_Void();
7297 return resultobj;
7298fail:
7299 return NULL;
d55e5bfc 7300}
554f62e9
RD
7301
7302
7303SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7304 PyObject *resultobj = 0;
7305 wxGauge *arg1 = (wxGauge *) 0 ;
7306 int result;
7307 void *argp1 = 0 ;
7308 int res1 = 0 ;
7309 PyObject *swig_obj[1] ;
7310
7311 if (!args) SWIG_fail;
7312 swig_obj[0] = args;
7313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7316 }
7317 arg1 = reinterpret_cast< wxGauge * >(argp1);
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_From_int(static_cast< int >(result));
7325 return resultobj;
7326fail:
7327 return NULL;
7328}
7329
7330
7331SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj = 0;
7333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7334 SwigValueWrapper<wxVisualAttributes > result;
7335 int val1 ;
7336 int ecode1 = 0 ;
7337 PyObject * obj0 = 0 ;
7338 char * kwnames[] = {
7339 (char *) "variant", NULL
7340 };
7341
7342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7343 if (obj0) {
7344 ecode1 = SWIG_AsVal_int(obj0, &val1);
7345 if (!SWIG_IsOK(ecode1)) {
7346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7347 }
7348 arg1 = static_cast< wxWindowVariant >(val1);
7349 }
7350 {
7351 if (!wxPyCheckForApp()) SWIG_fail;
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 result = wxGauge::GetClassDefaultAttributes(arg1);
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7358 return resultobj;
7359fail:
7360 return NULL;
d55e5bfc
RD
7361}
7362
7363
554f62e9
RD
7364SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7365 PyObject *obj;
7366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7367 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7368 return SWIG_Py_Void();
7369}
7370
7371SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 return SWIG_Python_InitShadowInstance(args);
7373}
7374
7375SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7377 return 1;
7378}
7379
7380
7381SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
d55e5bfc 7385#if wxUSE_UNICODE
554f62e9 7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7387#else
554f62e9 7388 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7389#endif
554f62e9
RD
7390 }
7391 return pyobj;
d55e5bfc
RD
7392}
7393
7394
554f62e9
RD
7395SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7396 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7397 return 1;
d55e5bfc
RD
7398}
7399
7400
554f62e9
RD
7401SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7402 PyObject *pyobj = 0;
7403
7404 {
7405#if wxUSE_UNICODE
7406 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7407#else
7408 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7409#endif
7410 }
7411 return pyobj;
7412}
7413
7414
7415SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7416 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7417 return 1;
7418}
7419
7420
7421SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7422 PyObject *pyobj = 0;
7423
7424 {
7425#if wxUSE_UNICODE
7426 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7427#else
7428 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7429#endif
7430 }
7431 return pyobj;
7432}
7433
7434
7435SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = 0;
7437 wxWindow *arg1 = (wxWindow *) 0 ;
7438 int arg2 = (int) -1 ;
7439 wxString const &arg3_defvalue = wxPyEmptyString ;
7440 wxString *arg3 = (wxString *) &arg3_defvalue ;
7441 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7442 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7443 wxSize const &arg5_defvalue = wxDefaultSize ;
7444 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7445 long arg6 = (long) 0 ;
7446 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7447 wxString *arg7 = (wxString *) &arg7_defvalue ;
7448 wxStaticBox *result = 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 int val2 ;
7452 int ecode2 = 0 ;
7453 bool temp3 = false ;
7454 wxPoint temp4 ;
7455 wxSize temp5 ;
7456 long val6 ;
7457 int ecode6 = 0 ;
7458 bool temp7 = false ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 PyObject * obj2 = 0 ;
7462 PyObject * obj3 = 0 ;
7463 PyObject * obj4 = 0 ;
7464 PyObject * obj5 = 0 ;
7465 PyObject * obj6 = 0 ;
7466 char * kwnames[] = {
7467 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7468 };
7469
7470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7472 if (!SWIG_IsOK(res1)) {
7473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7474 }
7475 arg1 = reinterpret_cast< wxWindow * >(argp1);
7476 if (obj1) {
7477 ecode2 = SWIG_AsVal_int(obj1, &val2);
7478 if (!SWIG_IsOK(ecode2)) {
7479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7480 }
7481 arg2 = static_cast< int >(val2);
7482 }
7483 if (obj2) {
d55e5bfc 7484 {
554f62e9
RD
7485 arg3 = wxString_in_helper(obj2);
7486 if (arg3 == NULL) SWIG_fail;
7487 temp3 = true;
d55e5bfc 7488 }
554f62e9
RD
7489 }
7490 if (obj3) {
d55e5bfc 7491 {
554f62e9
RD
7492 arg4 = &temp4;
7493 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7494 }
554f62e9
RD
7495 }
7496 if (obj4) {
d55e5bfc 7497 {
554f62e9
RD
7498 arg5 = &temp5;
7499 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7500 }
554f62e9
RD
7501 }
7502 if (obj5) {
7503 ecode6 = SWIG_AsVal_long(obj5, &val6);
7504 if (!SWIG_IsOK(ecode6)) {
7505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7506 }
7507 arg6 = static_cast< long >(val6);
7508 }
7509 if (obj6) {
d55e5bfc 7510 {
554f62e9
RD
7511 arg7 = wxString_in_helper(obj6);
7512 if (arg7 == NULL) SWIG_fail;
7513 temp7 = true;
d55e5bfc 7514 }
554f62e9
RD
7515 }
7516 {
7517 if (!wxPyCheckForApp()) SWIG_fail;
7518 PyThreadState* __tstate = wxPyBeginAllowThreads();
7519 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7524 {
7525 if (temp3)
7526 delete arg3;
7527 }
7528 {
7529 if (temp7)
7530 delete arg7;
7531 }
7532 return resultobj;
7533fail:
7534 {
7535 if (temp3)
7536 delete arg3;
7537 }
7538 {
7539 if (temp7)
7540 delete arg7;
7541 }
7542 return NULL;
d55e5bfc
RD
7543}
7544
7545
554f62e9
RD
7546SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7547 PyObject *resultobj = 0;
7548 wxStaticBox *result = 0 ;
7549
7550 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7551 {
7552 if (!wxPyCheckForApp()) SWIG_fail;
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (wxStaticBox *)new wxStaticBox();
7555 wxPyEndAllowThreads(__tstate);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7559 return resultobj;
7560fail:
7561 return NULL;
7562}
7563
7564
7565SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7566 PyObject *resultobj = 0;
7567 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7568 wxWindow *arg2 = (wxWindow *) 0 ;
7569 int arg3 = (int) -1 ;
7570 wxString const &arg4_defvalue = wxPyEmptyString ;
7571 wxString *arg4 = (wxString *) &arg4_defvalue ;
7572 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7573 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7574 wxSize const &arg6_defvalue = wxDefaultSize ;
7575 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7576 long arg7 = (long) 0 ;
7577 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7578 wxString *arg8 = (wxString *) &arg8_defvalue ;
7579 bool result;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 void *argp2 = 0 ;
7583 int res2 = 0 ;
7584 int val3 ;
7585 int ecode3 = 0 ;
7586 bool temp4 = false ;
7587 wxPoint temp5 ;
7588 wxSize temp6 ;
7589 long val7 ;
7590 int ecode7 = 0 ;
7591 bool temp8 = false ;
7592 PyObject * obj0 = 0 ;
7593 PyObject * obj1 = 0 ;
7594 PyObject * obj2 = 0 ;
7595 PyObject * obj3 = 0 ;
7596 PyObject * obj4 = 0 ;
7597 PyObject * obj5 = 0 ;
7598 PyObject * obj6 = 0 ;
7599 PyObject * obj7 = 0 ;
7600 char * kwnames[] = {
7601 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7602 };
7603
7604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7608 }
7609 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7611 if (!SWIG_IsOK(res2)) {
7612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7613 }
7614 arg2 = reinterpret_cast< wxWindow * >(argp2);
7615 if (obj2) {
7616 ecode3 = SWIG_AsVal_int(obj2, &val3);
7617 if (!SWIG_IsOK(ecode3)) {
7618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7619 }
7620 arg3 = static_cast< int >(val3);
7621 }
7622 if (obj3) {
093d3ff1 7623 {
554f62e9
RD
7624 arg4 = wxString_in_helper(obj3);
7625 if (arg4 == NULL) SWIG_fail;
7626 temp4 = true;
093d3ff1 7627 }
554f62e9
RD
7628 }
7629 if (obj4) {
d55e5bfc 7630 {
554f62e9
RD
7631 arg5 = &temp5;
7632 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7633 }
554f62e9
RD
7634 }
7635 if (obj5) {
d55e5bfc 7636 {
554f62e9
RD
7637 arg6 = &temp6;
7638 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7639 }
554f62e9
RD
7640 }
7641 if (obj6) {
7642 ecode7 = SWIG_AsVal_long(obj6, &val7);
7643 if (!SWIG_IsOK(ecode7)) {
7644 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7645 }
7646 arg7 = static_cast< long >(val7);
7647 }
7648 if (obj7) {
093d3ff1 7649 {
554f62e9
RD
7650 arg8 = wxString_in_helper(obj7);
7651 if (arg8 == NULL) SWIG_fail;
7652 temp8 = true;
093d3ff1 7653 }
554f62e9
RD
7654 }
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7658 wxPyEndAllowThreads(__tstate);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7663 }
7664 {
7665 if (temp4)
7666 delete arg4;
7667 }
7668 {
7669 if (temp8)
7670 delete arg8;
7671 }
7672 return resultobj;
7673fail:
7674 {
7675 if (temp4)
7676 delete arg4;
7677 }
7678 {
7679 if (temp8)
7680 delete arg8;
7681 }
7682 return NULL;
7683}
d55e5bfc 7684
554f62e9
RD
7685
7686SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj = 0;
7688 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7689 SwigValueWrapper<wxVisualAttributes > result;
7690 int val1 ;
7691 int ecode1 = 0 ;
7692 PyObject * obj0 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "variant", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7698 if (obj0) {
7699 ecode1 = SWIG_AsVal_int(obj0, &val1);
7700 if (!SWIG_IsOK(ecode1)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7702 }
7703 arg1 = static_cast< wxWindowVariant >(val1);
7704 }
7705 {
7706 if (!wxPyCheckForApp()) SWIG_fail;
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7709 wxPyEndAllowThreads(__tstate);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7713 return resultobj;
7714fail:
7715 return NULL;
7716}
7717
7718
7719SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7720 PyObject *obj;
7721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7722 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7723 return SWIG_Py_Void();
7724}
7725
7726SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 return SWIG_Python_InitShadowInstance(args);
7728}
7729
7730SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj = 0;
7732 wxWindow *arg1 = (wxWindow *) 0 ;
7733 int arg2 = (int) -1 ;
7734 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7735 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7736 wxSize const &arg4_defvalue = wxDefaultSize ;
7737 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7738 long arg5 = (long) wxLI_HORIZONTAL ;
7739 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7740 wxString *arg6 = (wxString *) &arg6_defvalue ;
7741 wxStaticLine *result = 0 ;
7742 void *argp1 = 0 ;
7743 int res1 = 0 ;
7744 int val2 ;
7745 int ecode2 = 0 ;
7746 wxPoint temp3 ;
7747 wxSize temp4 ;
7748 long val5 ;
7749 int ecode5 = 0 ;
7750 bool temp6 = false ;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 PyObject * obj3 = 0 ;
7755 PyObject * obj4 = 0 ;
7756 PyObject * obj5 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7765 }
7766 arg1 = reinterpret_cast< wxWindow * >(argp1);
7767 if (obj1) {
7768 ecode2 = SWIG_AsVal_int(obj1, &val2);
7769 if (!SWIG_IsOK(ecode2)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7771 }
7772 arg2 = static_cast< int >(val2);
7773 }
7774 if (obj2) {
093d3ff1 7775 {
554f62e9
RD
7776 arg3 = &temp3;
7777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7778 }
554f62e9
RD
7779 }
7780 if (obj3) {
d55e5bfc 7781 {
554f62e9
RD
7782 arg4 = &temp4;
7783 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7784 }
554f62e9
RD
7785 }
7786 if (obj4) {
7787 ecode5 = SWIG_AsVal_long(obj4, &val5);
7788 if (!SWIG_IsOK(ecode5)) {
7789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7790 }
7791 arg5 = static_cast< long >(val5);
7792 }
7793 if (obj5) {
7794 {
7795 arg6 = wxString_in_helper(obj5);
7796 if (arg6 == NULL) SWIG_fail;
7797 temp6 = true;
7798 }
7799 }
7800 {
7801 if (!wxPyCheckForApp()) SWIG_fail;
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7808 {
7809 if (temp6)
7810 delete arg6;
7811 }
7812 return resultobj;
7813fail:
7814 {
7815 if (temp6)
7816 delete arg6;
7817 }
7818 return NULL;
d55e5bfc
RD
7819}
7820
7821
554f62e9
RD
7822SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *resultobj = 0;
7824 wxStaticLine *result = 0 ;
7825
7826 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine();
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7844 wxWindow *arg2 = (wxWindow *) 0 ;
7845 int arg3 = (int) -1 ;
7846 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7847 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7848 wxSize const &arg5_defvalue = wxDefaultSize ;
7849 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7850 long arg6 = (long) wxLI_HORIZONTAL ;
7851 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7852 wxString *arg7 = (wxString *) &arg7_defvalue ;
7853 bool result;
7854 void *argp1 = 0 ;
7855 int res1 = 0 ;
7856 void *argp2 = 0 ;
7857 int res2 = 0 ;
7858 int val3 ;
7859 int ecode3 = 0 ;
7860 wxPoint temp4 ;
7861 wxSize temp5 ;
7862 long val6 ;
7863 int ecode6 = 0 ;
7864 bool temp7 = false ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 PyObject * obj2 = 0 ;
7868 PyObject * obj3 = 0 ;
7869 PyObject * obj4 = 0 ;
7870 PyObject * obj5 = 0 ;
7871 PyObject * obj6 = 0 ;
7872 char * kwnames[] = {
7873 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7874 };
7875
7876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7880 }
7881 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7883 if (!SWIG_IsOK(res2)) {
7884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7885 }
7886 arg2 = reinterpret_cast< wxWindow * >(argp2);
7887 if (obj2) {
7888 ecode3 = SWIG_AsVal_int(obj2, &val3);
7889 if (!SWIG_IsOK(ecode3)) {
7890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7891 }
7892 arg3 = static_cast< int >(val3);
7893 }
7894 if (obj3) {
d55e5bfc 7895 {
554f62e9
RD
7896 arg4 = &temp4;
7897 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7898 }
554f62e9
RD
7899 }
7900 if (obj4) {
093d3ff1 7901 {
554f62e9
RD
7902 arg5 = &temp5;
7903 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7904 }
554f62e9
RD
7905 }
7906 if (obj5) {
7907 ecode6 = SWIG_AsVal_long(obj5, &val6);
7908 if (!SWIG_IsOK(ecode6)) {
7909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7910 }
7911 arg6 = static_cast< long >(val6);
7912 }
7913 if (obj6) {
7914 {
7915 arg7 = wxString_in_helper(obj6);
7916 if (arg7 == NULL) SWIG_fail;
7917 temp7 = true;
7918 }
7919 }
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 {
7927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7928 }
7929 {
7930 if (temp7)
7931 delete arg7;
7932 }
7933 return resultobj;
7934fail:
7935 {
7936 if (temp7)
7937 delete arg7;
7938 }
7939 return NULL;
d55e5bfc
RD
7940}
7941
7942
554f62e9
RD
7943SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7944 PyObject *resultobj = 0;
7945 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7946 bool result;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 PyObject *swig_obj[1] ;
7950
7951 if (!args) SWIG_fail;
7952 swig_obj[0] = args;
7953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7954 if (!SWIG_IsOK(res1)) {
7955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7956 }
7957 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 {
7965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7966 }
7967 return resultobj;
7968fail:
7969 return NULL;
7970}
7971
7972
7973SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 PyObject *resultobj = 0;
7975 int result;
7976
7977 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (int)wxStaticLine::GetDefaultSize();
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_From_int(static_cast< int >(result));
7985 return resultobj;
7986fail:
7987 return NULL;
7988}
7989
7990
7991SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj = 0;
7993 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7994 SwigValueWrapper<wxVisualAttributes > result;
7995 int val1 ;
7996 int ecode1 = 0 ;
7997 PyObject * obj0 = 0 ;
7998 char * kwnames[] = {
7999 (char *) "variant", NULL
8000 };
8001
8002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8003 if (obj0) {
8004 ecode1 = SWIG_AsVal_int(obj0, &val1);
8005 if (!SWIG_IsOK(ecode1)) {
8006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8007 }
8008 arg1 = static_cast< wxWindowVariant >(val1);
8009 }
8010 {
8011 if (!wxPyCheckForApp()) SWIG_fail;
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8018 return resultobj;
8019fail:
8020 return NULL;
8021}
8022
8023
8024SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025 PyObject *obj;
8026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8027 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8028 return SWIG_Py_Void();
8029}
8030
8031SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 return SWIG_Python_InitShadowInstance(args);
8033}
8034
8035SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj = 0;
8037 wxWindow *arg1 = (wxWindow *) 0 ;
8038 int arg2 = (int) -1 ;
8039 wxString const &arg3_defvalue = wxPyEmptyString ;
8040 wxString *arg3 = (wxString *) &arg3_defvalue ;
8041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8043 wxSize const &arg5_defvalue = wxDefaultSize ;
8044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8045 long arg6 = (long) 0 ;
8046 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8047 wxString *arg7 = (wxString *) &arg7_defvalue ;
8048 wxStaticText *result = 0 ;
8049 void *argp1 = 0 ;
8050 int res1 = 0 ;
8051 int val2 ;
8052 int ecode2 = 0 ;
8053 bool temp3 = false ;
8054 wxPoint temp4 ;
8055 wxSize temp5 ;
8056 long val6 ;
8057 int ecode6 = 0 ;
8058 bool temp7 = false ;
8059 PyObject * obj0 = 0 ;
8060 PyObject * obj1 = 0 ;
8061 PyObject * obj2 = 0 ;
8062 PyObject * obj3 = 0 ;
8063 PyObject * obj4 = 0 ;
8064 PyObject * obj5 = 0 ;
8065 PyObject * obj6 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8074 }
8075 arg1 = reinterpret_cast< wxWindow * >(argp1);
8076 if (obj1) {
8077 ecode2 = SWIG_AsVal_int(obj1, &val2);
8078 if (!SWIG_IsOK(ecode2)) {
8079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8080 }
8081 arg2 = static_cast< int >(val2);
8082 }
8083 if (obj2) {
d55e5bfc 8084 {
554f62e9
RD
8085 arg3 = wxString_in_helper(obj2);
8086 if (arg3 == NULL) SWIG_fail;
8087 temp3 = true;
d55e5bfc 8088 }
554f62e9
RD
8089 }
8090 if (obj3) {
d55e5bfc 8091 {
554f62e9
RD
8092 arg4 = &temp4;
8093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8094 }
554f62e9
RD
8095 }
8096 if (obj4) {
093d3ff1 8097 {
554f62e9
RD
8098 arg5 = &temp5;
8099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8100 }
554f62e9
RD
8101 }
8102 if (obj5) {
8103 ecode6 = SWIG_AsVal_long(obj5, &val6);
8104 if (!SWIG_IsOK(ecode6)) {
8105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8106 }
8107 arg6 = static_cast< long >(val6);
8108 }
8109 if (obj6) {
d55e5bfc 8110 {
554f62e9
RD
8111 arg7 = wxString_in_helper(obj6);
8112 if (arg7 == NULL) SWIG_fail;
8113 temp7 = true;
d55e5bfc 8114 }
554f62e9
RD
8115 }
8116 {
8117 if (!wxPyCheckForApp()) SWIG_fail;
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8124 {
8125 if (temp3)
8126 delete arg3;
8127 }
8128 {
8129 if (temp7)
8130 delete arg7;
8131 }
8132 return resultobj;
8133fail:
8134 {
8135 if (temp3)
8136 delete arg3;
8137 }
8138 {
8139 if (temp7)
8140 delete arg7;
8141 }
8142 return NULL;
d55e5bfc
RD
8143}
8144
8145
554f62e9
RD
8146SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8147 PyObject *resultobj = 0;
8148 wxStaticText *result = 0 ;
8149
8150 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8151 {
8152 if (!wxPyCheckForApp()) SWIG_fail;
8153 PyThreadState* __tstate = wxPyBeginAllowThreads();
8154 result = (wxStaticText *)new wxStaticText();
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8159 return resultobj;
8160fail:
8161 return NULL;
8162}
8163
8164
8165SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj = 0;
8167 wxStaticText *arg1 = (wxStaticText *) 0 ;
8168 wxWindow *arg2 = (wxWindow *) 0 ;
8169 int arg3 = (int) -1 ;
8170 wxString const &arg4_defvalue = wxPyEmptyString ;
8171 wxString *arg4 = (wxString *) &arg4_defvalue ;
8172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8174 wxSize const &arg6_defvalue = wxDefaultSize ;
8175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8176 long arg7 = (long) 0 ;
8177 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8178 wxString *arg8 = (wxString *) &arg8_defvalue ;
8179 bool result;
8180 void *argp1 = 0 ;
8181 int res1 = 0 ;
8182 void *argp2 = 0 ;
8183 int res2 = 0 ;
8184 int val3 ;
8185 int ecode3 = 0 ;
8186 bool temp4 = false ;
8187 wxPoint temp5 ;
8188 wxSize temp6 ;
8189 long val7 ;
8190 int ecode7 = 0 ;
8191 bool temp8 = false ;
8192 PyObject * obj0 = 0 ;
8193 PyObject * obj1 = 0 ;
8194 PyObject * obj2 = 0 ;
8195 PyObject * obj3 = 0 ;
8196 PyObject * obj4 = 0 ;
8197 PyObject * obj5 = 0 ;
8198 PyObject * obj6 = 0 ;
8199 PyObject * obj7 = 0 ;
8200 char * kwnames[] = {
8201 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8202 };
8203
8204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8208 }
8209 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8211 if (!SWIG_IsOK(res2)) {
8212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8213 }
8214 arg2 = reinterpret_cast< wxWindow * >(argp2);
8215 if (obj2) {
8216 ecode3 = SWIG_AsVal_int(obj2, &val3);
8217 if (!SWIG_IsOK(ecode3)) {
8218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8219 }
8220 arg3 = static_cast< int >(val3);
8221 }
8222 if (obj3) {
d55e5bfc 8223 {
554f62e9
RD
8224 arg4 = wxString_in_helper(obj3);
8225 if (arg4 == NULL) SWIG_fail;
8226 temp4 = true;
8227 }
8228 }
8229 if (obj4) {
8230 {
8231 arg5 = &temp5;
8232 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8233 }
554f62e9
RD
8234 }
8235 if (obj5) {
093d3ff1 8236 {
554f62e9
RD
8237 arg6 = &temp6;
8238 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8239 }
554f62e9
RD
8240 }
8241 if (obj6) {
8242 ecode7 = SWIG_AsVal_long(obj6, &val7);
8243 if (!SWIG_IsOK(ecode7)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8245 }
8246 arg7 = static_cast< long >(val7);
8247 }
8248 if (obj7) {
093d3ff1 8249 {
554f62e9
RD
8250 arg8 = wxString_in_helper(obj7);
8251 if (arg8 == NULL) SWIG_fail;
8252 temp8 = true;
8253 }
8254 }
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 {
8265 if (temp4)
8266 delete arg4;
8267 }
8268 {
8269 if (temp8)
8270 delete arg8;
8271 }
8272 return resultobj;
8273fail:
8274 {
8275 if (temp4)
8276 delete arg4;
8277 }
8278 {
8279 if (temp8)
8280 delete arg8;
8281 }
8282 return NULL;
8283}
8284
8285
8286SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj = 0;
8288 wxStaticText *arg1 = (wxStaticText *) 0 ;
8289 int arg2 ;
8290 void *argp1 = 0 ;
8291 int res1 = 0 ;
8292 int val2 ;
8293 int ecode2 = 0 ;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "width", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8304 }
8305 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8306 ecode2 = SWIG_AsVal_int(obj1, &val2);
8307 if (!SWIG_IsOK(ecode2)) {
8308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8309 }
8310 arg2 = static_cast< int >(val2);
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 (arg1)->Wrap(arg2);
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 resultobj = SWIG_Py_Void();
8318 return resultobj;
8319fail:
8320 return NULL;
8321}
8322
8323
8324SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj = 0;
8326 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8327 SwigValueWrapper<wxVisualAttributes > result;
8328 int val1 ;
8329 int ecode1 = 0 ;
8330 PyObject * obj0 = 0 ;
8331 char * kwnames[] = {
8332 (char *) "variant", NULL
8333 };
8334
8335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8336 if (obj0) {
8337 ecode1 = SWIG_AsVal_int(obj0, &val1);
8338 if (!SWIG_IsOK(ecode1)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8340 }
8341 arg1 = static_cast< wxWindowVariant >(val1);
8342 }
8343 {
8344 if (!wxPyCheckForApp()) SWIG_fail;
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = wxStaticText::GetClassDefaultAttributes(arg1);
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8351 return resultobj;
8352fail:
8353 return NULL;
8354}
8355
8356
8357SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358 PyObject *obj;
8359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8360 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8361 return SWIG_Py_Void();
8362}
8363
8364SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 return SWIG_Python_InitShadowInstance(args);
8366}
8367
8368SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = 0;
8370 wxWindow *arg1 = (wxWindow *) 0 ;
8371 int arg2 = (int) -1 ;
8372 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8373 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8376 wxSize const &arg5_defvalue = wxDefaultSize ;
8377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8378 long arg6 = (long) 0 ;
8379 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8380 wxString *arg7 = (wxString *) &arg7_defvalue ;
8381 wxStaticBitmap *result = 0 ;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 int val2 ;
8385 int ecode2 = 0 ;
8386 void *argp3 = 0 ;
8387 int res3 = 0 ;
8388 wxPoint temp4 ;
8389 wxSize temp5 ;
8390 long val6 ;
8391 int ecode6 = 0 ;
8392 bool temp7 = false ;
8393 PyObject * obj0 = 0 ;
8394 PyObject * obj1 = 0 ;
8395 PyObject * obj2 = 0 ;
8396 PyObject * obj3 = 0 ;
8397 PyObject * obj4 = 0 ;
8398 PyObject * obj5 = 0 ;
8399 PyObject * obj6 = 0 ;
8400 char * kwnames[] = {
8401 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8402 };
8403
8404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8408 }
8409 arg1 = reinterpret_cast< wxWindow * >(argp1);
8410 if (obj1) {
8411 ecode2 = SWIG_AsVal_int(obj1, &val2);
8412 if (!SWIG_IsOK(ecode2)) {
8413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8414 }
8415 arg2 = static_cast< int >(val2);
8416 }
8417 if (obj2) {
8418 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8419 if (!SWIG_IsOK(res3)) {
8420 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8421 }
8422 if (!argp3) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8424 }
554f62e9
RD
8425 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8426 }
8427 if (obj3) {
d55e5bfc 8428 {
554f62e9
RD
8429 arg4 = &temp4;
8430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8431 }
554f62e9
RD
8432 }
8433 if (obj4) {
d55e5bfc 8434 {
554f62e9
RD
8435 arg5 = &temp5;
8436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8437 }
554f62e9
RD
8438 }
8439 if (obj5) {
8440 ecode6 = SWIG_AsVal_long(obj5, &val6);
8441 if (!SWIG_IsOK(ecode6)) {
8442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8443 }
8444 arg6 = static_cast< long >(val6);
8445 }
8446 if (obj6) {
093d3ff1 8447 {
554f62e9
RD
8448 arg7 = wxString_in_helper(obj6);
8449 if (arg7 == NULL) SWIG_fail;
8450 temp7 = true;
093d3ff1 8451 }
554f62e9
RD
8452 }
8453 {
8454 if (!wxPyCheckForApp()) SWIG_fail;
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8457 wxPyEndAllowThreads(__tstate);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8461 {
8462 if (temp7)
8463 delete arg7;
8464 }
8465 return resultobj;
8466fail:
8467 {
8468 if (temp7)
8469 delete arg7;
8470 }
8471 return NULL;
d55e5bfc
RD
8472}
8473
8474
554f62e9
RD
8475SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8476 PyObject *resultobj = 0;
8477 wxStaticBitmap *result = 0 ;
8478
8479 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap();
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8488 return resultobj;
8489fail:
8490 return NULL;
8491}
8492
8493
8494SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj = 0;
8496 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8497 wxWindow *arg2 = (wxWindow *) 0 ;
8498 int arg3 = (int) -1 ;
8499 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8500 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8501 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8502 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8503 wxSize const &arg6_defvalue = wxDefaultSize ;
8504 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8505 long arg7 = (long) 0 ;
8506 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8507 wxString *arg8 = (wxString *) &arg8_defvalue ;
8508 bool result;
8509 void *argp1 = 0 ;
8510 int res1 = 0 ;
8511 void *argp2 = 0 ;
8512 int res2 = 0 ;
8513 int val3 ;
8514 int ecode3 = 0 ;
8515 void *argp4 = 0 ;
8516 int res4 = 0 ;
8517 wxPoint temp5 ;
8518 wxSize temp6 ;
8519 long val7 ;
8520 int ecode7 = 0 ;
8521 bool temp8 = false ;
8522 PyObject * obj0 = 0 ;
8523 PyObject * obj1 = 0 ;
8524 PyObject * obj2 = 0 ;
8525 PyObject * obj3 = 0 ;
8526 PyObject * obj4 = 0 ;
8527 PyObject * obj5 = 0 ;
8528 PyObject * obj6 = 0 ;
8529 PyObject * obj7 = 0 ;
8530 char * kwnames[] = {
8531 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8532 };
8533
8534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8536 if (!SWIG_IsOK(res1)) {
8537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8538 }
8539 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8541 if (!SWIG_IsOK(res2)) {
8542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8543 }
8544 arg2 = reinterpret_cast< wxWindow * >(argp2);
8545 if (obj2) {
8546 ecode3 = SWIG_AsVal_int(obj2, &val3);
8547 if (!SWIG_IsOK(ecode3)) {
8548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8549 }
8550 arg3 = static_cast< int >(val3);
8551 }
8552 if (obj3) {
8553 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8554 if (!SWIG_IsOK(res4)) {
8555 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8556 }
8557 if (!argp4) {
8558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
f20a2e1f 8559 }
554f62e9
RD
8560 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8561 }
8562 if (obj4) {
f20a2e1f 8563 {
554f62e9
RD
8564 arg5 = &temp5;
8565 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8566 }
554f62e9
RD
8567 }
8568 if (obj5) {
f20a2e1f 8569 {
554f62e9
RD
8570 arg6 = &temp6;
8571 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
f20a2e1f 8572 }
554f62e9
RD
8573 }
8574 if (obj6) {
8575 ecode7 = SWIG_AsVal_long(obj6, &val7);
8576 if (!SWIG_IsOK(ecode7)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8578 }
8579 arg7 = static_cast< long >(val7);
8580 }
8581 if (obj7) {
d55e5bfc 8582 {
554f62e9
RD
8583 arg8 = wxString_in_helper(obj7);
8584 if (arg8 == NULL) SWIG_fail;
8585 temp8 = true;
d55e5bfc 8586 }
554f62e9
RD
8587 }
8588 {
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 {
8595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8596 }
8597 {
8598 if (temp8)
8599 delete arg8;
8600 }
8601 return resultobj;
8602fail:
8603 {
8604 if (temp8)
8605 delete arg8;
8606 }
8607 return NULL;
d55e5bfc
RD
8608}
8609
8610
554f62e9
RD
8611SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8612 PyObject *resultobj = 0;
8613 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8614 wxBitmap result;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 PyObject *swig_obj[1] ;
8618
8619 if (!args) SWIG_fail;
8620 swig_obj[0] = args;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8624 }
8625 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (arg1)->GetBitmap();
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8633 return resultobj;
8634fail:
8635 return NULL;
8636}
8637
8638
8639SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj = 0;
8641 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8642 wxBitmap *arg2 = 0 ;
8643 void *argp1 = 0 ;
8644 int res1 = 0 ;
8645 void *argp2 = 0 ;
8646 int res2 = 0 ;
8647 PyObject * obj0 = 0 ;
8648 PyObject * obj1 = 0 ;
8649 char * kwnames[] = {
8650 (char *) "self",(char *) "bitmap", NULL
8651 };
8652
8653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8655 if (!SWIG_IsOK(res1)) {
8656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8657 }
8658 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8660 if (!SWIG_IsOK(res2)) {
8661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8662 }
8663 if (!argp2) {
8664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8665 }
8666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_Py_Void();
8674 return resultobj;
8675fail:
8676 return NULL;
8677}
8678
8679
8680SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj = 0;
8682 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8683 wxIcon *arg2 = 0 ;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 void *argp2 = 0 ;
8687 int res2 = 0 ;
8688 PyObject * obj0 = 0 ;
8689 PyObject * obj1 = 0 ;
8690 char * kwnames[] = {
8691 (char *) "self",(char *) "icon", NULL
8692 };
8693
8694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8696 if (!SWIG_IsOK(res1)) {
8697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8698 }
8699 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8700 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8701 if (!SWIG_IsOK(res2)) {
8702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8703 }
8704 if (!argp2) {
8705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8706 }
8707 arg2 = reinterpret_cast< wxIcon * >(argp2);
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetIcon((wxIcon const &)*arg2);
8711 wxPyEndAllowThreads(__tstate);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 resultobj = SWIG_Py_Void();
8715 return resultobj;
8716fail:
8717 return NULL;
8718}
8719
8720
8721SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj = 0;
8723 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8724 SwigValueWrapper<wxVisualAttributes > result;
8725 int val1 ;
8726 int ecode1 = 0 ;
8727 PyObject * obj0 = 0 ;
8728 char * kwnames[] = {
8729 (char *) "variant", NULL
8730 };
8731
8732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8733 if (obj0) {
8734 ecode1 = SWIG_AsVal_int(obj0, &val1);
8735 if (!SWIG_IsOK(ecode1)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8737 }
8738 arg1 = static_cast< wxWindowVariant >(val1);
8739 }
8740 {
8741 if (!wxPyCheckForApp()) SWIG_fail;
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8748 return resultobj;
8749fail:
8750 return NULL;
d55e5bfc
RD
8751}
8752
8753
554f62e9
RD
8754SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8755 PyObject *obj;
8756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8757 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8758 return SWIG_Py_Void();
d55e5bfc
RD
8759}
8760
554f62e9
RD
8761SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 return SWIG_Python_InitShadowInstance(args);
8763}
d55e5bfc 8764
554f62e9
RD
8765SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8766 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8767 return 1;
d55e5bfc
RD
8768}
8769
8770
554f62e9
RD
8771SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8772 PyObject *pyobj = 0;
8773
8774 {
d55e5bfc 8775#if wxUSE_UNICODE
554f62e9 8776 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8777#else
554f62e9 8778 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8779#endif
554f62e9
RD
8780 }
8781 return pyobj;
8782}
8783
8784
8785SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj = 0;
8787 wxWindow *arg1 = (wxWindow *) 0 ;
8788 int arg2 = (int) -1 ;
8789 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8790 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8791 wxSize const &arg4_defvalue = wxDefaultSize ;
8792 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8793 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8794 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8795 long arg6 = (long) 0 ;
8796 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8797 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8798 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8799 wxString *arg8 = (wxString *) &arg8_defvalue ;
8800 wxListBox *result = 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 int val2 ;
8804 int ecode2 = 0 ;
8805 wxPoint temp3 ;
8806 wxSize temp4 ;
8807 bool temp5 = false ;
8808 long val6 ;
8809 int ecode6 = 0 ;
8810 void *argp7 = 0 ;
8811 int res7 = 0 ;
8812 bool temp8 = false ;
8813 PyObject * obj0 = 0 ;
8814 PyObject * obj1 = 0 ;
8815 PyObject * obj2 = 0 ;
8816 PyObject * obj3 = 0 ;
8817 PyObject * obj4 = 0 ;
8818 PyObject * obj5 = 0 ;
8819 PyObject * obj6 = 0 ;
8820 PyObject * obj7 = 0 ;
8821 char * kwnames[] = {
8822 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8823 };
8824
8825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8827 if (!SWIG_IsOK(res1)) {
8828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8829 }
8830 arg1 = reinterpret_cast< wxWindow * >(argp1);
8831 if (obj1) {
8832 ecode2 = SWIG_AsVal_int(obj1, &val2);
8833 if (!SWIG_IsOK(ecode2)) {
8834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8835 }
8836 arg2 = static_cast< int >(val2);
8837 }
8838 if (obj2) {
d55e5bfc 8839 {
554f62e9
RD
8840 arg3 = &temp3;
8841 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8842 }
554f62e9
RD
8843 }
8844 if (obj3) {
d55e5bfc 8845 {
554f62e9
RD
8846 arg4 = &temp4;
8847 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8848 }
554f62e9
RD
8849 }
8850 if (obj4) {
d55e5bfc 8851 {
554f62e9
RD
8852 if (! PySequence_Check(obj4)) {
8853 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8854 SWIG_fail;
8855 }
8856 arg5 = new wxArrayString;
8857 temp5 = true;
8858 int i, len=PySequence_Length(obj4);
8859 for (i=0; i<len; i++) {
8860 PyObject* item = PySequence_GetItem(obj4, i);
8861 wxString* s = wxString_in_helper(item);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 arg5->Add(*s);
8864 delete s;
8865 Py_DECREF(item);
8866 }
d55e5bfc 8867 }
554f62e9
RD
8868 }
8869 if (obj5) {
8870 ecode6 = SWIG_AsVal_long(obj5, &val6);
8871 if (!SWIG_IsOK(ecode6)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8873 }
8874 arg6 = static_cast< long >(val6);
8875 }
8876 if (obj6) {
8877 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8878 if (!SWIG_IsOK(res7)) {
8879 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8880 }
554f62e9
RD
8881 if (!argp7) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8883 }
554f62e9
RD
8884 arg7 = reinterpret_cast< wxValidator * >(argp7);
8885 }
8886 if (obj7) {
d55e5bfc 8887 {
554f62e9
RD
8888 arg8 = wxString_in_helper(obj7);
8889 if (arg8 == NULL) SWIG_fail;
8890 temp8 = true;
d55e5bfc 8891 }
554f62e9
RD
8892 }
8893 {
8894 if (!wxPyCheckForApp()) SWIG_fail;
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8901 {
8902 if (temp5) delete arg5;
8903 }
8904 {
8905 if (temp8)
8906 delete arg8;
8907 }
8908 return resultobj;
8909fail:
8910 {
8911 if (temp5) delete arg5;
8912 }
8913 {
8914 if (temp8)
8915 delete arg8;
8916 }
8917 return NULL;
d55e5bfc
RD
8918}
8919
8920
554f62e9
RD
8921SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8922 PyObject *resultobj = 0;
8923 wxListBox *result = 0 ;
8924
8925 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8926 {
8927 if (!wxPyCheckForApp()) SWIG_fail;
8928 PyThreadState* __tstate = wxPyBeginAllowThreads();
8929 result = (wxListBox *)new wxListBox();
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8934 return resultobj;
8935fail:
8936 return NULL;
8937}
8938
8939
8940SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj = 0;
8942 wxListBox *arg1 = (wxListBox *) 0 ;
8943 wxWindow *arg2 = (wxWindow *) 0 ;
8944 int arg3 = (int) -1 ;
8945 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8946 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8947 wxSize const &arg5_defvalue = wxDefaultSize ;
8948 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8949 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8950 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8951 long arg7 = (long) 0 ;
8952 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8953 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8954 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8955 wxString *arg9 = (wxString *) &arg9_defvalue ;
8956 bool result;
8957 void *argp1 = 0 ;
8958 int res1 = 0 ;
8959 void *argp2 = 0 ;
8960 int res2 = 0 ;
8961 int val3 ;
8962 int ecode3 = 0 ;
8963 wxPoint temp4 ;
8964 wxSize temp5 ;
8965 bool temp6 = false ;
8966 long val7 ;
8967 int ecode7 = 0 ;
8968 void *argp8 = 0 ;
8969 int res8 = 0 ;
8970 bool temp9 = false ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 PyObject * obj2 = 0 ;
8974 PyObject * obj3 = 0 ;
8975 PyObject * obj4 = 0 ;
8976 PyObject * obj5 = 0 ;
8977 PyObject * obj6 = 0 ;
8978 PyObject * obj7 = 0 ;
8979 PyObject * obj8 = 0 ;
8980 char * kwnames[] = {
8981 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8982 };
8983
8984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8986 if (!SWIG_IsOK(res1)) {
8987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8988 }
8989 arg1 = reinterpret_cast< wxListBox * >(argp1);
8990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8991 if (!SWIG_IsOK(res2)) {
8992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8993 }
8994 arg2 = reinterpret_cast< wxWindow * >(argp2);
8995 if (obj2) {
8996 ecode3 = SWIG_AsVal_int(obj2, &val3);
8997 if (!SWIG_IsOK(ecode3)) {
8998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8999 }
9000 arg3 = static_cast< int >(val3);
9001 }
9002 if (obj3) {
d55e5bfc 9003 {
554f62e9
RD
9004 arg4 = &temp4;
9005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9006 }
554f62e9
RD
9007 }
9008 if (obj4) {
d55e5bfc 9009 {
554f62e9
RD
9010 arg5 = &temp5;
9011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9012 }
554f62e9
RD
9013 }
9014 if (obj5) {
d55e5bfc 9015 {
554f62e9
RD
9016 if (! PySequence_Check(obj5)) {
9017 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9018 SWIG_fail;
9019 }
9020 arg6 = new wxArrayString;
9021 temp6 = true;
9022 int i, len=PySequence_Length(obj5);
9023 for (i=0; i<len; i++) {
9024 PyObject* item = PySequence_GetItem(obj5, i);
9025 wxString* s = wxString_in_helper(item);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 arg6->Add(*s);
9028 delete s;
9029 Py_DECREF(item);
9030 }
d55e5bfc 9031 }
554f62e9
RD
9032 }
9033 if (obj6) {
9034 ecode7 = SWIG_AsVal_long(obj6, &val7);
9035 if (!SWIG_IsOK(ecode7)) {
9036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9037 }
9038 arg7 = static_cast< long >(val7);
9039 }
9040 if (obj7) {
9041 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9042 if (!SWIG_IsOK(res8)) {
9043 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 9044 }
554f62e9
RD
9045 if (!argp8) {
9046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9047 }
554f62e9
RD
9048 arg8 = reinterpret_cast< wxValidator * >(argp8);
9049 }
9050 if (obj8) {
f20a2e1f 9051 {
554f62e9
RD
9052 arg9 = wxString_in_helper(obj8);
9053 if (arg9 == NULL) SWIG_fail;
9054 temp9 = true;
f20a2e1f 9055 }
554f62e9
RD
9056 }
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9060 wxPyEndAllowThreads(__tstate);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 {
9064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9065 }
9066 {
9067 if (temp6) delete arg6;
9068 }
9069 {
9070 if (temp9)
9071 delete arg9;
9072 }
9073 return resultobj;
9074fail:
9075 {
9076 if (temp6) delete arg6;
9077 }
9078 {
9079 if (temp9)
9080 delete arg9;
9081 }
9082 return NULL;
9083}
9084
9085
9086SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxListBox *arg1 = (wxListBox *) 0 ;
9089 wxString *arg2 = 0 ;
9090 int arg3 ;
9091 PyObject *arg4 = (PyObject *) NULL ;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 bool temp2 = false ;
9095 int val3 ;
9096 int ecode3 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 PyObject * obj3 = 0 ;
9101 char * kwnames[] = {
9102 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9103 };
9104
9105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9107 if (!SWIG_IsOK(res1)) {
9108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9109 }
9110 arg1 = reinterpret_cast< wxListBox * >(argp1);
9111 {
9112 arg2 = wxString_in_helper(obj1);
9113 if (arg2 == NULL) SWIG_fail;
9114 temp2 = true;
9115 }
9116 ecode3 = SWIG_AsVal_int(obj2, &val3);
9117 if (!SWIG_IsOK(ecode3)) {
9118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9119 }
9120 arg3 = static_cast< int >(val3);
9121 if (obj3) {
9122 arg4 = obj3;
9123 }
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 resultobj = SWIG_Py_Void();
9131 {
9132 if (temp2)
9133 delete arg2;
9134 }
9135 return resultobj;
9136fail:
9137 {
9138 if (temp2)
9139 delete arg2;
9140 }
9141 return NULL;
9142}
9143
9144
9145SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj = 0;
9147 wxListBox *arg1 = (wxListBox *) 0 ;
9148 wxArrayString *arg2 = 0 ;
50f151d7 9149 unsigned int arg3 ;
554f62e9
RD
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 bool temp2 = false ;
50f151d7 9153 unsigned int val3 ;
554f62e9
RD
9154 int ecode3 = 0 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 PyObject * obj2 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "self",(char *) "items",(char *) "pos", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9166 }
9167 arg1 = reinterpret_cast< wxListBox * >(argp1);
9168 {
9169 if (! PySequence_Check(obj1)) {
9170 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9171 SWIG_fail;
9172 }
9173 arg2 = new wxArrayString;
9174 temp2 = true;
9175 int i, len=PySequence_Length(obj1);
9176 for (i=0; i<len; i++) {
9177 PyObject* item = PySequence_GetItem(obj1, i);
9178 wxString* s = wxString_in_helper(item);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 arg2->Add(*s);
9181 delete s;
9182 Py_DECREF(item);
f20a2e1f 9183 }
554f62e9 9184 }
50f151d7 9185 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
554f62e9 9186 if (!SWIG_IsOK(ecode3)) {
50f151d7 9187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
554f62e9 9188 }
50f151d7 9189 arg3 = static_cast< unsigned int >(val3);
554f62e9
RD
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 {
9198 if (temp2) delete arg2;
9199 }
9200 return resultobj;
9201fail:
9202 {
9203 if (temp2) delete arg2;
9204 }
9205 return NULL;
f20a2e1f
RD
9206}
9207
9208
554f62e9
RD
9209SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj = 0;
9211 wxListBox *arg1 = (wxListBox *) 0 ;
9212 wxArrayString *arg2 = 0 ;
9213 void *argp1 = 0 ;
9214 int res1 = 0 ;
9215 bool temp2 = false ;
9216 PyObject * obj0 = 0 ;
9217 PyObject * obj1 = 0 ;
9218 char * kwnames[] = {
9219 (char *) "self",(char *) "items", NULL
9220 };
9221
9222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9226 }
9227 arg1 = reinterpret_cast< wxListBox * >(argp1);
9228 {
9229 if (! PySequence_Check(obj1)) {
9230 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9231 SWIG_fail;
9232 }
9233 arg2 = new wxArrayString;
9234 temp2 = true;
9235 int i, len=PySequence_Length(obj1);
9236 for (i=0; i<len; i++) {
9237 PyObject* item = PySequence_GetItem(obj1, i);
9238 wxString* s = wxString_in_helper(item);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 arg2->Add(*s);
9241 delete s;
9242 Py_DECREF(item);
d55e5bfc 9243 }
554f62e9
RD
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 (arg1)->Set((wxArrayString const &)*arg2);
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_Py_Void();
9252 {
9253 if (temp2) delete arg2;
9254 }
9255 return resultobj;
9256fail:
9257 {
9258 if (temp2) delete arg2;
9259 }
9260 return NULL;
9261}
9262
9263
9264SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9265 PyObject *resultobj = 0;
9266 wxListBox *arg1 = (wxListBox *) 0 ;
9267 int arg2 ;
9268 bool result;
9269 void *argp1 = 0 ;
9270 int res1 = 0 ;
9271 int val2 ;
9272 int ecode2 = 0 ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "n", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 ecode2 = SWIG_AsVal_int(obj1, &val2);
9286 if (!SWIG_IsOK(ecode2)) {
9287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9288 }
9289 arg2 = static_cast< int >(val2);
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 {
9297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9298 }
9299 return resultobj;
9300fail:
9301 return NULL;
9302}
9303
9304
9305SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj = 0;
9307 wxListBox *arg1 = (wxListBox *) 0 ;
9308 int arg2 ;
9309 bool arg3 = (bool) true ;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 int val2 ;
9313 int ecode2 = 0 ;
9314 bool val3 ;
9315 int ecode3 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 PyObject * obj2 = 0 ;
9319 char * kwnames[] = {
9320 (char *) "self",(char *) "n",(char *) "select", NULL
9321 };
9322
9323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9327 }
9328 arg1 = reinterpret_cast< wxListBox * >(argp1);
9329 ecode2 = SWIG_AsVal_int(obj1, &val2);
9330 if (!SWIG_IsOK(ecode2)) {
9331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9332 }
9333 arg2 = static_cast< int >(val2);
9334 if (obj2) {
9335 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9336 if (!SWIG_IsOK(ecode3)) {
9337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9338 }
9339 arg3 = static_cast< bool >(val3);
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 (arg1)->SetSelection(arg2,arg3);
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_Py_Void();
9348 return resultobj;
9349fail:
9350 return NULL;
9351}
9352
9353
9354SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = 0;
9356 wxListBox *arg1 = (wxListBox *) 0 ;
9357 int arg2 ;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 int val2 ;
9361 int ecode2 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 char * kwnames[] = {
9365 (char *) "self",(char *) "n", NULL
9366 };
9367
9368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9370 if (!SWIG_IsOK(res1)) {
9371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9372 }
9373 arg1 = reinterpret_cast< wxListBox * >(argp1);
9374 ecode2 = SWIG_AsVal_int(obj1, &val2);
9375 if (!SWIG_IsOK(ecode2)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9377 }
9378 arg2 = static_cast< int >(val2);
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 (arg1)->Select(arg2);
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = SWIG_Py_Void();
9386 return resultobj;
9387fail:
9388 return NULL;
9389}
9390
9391
9392SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj = 0;
9394 wxListBox *arg1 = (wxListBox *) 0 ;
9395 int arg2 ;
9396 void *argp1 = 0 ;
9397 int res1 = 0 ;
9398 int val2 ;
9399 int ecode2 = 0 ;
9400 PyObject * obj0 = 0 ;
9401 PyObject * obj1 = 0 ;
9402 char * kwnames[] = {
9403 (char *) "self",(char *) "n", NULL
9404 };
9405
9406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9410 }
9411 arg1 = reinterpret_cast< wxListBox * >(argp1);
9412 ecode2 = SWIG_AsVal_int(obj1, &val2);
9413 if (!SWIG_IsOK(ecode2)) {
9414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9415 }
9416 arg2 = static_cast< int >(val2);
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 (arg1)->Deselect(arg2);
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_Py_Void();
9424 return resultobj;
9425fail:
9426 return NULL;
9427}
9428
9429
9430SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj = 0;
9432 wxListBox *arg1 = (wxListBox *) 0 ;
9433 int arg2 = (int) -1 ;
9434 void *argp1 = 0 ;
9435 int res1 = 0 ;
9436 int val2 ;
9437 int ecode2 = 0 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 char * kwnames[] = {
9441 (char *) "self",(char *) "itemToLeaveSelected", NULL
9442 };
9443
9444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9448 }
9449 arg1 = reinterpret_cast< wxListBox * >(argp1);
9450 if (obj1) {
9451 ecode2 = SWIG_AsVal_int(obj1, &val2);
9452 if (!SWIG_IsOK(ecode2)) {
9453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9454 }
9455 arg2 = static_cast< int >(val2);
9456 }
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 (arg1)->DeselectAll(arg2);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_Py_Void();
9464 return resultobj;
9465fail:
9466 return NULL;
9467}
9468
9469
9470SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj = 0;
9472 wxListBox *arg1 = (wxListBox *) 0 ;
9473 wxString *arg2 = 0 ;
9474 bool arg3 = (bool) true ;
9475 bool result;
9476 void *argp1 = 0 ;
9477 int res1 = 0 ;
9478 bool temp2 = false ;
9479 bool val3 ;
9480 int ecode3 = 0 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 PyObject * obj2 = 0 ;
9484 char * kwnames[] = {
9485 (char *) "self",(char *) "s",(char *) "select", NULL
9486 };
9487
9488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9490 if (!SWIG_IsOK(res1)) {
9491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9492 }
9493 arg1 = reinterpret_cast< wxListBox * >(argp1);
9494 {
9495 arg2 = wxString_in_helper(obj1);
9496 if (arg2 == NULL) SWIG_fail;
9497 temp2 = true;
9498 }
9499 if (obj2) {
9500 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9501 if (!SWIG_IsOK(ecode3)) {
9502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9503 }
9504 arg3 = static_cast< bool >(val3);
9505 }
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 {
9513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9514 }
9515 {
9516 if (temp2)
9517 delete arg2;
9518 }
9519 return resultobj;
9520fail:
9521 {
9522 if (temp2)
9523 delete arg2;
9524 }
9525 return NULL;
d55e5bfc
RD
9526}
9527
9528
554f62e9
RD
9529SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9530 PyObject *resultobj = 0;
9531 wxListBox *arg1 = (wxListBox *) 0 ;
9532 PyObject *result = 0 ;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 PyObject *swig_obj[1] ;
9536
9537 if (!args) SWIG_fail;
9538 swig_obj[0] = args;
9539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9542 }
9543 arg1 = reinterpret_cast< wxListBox * >(argp1);
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (PyObject *)wxListBox_GetSelections(arg1);
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 resultobj = result;
9551 return resultobj;
9552fail:
9553 return NULL;
9554}
9555
9556
9557SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj = 0;
9559 wxListBox *arg1 = (wxListBox *) 0 ;
9560 int arg2 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 int val2 ;
9564 int ecode2 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char * kwnames[] = {
9568 (char *) "self",(char *) "n", NULL
9569 };
9570
9571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9573 if (!SWIG_IsOK(res1)) {
9574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9575 }
9576 arg1 = reinterpret_cast< wxListBox * >(argp1);
9577 ecode2 = SWIG_AsVal_int(obj1, &val2);
9578 if (!SWIG_IsOK(ecode2)) {
9579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9580 }
9581 arg2 = static_cast< int >(val2);
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 (arg1)->SetFirstItem(arg2);
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 resultobj = SWIG_Py_Void();
9589 return resultobj;
9590fail:
9591 return NULL;
9592}
9593
9594
9595SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9596 PyObject *resultobj = 0;
9597 wxListBox *arg1 = (wxListBox *) 0 ;
9598 wxString *arg2 = 0 ;
9599 void *argp1 = 0 ;
9600 int res1 = 0 ;
9601 bool temp2 = false ;
9602 PyObject * obj0 = 0 ;
9603 PyObject * obj1 = 0 ;
9604 char * kwnames[] = {
9605 (char *) "self",(char *) "s", NULL
9606 };
9607
9608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 {
9615 arg2 = wxString_in_helper(obj1);
9616 if (arg2 == NULL) SWIG_fail;
9617 temp2 = true;
9618 }
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 (arg1)->SetFirstItem((wxString const &)*arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_Py_Void();
9626 {
9627 if (temp2)
9628 delete arg2;
9629 }
9630 return resultobj;
9631fail:
9632 {
9633 if (temp2)
9634 delete arg2;
9635 }
9636 return NULL;
9637}
9638
9639
9640SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj = 0;
9642 wxListBox *arg1 = (wxListBox *) 0 ;
9643 int arg2 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 int val2 ;
9647 int ecode2 = 0 ;
9648 PyObject * obj0 = 0 ;
9649 PyObject * obj1 = 0 ;
9650 char * kwnames[] = {
9651 (char *) "self",(char *) "n", NULL
9652 };
9653
9654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9656 if (!SWIG_IsOK(res1)) {
9657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9658 }
9659 arg1 = reinterpret_cast< wxListBox * >(argp1);
9660 ecode2 = SWIG_AsVal_int(obj1, &val2);
9661 if (!SWIG_IsOK(ecode2)) {
9662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9663 }
9664 arg2 = static_cast< int >(val2);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 (arg1)->EnsureVisible(arg2);
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_Py_Void();
9672 return resultobj;
9673fail:
9674 return NULL;
9675}
9676
9677
9678SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj = 0;
9680 wxListBox *arg1 = (wxListBox *) 0 ;
9681 wxString *arg2 = 0 ;
9682 void *argp1 = 0 ;
9683 int res1 = 0 ;
9684 bool temp2 = false ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687 char * kwnames[] = {
9688 (char *) "self",(char *) "s", NULL
9689 };
9690
9691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9695 }
9696 arg1 = reinterpret_cast< wxListBox * >(argp1);
9697 {
9698 arg2 = wxString_in_helper(obj1);
9699 if (arg2 == NULL) SWIG_fail;
9700 temp2 = true;
9701 }
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 resultobj = SWIG_Py_Void();
9709 {
9710 if (temp2)
9711 delete arg2;
9712 }
9713 return resultobj;
9714fail:
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return NULL;
d55e5bfc
RD
9720}
9721
9722
554f62e9
RD
9723SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9724 PyObject *resultobj = 0;
9725 wxListBox *arg1 = (wxListBox *) 0 ;
9726 bool result;
9727 void *argp1 = 0 ;
9728 int res1 = 0 ;
9729 PyObject *swig_obj[1] ;
9730
9731 if (!args) SWIG_fail;
9732 swig_obj[0] = args;
9733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9734 if (!SWIG_IsOK(res1)) {
9735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9736 }
9737 arg1 = reinterpret_cast< wxListBox * >(argp1);
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 result = (bool)((wxListBox const *)arg1)->IsSorted();
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 {
9745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9746 }
9747 return resultobj;
9748fail:
9749 return NULL;
9750}
9751
9752
9753SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj = 0;
9755 wxListBox *arg1 = (wxListBox *) 0 ;
9756 wxPoint *arg2 = 0 ;
9757 int result;
9758 void *argp1 = 0 ;
9759 int res1 = 0 ;
9760 wxPoint temp2 ;
9761 PyObject * obj0 = 0 ;
9762 PyObject * obj1 = 0 ;
9763 char * kwnames[] = {
9764 (char *) "self",(char *) "pt", NULL
9765 };
9766
9767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9769 if (!SWIG_IsOK(res1)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9771 }
9772 arg1 = reinterpret_cast< wxListBox * >(argp1);
9773 {
9774 arg2 = &temp2;
9775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9776 }
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_From_int(static_cast< int >(result));
9784 return resultobj;
9785fail:
9786 return NULL;
9787}
9788
9789
9790SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj = 0;
9792 wxListBox *arg1 = (wxListBox *) 0 ;
9793 int arg2 ;
9794 wxColour *arg3 = 0 ;
9795 void *argp1 = 0 ;
9796 int res1 = 0 ;
9797 int val2 ;
9798 int ecode2 = 0 ;
9799 wxColour temp3 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 PyObject * obj2 = 0 ;
9803 char * kwnames[] = {
9804 (char *) "self",(char *) "item",(char *) "c", NULL
9805 };
9806
9807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9809 if (!SWIG_IsOK(res1)) {
9810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9811 }
9812 arg1 = reinterpret_cast< wxListBox * >(argp1);
9813 ecode2 = SWIG_AsVal_int(obj1, &val2);
9814 if (!SWIG_IsOK(ecode2)) {
9815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9816 }
9817 arg2 = static_cast< int >(val2);
9818 {
9819 arg3 = &temp3;
9820 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9821 }
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830fail:
9831 return NULL;
9832}
9833
9834
9835SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxListBox *arg1 = (wxListBox *) 0 ;
9838 int arg2 ;
9839 wxColour *arg3 = 0 ;
9840 void *argp1 = 0 ;
9841 int res1 = 0 ;
9842 int val2 ;
9843 int ecode2 = 0 ;
9844 wxColour temp3 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 char * kwnames[] = {
9849 (char *) "self",(char *) "item",(char *) "c", NULL
9850 };
9851
9852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9854 if (!SWIG_IsOK(res1)) {
9855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9856 }
9857 arg1 = reinterpret_cast< wxListBox * >(argp1);
9858 ecode2 = SWIG_AsVal_int(obj1, &val2);
9859 if (!SWIG_IsOK(ecode2)) {
9860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9861 }
9862 arg2 = static_cast< int >(val2);
9863 {
9864 arg3 = &temp3;
9865 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9866 }
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_Py_Void();
9874 return resultobj;
9875fail:
9876 return NULL;
9877}
9878
9879
9880SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj = 0;
9882 wxListBox *arg1 = (wxListBox *) 0 ;
9883 int arg2 ;
9884 wxFont *arg3 = 0 ;
9885 void *argp1 = 0 ;
9886 int res1 = 0 ;
9887 int val2 ;
9888 int ecode2 = 0 ;
9889 void *argp3 = 0 ;
9890 int res3 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 PyObject * obj1 = 0 ;
9893 PyObject * obj2 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "self",(char *) "item",(char *) "f", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9900 if (!SWIG_IsOK(res1)) {
9901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9902 }
9903 arg1 = reinterpret_cast< wxListBox * >(argp1);
9904 ecode2 = SWIG_AsVal_int(obj1, &val2);
9905 if (!SWIG_IsOK(ecode2)) {
9906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9907 }
9908 arg2 = static_cast< int >(val2);
9909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9910 if (!SWIG_IsOK(res3)) {
9911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9912 }
9913 if (!argp3) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9915 }
9916 arg3 = reinterpret_cast< wxFont * >(argp3);
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_Py_Void();
9924 return resultobj;
9925fail:
9926 return NULL;
9927}
9928
9929
9930SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj = 0;
9932 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9933 SwigValueWrapper<wxVisualAttributes > result;
9934 int val1 ;
9935 int ecode1 = 0 ;
9936 PyObject * obj0 = 0 ;
9937 char * kwnames[] = {
9938 (char *) "variant", NULL
9939 };
9940
9941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9942 if (obj0) {
9943 ecode1 = SWIG_AsVal_int(obj0, &val1);
9944 if (!SWIG_IsOK(ecode1)) {
9945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9946 }
9947 arg1 = static_cast< wxWindowVariant >(val1);
9948 }
9949 {
9950 if (!wxPyCheckForApp()) SWIG_fail;
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = wxListBox::GetClassDefaultAttributes(arg1);
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9957 return resultobj;
9958fail:
9959 return NULL;
9960}
9961
9962
9963SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *obj;
9965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9966 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9967 return SWIG_Py_Void();
9968}
9969
9970SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 return SWIG_Python_InitShadowInstance(args);
9972}
9973
9974SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 wxWindow *arg1 = (wxWindow *) 0 ;
9977 int arg2 = (int) -1 ;
9978 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9979 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9980 wxSize const &arg4_defvalue = wxDefaultSize ;
9981 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9982 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9983 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9984 long arg6 = (long) 0 ;
9985 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9986 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9987 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9988 wxString *arg8 = (wxString *) &arg8_defvalue ;
9989 wxCheckListBox *result = 0 ;
9990 void *argp1 = 0 ;
9991 int res1 = 0 ;
9992 int val2 ;
9993 int ecode2 = 0 ;
9994 wxPoint temp3 ;
9995 wxSize temp4 ;
9996 bool temp5 = false ;
9997 long val6 ;
9998 int ecode6 = 0 ;
9999 void *argp7 = 0 ;
10000 int res7 = 0 ;
10001 bool temp8 = false ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 PyObject * obj2 = 0 ;
10005 PyObject * obj3 = 0 ;
10006 PyObject * obj4 = 0 ;
10007 PyObject * obj5 = 0 ;
10008 PyObject * obj6 = 0 ;
10009 PyObject * obj7 = 0 ;
10010 char * kwnames[] = {
10011 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10012 };
10013
10014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10016 if (!SWIG_IsOK(res1)) {
10017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10018 }
10019 arg1 = reinterpret_cast< wxWindow * >(argp1);
10020 if (obj1) {
10021 ecode2 = SWIG_AsVal_int(obj1, &val2);
10022 if (!SWIG_IsOK(ecode2)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10024 }
10025 arg2 = static_cast< int >(val2);
10026 }
10027 if (obj2) {
d55e5bfc 10028 {
554f62e9
RD
10029 arg3 = &temp3;
10030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 10031 }
554f62e9
RD
10032 }
10033 if (obj3) {
d55e5bfc 10034 {
554f62e9
RD
10035 arg4 = &temp4;
10036 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10037 }
554f62e9
RD
10038 }
10039 if (obj4) {
d55e5bfc 10040 {
554f62e9
RD
10041 if (! PySequence_Check(obj4)) {
10042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10043 SWIG_fail;
10044 }
10045 arg5 = new wxArrayString;
10046 temp5 = true;
10047 int i, len=PySequence_Length(obj4);
10048 for (i=0; i<len; i++) {
10049 PyObject* item = PySequence_GetItem(obj4, i);
10050 wxString* s = wxString_in_helper(item);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 arg5->Add(*s);
10053 delete s;
10054 Py_DECREF(item);
10055 }
d55e5bfc 10056 }
554f62e9
RD
10057 }
10058 if (obj5) {
10059 ecode6 = SWIG_AsVal_long(obj5, &val6);
10060 if (!SWIG_IsOK(ecode6)) {
10061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10062 }
10063 arg6 = static_cast< long >(val6);
10064 }
10065 if (obj6) {
10066 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10067 if (!SWIG_IsOK(res7)) {
10068 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10069 }
554f62e9
RD
10070 if (!argp7) {
10071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10072 }
554f62e9
RD
10073 arg7 = reinterpret_cast< wxValidator * >(argp7);
10074 }
10075 if (obj7) {
093d3ff1 10076 {
554f62e9
RD
10077 arg8 = wxString_in_helper(obj7);
10078 if (arg8 == NULL) SWIG_fail;
10079 temp8 = true;
093d3ff1 10080 }
554f62e9
RD
10081 }
10082 {
10083 if (!wxPyCheckForApp()) SWIG_fail;
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10086 wxPyEndAllowThreads(__tstate);
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10090 {
10091 if (temp5) delete arg5;
10092 }
10093 {
10094 if (temp8)
10095 delete arg8;
10096 }
10097 return resultobj;
10098fail:
10099 {
10100 if (temp5) delete arg5;
10101 }
10102 {
10103 if (temp8)
10104 delete arg8;
10105 }
10106 return NULL;
d55e5bfc
RD
10107}
10108
10109
554f62e9
RD
10110SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111 PyObject *resultobj = 0;
10112 wxCheckListBox *result = 0 ;
10113
10114 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10115 {
10116 if (!wxPyCheckForApp()) SWIG_fail;
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = (wxCheckListBox *)new wxCheckListBox();
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10123 return resultobj;
10124fail:
10125 return NULL;
10126}
10127
10128
10129SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj = 0;
10131 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10132 wxWindow *arg2 = (wxWindow *) 0 ;
10133 int arg3 = (int) -1 ;
10134 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10135 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10136 wxSize const &arg5_defvalue = wxDefaultSize ;
10137 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10138 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10139 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10140 long arg7 = (long) 0 ;
10141 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10142 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10143 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10144 wxString *arg9 = (wxString *) &arg9_defvalue ;
10145 bool result;
10146 void *argp1 = 0 ;
10147 int res1 = 0 ;
10148 void *argp2 = 0 ;
10149 int res2 = 0 ;
10150 int val3 ;
10151 int ecode3 = 0 ;
10152 wxPoint temp4 ;
10153 wxSize temp5 ;
10154 bool temp6 = false ;
10155 long val7 ;
10156 int ecode7 = 0 ;
10157 void *argp8 = 0 ;
10158 int res8 = 0 ;
10159 bool temp9 = false ;
10160 PyObject * obj0 = 0 ;
10161 PyObject * obj1 = 0 ;
10162 PyObject * obj2 = 0 ;
10163 PyObject * obj3 = 0 ;
10164 PyObject * obj4 = 0 ;
10165 PyObject * obj5 = 0 ;
10166 PyObject * obj6 = 0 ;
10167 PyObject * obj7 = 0 ;
10168 PyObject * obj8 = 0 ;
10169 char * kwnames[] = {
10170 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10171 };
10172
10173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10175 if (!SWIG_IsOK(res1)) {
10176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10177 }
10178 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10180 if (!SWIG_IsOK(res2)) {
10181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10182 }
10183 arg2 = reinterpret_cast< wxWindow * >(argp2);
10184 if (obj2) {
10185 ecode3 = SWIG_AsVal_int(obj2, &val3);
10186 if (!SWIG_IsOK(ecode3)) {
10187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10188 }
10189 arg3 = static_cast< int >(val3);
10190 }
10191 if (obj3) {
f20a2e1f 10192 {
554f62e9
RD
10193 arg4 = &temp4;
10194 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10195 }
554f62e9
RD
10196 }
10197 if (obj4) {
d55e5bfc 10198 {
554f62e9
RD
10199 arg5 = &temp5;
10200 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10201 }
554f62e9
RD
10202 }
10203 if (obj5) {
d55e5bfc 10204 {
554f62e9
RD
10205 if (! PySequence_Check(obj5)) {
10206 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10207 SWIG_fail;
10208 }
10209 arg6 = new wxArrayString;
10210 temp6 = true;
10211 int i, len=PySequence_Length(obj5);
10212 for (i=0; i<len; i++) {
10213 PyObject* item = PySequence_GetItem(obj5, i);
10214 wxString* s = wxString_in_helper(item);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 arg6->Add(*s);
10217 delete s;
10218 Py_DECREF(item);
10219 }
d55e5bfc 10220 }
554f62e9
RD
10221 }
10222 if (obj6) {
10223 ecode7 = SWIG_AsVal_long(obj6, &val7);
10224 if (!SWIG_IsOK(ecode7)) {
10225 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10226 }
10227 arg7 = static_cast< long >(val7);
10228 }
10229 if (obj7) {
10230 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10231 if (!SWIG_IsOK(res8)) {
10232 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10233 }
554f62e9
RD
10234 if (!argp8) {
10235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10236 }
554f62e9
RD
10237 arg8 = reinterpret_cast< wxValidator * >(argp8);
10238 }
10239 if (obj8) {
d55e5bfc 10240 {
554f62e9
RD
10241 arg9 = wxString_in_helper(obj8);
10242 if (arg9 == NULL) SWIG_fail;
10243 temp9 = true;
d55e5bfc 10244 }
554f62e9
RD
10245 }
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 {
10256 if (temp6) delete arg6;
10257 }
10258 {
10259 if (temp9)
10260 delete arg9;
10261 }
10262 return resultobj;
10263fail:
10264 {
10265 if (temp6) delete arg6;
10266 }
10267 {
10268 if (temp9)
10269 delete arg9;
10270 }
10271 return NULL;
10272}
10273
10274
10275SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10278 unsigned int arg2 ;
554f62e9
RD
10279 bool result;
10280 void *argp1 = 0 ;
10281 int res1 = 0 ;
50f151d7 10282 unsigned int val2 ;
554f62e9
RD
10283 int ecode2 = 0 ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 char * kwnames[] = {
10287 (char *) "self",(char *) "index", NULL
10288 };
10289
10290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10294 }
10295 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10296 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10297 if (!SWIG_IsOK(ecode2)) {
50f151d7 10298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10299 }
50f151d7 10300 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (bool)(arg1)->IsChecked(arg2);
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10309 }
10310 return resultobj;
10311fail:
10312 return NULL;
10313}
10314
10315
10316SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10319 unsigned int arg2 ;
554f62e9
RD
10320 int arg3 = (int) true ;
10321 void *argp1 = 0 ;
10322 int res1 = 0 ;
50f151d7 10323 unsigned int val2 ;
554f62e9
RD
10324 int ecode2 = 0 ;
10325 int val3 ;
10326 int ecode3 = 0 ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 PyObject * obj2 = 0 ;
10330 char * kwnames[] = {
10331 (char *) "self",(char *) "index",(char *) "check", NULL
10332 };
10333
10334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10338 }
10339 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10340 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10341 if (!SWIG_IsOK(ecode2)) {
50f151d7 10342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10343 }
50f151d7 10344 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10345 if (obj2) {
10346 ecode3 = SWIG_AsVal_int(obj2, &val3);
10347 if (!SWIG_IsOK(ecode3)) {
10348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10349 }
10350 arg3 = static_cast< int >(val3);
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 (arg1)->Check(arg2,arg3);
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_Py_Void();
10359 return resultobj;
10360fail:
10361 return NULL;
d55e5bfc
RD
10362}
10363
10364
554f62e9
RD
10365SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10366 PyObject *resultobj = 0;
10367 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10368 int result;
10369 void *argp1 = 0 ;
10370 int res1 = 0 ;
10371 PyObject *swig_obj[1] ;
10372
10373 if (!args) SWIG_fail;
10374 swig_obj[0] = args;
10375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10378 }
10379 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)(arg1)->GetItemHeight();
10383 wxPyEndAllowThreads(__tstate);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 resultobj = SWIG_From_int(static_cast< int >(result));
10387 return resultobj;
10388fail:
10389 return NULL;
d55e5bfc
RD
10390}
10391
10392
554f62e9
RD
10393SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10394 PyObject *obj;
10395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10396 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10397 return SWIG_Py_Void();
d55e5bfc
RD
10398}
10399
554f62e9
RD
10400SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10401 return SWIG_Python_InitShadowInstance(args);
9d7dfdff
RD
10402}
10403
554f62e9
RD
10404SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10405 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10406 return 1;
f20a2e1f
RD
10407}
10408
10409
554f62e9
RD
10410SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10411 PyObject *pyobj = 0;
10412
10413 {
10414#if wxUSE_UNICODE
10415 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10416#else
10417 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10418#endif
10419 }
10420 return pyobj;
10421}
10422
10423
10424SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxColour const &arg1_defvalue = wxNullColour ;
10427 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10428 wxColour const &arg2_defvalue = wxNullColour ;
10429 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10430 wxFont const &arg3_defvalue = wxNullFont ;
10431 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10432 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10433 wxTextAttr *result = 0 ;
10434 wxColour temp1 ;
10435 wxColour temp2 ;
10436 void *argp3 = 0 ;
10437 int res3 = 0 ;
10438 int val4 ;
10439 int ecode4 = 0 ;
10440 PyObject * obj0 = 0 ;
10441 PyObject * obj1 = 0 ;
10442 PyObject * obj2 = 0 ;
10443 PyObject * obj3 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10449 if (obj0) {
d55e5bfc 10450 {
554f62e9
RD
10451 arg1 = &temp1;
10452 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10453 }
554f62e9
RD
10454 }
10455 if (obj1) {
d55e5bfc 10456 {
554f62e9
RD
10457 arg2 = &temp2;
10458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10459 }
554f62e9
RD
10460 }
10461 if (obj2) {
10462 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10463 if (!SWIG_IsOK(res3)) {
10464 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10465 }
554f62e9
RD
10466 if (!argp3) {
10467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10468 }
10469 arg3 = reinterpret_cast< wxFont * >(argp3);
10470 }
10471 if (obj3) {
10472 ecode4 = SWIG_AsVal_int(obj3, &val4);
10473 if (!SWIG_IsOK(ecode4)) {
10474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10475 }
10476 arg4 = static_cast< wxTextAttrAlignment >(val4);
10477 }
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10485 return resultobj;
10486fail:
10487 return NULL;
d55e5bfc
RD
10488}
10489
10490
554f62e9
RD
10491SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10492 PyObject *resultobj = 0;
10493 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10494 void *argp1 = 0 ;
10495 int res1 = 0 ;
10496 PyObject *swig_obj[1] ;
10497
10498 if (!args) SWIG_fail;
10499 swig_obj[0] = args;
10500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10503 }
10504 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 delete arg1;
d55e5bfc 10508
554f62e9
RD
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_Py_Void();
10513 return resultobj;
10514fail:
10515 return NULL;
d55e5bfc
RD
10516}
10517
10518
554f62e9
RD
10519SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10520 PyObject *resultobj = 0;
10521 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 PyObject *swig_obj[1] ;
10525
10526 if (!args) SWIG_fail;
10527 swig_obj[0] = args;
10528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10529 if (!SWIG_IsOK(res1)) {
10530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10531 }
10532 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->Init();
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
10543}
10544
10545
10546SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10549 wxColour *arg2 = 0 ;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 wxColour temp2 ;
10553 PyObject * obj0 = 0 ;
10554 PyObject * obj1 = 0 ;
10555 char * kwnames[] = {
10556 (char *) "self",(char *) "colText", NULL
10557 };
10558
10559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10561 if (!SWIG_IsOK(res1)) {
10562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10563 }
10564 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10565 {
10566 arg2 = &temp2;
10567 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10568 }
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 (arg1)->SetTextColour((wxColour const &)*arg2);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 resultobj = SWIG_Py_Void();
10576 return resultobj;
10577fail:
10578 return NULL;
10579}
10580
10581
10582SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10585 wxColour *arg2 = 0 ;
10586 void *argp1 = 0 ;
10587 int res1 = 0 ;
10588 wxColour temp2 ;
10589 PyObject * obj0 = 0 ;
10590 PyObject * obj1 = 0 ;
10591 char * kwnames[] = {
10592 (char *) "self",(char *) "colBack", NULL
10593 };
10594
10595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10597 if (!SWIG_IsOK(res1)) {
10598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10599 }
10600 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10601 {
10602 arg2 = &temp2;
10603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10604 }
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_Py_Void();
10612 return resultobj;
10613fail:
10614 return NULL;
10615}
10616
10617
10618SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10621 wxFont *arg2 = 0 ;
10622 long arg3 = (long) wxTEXT_ATTR_FONT ;
10623 void *argp1 = 0 ;
10624 int res1 = 0 ;
10625 void *argp2 = 0 ;
10626 int res2 = 0 ;
10627 long val3 ;
10628 int ecode3 = 0 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 PyObject * obj2 = 0 ;
10632 char * kwnames[] = {
10633 (char *) "self",(char *) "font",(char *) "flags", NULL
10634 };
10635
10636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10638 if (!SWIG_IsOK(res1)) {
10639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10640 }
10641 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10643 if (!SWIG_IsOK(res2)) {
10644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10645 }
10646 if (!argp2) {
10647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10648 }
10649 arg2 = reinterpret_cast< wxFont * >(argp2);
10650 if (obj2) {
10651 ecode3 = SWIG_AsVal_long(obj2, &val3);
10652 if (!SWIG_IsOK(ecode3)) {
10653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10654 }
10655 arg3 = static_cast< long >(val3);
10656 }
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_Py_Void();
10664 return resultobj;
10665fail:
10666 return NULL;
10667}
10668
10669
10670SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10671 PyObject *resultobj = 0;
10672 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10673 wxTextAttrAlignment arg2 ;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 int val2 ;
10677 int ecode2 = 0 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 char * kwnames[] = {
10681 (char *) "self",(char *) "alignment", NULL
10682 };
10683
10684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10686 if (!SWIG_IsOK(res1)) {
10687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10688 }
10689 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10690 ecode2 = SWIG_AsVal_int(obj1, &val2);
10691 if (!SWIG_IsOK(ecode2)) {
10692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10693 }
10694 arg2 = static_cast< wxTextAttrAlignment >(val2);
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 (arg1)->SetAlignment(arg2);
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 resultobj = SWIG_Py_Void();
10702 return resultobj;
10703fail:
10704 return NULL;
10705}
10706
10707
10708SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj = 0;
10710 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10711 wxArrayInt *arg2 = 0 ;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 bool temp2 = false ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 char * kwnames[] = {
10718 (char *) "self",(char *) "tabs", NULL
10719 };
10720
10721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10723 if (!SWIG_IsOK(res1)) {
10724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10725 }
10726 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10727 {
10728 if (! PySequence_Check(obj1)) {
10729 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10730 SWIG_fail;
10731 }
10732 arg2 = new wxArrayInt;
10733 temp2 = true;
10734 int i, len=PySequence_Length(obj1);
10735 for (i=0; i<len; i++) {
10736 PyObject* item = PySequence_GetItem(obj1, i);
10737 PyObject* number = PyNumber_Int(item);
10738 arg2->Add(PyInt_AS_LONG(number));
10739 Py_DECREF(item);
10740 Py_DECREF(number);
d55e5bfc 10741 }
554f62e9
RD
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_Py_Void();
10750 {
10751 if (temp2) delete arg2;
10752 }
10753 return resultobj;
10754fail:
10755 {
10756 if (temp2) delete arg2;
10757 }
10758 return NULL;
10759}
10760
10761
10762SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10763 PyObject *resultobj = 0;
10764 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10765 int arg2 ;
10766 int arg3 = (int) 0 ;
10767 void *argp1 = 0 ;
10768 int res1 = 0 ;
10769 int val2 ;
10770 int ecode2 = 0 ;
10771 int val3 ;
10772 int ecode3 = 0 ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775 PyObject * obj2 = 0 ;
10776 char * kwnames[] = {
10777 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10778 };
10779
10780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10782 if (!SWIG_IsOK(res1)) {
10783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10784 }
10785 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10786 ecode2 = SWIG_AsVal_int(obj1, &val2);
10787 if (!SWIG_IsOK(ecode2)) {
10788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10789 }
10790 arg2 = static_cast< int >(val2);
10791 if (obj2) {
10792 ecode3 = SWIG_AsVal_int(obj2, &val3);
10793 if (!SWIG_IsOK(ecode3)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10795 }
10796 arg3 = static_cast< int >(val3);
10797 }
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 (arg1)->SetLeftIndent(arg2,arg3);
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 resultobj = SWIG_Py_Void();
10805 return resultobj;
10806fail:
10807 return NULL;
10808}
10809
10810
10811SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10812 PyObject *resultobj = 0;
10813 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10814 int arg2 ;
10815 void *argp1 = 0 ;
10816 int res1 = 0 ;
10817 int val2 ;
10818 int ecode2 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 char * kwnames[] = {
10822 (char *) "self",(char *) "indent", NULL
10823 };
10824
10825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10827 if (!SWIG_IsOK(res1)) {
10828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10829 }
10830 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10831 ecode2 = SWIG_AsVal_int(obj1, &val2);
10832 if (!SWIG_IsOK(ecode2)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10834 }
10835 arg2 = static_cast< int >(val2);
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->SetRightIndent(arg2);
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 resultobj = SWIG_Py_Void();
10843 return resultobj;
10844fail:
10845 return NULL;
10846}
10847
10848
10849SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj = 0;
10851 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10852 long arg2 ;
10853 void *argp1 = 0 ;
10854 int res1 = 0 ;
10855 long val2 ;
10856 int ecode2 = 0 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 char * kwnames[] = {
10860 (char *) "self",(char *) "flags", NULL
10861 };
10862
10863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10865 if (!SWIG_IsOK(res1)) {
10866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10867 }
10868 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10869 ecode2 = SWIG_AsVal_long(obj1, &val2);
10870 if (!SWIG_IsOK(ecode2)) {
10871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10872 }
10873 arg2 = static_cast< long >(val2);
10874 {
10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
10876 (arg1)->SetFlags(arg2);
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 resultobj = SWIG_Py_Void();
10881 return resultobj;
10882fail:
10883 return NULL;
d55e5bfc
RD
10884}
10885
10886
554f62e9
RD
10887SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10888 PyObject *resultobj = 0;
10889 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10890 bool result;
10891 void *argp1 = 0 ;
10892 int res1 = 0 ;
10893 PyObject *swig_obj[1] ;
10894
10895 if (!args) SWIG_fail;
10896 swig_obj[0] = args;
10897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10898 if (!SWIG_IsOK(res1)) {
10899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10900 }
10901 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10905 wxPyEndAllowThreads(__tstate);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 {
10909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10910 }
10911 return resultobj;
10912fail:
10913 return NULL;
d55e5bfc
RD
10914}
10915
10916
554f62e9
RD
10917SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 bool result;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 PyObject *swig_obj[1] ;
10924
10925 if (!args) SWIG_fail;
10926 swig_obj[0] = args;
10927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10928 if (!SWIG_IsOK(res1)) {
10929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10930 }
10931 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10935 wxPyEndAllowThreads(__tstate);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 {
10939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10940 }
10941 return resultobj;
10942fail:
10943 return NULL;
d55e5bfc
RD
10944}
10945
10946
554f62e9
RD
10947SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10948 PyObject *resultobj = 0;
10949 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10950 bool result;
10951 void *argp1 = 0 ;
10952 int res1 = 0 ;
10953 PyObject *swig_obj[1] ;
10954
10955 if (!args) SWIG_fail;
10956 swig_obj[0] = args;
10957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10958 if (!SWIG_IsOK(res1)) {
10959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10960 }
10961 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 {
10969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10970 }
10971 return resultobj;
10972fail:
10973 return NULL;
d55e5bfc
RD
10974}
10975
10976
554f62e9
RD
10977SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10978 PyObject *resultobj = 0;
10979 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10980 bool result;
10981 void *argp1 = 0 ;
10982 int res1 = 0 ;
10983 PyObject *swig_obj[1] ;
10984
10985 if (!args) SWIG_fail;
10986 swig_obj[0] = args;
10987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10988 if (!SWIG_IsOK(res1)) {
10989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10990 }
10991 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 {
10999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11000 }
11001 return resultobj;
11002fail:
11003 return NULL;
f20a2e1f
RD
11004}
11005
11006
554f62e9
RD
11007SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11008 PyObject *resultobj = 0;
11009 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11010 bool result;
11011 void *argp1 = 0 ;
11012 int res1 = 0 ;
11013 PyObject *swig_obj[1] ;
11014
11015 if (!args) SWIG_fail;
11016 swig_obj[0] = args;
11017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11018 if (!SWIG_IsOK(res1)) {
11019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11020 }
11021 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 {
11029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11030 }
11031 return resultobj;
11032fail:
11033 return NULL;
d55e5bfc
RD
11034}
11035
11036
554f62e9
RD
11037SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11038 PyObject *resultobj = 0;
11039 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11040 bool result;
11041 void *argp1 = 0 ;
11042 int res1 = 0 ;
11043 PyObject *swig_obj[1] ;
11044
11045 if (!args) SWIG_fail;
11046 swig_obj[0] = args;
11047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11048 if (!SWIG_IsOK(res1)) {
11049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11050 }
11051 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 }
11061 return resultobj;
11062fail:
11063 return NULL;
d55e5bfc
RD
11064}
11065
11066
554f62e9
RD
11067SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11068 PyObject *resultobj = 0;
11069 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11070 bool result;
11071 void *argp1 = 0 ;
11072 int res1 = 0 ;
11073 PyObject *swig_obj[1] ;
11074
11075 if (!args) SWIG_fail;
11076 swig_obj[0] = args;
11077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11078 if (!SWIG_IsOK(res1)) {
11079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11080 }
11081 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 {
11089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11090 }
11091 return resultobj;
11092fail:
11093 return NULL;
11094}
11095
11096
11097SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11098 PyObject *resultobj = 0;
11099 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11100 long arg2 ;
11101 bool result;
11102 void *argp1 = 0 ;
11103 int res1 = 0 ;
11104 long val2 ;
11105 int ecode2 = 0 ;
11106 PyObject * obj0 = 0 ;
11107 PyObject * obj1 = 0 ;
11108 char * kwnames[] = {
11109 (char *) "self",(char *) "flag", NULL
11110 };
11111
11112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11114 if (!SWIG_IsOK(res1)) {
11115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11116 }
11117 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11118 ecode2 = SWIG_AsVal_long(obj1, &val2);
11119 if (!SWIG_IsOK(ecode2)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11121 }
11122 arg2 = static_cast< long >(val2);
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 {
11130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11131 }
11132 return resultobj;
11133fail:
11134 return NULL;
d55e5bfc
RD
11135}
11136
11137
554f62e9
RD
11138SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11139 PyObject *resultobj = 0;
11140 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11141 wxColour *result = 0 ;
11142 void *argp1 = 0 ;
11143 int res1 = 0 ;
11144 PyObject *swig_obj[1] ;
11145
11146 if (!args) SWIG_fail;
11147 swig_obj[0] = args;
11148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11149 if (!SWIG_IsOK(res1)) {
11150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11151 }
11152 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11155 {
554f62e9
RD
11156 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11157 result = (wxColour *) &_result_ref;
d55e5bfc 11158 }
554f62e9
RD
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11163 return resultobj;
11164fail:
11165 return NULL;
d55e5bfc
RD
11166}
11167
11168
554f62e9
RD
11169SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 PyObject *resultobj = 0;
11171 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11172 wxColour *result = 0 ;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject *swig_obj[1] ;
11176
11177 if (!args) SWIG_fail;
11178 swig_obj[0] = args;
11179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11182 }
11183 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11186 {
554f62e9
RD
11187 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11188 result = (wxColour *) &_result_ref;
d55e5bfc 11189 }
554f62e9
RD
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11194 return resultobj;
11195fail:
11196 return NULL;
d55e5bfc
RD
11197}
11198
11199
554f62e9
RD
11200SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11201 PyObject *resultobj = 0;
11202 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11203 wxFont *result = 0 ;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 PyObject *swig_obj[1] ;
11207
11208 if (!args) SWIG_fail;
11209 swig_obj[0] = args;
11210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11213 }
11214 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11217 {
554f62e9
RD
11218 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11219 result = (wxFont *) &_result_ref;
d55e5bfc 11220 }
554f62e9
RD
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 {
11225 wxFont* resultptr = new wxFont(*result);
11226 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11227 }
11228 return resultobj;
11229fail:
11230 return NULL;
d55e5bfc
RD
11231}
11232
11233
554f62e9
RD
11234SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11235 PyObject *resultobj = 0;
11236 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11237 wxTextAttrAlignment result;
11238 void *argp1 = 0 ;
11239 int res1 = 0 ;
11240 PyObject *swig_obj[1] ;
11241
11242 if (!args) SWIG_fail;
11243 swig_obj[0] = args;
11244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11245 if (!SWIG_IsOK(res1)) {
11246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11247 }
11248 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11249 {
11250 PyThreadState* __tstate = wxPyBeginAllowThreads();
11251 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) SWIG_fail;
11254 }
11255 resultobj = SWIG_From_int(static_cast< int >(result));
11256 return resultobj;
11257fail:
11258 return NULL;
d55e5bfc
RD
11259}
11260
11261
554f62e9
RD
11262SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11263 PyObject *resultobj = 0;
11264 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11265 wxArrayInt *result = 0 ;
11266 void *argp1 = 0 ;
11267 int res1 = 0 ;
11268 PyObject *swig_obj[1] ;
11269
11270 if (!args) SWIG_fail;
11271 swig_obj[0] = args;
11272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11273 if (!SWIG_IsOK(res1)) {
11274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11275 }
11276 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11279 {
554f62e9
RD
11280 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11281 result = (wxArrayInt *) &_result_ref;
d55e5bfc 11282 }
554f62e9
RD
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 {
11287 resultobj = PyList_New(0);
11288 size_t idx;
11289 for (idx = 0; idx < result->GetCount(); idx += 1) {
11290 PyObject* val = PyInt_FromLong( result->Item(idx) );
11291 PyList_Append(resultobj, val);
11292 Py_DECREF(val);
d55e5bfc 11293 }
554f62e9
RD
11294 }
11295 return resultobj;
11296fail:
11297 return NULL;
d55e5bfc
RD
11298}
11299
11300
554f62e9
RD
11301SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11302 PyObject *resultobj = 0;
11303 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11304 long result;
11305 void *argp1 = 0 ;
11306 int res1 = 0 ;
11307 PyObject *swig_obj[1] ;
11308
11309 if (!args) SWIG_fail;
11310 swig_obj[0] = args;
11311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11312 if (!SWIG_IsOK(res1)) {
11313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11314 }
11315 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11316 {
11317 PyThreadState* __tstate = wxPyBeginAllowThreads();
11318 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 resultobj = SWIG_From_long(static_cast< long >(result));
11323 return resultobj;
11324fail:
11325 return NULL;
d55e5bfc
RD
11326}
11327
11328
554f62e9
RD
11329SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11330 PyObject *resultobj = 0;
11331 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11332 long result;
11333 void *argp1 = 0 ;
11334 int res1 = 0 ;
11335 PyObject *swig_obj[1] ;
11336
11337 if (!args) SWIG_fail;
11338 swig_obj[0] = args;
11339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11340 if (!SWIG_IsOK(res1)) {
11341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11342 }
11343 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11344 {
11345 PyThreadState* __tstate = wxPyBeginAllowThreads();
11346 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 resultobj = SWIG_From_long(static_cast< long >(result));
11351 return resultobj;
11352fail:
11353 return NULL;
d55e5bfc
RD
11354}
11355
11356
554f62e9
RD
11357SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11358 PyObject *resultobj = 0;
11359 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11360 long result;
11361 void *argp1 = 0 ;
11362 int res1 = 0 ;
11363 PyObject *swig_obj[1] ;
11364
11365 if (!args) SWIG_fail;
11366 swig_obj[0] = args;
11367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11368 if (!SWIG_IsOK(res1)) {
11369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11370 }
11371 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 resultobj = SWIG_From_long(static_cast< long >(result));
11379 return resultobj;
11380fail:
11381 return NULL;
d55e5bfc
RD
11382}
11383
11384
554f62e9
RD
11385SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11386 PyObject *resultobj = 0;
11387 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11388 long result;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 PyObject *swig_obj[1] ;
11392
11393 if (!args) SWIG_fail;
11394 swig_obj[0] = args;
11395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11398 }
11399 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 resultobj = SWIG_From_long(static_cast< long >(result));
11407 return resultobj;
11408fail:
11409 return NULL;
d55e5bfc
RD
11410}
11411
11412
554f62e9
RD
11413SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11414 PyObject *resultobj = 0;
11415 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11416 bool result;
11417 void *argp1 = 0 ;
11418 int res1 = 0 ;
11419 PyObject *swig_obj[1] ;
11420
11421 if (!args) SWIG_fail;
11422 swig_obj[0] = args;
11423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11424 if (!SWIG_IsOK(res1)) {
11425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11426 }
11427 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 {
11435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11436 }
11437 return resultobj;
11438fail:
11439 return NULL;
11440}
11441
11442
11443SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11444 PyObject *resultobj = 0;
11445 wxTextAttr *arg1 = 0 ;
11446 wxTextAttr *arg2 = 0 ;
11447 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11448 wxTextAttr result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 void *argp2 = 0 ;
11452 int res2 = 0 ;
11453 void *argp3 = 0 ;
11454 int res3 = 0 ;
11455 PyObject * obj0 = 0 ;
11456 PyObject * obj1 = 0 ;
11457 PyObject * obj2 = 0 ;
11458 char * kwnames[] = {
11459 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11460 };
11461
11462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11463 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11466 }
11467 if (!argp1) {
11468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11472 if (!SWIG_IsOK(res2)) {
11473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11474 }
11475 if (!argp2) {
11476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11477 }
11478 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11479 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11480 if (!SWIG_IsOK(res3)) {
11481 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11482 }
11483 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11491 return resultobj;
11492fail:
11493 return NULL;
11494}
11495
11496
11497SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11498 PyObject *obj;
11499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11500 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11501 return SWIG_Py_Void();
11502}
11503
11504SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11505 return SWIG_Python_InitShadowInstance(args);
11506}
11507
11508SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj = 0;
11510 wxWindow *arg1 = (wxWindow *) 0 ;
11511 int arg2 = (int) -1 ;
11512 wxString const &arg3_defvalue = wxPyEmptyString ;
11513 wxString *arg3 = (wxString *) &arg3_defvalue ;
11514 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11515 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11516 wxSize const &arg5_defvalue = wxDefaultSize ;
11517 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11518 long arg6 = (long) 0 ;
11519 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11520 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11521 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11522 wxString *arg8 = (wxString *) &arg8_defvalue ;
11523 wxTextCtrl *result = 0 ;
11524 void *argp1 = 0 ;
11525 int res1 = 0 ;
11526 int val2 ;
11527 int ecode2 = 0 ;
11528 bool temp3 = false ;
11529 wxPoint temp4 ;
11530 wxSize temp5 ;
11531 long val6 ;
11532 int ecode6 = 0 ;
11533 void *argp7 = 0 ;
11534 int res7 = 0 ;
11535 bool temp8 = false ;
11536 PyObject * obj0 = 0 ;
11537 PyObject * obj1 = 0 ;
11538 PyObject * obj2 = 0 ;
11539 PyObject * obj3 = 0 ;
11540 PyObject * obj4 = 0 ;
11541 PyObject * obj5 = 0 ;
11542 PyObject * obj6 = 0 ;
11543 PyObject * obj7 = 0 ;
11544 char * kwnames[] = {
11545 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11546 };
11547
11548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11550 if (!SWIG_IsOK(res1)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11552 }
11553 arg1 = reinterpret_cast< wxWindow * >(argp1);
11554 if (obj1) {
11555 ecode2 = SWIG_AsVal_int(obj1, &val2);
11556 if (!SWIG_IsOK(ecode2)) {
11557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11558 }
11559 arg2 = static_cast< int >(val2);
11560 }
11561 if (obj2) {
d55e5bfc 11562 {
554f62e9
RD
11563 arg3 = wxString_in_helper(obj2);
11564 if (arg3 == NULL) SWIG_fail;
11565 temp3 = true;
d55e5bfc 11566 }
554f62e9
RD
11567 }
11568 if (obj3) {
d55e5bfc 11569 {
554f62e9
RD
11570 arg4 = &temp4;
11571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11572 }
554f62e9
RD
11573 }
11574 if (obj4) {
d55e5bfc 11575 {
554f62e9
RD
11576 arg5 = &temp5;
11577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11578 }
554f62e9
RD
11579 }
11580 if (obj5) {
11581 ecode6 = SWIG_AsVal_long(obj5, &val6);
11582 if (!SWIG_IsOK(ecode6)) {
11583 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11584 }
11585 arg6 = static_cast< long >(val6);
11586 }
11587 if (obj6) {
11588 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11589 if (!SWIG_IsOK(res7)) {
11590 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11591 }
554f62e9
RD
11592 if (!argp7) {
11593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11594 }
554f62e9
RD
11595 arg7 = reinterpret_cast< wxValidator * >(argp7);
11596 }
11597 if (obj7) {
d55e5bfc 11598 {
554f62e9
RD
11599 arg8 = wxString_in_helper(obj7);
11600 if (arg8 == NULL) SWIG_fail;
11601 temp8 = true;
d55e5bfc 11602 }
554f62e9
RD
11603 }
11604 {
11605 if (!wxPyCheckForApp()) SWIG_fail;
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11612 {
11613 if (temp3)
11614 delete arg3;
11615 }
11616 {
11617 if (temp8)
11618 delete arg8;
11619 }
11620 return resultobj;
11621fail:
11622 {
11623 if (temp3)
11624 delete arg3;
11625 }
11626 {
11627 if (temp8)
11628 delete arg8;
11629 }
11630 return NULL;
d55e5bfc
RD
11631}
11632
11633
554f62e9
RD
11634SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11635 PyObject *resultobj = 0;
11636 wxTextCtrl *result = 0 ;
11637
11638 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11639 {
11640 if (!wxPyCheckForApp()) SWIG_fail;
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (wxTextCtrl *)new wxTextCtrl();
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11647 return resultobj;
11648fail:
11649 return NULL;
11650}
11651
11652
11653SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj = 0;
11655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11656 wxWindow *arg2 = (wxWindow *) 0 ;
11657 int arg3 = (int) -1 ;
11658 wxString const &arg4_defvalue = wxPyEmptyString ;
11659 wxString *arg4 = (wxString *) &arg4_defvalue ;
11660 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11661 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11662 wxSize const &arg6_defvalue = wxDefaultSize ;
11663 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11664 long arg7 = (long) 0 ;
11665 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11666 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11667 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11668 wxString *arg9 = (wxString *) &arg9_defvalue ;
11669 bool result;
11670 void *argp1 = 0 ;
11671 int res1 = 0 ;
11672 void *argp2 = 0 ;
11673 int res2 = 0 ;
11674 int val3 ;
11675 int ecode3 = 0 ;
11676 bool temp4 = false ;
11677 wxPoint temp5 ;
11678 wxSize temp6 ;
11679 long val7 ;
11680 int ecode7 = 0 ;
11681 void *argp8 = 0 ;
11682 int res8 = 0 ;
11683 bool temp9 = false ;
11684 PyObject * obj0 = 0 ;
11685 PyObject * obj1 = 0 ;
11686 PyObject * obj2 = 0 ;
11687 PyObject * obj3 = 0 ;
11688 PyObject * obj4 = 0 ;
11689 PyObject * obj5 = 0 ;
11690 PyObject * obj6 = 0 ;
11691 PyObject * obj7 = 0 ;
11692 PyObject * obj8 = 0 ;
11693 char * kwnames[] = {
11694 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11695 };
11696
11697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11699 if (!SWIG_IsOK(res1)) {
11700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11701 }
11702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11704 if (!SWIG_IsOK(res2)) {
11705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11706 }
11707 arg2 = reinterpret_cast< wxWindow * >(argp2);
11708 if (obj2) {
11709 ecode3 = SWIG_AsVal_int(obj2, &val3);
11710 if (!SWIG_IsOK(ecode3)) {
11711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11712 }
11713 arg3 = static_cast< int >(val3);
11714 }
11715 if (obj3) {
d55e5bfc 11716 {
554f62e9
RD
11717 arg4 = wxString_in_helper(obj3);
11718 if (arg4 == NULL) SWIG_fail;
11719 temp4 = true;
d55e5bfc 11720 }
554f62e9
RD
11721 }
11722 if (obj4) {
d55e5bfc 11723 {
554f62e9
RD
11724 arg5 = &temp5;
11725 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11726 }
554f62e9
RD
11727 }
11728 if (obj5) {
d55e5bfc 11729 {
554f62e9
RD
11730 arg6 = &temp6;
11731 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11732 }
554f62e9
RD
11733 }
11734 if (obj6) {
11735 ecode7 = SWIG_AsVal_long(obj6, &val7);
11736 if (!SWIG_IsOK(ecode7)) {
11737 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11738 }
11739 arg7 = static_cast< long >(val7);
11740 }
11741 if (obj7) {
11742 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11743 if (!SWIG_IsOK(res8)) {
11744 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11745 }
554f62e9
RD
11746 if (!argp8) {
11747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11748 }
554f62e9
RD
11749 arg8 = reinterpret_cast< wxValidator * >(argp8);
11750 }
11751 if (obj8) {
d55e5bfc 11752 {
554f62e9
RD
11753 arg9 = wxString_in_helper(obj8);
11754 if (arg9 == NULL) SWIG_fail;
11755 temp9 = true;
d55e5bfc 11756 }
554f62e9
RD
11757 }
11758 {
11759 PyThreadState* __tstate = wxPyBeginAllowThreads();
11760 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 {
11765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11766 }
11767 {
11768 if (temp4)
11769 delete arg4;
11770 }
11771 {
11772 if (temp9)
11773 delete arg9;
11774 }
11775 return resultobj;
11776fail:
11777 {
11778 if (temp4)
11779 delete arg4;
11780 }
11781 {
11782 if (temp9)
11783 delete arg9;
11784 }
11785 return NULL;
d55e5bfc
RD
11786}
11787
11788
554f62e9
RD
11789SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11790 PyObject *resultobj = 0;
11791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11792 wxString result;
11793 void *argp1 = 0 ;
11794 int res1 = 0 ;
11795 PyObject *swig_obj[1] ;
11796
11797 if (!args) SWIG_fail;
11798 swig_obj[0] = args;
11799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11800 if (!SWIG_IsOK(res1)) {
11801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11802 }
11803 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = ((wxTextCtrl const *)arg1)->GetValue();
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811#if wxUSE_UNICODE
11812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11813#else
11814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11815#endif
11816 }
11817 return resultobj;
11818fail:
11819 return NULL;
11820}
11821
11822
11823SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11824 PyObject *resultobj = 0;
11825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11826 wxString *arg2 = 0 ;
11827 void *argp1 = 0 ;
11828 int res1 = 0 ;
11829 bool temp2 = false ;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 char * kwnames[] = {
11833 (char *) "self",(char *) "value", NULL
11834 };
11835
11836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11838 if (!SWIG_IsOK(res1)) {
11839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11840 }
11841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11842 {
11843 arg2 = wxString_in_helper(obj1);
11844 if (arg2 == NULL) SWIG_fail;
11845 temp2 = true;
11846 }
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->SetValue((wxString const &)*arg2);
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_Py_Void();
11854 {
11855 if (temp2)
11856 delete arg2;
11857 }
11858 return resultobj;
11859fail:
11860 {
11861 if (temp2)
11862 delete arg2;
11863 }
11864 return NULL;
11865}
11866
11867
11868SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj = 0;
11870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11871 long arg2 ;
11872 long arg3 ;
11873 wxString result;
11874 void *argp1 = 0 ;
11875 int res1 = 0 ;
11876 long val2 ;
11877 int ecode2 = 0 ;
11878 long val3 ;
11879 int ecode3 = 0 ;
11880 PyObject * obj0 = 0 ;
11881 PyObject * obj1 = 0 ;
11882 PyObject * obj2 = 0 ;
11883 char * kwnames[] = {
11884 (char *) "self",(char *) "_from",(char *) "to", NULL
11885 };
11886
11887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11889 if (!SWIG_IsOK(res1)) {
11890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11891 }
11892 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11893 ecode2 = SWIG_AsVal_long(obj1, &val2);
11894 if (!SWIG_IsOK(ecode2)) {
11895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11896 }
11897 arg2 = static_cast< long >(val2);
11898 ecode3 = SWIG_AsVal_long(obj2, &val3);
11899 if (!SWIG_IsOK(ecode3)) {
11900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11901 }
11902 arg3 = static_cast< long >(val3);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910#if wxUSE_UNICODE
11911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11912#else
11913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11914#endif
11915 }
11916 return resultobj;
11917fail:
11918 return NULL;
11919}
11920
11921
11922SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11923 PyObject *resultobj = 0;
11924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11925 long arg2 ;
11926 int result;
11927 void *argp1 = 0 ;
11928 int res1 = 0 ;
11929 long val2 ;
11930 int ecode2 = 0 ;
11931 PyObject * obj0 = 0 ;
11932 PyObject * obj1 = 0 ;
11933 char * kwnames[] = {
11934 (char *) "self",(char *) "lineNo", NULL
11935 };
11936
11937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11939 if (!SWIG_IsOK(res1)) {
11940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11941 }
11942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11943 ecode2 = SWIG_AsVal_long(obj1, &val2);
11944 if (!SWIG_IsOK(ecode2)) {
11945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11946 }
11947 arg2 = static_cast< long >(val2);
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 resultobj = SWIG_From_int(static_cast< int >(result));
11955 return resultobj;
11956fail:
11957 return NULL;
11958}
11959
11960
11961SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj = 0;
11963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11964 long arg2 ;
11965 wxString result;
11966 void *argp1 = 0 ;
11967 int res1 = 0 ;
11968 long val2 ;
11969 int ecode2 = 0 ;
11970 PyObject * obj0 = 0 ;
11971 PyObject * obj1 = 0 ;
11972 char * kwnames[] = {
11973 (char *) "self",(char *) "lineNo", NULL
11974 };
11975
11976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11978 if (!SWIG_IsOK(res1)) {
11979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11980 }
11981 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11982 ecode2 = SWIG_AsVal_long(obj1, &val2);
11983 if (!SWIG_IsOK(ecode2)) {
11984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11985 }
11986 arg2 = static_cast< long >(val2);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 {
11994#if wxUSE_UNICODE
11995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11996#else
11997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11998#endif
11999 }
12000 return resultobj;
12001fail:
12002 return NULL;
d55e5bfc
RD
12003}
12004
12005
554f62e9
RD
12006SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12007 PyObject *resultobj = 0;
12008 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12009 int result;
12010 void *argp1 = 0 ;
12011 int res1 = 0 ;
12012 PyObject *swig_obj[1] ;
12013
12014 if (!args) SWIG_fail;
12015 swig_obj[0] = args;
12016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12019 }
12020 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 resultobj = SWIG_From_int(static_cast< int >(result));
12028 return resultobj;
12029fail:
12030 return NULL;
d55e5bfc
RD
12031}
12032
12033
554f62e9
RD
12034SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12035 PyObject *resultobj = 0;
12036 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12037 bool result;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 PyObject *swig_obj[1] ;
12041
12042 if (!args) SWIG_fail;
12043 swig_obj[0] = args;
12044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12045 if (!SWIG_IsOK(res1)) {
12046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12047 }
12048 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 {
12056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12057 }
12058 return resultobj;
12059fail:
12060 return NULL;
d55e5bfc
RD
12061}
12062
12063
554f62e9
RD
12064SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12065 PyObject *resultobj = 0;
12066 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12067 bool result;
12068 void *argp1 = 0 ;
12069 int res1 = 0 ;
12070 PyObject *swig_obj[1] ;
12071
12072 if (!args) SWIG_fail;
12073 swig_obj[0] = args;
12074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12077 }
12078 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 {
12086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12087 }
12088 return resultobj;
12089fail:
12090 return NULL;
d55e5bfc
RD
12091}
12092
12093
554f62e9
RD
12094SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12095 PyObject *resultobj = 0;
12096 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12097 bool result;
12098 void *argp1 = 0 ;
12099 int res1 = 0 ;
12100 PyObject *swig_obj[1] ;
12101
12102 if (!args) SWIG_fail;
12103 swig_obj[0] = args;
12104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12105 if (!SWIG_IsOK(res1)) {
12106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12107 }
12108 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 {
12116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12117 }
12118 return resultobj;
12119fail:
12120 return NULL;
d55e5bfc
RD
12121}
12122
12123
554f62e9
RD
12124SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12125 PyObject *resultobj = 0;
12126 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12127 bool result;
12128 void *argp1 = 0 ;
12129 int res1 = 0 ;
12130 PyObject *swig_obj[1] ;
12131
12132 if (!args) SWIG_fail;
12133 swig_obj[0] = args;
12134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12135 if (!SWIG_IsOK(res1)) {
12136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12137 }
12138 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 {
12146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12147 }
12148 return resultobj;
12149fail:
12150 return NULL;
12151}
12152
12153
12154SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12155 PyObject *resultobj = 0;
12156 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12157 long *arg2 = (long *) 0 ;
12158 long *arg3 = (long *) 0 ;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 long temp2 ;
12162 int res2 = SWIG_TMPOBJ ;
12163 long temp3 ;
12164 int res3 = SWIG_TMPOBJ ;
12165 PyObject *swig_obj[1] ;
12166
12167 arg2 = &temp2;
12168 arg3 = &temp3;
12169 if (!args) SWIG_fail;
12170 swig_obj[0] = args;
12171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12174 }
12175 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = SWIG_Py_Void();
12183 if (SWIG_IsTmpObj(res2)) {
12184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12185 } else {
12186 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12188 }
12189 if (SWIG_IsTmpObj(res3)) {
12190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12191 } else {
12192 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12194 }
12195 return resultobj;
12196fail:
12197 return NULL;
d55e5bfc
RD
12198}
12199
12200
554f62e9
RD
12201SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12202 PyObject *resultobj = 0;
12203 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12204 wxString result;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 PyObject *swig_obj[1] ;
12208
12209 if (!args) SWIG_fail;
12210 swig_obj[0] = args;
12211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12212 if (!SWIG_IsOK(res1)) {
12213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12214 }
12215 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 {
12223#if wxUSE_UNICODE
12224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12225#else
12226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12227#endif
12228 }
12229 return resultobj;
12230fail:
12231 return NULL;
d55e5bfc
RD
12232}
12233
12234
554f62e9
RD
12235SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12236 PyObject *resultobj = 0;
12237 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12238 void *argp1 = 0 ;
12239 int res1 = 0 ;
12240 PyObject *swig_obj[1] ;
12241
12242 if (!args) SWIG_fail;
12243 swig_obj[0] = args;
12244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12245 if (!SWIG_IsOK(res1)) {
12246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12247 }
12248 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->Clear();
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 resultobj = SWIG_Py_Void();
12256 return resultobj;
12257fail:
12258 return NULL;
12259}
12260
12261
12262SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj = 0;
12264 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12265 long arg2 ;
12266 long arg3 ;
12267 wxString *arg4 = 0 ;
12268 void *argp1 = 0 ;
12269 int res1 = 0 ;
12270 long val2 ;
12271 int ecode2 = 0 ;
12272 long val3 ;
12273 int ecode3 = 0 ;
12274 bool temp4 = false ;
12275 PyObject * obj0 = 0 ;
12276 PyObject * obj1 = 0 ;
12277 PyObject * obj2 = 0 ;
12278 PyObject * obj3 = 0 ;
12279 char * kwnames[] = {
12280 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12281 };
12282
12283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12285 if (!SWIG_IsOK(res1)) {
12286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12287 }
12288 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12289 ecode2 = SWIG_AsVal_long(obj1, &val2);
12290 if (!SWIG_IsOK(ecode2)) {
12291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12292 }
12293 arg2 = static_cast< long >(val2);
12294 ecode3 = SWIG_AsVal_long(obj2, &val3);
12295 if (!SWIG_IsOK(ecode3)) {
12296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12297 }
12298 arg3 = static_cast< long >(val3);
12299 {
12300 arg4 = wxString_in_helper(obj3);
12301 if (arg4 == NULL) SWIG_fail;
12302 temp4 = true;
12303 }
12304 {
12305 PyThreadState* __tstate = wxPyBeginAllowThreads();
12306 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 resultobj = SWIG_Py_Void();
12311 {
12312 if (temp4)
12313 delete arg4;
12314 }
12315 return resultobj;
12316fail:
12317 {
12318 if (temp4)
12319 delete arg4;
12320 }
12321 return NULL;
12322}
12323
12324
12325SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj = 0;
12327 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12328 long arg2 ;
12329 long arg3 ;
12330 void *argp1 = 0 ;
12331 int res1 = 0 ;
12332 long val2 ;
12333 int ecode2 = 0 ;
12334 long val3 ;
12335 int ecode3 = 0 ;
12336 PyObject * obj0 = 0 ;
12337 PyObject * obj1 = 0 ;
12338 PyObject * obj2 = 0 ;
12339 char * kwnames[] = {
12340 (char *) "self",(char *) "_from",(char *) "to", NULL
12341 };
12342
12343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12347 }
12348 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12349 ecode2 = SWIG_AsVal_long(obj1, &val2);
12350 if (!SWIG_IsOK(ecode2)) {
12351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12352 }
12353 arg2 = static_cast< long >(val2);
12354 ecode3 = SWIG_AsVal_long(obj2, &val3);
12355 if (!SWIG_IsOK(ecode3)) {
12356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12357 }
12358 arg3 = static_cast< long >(val3);
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 (arg1)->Remove(arg2,arg3);
12362 wxPyEndAllowThreads(__tstate);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 resultobj = SWIG_Py_Void();
12366 return resultobj;
12367fail:
12368 return NULL;
12369}
12370
12371
12372SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12373 PyObject *resultobj = 0;
12374 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12375 wxString *arg2 = 0 ;
12376 bool result;
12377 void *argp1 = 0 ;
12378 int res1 = 0 ;
12379 bool temp2 = false ;
12380 PyObject * obj0 = 0 ;
12381 PyObject * obj1 = 0 ;
12382 char * kwnames[] = {
12383 (char *) "self",(char *) "file", NULL
12384 };
12385
12386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12388 if (!SWIG_IsOK(res1)) {
12389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12390 }
12391 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12392 {
12393 arg2 = wxString_in_helper(obj1);
12394 if (arg2 == NULL) SWIG_fail;
12395 temp2 = true;
12396 }
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 {
12404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12405 }
12406 {
12407 if (temp2)
12408 delete arg2;
12409 }
12410 return resultobj;
12411fail:
12412 {
12413 if (temp2)
12414 delete arg2;
12415 }
12416 return NULL;
12417}
12418
12419
12420SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12421 PyObject *resultobj = 0;
12422 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12423 wxString const &arg2_defvalue = wxPyEmptyString ;
12424 wxString *arg2 = (wxString *) &arg2_defvalue ;
12425 bool result;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 bool temp2 = false ;
12429 PyObject * obj0 = 0 ;
12430 PyObject * obj1 = 0 ;
12431 char * kwnames[] = {
12432 (char *) "self",(char *) "file", NULL
12433 };
12434
12435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12437 if (!SWIG_IsOK(res1)) {
12438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12439 }
12440 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12441 if (obj1) {
d55e5bfc 12442 {
554f62e9
RD
12443 arg2 = wxString_in_helper(obj1);
12444 if (arg2 == NULL) SWIG_fail;
12445 temp2 = true;
d55e5bfc 12446 }
554f62e9
RD
12447 }
12448 {
12449 PyThreadState* __tstate = wxPyBeginAllowThreads();
12450 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12451 wxPyEndAllowThreads(__tstate);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 }
12454 {
12455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12456 }
12457 {
12458 if (temp2)
12459 delete arg2;
12460 }
12461 return resultobj;
12462fail:
12463 {
12464 if (temp2)
12465 delete arg2;
12466 }
12467 return NULL;
d55e5bfc
RD
12468}
12469
12470
554f62e9
RD
12471SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12472 PyObject *resultobj = 0;
12473 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12474 void *argp1 = 0 ;
12475 int res1 = 0 ;
12476 PyObject *swig_obj[1] ;
12477
12478 if (!args) SWIG_fail;
12479 swig_obj[0] = args;
12480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12481 if (!SWIG_IsOK(res1)) {
12482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12483 }
12484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 (arg1)->MarkDirty();
12488 wxPyEndAllowThreads(__tstate);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 resultobj = SWIG_Py_Void();
12492 return resultobj;
12493fail:
12494 return NULL;
d55e5bfc
RD
12495}
12496
12497
554f62e9
RD
12498SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12499 PyObject *resultobj = 0;
12500 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12501 void *argp1 = 0 ;
12502 int res1 = 0 ;
12503 PyObject *swig_obj[1] ;
12504
12505 if (!args) SWIG_fail;
12506 swig_obj[0] = args;
12507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12508 if (!SWIG_IsOK(res1)) {
12509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12510 }
12511 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 (arg1)->DiscardEdits();
12515 wxPyEndAllowThreads(__tstate);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 resultobj = SWIG_Py_Void();
12519 return resultobj;
12520fail:
12521 return NULL;
12522}
12523
12524
12525SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12526 PyObject *resultobj = 0;
12527 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12528 unsigned long arg2 ;
12529 void *argp1 = 0 ;
12530 int res1 = 0 ;
12531 unsigned long val2 ;
12532 int ecode2 = 0 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 char * kwnames[] = {
12536 (char *) "self",(char *) "len", NULL
12537 };
12538
12539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12543 }
12544 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12545 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12546 if (!SWIG_IsOK(ecode2)) {
12547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12548 }
12549 arg2 = static_cast< unsigned long >(val2);
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 (arg1)->SetMaxLength(arg2);
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 resultobj = SWIG_Py_Void();
12557 return resultobj;
12558fail:
12559 return NULL;
12560}
12561
12562
12563SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj = 0;
12565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12566 wxString *arg2 = 0 ;
12567 void *argp1 = 0 ;
12568 int res1 = 0 ;
12569 bool temp2 = false ;
12570 PyObject * obj0 = 0 ;
12571 PyObject * obj1 = 0 ;
12572 char * kwnames[] = {
12573 (char *) "self",(char *) "text", NULL
12574 };
12575
12576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12578 if (!SWIG_IsOK(res1)) {
12579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12580 }
12581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12582 {
12583 arg2 = wxString_in_helper(obj1);
12584 if (arg2 == NULL) SWIG_fail;
12585 temp2 = true;
12586 }
12587 {
12588 PyThreadState* __tstate = wxPyBeginAllowThreads();
12589 (arg1)->WriteText((wxString const &)*arg2);
12590 wxPyEndAllowThreads(__tstate);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 }
12593 resultobj = SWIG_Py_Void();
12594 {
12595 if (temp2)
12596 delete arg2;
12597 }
12598 return resultobj;
12599fail:
12600 {
12601 if (temp2)
12602 delete arg2;
12603 }
12604 return NULL;
d55e5bfc
RD
12605}
12606
12607
554f62e9
RD
12608SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj = 0;
12610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12611 wxString *arg2 = 0 ;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 bool temp2 = false ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "self",(char *) "text", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12625 }
12626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12627 {
12628 arg2 = wxString_in_helper(obj1);
12629 if (arg2 == NULL) SWIG_fail;
12630 temp2 = true;
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->AppendText((wxString const &)*arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
12650}
12651
12652
12653SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj = 0;
12655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12656 wxKeyEvent *arg2 = 0 ;
12657 bool result;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 void *argp2 = 0 ;
12661 int res2 = 0 ;
12662 PyObject * obj0 = 0 ;
12663 PyObject * obj1 = 0 ;
12664 char * kwnames[] = {
12665 (char *) "self",(char *) "event", NULL
12666 };
12667
12668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12670 if (!SWIG_IsOK(res1)) {
12671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12672 }
12673 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12675 if (!SWIG_IsOK(res2)) {
12676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12677 }
12678 if (!argp2) {
12679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12680 }
12681 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 {
12689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12690 }
12691 return resultobj;
12692fail:
12693 return NULL;
12694}
12695
12696
12697SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj = 0;
12699 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12700 long arg2 ;
12701 long arg3 ;
12702 wxTextAttr *arg4 = 0 ;
12703 bool result;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 long val2 ;
12707 int ecode2 = 0 ;
12708 long val3 ;
12709 int ecode3 = 0 ;
12710 void *argp4 = 0 ;
12711 int res4 = 0 ;
12712 PyObject * obj0 = 0 ;
12713 PyObject * obj1 = 0 ;
12714 PyObject * obj2 = 0 ;
12715 PyObject * obj3 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 ecode2 = SWIG_AsVal_long(obj1, &val2);
12727 if (!SWIG_IsOK(ecode2)) {
12728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12729 }
12730 arg2 = static_cast< long >(val2);
12731 ecode3 = SWIG_AsVal_long(obj2, &val3);
12732 if (!SWIG_IsOK(ecode3)) {
12733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12734 }
12735 arg3 = static_cast< long >(val3);
12736 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12737 if (!SWIG_IsOK(res4)) {
12738 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12739 }
12740 if (!argp4) {
12741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12742 }
12743 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 {
12751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12752 }
12753 return resultobj;
12754fail:
12755 return NULL;
12756}
12757
12758
12759SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 long arg2 ;
12763 wxTextAttr *arg3 = 0 ;
12764 bool result;
12765 void *argp1 = 0 ;
12766 int res1 = 0 ;
12767 long val2 ;
12768 int ecode2 = 0 ;
12769 void *argp3 = 0 ;
12770 int res3 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 PyObject * obj1 = 0 ;
12773 PyObject * obj2 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "position",(char *) "style", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12782 }
12783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12784 ecode2 = SWIG_AsVal_long(obj1, &val2);
12785 if (!SWIG_IsOK(ecode2)) {
12786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12787 }
12788 arg2 = static_cast< long >(val2);
12789 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12790 if (!SWIG_IsOK(res3)) {
12791 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12792 }
12793 if (!argp3) {
12794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12795 }
12796 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 {
12804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12805 }
12806 return resultobj;
12807fail:
12808 return NULL;
12809}
12810
12811
12812SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = 0;
12814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12815 wxTextAttr *arg2 = 0 ;
12816 bool result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 void *argp2 = 0 ;
12820 int res2 = 0 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "style", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12831 }
12832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12834 if (!SWIG_IsOK(res2)) {
12835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12836 }
12837 if (!argp2) {
12838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12839 }
12840 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12844 wxPyEndAllowThreads(__tstate);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 {
12848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12849 }
12850 return resultobj;
12851fail:
12852 return NULL;
d55e5bfc
RD
12853}
12854
12855
554f62e9
RD
12856SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12857 PyObject *resultobj = 0;
12858 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12859 wxTextAttr *result = 0 ;
12860 void *argp1 = 0 ;
12861 int res1 = 0 ;
12862 PyObject *swig_obj[1] ;
12863
12864 if (!args) SWIG_fail;
12865 swig_obj[0] = args;
12866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12867 if (!SWIG_IsOK(res1)) {
12868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12869 }
12870 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12873 {
554f62e9
RD
12874 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12875 result = (wxTextAttr *) &_result_ref;
093d3ff1 12876 }
554f62e9
RD
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12881 return resultobj;
12882fail:
12883 return NULL;
12884}
12885
12886
12887SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj = 0;
12889 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12890 long arg2 ;
12891 long arg3 ;
12892 long result;
12893 void *argp1 = 0 ;
12894 int res1 = 0 ;
12895 long val2 ;
12896 int ecode2 = 0 ;
12897 long val3 ;
12898 int ecode3 = 0 ;
12899 PyObject * obj0 = 0 ;
12900 PyObject * obj1 = 0 ;
12901 PyObject * obj2 = 0 ;
12902 char * kwnames[] = {
12903 (char *) "self",(char *) "x",(char *) "y", NULL
12904 };
12905
12906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12908 if (!SWIG_IsOK(res1)) {
12909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12910 }
12911 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12912 ecode2 = SWIG_AsVal_long(obj1, &val2);
12913 if (!SWIG_IsOK(ecode2)) {
12914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12915 }
12916 arg2 = static_cast< long >(val2);
12917 ecode3 = SWIG_AsVal_long(obj2, &val3);
12918 if (!SWIG_IsOK(ecode3)) {
12919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12920 }
12921 arg3 = static_cast< long >(val3);
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = SWIG_From_long(static_cast< long >(result));
12929 return resultobj;
12930fail:
12931 return NULL;
12932}
12933
12934
12935SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj = 0;
12937 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12938 long arg2 ;
12939 long *arg3 = (long *) 0 ;
12940 long *arg4 = (long *) 0 ;
12941 void *argp1 = 0 ;
12942 int res1 = 0 ;
12943 long val2 ;
12944 int ecode2 = 0 ;
12945 long temp3 ;
12946 int res3 = SWIG_TMPOBJ ;
12947 long temp4 ;
12948 int res4 = SWIG_TMPOBJ ;
12949 PyObject * obj0 = 0 ;
12950 PyObject * obj1 = 0 ;
12951 char * kwnames[] = {
12952 (char *) "self",(char *) "pos", NULL
12953 };
12954
12955 arg3 = &temp3;
12956 arg4 = &temp4;
12957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12961 }
12962 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12963 ecode2 = SWIG_AsVal_long(obj1, &val2);
12964 if (!SWIG_IsOK(ecode2)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12966 }
12967 arg2 = static_cast< long >(val2);
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = SWIG_Py_Void();
12975 if (SWIG_IsTmpObj(res3)) {
12976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12977 } else {
12978 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12980 }
12981 if (SWIG_IsTmpObj(res4)) {
12982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12983 } else {
12984 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12986 }
12987 return resultobj;
12988fail:
12989 return NULL;
12990}
12991
12992
12993SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 long arg2 ;
12997 void *argp1 = 0 ;
12998 int res1 = 0 ;
12999 long val2 ;
13000 int ecode2 = 0 ;
13001 PyObject * obj0 = 0 ;
13002 PyObject * obj1 = 0 ;
13003 char * kwnames[] = {
13004 (char *) "self",(char *) "pos", NULL
13005 };
13006
13007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13009 if (!SWIG_IsOK(res1)) {
13010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13011 }
13012 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13013 ecode2 = SWIG_AsVal_long(obj1, &val2);
13014 if (!SWIG_IsOK(ecode2)) {
13015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13016 }
13017 arg2 = static_cast< long >(val2);
13018 {
13019 PyThreadState* __tstate = wxPyBeginAllowThreads();
13020 (arg1)->ShowPosition(arg2);
13021 wxPyEndAllowThreads(__tstate);
13022 if (PyErr_Occurred()) SWIG_fail;
13023 }
13024 resultobj = SWIG_Py_Void();
13025 return resultobj;
13026fail:
13027 return NULL;
13028}
13029
13030
13031SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13032 PyObject *resultobj = 0;
13033 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13034 wxPoint *arg2 = 0 ;
13035 long *arg3 = (long *) 0 ;
13036 long *arg4 = (long *) 0 ;
13037 wxTextCtrlHitTestResult result;
13038 void *argp1 = 0 ;
13039 int res1 = 0 ;
13040 wxPoint temp2 ;
13041 long temp3 ;
13042 int res3 = SWIG_TMPOBJ ;
13043 long temp4 ;
13044 int res4 = SWIG_TMPOBJ ;
13045 PyObject * obj0 = 0 ;
13046 PyObject * obj1 = 0 ;
13047 char * kwnames[] = {
13048 (char *) "self",(char *) "pt", NULL
13049 };
13050
13051 arg3 = &temp3;
13052 arg4 = &temp4;
13053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13055 if (!SWIG_IsOK(res1)) {
13056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13057 }
13058 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13059 {
13060 arg2 = &temp2;
13061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13062 }
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_From_int(static_cast< int >(result));
13070 if (SWIG_IsTmpObj(res3)) {
13071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13072 } else {
13073 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13075 }
13076 if (SWIG_IsTmpObj(res4)) {
13077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13078 } else {
13079 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13081 }
13082 return resultobj;
13083fail:
13084 return NULL;
13085}
13086
13087
13088SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj = 0;
13090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13091 wxPoint *arg2 = 0 ;
13092 long *arg3 = (long *) 0 ;
13093 wxTextCtrlHitTestResult result;
13094 void *argp1 = 0 ;
13095 int res1 = 0 ;
13096 wxPoint temp2 ;
13097 long temp3 ;
13098 int res3 = SWIG_TMPOBJ ;
13099 PyObject * obj0 = 0 ;
13100 PyObject * obj1 = 0 ;
13101 char * kwnames[] = {
13102 (char *) "self",(char *) "pt", NULL
13103 };
13104
13105 arg3 = &temp3;
13106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13108 if (!SWIG_IsOK(res1)) {
13109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13110 }
13111 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13112 {
13113 arg2 = &temp2;
13114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13115 }
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 resultobj = SWIG_From_int(static_cast< int >(result));
13123 if (SWIG_IsTmpObj(res3)) {
13124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13125 } else {
13126 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13128 }
13129 return resultobj;
13130fail:
13131 return NULL;
d55e5bfc
RD
13132}
13133
13134
554f62e9
RD
13135SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13136 PyObject *resultobj = 0;
13137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13138 void *argp1 = 0 ;
13139 int res1 = 0 ;
13140 PyObject *swig_obj[1] ;
13141
13142 if (!args) SWIG_fail;
13143 swig_obj[0] = args;
13144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13145 if (!SWIG_IsOK(res1)) {
13146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13147 }
13148 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 (arg1)->Copy();
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 resultobj = SWIG_Py_Void();
13156 return resultobj;
13157fail:
13158 return NULL;
d55e5bfc 13159}
554f62e9
RD
13160
13161
13162SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13163 PyObject *resultobj = 0;
13164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13165 void *argp1 = 0 ;
13166 int res1 = 0 ;
13167 PyObject *swig_obj[1] ;
13168
13169 if (!args) SWIG_fail;
13170 swig_obj[0] = args;
13171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13172 if (!SWIG_IsOK(res1)) {
13173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13174 }
13175 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 (arg1)->Cut();
13179 wxPyEndAllowThreads(__tstate);
13180 if (PyErr_Occurred()) SWIG_fail;
13181 }
13182 resultobj = SWIG_Py_Void();
13183 return resultobj;
13184fail:
13185 return NULL;
d55e5bfc
RD
13186}
13187
13188
554f62e9
RD
13189SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13190 PyObject *resultobj = 0;
13191 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13192 void *argp1 = 0 ;
13193 int res1 = 0 ;
13194 PyObject *swig_obj[1] ;
13195
13196 if (!args) SWIG_fail;
13197 swig_obj[0] = args;
13198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13199 if (!SWIG_IsOK(res1)) {
13200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13201 }
13202 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 (arg1)->Paste();
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 resultobj = SWIG_Py_Void();
13210 return resultobj;
13211fail:
13212 return NULL;
d55e5bfc
RD
13213}
13214
13215
554f62e9
RD
13216SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13217 PyObject *resultobj = 0;
13218 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13219 bool result;
13220 void *argp1 = 0 ;
13221 int res1 = 0 ;
13222 PyObject *swig_obj[1] ;
13223
13224 if (!args) SWIG_fail;
13225 swig_obj[0] = args;
13226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13227 if (!SWIG_IsOK(res1)) {
13228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13229 }
13230 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 {
13238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13239 }
13240 return resultobj;
13241fail:
13242 return NULL;
d55e5bfc
RD
13243}
13244
13245
554f62e9
RD
13246SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13247 PyObject *resultobj = 0;
13248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13249 bool result;
13250 void *argp1 = 0 ;
13251 int res1 = 0 ;
13252 PyObject *swig_obj[1] ;
13253
13254 if (!args) SWIG_fail;
13255 swig_obj[0] = args;
13256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13257 if (!SWIG_IsOK(res1)) {
13258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13259 }
13260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 {
13268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13269 }
13270 return resultobj;
13271fail:
13272 return NULL;
d55e5bfc
RD
13273}
13274
13275
554f62e9
RD
13276SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13277 PyObject *resultobj = 0;
13278 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13279 bool result;
13280 void *argp1 = 0 ;
13281 int res1 = 0 ;
13282 PyObject *swig_obj[1] ;
13283
13284 if (!args) SWIG_fail;
13285 swig_obj[0] = args;
13286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13287 if (!SWIG_IsOK(res1)) {
13288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13289 }
13290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 {
13298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13299 }
13300 return resultobj;
13301fail:
13302 return NULL;
d55e5bfc
RD
13303}
13304
13305
554f62e9
RD
13306SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13307 PyObject *resultobj = 0;
13308 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 PyObject *swig_obj[1] ;
13312
13313 if (!args) SWIG_fail;
13314 swig_obj[0] = args;
13315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13316 if (!SWIG_IsOK(res1)) {
13317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13318 }
13319 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 (arg1)->Undo();
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = SWIG_Py_Void();
13327 return resultobj;
13328fail:
13329 return NULL;
d55e5bfc
RD
13330}
13331
13332
554f62e9
RD
13333SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13334 PyObject *resultobj = 0;
13335 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13336 void *argp1 = 0 ;
13337 int res1 = 0 ;
13338 PyObject *swig_obj[1] ;
13339
13340 if (!args) SWIG_fail;
13341 swig_obj[0] = args;
13342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13343 if (!SWIG_IsOK(res1)) {
13344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13345 }
13346 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 (arg1)->Redo();
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_Py_Void();
13354 return resultobj;
13355fail:
13356 return NULL;
d55e5bfc
RD
13357}
13358
13359
554f62e9
RD
13360SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13361 PyObject *resultobj = 0;
13362 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13363 bool result;
13364 void *argp1 = 0 ;
13365 int res1 = 0 ;
13366 PyObject *swig_obj[1] ;
13367
13368 if (!args) SWIG_fail;
13369 swig_obj[0] = args;
13370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13371 if (!SWIG_IsOK(res1)) {
13372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13373 }
13374 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13383 }
13384 return resultobj;
13385fail:
13386 return NULL;
d55e5bfc
RD
13387}
13388
13389
554f62e9
RD
13390SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13391 PyObject *resultobj = 0;
13392 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13393 bool result;
13394 void *argp1 = 0 ;
13395 int res1 = 0 ;
13396 PyObject *swig_obj[1] ;
13397
13398 if (!args) SWIG_fail;
13399 swig_obj[0] = args;
13400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13401 if (!SWIG_IsOK(res1)) {
13402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13403 }
13404 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13408 wxPyEndAllowThreads(__tstate);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 {
13412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13413 }
13414 return resultobj;
13415fail:
13416 return NULL;
13417}
13418
13419
13420SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj = 0;
13422 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13423 long arg2 ;
13424 void *argp1 = 0 ;
13425 int res1 = 0 ;
13426 long val2 ;
13427 int ecode2 = 0 ;
13428 PyObject * obj0 = 0 ;
13429 PyObject * obj1 = 0 ;
13430 char * kwnames[] = {
13431 (char *) "self",(char *) "pos", NULL
13432 };
13433
13434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13436 if (!SWIG_IsOK(res1)) {
13437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13438 }
13439 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13440 ecode2 = SWIG_AsVal_long(obj1, &val2);
13441 if (!SWIG_IsOK(ecode2)) {
13442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13443 }
13444 arg2 = static_cast< long >(val2);
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 (arg1)->SetInsertionPoint(arg2);
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 resultobj = SWIG_Py_Void();
13452 return resultobj;
13453fail:
13454 return NULL;
d55e5bfc
RD
13455}
13456
13457
554f62e9
RD
13458SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13459 PyObject *resultobj = 0;
13460 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13461 void *argp1 = 0 ;
13462 int res1 = 0 ;
13463 PyObject *swig_obj[1] ;
13464
13465 if (!args) SWIG_fail;
13466 swig_obj[0] = args;
13467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13468 if (!SWIG_IsOK(res1)) {
13469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13470 }
13471 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13472 {
13473 PyThreadState* __tstate = wxPyBeginAllowThreads();
13474 (arg1)->SetInsertionPointEnd();
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 resultobj = SWIG_Py_Void();
13479 return resultobj;
13480fail:
13481 return NULL;
d55e5bfc
RD
13482}
13483
13484
554f62e9
RD
13485SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13486 PyObject *resultobj = 0;
13487 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13488 long result;
13489 void *argp1 = 0 ;
13490 int res1 = 0 ;
13491 PyObject *swig_obj[1] ;
13492
13493 if (!args) SWIG_fail;
13494 swig_obj[0] = args;
13495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13496 if (!SWIG_IsOK(res1)) {
13497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13498 }
13499 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_From_long(static_cast< long >(result));
13507 return resultobj;
13508fail:
13509 return NULL;
d55e5bfc
RD
13510}
13511
13512
554f62e9
RD
13513SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13516 long result;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 PyObject *swig_obj[1] ;
13520
13521 if (!args) SWIG_fail;
13522 swig_obj[0] = args;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13526 }
13527 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 resultobj = SWIG_From_long(static_cast< long >(result));
13535 return resultobj;
13536fail:
13537 return NULL;
13538}
13539
13540
13541SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 long arg2 ;
13545 long arg3 ;
13546 void *argp1 = 0 ;
13547 int res1 = 0 ;
13548 long val2 ;
13549 int ecode2 = 0 ;
13550 long val3 ;
13551 int ecode3 = 0 ;
13552 PyObject * obj0 = 0 ;
13553 PyObject * obj1 = 0 ;
13554 PyObject * obj2 = 0 ;
13555 char * kwnames[] = {
13556 (char *) "self",(char *) "_from",(char *) "to", NULL
13557 };
13558
13559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13561 if (!SWIG_IsOK(res1)) {
13562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13563 }
13564 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13565 ecode2 = SWIG_AsVal_long(obj1, &val2);
13566 if (!SWIG_IsOK(ecode2)) {
13567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13568 }
13569 arg2 = static_cast< long >(val2);
13570 ecode3 = SWIG_AsVal_long(obj2, &val3);
13571 if (!SWIG_IsOK(ecode3)) {
13572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13573 }
13574 arg3 = static_cast< long >(val3);
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 (arg1)->SetSelection(arg2,arg3);
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = SWIG_Py_Void();
13582 return resultobj;
13583fail:
13584 return NULL;
d55e5bfc
RD
13585}
13586
13587
554f62e9
RD
13588SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13589 PyObject *resultobj = 0;
13590 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 PyObject *swig_obj[1] ;
13594
13595 if (!args) SWIG_fail;
13596 swig_obj[0] = args;
13597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13598 if (!SWIG_IsOK(res1)) {
13599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13600 }
13601 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 (arg1)->SelectAll();
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 resultobj = SWIG_Py_Void();
13609 return resultobj;
13610fail:
13611 return NULL;
13612}
13613
13614
13615SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13616 PyObject *resultobj = 0;
13617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13618 bool arg2 ;
13619 void *argp1 = 0 ;
13620 int res1 = 0 ;
13621 bool val2 ;
13622 int ecode2 = 0 ;
13623 PyObject * obj0 = 0 ;
13624 PyObject * obj1 = 0 ;
13625 char * kwnames[] = {
13626 (char *) "self",(char *) "editable", NULL
13627 };
13628
13629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13631 if (!SWIG_IsOK(res1)) {
13632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13633 }
13634 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13635 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13636 if (!SWIG_IsOK(ecode2)) {
13637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13638 }
13639 arg2 = static_cast< bool >(val2);
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 (arg1)->SetEditable(arg2);
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 resultobj = SWIG_Py_Void();
13647 return resultobj;
13648fail:
13649 return NULL;
13650}
13651
13652
13653SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj = 0;
13655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13656 bool arg2 = (bool) true ;
13657 bool result;
13658 void *argp1 = 0 ;
13659 int res1 = 0 ;
13660 bool val2 ;
13661 int ecode2 = 0 ;
13662 PyObject * obj0 = 0 ;
13663 PyObject * obj1 = 0 ;
13664 char * kwnames[] = {
13665 (char *) "self",(char *) "show", NULL
13666 };
13667
13668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13670 if (!SWIG_IsOK(res1)) {
13671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13672 }
13673 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13674 if (obj1) {
13675 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13676 if (!SWIG_IsOK(ecode2)) {
13677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13678 }
13679 arg2 = static_cast< bool >(val2);
13680 }
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (bool)(arg1)->ShowNativeCaret(arg2);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 {
13688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13689 }
13690 return resultobj;
13691fail:
13692 return NULL;
d55e5bfc
RD
13693}
13694
13695
554f62e9
RD
13696SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13697 PyObject *resultobj = 0;
13698 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13699 bool result;
13700 void *argp1 = 0 ;
13701 int res1 = 0 ;
13702 PyObject *swig_obj[1] ;
13703
13704 if (!args) SWIG_fail;
13705 swig_obj[0] = args;
13706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13707 if (!SWIG_IsOK(res1)) {
13708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13709 }
13710 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 result = (bool)(arg1)->HideNativeCaret();
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13719 }
13720 return resultobj;
13721fail:
13722 return NULL;
13723}
13724
13725
13726SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj = 0;
13728 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13729 wxString *arg2 = 0 ;
13730 void *argp1 = 0 ;
13731 int res1 = 0 ;
13732 bool temp2 = false ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 char * kwnames[] = {
13736 (char *) "self",(char *) "text", NULL
13737 };
13738
13739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13741 if (!SWIG_IsOK(res1)) {
13742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13743 }
13744 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13745 {
13746 arg2 = wxString_in_helper(obj1);
13747 if (arg2 == NULL) SWIG_fail;
13748 temp2 = true;
13749 }
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 {
13758 if (temp2)
13759 delete arg2;
13760 }
13761 return resultobj;
13762fail:
13763 {
13764 if (temp2)
13765 delete arg2;
13766 }
13767 return NULL;
13768}
13769
13770
13771SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13772 PyObject *resultobj = 0;
13773 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13774 long arg2 ;
13775 long arg3 ;
13776 wxString result;
13777 void *argp1 = 0 ;
13778 int res1 = 0 ;
13779 long val2 ;
13780 int ecode2 = 0 ;
13781 long val3 ;
13782 int ecode3 = 0 ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786 char * kwnames[] = {
13787 (char *) "self",(char *) "_from",(char *) "to", NULL
13788 };
13789
13790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13792 if (!SWIG_IsOK(res1)) {
13793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13794 }
13795 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13796 ecode2 = SWIG_AsVal_long(obj1, &val2);
13797 if (!SWIG_IsOK(ecode2)) {
13798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13799 }
13800 arg2 = static_cast< long >(val2);
13801 ecode3 = SWIG_AsVal_long(obj2, &val3);
13802 if (!SWIG_IsOK(ecode3)) {
13803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13804 }
13805 arg3 = static_cast< long >(val3);
13806 {
13807 PyThreadState* __tstate = wxPyBeginAllowThreads();
13808 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 {
13813#if wxUSE_UNICODE
13814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13815#else
13816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13817#endif
13818 }
13819 return resultobj;
13820fail:
13821 return NULL;
d55e5bfc
RD
13822}
13823
13824
554f62e9
RD
13825SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13826 PyObject *resultobj = 0;
13827 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13828 SwigValueWrapper<wxVisualAttributes > result;
13829 int val1 ;
13830 int ecode1 = 0 ;
13831 PyObject * obj0 = 0 ;
13832 char * kwnames[] = {
13833 (char *) "variant", NULL
13834 };
13835
13836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13837 if (obj0) {
13838 ecode1 = SWIG_AsVal_int(obj0, &val1);
13839 if (!SWIG_IsOK(ecode1)) {
13840 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13841 }
13842 arg1 = static_cast< wxWindowVariant >(val1);
13843 }
13844 {
13845 if (!wxPyCheckForApp()) SWIG_fail;
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13852 return resultobj;
13853fail:
13854 return NULL;
13855}
13856
13857
13858SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859 PyObject *obj;
13860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13861 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13862 return SWIG_Py_Void();
13863}
13864
13865SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13866 return SWIG_Python_InitShadowInstance(args);
13867}
13868
13869SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13870 PyObject *resultobj = 0;
13871 int arg1 ;
13872 wxMouseEvent *arg2 = 0 ;
13873 long arg3 ;
13874 long arg4 ;
13875 wxTextUrlEvent *result = 0 ;
13876 int val1 ;
13877 int ecode1 = 0 ;
13878 void *argp2 = 0 ;
13879 int res2 = 0 ;
13880 long val3 ;
13881 int ecode3 = 0 ;
13882 long val4 ;
13883 int ecode4 = 0 ;
13884 PyObject * obj0 = 0 ;
13885 PyObject * obj1 = 0 ;
13886 PyObject * obj2 = 0 ;
13887 PyObject * obj3 = 0 ;
13888 char * kwnames[] = {
13889 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13890 };
13891
13892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13893 ecode1 = SWIG_AsVal_int(obj0, &val1);
13894 if (!SWIG_IsOK(ecode1)) {
13895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13896 }
13897 arg1 = static_cast< int >(val1);
13898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13899 if (!SWIG_IsOK(res2)) {
13900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13901 }
13902 if (!argp2) {
13903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13904 }
13905 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13906 ecode3 = SWIG_AsVal_long(obj2, &val3);
13907 if (!SWIG_IsOK(ecode3)) {
13908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13909 }
13910 arg3 = static_cast< long >(val3);
13911 ecode4 = SWIG_AsVal_long(obj3, &val4);
13912 if (!SWIG_IsOK(ecode4)) {
13913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13914 }
13915 arg4 = static_cast< long >(val4);
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13923 return resultobj;
13924fail:
13925 return NULL;
d55e5bfc
RD
13926}
13927
13928
554f62e9
RD
13929SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13930 PyObject *resultobj = 0;
13931 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13932 wxMouseEvent *result = 0 ;
13933 void *argp1 = 0 ;
13934 int res1 = 0 ;
13935 PyObject *swig_obj[1] ;
13936
13937 if (!args) SWIG_fail;
13938 swig_obj[0] = args;
13939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13940 if (!SWIG_IsOK(res1)) {
13941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13942 }
13943 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13946 {
554f62e9
RD
13947 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13948 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 13949 }
554f62e9
RD
13950 wxPyEndAllowThreads(__tstate);
13951 if (PyErr_Occurred()) SWIG_fail;
13952 }
13953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13954 return resultobj;
13955fail:
13956 return NULL;
d55e5bfc
RD
13957}
13958
13959
554f62e9
RD
13960SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13961 PyObject *resultobj = 0;
13962 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13963 long result;
13964 void *argp1 = 0 ;
13965 int res1 = 0 ;
13966 PyObject *swig_obj[1] ;
13967
13968 if (!args) SWIG_fail;
13969 swig_obj[0] = args;
13970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13971 if (!SWIG_IsOK(res1)) {
13972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13973 }
13974 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13978 wxPyEndAllowThreads(__tstate);
13979 if (PyErr_Occurred()) SWIG_fail;
13980 }
13981 resultobj = SWIG_From_long(static_cast< long >(result));
13982 return resultobj;
13983fail:
13984 return NULL;
d55e5bfc
RD
13985}
13986
13987
554f62e9
RD
13988SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989 PyObject *resultobj = 0;
13990 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13991 long result;
13992 void *argp1 = 0 ;
13993 int res1 = 0 ;
13994 PyObject *swig_obj[1] ;
13995
13996 if (!args) SWIG_fail;
13997 swig_obj[0] = args;
13998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13999 if (!SWIG_IsOK(res1)) {
14000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14001 }
14002 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 resultobj = SWIG_From_long(static_cast< long >(result));
14010 return resultobj;
14011fail:
14012 return NULL;
d55e5bfc
RD
14013}
14014
14015
554f62e9
RD
14016SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14017 PyObject *obj;
14018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14019 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14020 return SWIG_Py_Void();
d55e5bfc
RD
14021}
14022
554f62e9
RD
14023SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14024 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14025}
14026
554f62e9
RD
14027SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14028 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14029 return 1;
d55e5bfc
RD
14030}
14031
14032
554f62e9
RD
14033SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14034 PyObject *pyobj = 0;
14035
14036 {
14037#if wxUSE_UNICODE
14038 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14039#else
14040 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14041#endif
14042 }
14043 return pyobj;
14044}
14045
14046
14047SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14048 PyObject *resultobj = 0;
14049 wxWindow *arg1 = (wxWindow *) 0 ;
14050 int arg2 = (int) -1 ;
14051 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14052 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14053 wxSize const &arg4_defvalue = wxDefaultSize ;
14054 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14055 long arg5 = (long) wxSB_HORIZONTAL ;
14056 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14057 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14058 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14059 wxString *arg7 = (wxString *) &arg7_defvalue ;
14060 wxScrollBar *result = 0 ;
14061 void *argp1 = 0 ;
14062 int res1 = 0 ;
14063 int val2 ;
14064 int ecode2 = 0 ;
14065 wxPoint temp3 ;
14066 wxSize temp4 ;
14067 long val5 ;
14068 int ecode5 = 0 ;
14069 void *argp6 = 0 ;
14070 int res6 = 0 ;
14071 bool temp7 = false ;
14072 PyObject * obj0 = 0 ;
14073 PyObject * obj1 = 0 ;
14074 PyObject * obj2 = 0 ;
14075 PyObject * obj3 = 0 ;
14076 PyObject * obj4 = 0 ;
14077 PyObject * obj5 = 0 ;
14078 PyObject * obj6 = 0 ;
14079 char * kwnames[] = {
14080 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14081 };
14082
14083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14085 if (!SWIG_IsOK(res1)) {
14086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14087 }
14088 arg1 = reinterpret_cast< wxWindow * >(argp1);
14089 if (obj1) {
14090 ecode2 = SWIG_AsVal_int(obj1, &val2);
14091 if (!SWIG_IsOK(ecode2)) {
14092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14093 }
14094 arg2 = static_cast< int >(val2);
14095 }
14096 if (obj2) {
d55e5bfc 14097 {
554f62e9
RD
14098 arg3 = &temp3;
14099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14100 }
554f62e9
RD
14101 }
14102 if (obj3) {
d55e5bfc 14103 {
554f62e9
RD
14104 arg4 = &temp4;
14105 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14106 }
554f62e9
RD
14107 }
14108 if (obj4) {
14109 ecode5 = SWIG_AsVal_long(obj4, &val5);
14110 if (!SWIG_IsOK(ecode5)) {
14111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14112 }
14113 arg5 = static_cast< long >(val5);
14114 }
14115 if (obj5) {
14116 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14117 if (!SWIG_IsOK(res6)) {
14118 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14119 }
14120 if (!argp6) {
14121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14122 }
554f62e9
RD
14123 arg6 = reinterpret_cast< wxValidator * >(argp6);
14124 }
14125 if (obj6) {
d55e5bfc 14126 {
554f62e9
RD
14127 arg7 = wxString_in_helper(obj6);
14128 if (arg7 == NULL) SWIG_fail;
14129 temp7 = true;
d55e5bfc 14130 }
554f62e9
RD
14131 }
14132 {
14133 if (!wxPyCheckForApp()) SWIG_fail;
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14140 {
14141 if (temp7)
14142 delete arg7;
14143 }
14144 return resultobj;
14145fail:
14146 {
14147 if (temp7)
14148 delete arg7;
14149 }
14150 return NULL;
d55e5bfc
RD
14151}
14152
14153
554f62e9
RD
14154SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14155 PyObject *resultobj = 0;
14156 wxScrollBar *result = 0 ;
14157
14158 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14159 {
14160 if (!wxPyCheckForApp()) SWIG_fail;
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = (wxScrollBar *)new wxScrollBar();
14163 wxPyEndAllowThreads(__tstate);
14164 if (PyErr_Occurred()) SWIG_fail;
14165 }
14166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14167 return resultobj;
14168fail:
14169 return NULL;
14170}
14171
14172
14173SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14174 PyObject *resultobj = 0;
14175 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14176 wxWindow *arg2 = (wxWindow *) 0 ;
14177 int arg3 = (int) -1 ;
14178 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14179 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14180 wxSize const &arg5_defvalue = wxDefaultSize ;
14181 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14182 long arg6 = (long) wxSB_HORIZONTAL ;
14183 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14184 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14185 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14186 wxString *arg8 = (wxString *) &arg8_defvalue ;
14187 bool result;
14188 void *argp1 = 0 ;
14189 int res1 = 0 ;
14190 void *argp2 = 0 ;
14191 int res2 = 0 ;
14192 int val3 ;
14193 int ecode3 = 0 ;
14194 wxPoint temp4 ;
14195 wxSize temp5 ;
14196 long val6 ;
14197 int ecode6 = 0 ;
14198 void *argp7 = 0 ;
14199 int res7 = 0 ;
14200 bool temp8 = false ;
14201 PyObject * obj0 = 0 ;
14202 PyObject * obj1 = 0 ;
14203 PyObject * obj2 = 0 ;
14204 PyObject * obj3 = 0 ;
14205 PyObject * obj4 = 0 ;
14206 PyObject * obj5 = 0 ;
14207 PyObject * obj6 = 0 ;
14208 PyObject * obj7 = 0 ;
14209 char * kwnames[] = {
14210 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14211 };
14212
14213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14215 if (!SWIG_IsOK(res1)) {
14216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14217 }
14218 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14220 if (!SWIG_IsOK(res2)) {
14221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14222 }
14223 arg2 = reinterpret_cast< wxWindow * >(argp2);
14224 if (obj2) {
14225 ecode3 = SWIG_AsVal_int(obj2, &val3);
14226 if (!SWIG_IsOK(ecode3)) {
14227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14228 }
14229 arg3 = static_cast< int >(val3);
14230 }
14231 if (obj3) {
d55e5bfc 14232 {
554f62e9
RD
14233 arg4 = &temp4;
14234 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14235 }
554f62e9
RD
14236 }
14237 if (obj4) {
093d3ff1 14238 {
554f62e9
RD
14239 arg5 = &temp5;
14240 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 14241 }
554f62e9
RD
14242 }
14243 if (obj5) {
14244 ecode6 = SWIG_AsVal_long(obj5, &val6);
14245 if (!SWIG_IsOK(ecode6)) {
14246 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14247 }
14248 arg6 = static_cast< long >(val6);
14249 }
14250 if (obj6) {
14251 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14252 if (!SWIG_IsOK(res7)) {
14253 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
a07a67e6 14254 }
554f62e9
RD
14255 if (!argp7) {
14256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14257 }
14258 arg7 = reinterpret_cast< wxValidator * >(argp7);
14259 }
14260 if (obj7) {
093d3ff1 14261 {
554f62e9
RD
14262 arg8 = wxString_in_helper(obj7);
14263 if (arg8 == NULL) SWIG_fail;
14264 temp8 = true;
093d3ff1 14265 }
554f62e9
RD
14266 }
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 {
14274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14275 }
14276 {
14277 if (temp8)
14278 delete arg8;
14279 }
14280 return resultobj;
14281fail:
14282 {
14283 if (temp8)
14284 delete arg8;
14285 }
14286 return NULL;
a07a67e6
RD
14287}
14288
14289
554f62e9
RD
14290SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14291 PyObject *resultobj = 0;
14292 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14293 int result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 PyObject *swig_obj[1] ;
14297
14298 if (!args) SWIG_fail;
14299 swig_obj[0] = args;
14300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14303 }
14304 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_From_int(static_cast< int >(result));
14312 return resultobj;
14313fail:
14314 return NULL;
d55e5bfc
RD
14315}
14316
14317
554f62e9
RD
14318SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14319 PyObject *resultobj = 0;
14320 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14321 int result;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 PyObject *swig_obj[1] ;
14325
14326 if (!args) SWIG_fail;
14327 swig_obj[0] = args;
14328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = SWIG_From_int(static_cast< int >(result));
14340 return resultobj;
14341fail:
14342 return NULL;
d55e5bfc
RD
14343}
14344
14345
554f62e9
RD
14346SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14349 int result;
14350 void *argp1 = 0 ;
14351 int res1 = 0 ;
14352 PyObject *swig_obj[1] ;
14353
14354 if (!args) SWIG_fail;
14355 swig_obj[0] = args;
14356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_From_int(static_cast< int >(result));
14368 return resultobj;
14369fail:
14370 return NULL;
d55e5bfc
RD
14371}
14372
14373
554f62e9
RD
14374SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14375 PyObject *resultobj = 0;
14376 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14377 int result;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 PyObject *swig_obj[1] ;
14381
14382 if (!args) SWIG_fail;
14383 swig_obj[0] = args;
14384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14385 if (!SWIG_IsOK(res1)) {
14386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14387 }
14388 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 result = (int)((wxScrollBar const *)arg1)->GetRange();
14392 wxPyEndAllowThreads(__tstate);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 resultobj = SWIG_From_int(static_cast< int >(result));
14396 return resultobj;
14397fail:
14398 return NULL;
d55e5bfc
RD
14399}
14400
14401
554f62e9
RD
14402SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14403 PyObject *resultobj = 0;
14404 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14405 bool result;
14406 void *argp1 = 0 ;
14407 int res1 = 0 ;
14408 PyObject *swig_obj[1] ;
14409
14410 if (!args) SWIG_fail;
14411 swig_obj[0] = args;
14412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14413 if (!SWIG_IsOK(res1)) {
14414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14415 }
14416 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 {
14424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14425 }
14426 return resultobj;
14427fail:
14428 return NULL;
14429}
14430
14431
14432SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj = 0;
14434 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14435 int arg2 ;
14436 void *argp1 = 0 ;
14437 int res1 = 0 ;
14438 int val2 ;
14439 int ecode2 = 0 ;
14440 PyObject * obj0 = 0 ;
14441 PyObject * obj1 = 0 ;
14442 char * kwnames[] = {
14443 (char *) "self",(char *) "viewStart", NULL
14444 };
14445
14446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14448 if (!SWIG_IsOK(res1)) {
14449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14450 }
14451 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14452 ecode2 = SWIG_AsVal_int(obj1, &val2);
14453 if (!SWIG_IsOK(ecode2)) {
14454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14455 }
14456 arg2 = static_cast< int >(val2);
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 (arg1)->SetThumbPosition(arg2);
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 resultobj = SWIG_Py_Void();
14464 return resultobj;
14465fail:
14466 return NULL;
14467}
14468
14469
14470SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14471 PyObject *resultobj = 0;
14472 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14473 SwigValueWrapper<wxVisualAttributes > result;
14474 int val1 ;
14475 int ecode1 = 0 ;
14476 PyObject * obj0 = 0 ;
14477 char * kwnames[] = {
14478 (char *) "variant", NULL
14479 };
14480
14481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14482 if (obj0) {
14483 ecode1 = SWIG_AsVal_int(obj0, &val1);
14484 if (!SWIG_IsOK(ecode1)) {
14485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14486 }
14487 arg1 = static_cast< wxWindowVariant >(val1);
14488 }
14489 {
14490 if (!wxPyCheckForApp()) SWIG_fail;
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14497 return resultobj;
14498fail:
14499 return NULL;
d55e5bfc
RD
14500}
14501
14502
554f62e9
RD
14503SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14504 PyObject *obj;
14505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14506 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14507 return SWIG_Py_Void();
d55e5bfc
RD
14508}
14509
554f62e9
RD
14510SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14511 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14512}
14513
554f62e9
RD
14514SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14515 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14516 return 1;
d55e5bfc
RD
14517}
14518
14519
554f62e9
RD
14520SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14521 PyObject *pyobj = 0;
14522
14523 {
d55e5bfc 14524#if wxUSE_UNICODE
554f62e9 14525 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14526#else
554f62e9 14527 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14528#endif
554f62e9
RD
14529 }
14530 return pyobj;
d55e5bfc
RD
14531}
14532
14533
554f62e9
RD
14534SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14535 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14536 return 1;
d55e5bfc
RD
14537}
14538
14539
554f62e9
RD
14540SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14541 PyObject *pyobj = 0;
14542
14543 {
d55e5bfc 14544#if wxUSE_UNICODE
554f62e9 14545 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14546#else
554f62e9 14547 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14548#endif
554f62e9
RD
14549 }
14550 return pyobj;
14551}
14552
14553
14554SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14555 PyObject *resultobj = 0;
14556 wxWindow *arg1 = (wxWindow *) 0 ;
14557 int arg2 = (int) -1 ;
14558 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14559 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14560 wxSize const &arg4_defvalue = wxDefaultSize ;
14561 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14562 long arg5 = (long) wxSP_HORIZONTAL ;
14563 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14564 wxString *arg6 = (wxString *) &arg6_defvalue ;
14565 wxSpinButton *result = 0 ;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 int val2 ;
14569 int ecode2 = 0 ;
14570 wxPoint temp3 ;
14571 wxSize temp4 ;
14572 long val5 ;
14573 int ecode5 = 0 ;
14574 bool temp6 = false ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 PyObject * obj2 = 0 ;
14578 PyObject * obj3 = 0 ;
14579 PyObject * obj4 = 0 ;
14580 PyObject * obj5 = 0 ;
14581 char * kwnames[] = {
14582 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14583 };
14584
14585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14589 }
14590 arg1 = reinterpret_cast< wxWindow * >(argp1);
14591 if (obj1) {
14592 ecode2 = SWIG_AsVal_int(obj1, &val2);
14593 if (!SWIG_IsOK(ecode2)) {
14594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14595 }
14596 arg2 = static_cast< int >(val2);
14597 }
14598 if (obj2) {
14599 {
14600 arg3 = &temp3;
14601 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14602 }
554f62e9
RD
14603 }
14604 if (obj3) {
d55e5bfc 14605 {
554f62e9
RD
14606 arg4 = &temp4;
14607 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14608 }
554f62e9
RD
14609 }
14610 if (obj4) {
14611 ecode5 = SWIG_AsVal_long(obj4, &val5);
14612 if (!SWIG_IsOK(ecode5)) {
14613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14614 }
14615 arg5 = static_cast< long >(val5);
14616 }
14617 if (obj5) {
093d3ff1 14618 {
554f62e9
RD
14619 arg6 = wxString_in_helper(obj5);
14620 if (arg6 == NULL) SWIG_fail;
14621 temp6 = true;
093d3ff1 14622 }
554f62e9
RD
14623 }
14624 {
14625 if (!wxPyCheckForApp()) SWIG_fail;
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14632 {
14633 if (temp6)
14634 delete arg6;
14635 }
14636 return resultobj;
14637fail:
14638 {
14639 if (temp6)
14640 delete arg6;
14641 }
14642 return NULL;
d55e5bfc
RD
14643}
14644
14645
554f62e9
RD
14646SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14647 PyObject *resultobj = 0;
14648 wxSpinButton *result = 0 ;
14649
14650 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14651 {
14652 if (!wxPyCheckForApp()) SWIG_fail;
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (wxSpinButton *)new wxSpinButton();
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14659 return resultobj;
14660fail:
14661 return NULL;
14662}
14663
14664
14665SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj = 0;
14667 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14668 wxWindow *arg2 = (wxWindow *) 0 ;
14669 int arg3 = (int) -1 ;
14670 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14671 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14672 wxSize const &arg5_defvalue = wxDefaultSize ;
14673 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14674 long arg6 = (long) wxSP_HORIZONTAL ;
14675 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14676 wxString *arg7 = (wxString *) &arg7_defvalue ;
14677 bool result;
14678 void *argp1 = 0 ;
14679 int res1 = 0 ;
14680 void *argp2 = 0 ;
14681 int res2 = 0 ;
14682 int val3 ;
14683 int ecode3 = 0 ;
14684 wxPoint temp4 ;
14685 wxSize temp5 ;
14686 long val6 ;
14687 int ecode6 = 0 ;
14688 bool temp7 = false ;
14689 PyObject * obj0 = 0 ;
14690 PyObject * obj1 = 0 ;
14691 PyObject * obj2 = 0 ;
14692 PyObject * obj3 = 0 ;
14693 PyObject * obj4 = 0 ;
14694 PyObject * obj5 = 0 ;
14695 PyObject * obj6 = 0 ;
14696 char * kwnames[] = {
14697 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14698 };
14699
14700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14702 if (!SWIG_IsOK(res1)) {
14703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14704 }
14705 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14707 if (!SWIG_IsOK(res2)) {
14708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14709 }
14710 arg2 = reinterpret_cast< wxWindow * >(argp2);
14711 if (obj2) {
14712 ecode3 = SWIG_AsVal_int(obj2, &val3);
14713 if (!SWIG_IsOK(ecode3)) {
14714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14715 }
14716 arg3 = static_cast< int >(val3);
14717 }
14718 if (obj3) {
d55e5bfc 14719 {
554f62e9
RD
14720 arg4 = &temp4;
14721 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14722 }
554f62e9
RD
14723 }
14724 if (obj4) {
d55e5bfc 14725 {
554f62e9
RD
14726 arg5 = &temp5;
14727 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14728 }
554f62e9
RD
14729 }
14730 if (obj5) {
14731 ecode6 = SWIG_AsVal_long(obj5, &val6);
14732 if (!SWIG_IsOK(ecode6)) {
14733 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14734 }
14735 arg6 = static_cast< long >(val6);
14736 }
14737 if (obj6) {
d55e5bfc 14738 {
554f62e9
RD
14739 arg7 = wxString_in_helper(obj6);
14740 if (arg7 == NULL) SWIG_fail;
14741 temp7 = true;
d55e5bfc 14742 }
554f62e9
RD
14743 }
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 {
14751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14752 }
14753 {
14754 if (temp7)
14755 delete arg7;
14756 }
14757 return resultobj;
14758fail:
14759 {
14760 if (temp7)
14761 delete arg7;
14762 }
14763 return NULL;
d55e5bfc
RD
14764}
14765
14766
554f62e9
RD
14767SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14768 PyObject *resultobj = 0;
14769 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14770 int result;
14771 void *argp1 = 0 ;
14772 int res1 = 0 ;
14773 PyObject *swig_obj[1] ;
14774
14775 if (!args) SWIG_fail;
14776 swig_obj[0] = args;
14777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14778 if (!SWIG_IsOK(res1)) {
14779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14780 }
14781 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = (int)((wxSpinButton const *)arg1)->GetValue();
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 resultobj = SWIG_From_int(static_cast< int >(result));
14789 return resultobj;
14790fail:
14791 return NULL;
d55e5bfc
RD
14792}
14793
14794
554f62e9
RD
14795SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14796 PyObject *resultobj = 0;
14797 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14798 int result;
14799 void *argp1 = 0 ;
14800 int res1 = 0 ;
14801 PyObject *swig_obj[1] ;
14802
14803 if (!args) SWIG_fail;
14804 swig_obj[0] = args;
14805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14808 }
14809 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14810 {
14811 PyThreadState* __tstate = wxPyBeginAllowThreads();
14812 result = (int)((wxSpinButton const *)arg1)->GetMin();
14813 wxPyEndAllowThreads(__tstate);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 resultobj = SWIG_From_int(static_cast< int >(result));
14817 return resultobj;
14818fail:
14819 return NULL;
d55e5bfc
RD
14820}
14821
14822
554f62e9
RD
14823SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14824 PyObject *resultobj = 0;
14825 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14826 int result;
14827 void *argp1 = 0 ;
14828 int res1 = 0 ;
14829 PyObject *swig_obj[1] ;
14830
14831 if (!args) SWIG_fail;
14832 swig_obj[0] = args;
14833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14834 if (!SWIG_IsOK(res1)) {
14835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14836 }
14837 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14838 {
14839 PyThreadState* __tstate = wxPyBeginAllowThreads();
14840 result = (int)((wxSpinButton const *)arg1)->GetMax();
14841 wxPyEndAllowThreads(__tstate);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 resultobj = SWIG_From_int(static_cast< int >(result));
14845 return resultobj;
14846fail:
14847 return NULL;
14848}
14849
14850
14851SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj = 0;
14853 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14854 int arg2 ;
14855 void *argp1 = 0 ;
14856 int res1 = 0 ;
14857 int val2 ;
14858 int ecode2 = 0 ;
14859 PyObject * obj0 = 0 ;
14860 PyObject * obj1 = 0 ;
14861 char * kwnames[] = {
14862 (char *) "self",(char *) "val", NULL
14863 };
14864
14865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14869 }
14870 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14871 ecode2 = SWIG_AsVal_int(obj1, &val2);
14872 if (!SWIG_IsOK(ecode2)) {
14873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14874 }
14875 arg2 = static_cast< int >(val2);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetValue(arg2);
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 resultobj = SWIG_Py_Void();
14883 return resultobj;
14884fail:
14885 return NULL;
14886}
14887
14888
14889SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj = 0;
14891 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14892 int arg2 ;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 int val2 ;
14896 int ecode2 = 0 ;
14897 PyObject * obj0 = 0 ;
14898 PyObject * obj1 = 0 ;
14899 char * kwnames[] = {
14900 (char *) "self",(char *) "minVal", NULL
14901 };
14902
14903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14907 }
14908 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14909 ecode2 = SWIG_AsVal_int(obj1, &val2);
14910 if (!SWIG_IsOK(ecode2)) {
14911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14912 }
14913 arg2 = static_cast< int >(val2);
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 (arg1)->SetMin(arg2);
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_Py_Void();
14921 return resultobj;
14922fail:
14923 return NULL;
14924}
14925
14926
14927SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14930 int arg2 ;
14931 void *argp1 = 0 ;
14932 int res1 = 0 ;
14933 int val2 ;
14934 int ecode2 = 0 ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 char * kwnames[] = {
14938 (char *) "self",(char *) "maxVal", NULL
14939 };
14940
14941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14945 }
14946 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14947 ecode2 = SWIG_AsVal_int(obj1, &val2);
14948 if (!SWIG_IsOK(ecode2)) {
14949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14950 }
14951 arg2 = static_cast< int >(val2);
14952 {
14953 PyThreadState* __tstate = wxPyBeginAllowThreads();
14954 (arg1)->SetMax(arg2);
14955 wxPyEndAllowThreads(__tstate);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 resultobj = SWIG_Py_Void();
14959 return resultobj;
14960fail:
14961 return NULL;
14962}
14963
14964
14965SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj = 0;
14967 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14968 int arg2 ;
14969 int arg3 ;
14970 void *argp1 = 0 ;
14971 int res1 = 0 ;
14972 int val2 ;
14973 int ecode2 = 0 ;
14974 int val3 ;
14975 int ecode3 = 0 ;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 PyObject * obj2 = 0 ;
14979 char * kwnames[] = {
14980 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14981 };
14982
14983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14987 }
14988 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14989 ecode2 = SWIG_AsVal_int(obj1, &val2);
14990 if (!SWIG_IsOK(ecode2)) {
14991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14992 }
14993 arg2 = static_cast< int >(val2);
14994 ecode3 = SWIG_AsVal_int(obj2, &val3);
14995 if (!SWIG_IsOK(ecode3)) {
14996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14997 }
14998 arg3 = static_cast< int >(val3);
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 (arg1)->SetRange(arg2,arg3);
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 resultobj = SWIG_Py_Void();
15006 return resultobj;
15007fail:
15008 return NULL;
d55e5bfc
RD
15009}
15010
15011
554f62e9
RD
15012SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15013 PyObject *resultobj = 0;
15014 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15015 bool result;
15016 void *argp1 = 0 ;
15017 int res1 = 0 ;
15018 PyObject *swig_obj[1] ;
15019
15020 if (!args) SWIG_fail;
15021 swig_obj[0] = args;
15022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15023 if (!SWIG_IsOK(res1)) {
15024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15025 }
15026 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 {
15034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15035 }
15036 return resultobj;
15037fail:
15038 return NULL;
d55e5bfc
RD
15039}
15040
15041
554f62e9
RD
15042SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj = 0;
15044 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15045 SwigValueWrapper<wxVisualAttributes > result;
15046 int val1 ;
15047 int ecode1 = 0 ;
15048 PyObject * obj0 = 0 ;
15049 char * kwnames[] = {
15050 (char *) "variant", NULL
15051 };
15052
15053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15054 if (obj0) {
15055 ecode1 = SWIG_AsVal_int(obj0, &val1);
15056 if (!SWIG_IsOK(ecode1)) {
15057 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15058 }
15059 arg1 = static_cast< wxWindowVariant >(val1);
15060 }
15061 {
15062 if (!wxPyCheckForApp()) SWIG_fail;
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15069 return resultobj;
15070fail:
15071 return NULL;
15072}
15073
15074
15075SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15076 PyObject *obj;
15077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15078 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15079 return SWIG_Py_Void();
15080}
15081
15082SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15083 return SWIG_Python_InitShadowInstance(args);
15084}
15085
15086SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj = 0;
15088 wxWindow *arg1 = (wxWindow *) 0 ;
15089 int arg2 = (int) -1 ;
15090 wxString const &arg3_defvalue = wxPyEmptyString ;
15091 wxString *arg3 = (wxString *) &arg3_defvalue ;
15092 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15093 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15094 wxSize const &arg5_defvalue = wxDefaultSize ;
15095 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15096 long arg6 = (long) wxSP_ARROW_KEYS ;
15097 int arg7 = (int) 0 ;
15098 int arg8 = (int) 100 ;
15099 int arg9 = (int) 0 ;
15100 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15101 wxString *arg10 = (wxString *) &arg10_defvalue ;
15102 wxSpinCtrl *result = 0 ;
15103 void *argp1 = 0 ;
15104 int res1 = 0 ;
15105 int val2 ;
15106 int ecode2 = 0 ;
15107 bool temp3 = false ;
15108 wxPoint temp4 ;
15109 wxSize temp5 ;
15110 long val6 ;
15111 int ecode6 = 0 ;
15112 int val7 ;
15113 int ecode7 = 0 ;
15114 int val8 ;
15115 int ecode8 = 0 ;
15116 int val9 ;
15117 int ecode9 = 0 ;
15118 bool temp10 = false ;
15119 PyObject * obj0 = 0 ;
15120 PyObject * obj1 = 0 ;
15121 PyObject * obj2 = 0 ;
15122 PyObject * obj3 = 0 ;
15123 PyObject * obj4 = 0 ;
15124 PyObject * obj5 = 0 ;
15125 PyObject * obj6 = 0 ;
15126 PyObject * obj7 = 0 ;
15127 PyObject * obj8 = 0 ;
15128 PyObject * obj9 = 0 ;
15129 char * kwnames[] = {
15130 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15131 };
15132
15133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15137 }
15138 arg1 = reinterpret_cast< wxWindow * >(argp1);
15139 if (obj1) {
15140 ecode2 = SWIG_AsVal_int(obj1, &val2);
15141 if (!SWIG_IsOK(ecode2)) {
15142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15143 }
15144 arg2 = static_cast< int >(val2);
15145 }
15146 if (obj2) {
d55e5bfc 15147 {
554f62e9
RD
15148 arg3 = wxString_in_helper(obj2);
15149 if (arg3 == NULL) SWIG_fail;
15150 temp3 = true;
d55e5bfc 15151 }
554f62e9
RD
15152 }
15153 if (obj3) {
d55e5bfc 15154 {
554f62e9
RD
15155 arg4 = &temp4;
15156 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15157 }
554f62e9
RD
15158 }
15159 if (obj4) {
d55e5bfc 15160 {
554f62e9
RD
15161 arg5 = &temp5;
15162 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15163 }
554f62e9
RD
15164 }
15165 if (obj5) {
15166 ecode6 = SWIG_AsVal_long(obj5, &val6);
15167 if (!SWIG_IsOK(ecode6)) {
15168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15169 }
15170 arg6 = static_cast< long >(val6);
15171 }
15172 if (obj6) {
15173 ecode7 = SWIG_AsVal_int(obj6, &val7);
15174 if (!SWIG_IsOK(ecode7)) {
15175 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15176 }
15177 arg7 = static_cast< int >(val7);
15178 }
15179 if (obj7) {
15180 ecode8 = SWIG_AsVal_int(obj7, &val8);
15181 if (!SWIG_IsOK(ecode8)) {
15182 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15183 }
15184 arg8 = static_cast< int >(val8);
15185 }
15186 if (obj8) {
15187 ecode9 = SWIG_AsVal_int(obj8, &val9);
15188 if (!SWIG_IsOK(ecode9)) {
15189 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15190 }
15191 arg9 = static_cast< int >(val9);
15192 }
15193 if (obj9) {
d55e5bfc 15194 {
554f62e9
RD
15195 arg10 = wxString_in_helper(obj9);
15196 if (arg10 == NULL) SWIG_fail;
15197 temp10 = true;
d55e5bfc 15198 }
554f62e9
RD
15199 }
15200 {
15201 if (!wxPyCheckForApp()) SWIG_fail;
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15208 {
15209 if (temp3)
15210 delete arg3;
15211 }
15212 {
15213 if (temp10)
15214 delete arg10;
15215 }
15216 return resultobj;
15217fail:
15218 {
15219 if (temp3)
15220 delete arg3;
15221 }
15222 {
15223 if (temp10)
15224 delete arg10;
15225 }
15226 return NULL;
d55e5bfc
RD
15227}
15228
15229
554f62e9
RD
15230SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15231 PyObject *resultobj = 0;
15232 wxSpinCtrl *result = 0 ;
15233
15234 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15235 {
15236 if (!wxPyCheckForApp()) SWIG_fail;
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = (wxSpinCtrl *)new wxSpinCtrl();
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15243 return resultobj;
15244fail:
15245 return NULL;
15246}
15247
15248
15249SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj = 0;
15251 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15252 wxWindow *arg2 = (wxWindow *) 0 ;
15253 int arg3 = (int) -1 ;
15254 wxString const &arg4_defvalue = wxPyEmptyString ;
15255 wxString *arg4 = (wxString *) &arg4_defvalue ;
15256 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15257 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15258 wxSize const &arg6_defvalue = wxDefaultSize ;
15259 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15260 long arg7 = (long) wxSP_ARROW_KEYS ;
15261 int arg8 = (int) 0 ;
15262 int arg9 = (int) 100 ;
15263 int arg10 = (int) 0 ;
15264 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15265 wxString *arg11 = (wxString *) &arg11_defvalue ;
15266 bool result;
15267 void *argp1 = 0 ;
15268 int res1 = 0 ;
15269 void *argp2 = 0 ;
15270 int res2 = 0 ;
15271 int val3 ;
15272 int ecode3 = 0 ;
15273 bool temp4 = false ;
15274 wxPoint temp5 ;
15275 wxSize temp6 ;
15276 long val7 ;
15277 int ecode7 = 0 ;
15278 int val8 ;
15279 int ecode8 = 0 ;
15280 int val9 ;
15281 int ecode9 = 0 ;
15282 int val10 ;
15283 int ecode10 = 0 ;
15284 bool temp11 = false ;
15285 PyObject * obj0 = 0 ;
15286 PyObject * obj1 = 0 ;
15287 PyObject * obj2 = 0 ;
15288 PyObject * obj3 = 0 ;
15289 PyObject * obj4 = 0 ;
15290 PyObject * obj5 = 0 ;
15291 PyObject * obj6 = 0 ;
15292 PyObject * obj7 = 0 ;
15293 PyObject * obj8 = 0 ;
15294 PyObject * obj9 = 0 ;
15295 PyObject * obj10 = 0 ;
15296 char * kwnames[] = {
15297 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15298 };
15299
15300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15302 if (!SWIG_IsOK(res1)) {
15303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15304 }
15305 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15307 if (!SWIG_IsOK(res2)) {
15308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15309 }
15310 arg2 = reinterpret_cast< wxWindow * >(argp2);
15311 if (obj2) {
15312 ecode3 = SWIG_AsVal_int(obj2, &val3);
15313 if (!SWIG_IsOK(ecode3)) {
15314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15315 }
15316 arg3 = static_cast< int >(val3);
15317 }
15318 if (obj3) {
093d3ff1 15319 {
554f62e9
RD
15320 arg4 = wxString_in_helper(obj3);
15321 if (arg4 == NULL) SWIG_fail;
15322 temp4 = true;
093d3ff1 15323 }
554f62e9
RD
15324 }
15325 if (obj4) {
093d3ff1 15326 {
554f62e9
RD
15327 arg5 = &temp5;
15328 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 15329 }
554f62e9
RD
15330 }
15331 if (obj5) {
d55e5bfc 15332 {
554f62e9
RD
15333 arg6 = &temp6;
15334 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15335 }
554f62e9
RD
15336 }
15337 if (obj6) {
15338 ecode7 = SWIG_AsVal_long(obj6, &val7);
15339 if (!SWIG_IsOK(ecode7)) {
15340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15341 }
15342 arg7 = static_cast< long >(val7);
15343 }
15344 if (obj7) {
15345 ecode8 = SWIG_AsVal_int(obj7, &val8);
15346 if (!SWIG_IsOK(ecode8)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15348 }
15349 arg8 = static_cast< int >(val8);
15350 }
15351 if (obj8) {
15352 ecode9 = SWIG_AsVal_int(obj8, &val9);
15353 if (!SWIG_IsOK(ecode9)) {
15354 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15355 }
15356 arg9 = static_cast< int >(val9);
15357 }
15358 if (obj9) {
15359 ecode10 = SWIG_AsVal_int(obj9, &val10);
15360 if (!SWIG_IsOK(ecode10)) {
15361 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15362 }
15363 arg10 = static_cast< int >(val10);
15364 }
15365 if (obj10) {
15366 {
15367 arg11 = wxString_in_helper(obj10);
15368 if (arg11 == NULL) SWIG_fail;
15369 temp11 = true;
15370 }
15371 }
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 {
15379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15380 }
15381 {
15382 if (temp4)
15383 delete arg4;
15384 }
15385 {
15386 if (temp11)
15387 delete arg11;
15388 }
15389 return resultobj;
15390fail:
15391 {
15392 if (temp4)
15393 delete arg4;
15394 }
15395 {
15396 if (temp11)
15397 delete arg11;
15398 }
15399 return NULL;
d55e5bfc
RD
15400}
15401
15402
554f62e9
RD
15403SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15404 PyObject *resultobj = 0;
15405 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15406 int result;
15407 void *argp1 = 0 ;
15408 int res1 = 0 ;
15409 PyObject *swig_obj[1] ;
15410
15411 if (!args) SWIG_fail;
15412 swig_obj[0] = args;
15413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15414 if (!SWIG_IsOK(res1)) {
15415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15416 }
15417 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = SWIG_From_int(static_cast< int >(result));
15425 return resultobj;
15426fail:
15427 return NULL;
15428}
15429
15430
15431SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj = 0;
15433 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15434 int arg2 ;
15435 void *argp1 = 0 ;
15436 int res1 = 0 ;
15437 int val2 ;
15438 int ecode2 = 0 ;
15439 PyObject * obj0 = 0 ;
15440 PyObject * obj1 = 0 ;
15441 char * kwnames[] = {
15442 (char *) "self",(char *) "value", NULL
15443 };
15444
15445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15449 }
15450 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15451 ecode2 = SWIG_AsVal_int(obj1, &val2);
15452 if (!SWIG_IsOK(ecode2)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15454 }
15455 arg2 = static_cast< int >(val2);
15456 {
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 (arg1)->SetValue(arg2);
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15462 resultobj = SWIG_Py_Void();
15463 return resultobj;
15464fail:
15465 return NULL;
15466}
15467
15468
15469SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15470 PyObject *resultobj = 0;
15471 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15472 wxString *arg2 = 0 ;
15473 void *argp1 = 0 ;
15474 int res1 = 0 ;
15475 bool temp2 = false ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "text", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15486 }
15487 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15488 {
15489 arg2 = wxString_in_helper(obj1);
15490 if (arg2 == NULL) SWIG_fail;
15491 temp2 = true;
15492 }
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 (arg1)->SetValue((wxString const &)*arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_Py_Void();
15500 {
15501 if (temp2)
15502 delete arg2;
15503 }
15504 return resultobj;
15505fail:
15506 {
15507 if (temp2)
15508 delete arg2;
15509 }
15510 return NULL;
15511}
15512
15513
15514SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj = 0;
15516 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15517 int arg2 ;
15518 int arg3 ;
15519 void *argp1 = 0 ;
15520 int res1 = 0 ;
15521 int val2 ;
15522 int ecode2 = 0 ;
15523 int val3 ;
15524 int ecode3 = 0 ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 PyObject * obj2 = 0 ;
15528 char * kwnames[] = {
15529 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15530 };
15531
15532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15534 if (!SWIG_IsOK(res1)) {
15535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15536 }
15537 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15538 ecode2 = SWIG_AsVal_int(obj1, &val2);
15539 if (!SWIG_IsOK(ecode2)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15541 }
15542 arg2 = static_cast< int >(val2);
15543 ecode3 = SWIG_AsVal_int(obj2, &val3);
15544 if (!SWIG_IsOK(ecode3)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15546 }
15547 arg3 = static_cast< int >(val3);
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 (arg1)->SetRange(arg2,arg3);
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 resultobj = SWIG_Py_Void();
15555 return resultobj;
15556fail:
15557 return NULL;
d55e5bfc
RD
15558}
15559
15560
554f62e9
RD
15561SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15562 PyObject *resultobj = 0;
15563 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15564 int result;
15565 void *argp1 = 0 ;
15566 int res1 = 0 ;
15567 PyObject *swig_obj[1] ;
15568
15569 if (!args) SWIG_fail;
15570 swig_obj[0] = args;
15571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15572 if (!SWIG_IsOK(res1)) {
15573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15574 }
15575 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15576 {
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15579 wxPyEndAllowThreads(__tstate);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 resultobj = SWIG_From_int(static_cast< int >(result));
15583 return resultobj;
15584fail:
15585 return NULL;
d55e5bfc
RD
15586}
15587
15588
554f62e9
RD
15589SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15590 PyObject *resultobj = 0;
15591 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15592 int result;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 PyObject *swig_obj[1] ;
15596
15597 if (!args) SWIG_fail;
15598 swig_obj[0] = args;
15599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15600 if (!SWIG_IsOK(res1)) {
15601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15602 }
15603 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 resultobj = SWIG_From_int(static_cast< int >(result));
15611 return resultobj;
15612fail:
15613 return NULL;
15614}
15615
15616
15617SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15618 PyObject *resultobj = 0;
15619 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15620 long arg2 ;
15621 long arg3 ;
15622 void *argp1 = 0 ;
15623 int res1 = 0 ;
15624 long val2 ;
15625 int ecode2 = 0 ;
15626 long val3 ;
15627 int ecode3 = 0 ;
15628 PyObject * obj0 = 0 ;
15629 PyObject * obj1 = 0 ;
15630 PyObject * obj2 = 0 ;
15631 char * kwnames[] = {
15632 (char *) "self",(char *) "_from",(char *) "to", NULL
15633 };
15634
15635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15637 if (!SWIG_IsOK(res1)) {
15638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15639 }
15640 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15641 ecode2 = SWIG_AsVal_long(obj1, &val2);
15642 if (!SWIG_IsOK(ecode2)) {
15643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15644 }
15645 arg2 = static_cast< long >(val2);
15646 ecode3 = SWIG_AsVal_long(obj2, &val3);
15647 if (!SWIG_IsOK(ecode3)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15649 }
15650 arg3 = static_cast< long >(val3);
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SetSelection(arg2,arg3);
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 resultobj = SWIG_Py_Void();
15658 return resultobj;
15659fail:
15660 return NULL;
15661}
15662
15663
15664SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15665 PyObject *resultobj = 0;
15666 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15667 SwigValueWrapper<wxVisualAttributes > result;
15668 int val1 ;
15669 int ecode1 = 0 ;
15670 PyObject * obj0 = 0 ;
15671 char * kwnames[] = {
15672 (char *) "variant", NULL
15673 };
15674
15675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15676 if (obj0) {
15677 ecode1 = SWIG_AsVal_int(obj0, &val1);
15678 if (!SWIG_IsOK(ecode1)) {
15679 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15680 }
15681 arg1 = static_cast< wxWindowVariant >(val1);
15682 }
15683 {
15684 if (!wxPyCheckForApp()) SWIG_fail;
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15691 return resultobj;
15692fail:
15693 return NULL;
d55e5bfc
RD
15694}
15695
15696
554f62e9
RD
15697SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15698 PyObject *obj;
15699 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15700 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15701 return SWIG_Py_Void();
d55e5bfc
RD
15702}
15703
554f62e9
RD
15704SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15705 return SWIG_Python_InitShadowInstance(args);
15706}
d55e5bfc 15707
554f62e9
RD
15708SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj = 0;
15710 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15711 int arg2 = (int) 0 ;
15712 wxSpinEvent *result = 0 ;
15713 int val1 ;
15714 int ecode1 = 0 ;
15715 int val2 ;
15716 int ecode2 = 0 ;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 char * kwnames[] = {
15720 (char *) "commandType",(char *) "winid", NULL
15721 };
15722
15723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15724 if (obj0) {
15725 ecode1 = SWIG_AsVal_int(obj0, &val1);
15726 if (!SWIG_IsOK(ecode1)) {
15727 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15728 }
15729 arg1 = static_cast< wxEventType >(val1);
15730 }
15731 if (obj1) {
15732 ecode2 = SWIG_AsVal_int(obj1, &val2);
15733 if (!SWIG_IsOK(ecode2)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15735 }
15736 arg2 = static_cast< int >(val2);
15737 }
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15745 return resultobj;
15746fail:
15747 return NULL;
d55e5bfc
RD
15748}
15749
15750
554f62e9
RD
15751SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15752 PyObject *resultobj = 0;
15753 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15754 int result;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 PyObject *swig_obj[1] ;
15758
15759 if (!args) SWIG_fail;
15760 swig_obj[0] = args;
15761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15762 if (!SWIG_IsOK(res1)) {
15763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15764 }
15765 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_From_int(static_cast< int >(result));
15773 return resultobj;
15774fail:
15775 return NULL;
15776}
15777
15778
15779SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj = 0;
15781 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15782 int arg2 ;
15783 void *argp1 = 0 ;
15784 int res1 = 0 ;
15785 int val2 ;
15786 int ecode2 = 0 ;
15787 PyObject * obj0 = 0 ;
15788 PyObject * obj1 = 0 ;
15789 char * kwnames[] = {
15790 (char *) "self",(char *) "pos", NULL
15791 };
15792
15793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15795 if (!SWIG_IsOK(res1)) {
15796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15797 }
15798 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15799 ecode2 = SWIG_AsVal_int(obj1, &val2);
15800 if (!SWIG_IsOK(ecode2)) {
15801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15802 }
15803 arg2 = static_cast< int >(val2);
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 (arg1)->SetPosition(arg2);
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 resultobj = SWIG_Py_Void();
15811 return resultobj;
15812fail:
15813 return NULL;
d55e5bfc
RD
15814}
15815
15816
554f62e9
RD
15817SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15818 PyObject *obj;
15819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15820 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15821 return SWIG_Py_Void();
d55e5bfc
RD
15822}
15823
554f62e9
RD
15824SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15825 return SWIG_Python_InitShadowInstance(args);
15826}
d55e5bfc 15827
554f62e9
RD
15828SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15829 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15830 return 1;
d55e5bfc
RD
15831}
15832
15833
554f62e9
RD
15834SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15835 PyObject *pyobj = 0;
15836
15837 {
15838#if wxUSE_UNICODE
15839 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15840#else
15841 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15842#endif
15843 }
15844 return pyobj;
d55e5bfc
RD
15845}
15846
15847
554f62e9
RD
15848SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15849 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15850 return 1;
15851}
15852
15853
15854SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15855 PyObject *pyobj = 0;
15856
15857 {
15858#if wxUSE_UNICODE
15859 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15860#else
15861 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15862#endif
15863 }
15864 return pyobj;
15865}
15866
15867
15868SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15869 PyObject *resultobj = 0;
15870 wxWindow *arg1 = (wxWindow *) 0 ;
15871 int arg2 = (int) -1 ;
15872 wxString const &arg3_defvalue = wxPyEmptyString ;
15873 wxString *arg3 = (wxString *) &arg3_defvalue ;
15874 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15875 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15876 wxSize const &arg5_defvalue = wxDefaultSize ;
15877 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15878 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15879 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15880 int arg7 = (int) 0 ;
15881 long arg8 = (long) wxRA_HORIZONTAL ;
15882 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15883 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15884 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15885 wxString *arg10 = (wxString *) &arg10_defvalue ;
15886 wxRadioBox *result = 0 ;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 int val2 ;
15890 int ecode2 = 0 ;
15891 bool temp3 = false ;
15892 wxPoint temp4 ;
15893 wxSize temp5 ;
15894 bool temp6 = false ;
15895 int val7 ;
15896 int ecode7 = 0 ;
15897 long val8 ;
15898 int ecode8 = 0 ;
15899 void *argp9 = 0 ;
15900 int res9 = 0 ;
15901 bool temp10 = false ;
15902 PyObject * obj0 = 0 ;
15903 PyObject * obj1 = 0 ;
15904 PyObject * obj2 = 0 ;
15905 PyObject * obj3 = 0 ;
15906 PyObject * obj4 = 0 ;
15907 PyObject * obj5 = 0 ;
15908 PyObject * obj6 = 0 ;
15909 PyObject * obj7 = 0 ;
15910 PyObject * obj8 = 0 ;
15911 PyObject * obj9 = 0 ;
15912 char * kwnames[] = {
15913 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15914 };
15915
15916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15918 if (!SWIG_IsOK(res1)) {
15919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15920 }
15921 arg1 = reinterpret_cast< wxWindow * >(argp1);
15922 if (obj1) {
15923 ecode2 = SWIG_AsVal_int(obj1, &val2);
15924 if (!SWIG_IsOK(ecode2)) {
15925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15926 }
15927 arg2 = static_cast< int >(val2);
15928 }
15929 if (obj2) {
093d3ff1 15930 {
554f62e9
RD
15931 arg3 = wxString_in_helper(obj2);
15932 if (arg3 == NULL) SWIG_fail;
15933 temp3 = true;
093d3ff1 15934 }
554f62e9
RD
15935 }
15936 if (obj3) {
093d3ff1 15937 {
554f62e9
RD
15938 arg4 = &temp4;
15939 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15940 }
554f62e9
RD
15941 }
15942 if (obj4) {
d55e5bfc 15943 {
554f62e9
RD
15944 arg5 = &temp5;
15945 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15946 }
554f62e9
RD
15947 }
15948 if (obj5) {
d55e5bfc 15949 {
554f62e9
RD
15950 if (! PySequence_Check(obj5)) {
15951 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15952 SWIG_fail;
15953 }
15954 arg6 = new wxArrayString;
15955 temp6 = true;
15956 int i, len=PySequence_Length(obj5);
15957 for (i=0; i<len; i++) {
15958 PyObject* item = PySequence_GetItem(obj5, i);
15959 wxString* s = wxString_in_helper(item);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 arg6->Add(*s);
15962 delete s;
15963 Py_DECREF(item);
15964 }
d55e5bfc 15965 }
554f62e9
RD
15966 }
15967 if (obj6) {
15968 ecode7 = SWIG_AsVal_int(obj6, &val7);
15969 if (!SWIG_IsOK(ecode7)) {
15970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15971 }
15972 arg7 = static_cast< int >(val7);
15973 }
15974 if (obj7) {
15975 ecode8 = SWIG_AsVal_long(obj7, &val8);
15976 if (!SWIG_IsOK(ecode8)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15978 }
15979 arg8 = static_cast< long >(val8);
15980 }
15981 if (obj8) {
15982 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15983 if (!SWIG_IsOK(res9)) {
15984 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15985 }
554f62e9
RD
15986 if (!argp9) {
15987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15988 }
554f62e9
RD
15989 arg9 = reinterpret_cast< wxValidator * >(argp9);
15990 }
15991 if (obj9) {
d55e5bfc 15992 {
554f62e9
RD
15993 arg10 = wxString_in_helper(obj9);
15994 if (arg10 == NULL) SWIG_fail;
15995 temp10 = true;
d55e5bfc 15996 }
554f62e9
RD
15997 }
15998 {
15999 if (!wxPyCheckForApp()) SWIG_fail;
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 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);
16002 wxPyEndAllowThreads(__tstate);
16003 if (PyErr_Occurred()) SWIG_fail;
16004 }
16005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16006 {
16007 if (temp3)
16008 delete arg3;
16009 }
16010 {
16011 if (temp6) delete arg6;
16012 }
16013 {
16014 if (temp10)
16015 delete arg10;
16016 }
16017 return resultobj;
16018fail:
16019 {
16020 if (temp3)
16021 delete arg3;
16022 }
16023 {
16024 if (temp6) delete arg6;
16025 }
16026 {
16027 if (temp10)
16028 delete arg10;
16029 }
16030 return NULL;
d55e5bfc
RD
16031}
16032
16033
554f62e9
RD
16034SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16035 PyObject *resultobj = 0;
16036 wxRadioBox *result = 0 ;
16037
16038 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16039 {
16040 if (!wxPyCheckForApp()) SWIG_fail;
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (wxRadioBox *)new wxRadioBox();
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16047 return resultobj;
16048fail:
16049 return NULL;
16050}
16051
16052
16053SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16054 PyObject *resultobj = 0;
16055 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16056 wxWindow *arg2 = (wxWindow *) 0 ;
16057 int arg3 = (int) -1 ;
16058 wxString const &arg4_defvalue = wxPyEmptyString ;
16059 wxString *arg4 = (wxString *) &arg4_defvalue ;
16060 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16061 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16062 wxSize const &arg6_defvalue = wxDefaultSize ;
16063 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16064 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16065 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16066 int arg8 = (int) 0 ;
16067 long arg9 = (long) wxRA_HORIZONTAL ;
16068 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16069 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16070 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16071 wxString *arg11 = (wxString *) &arg11_defvalue ;
16072 bool result;
16073 void *argp1 = 0 ;
16074 int res1 = 0 ;
16075 void *argp2 = 0 ;
16076 int res2 = 0 ;
16077 int val3 ;
16078 int ecode3 = 0 ;
16079 bool temp4 = false ;
16080 wxPoint temp5 ;
16081 wxSize temp6 ;
16082 bool temp7 = false ;
16083 int val8 ;
16084 int ecode8 = 0 ;
16085 long val9 ;
16086 int ecode9 = 0 ;
16087 void *argp10 = 0 ;
16088 int res10 = 0 ;
16089 bool temp11 = false ;
16090 PyObject * obj0 = 0 ;
16091 PyObject * obj1 = 0 ;
16092 PyObject * obj2 = 0 ;
16093 PyObject * obj3 = 0 ;
16094 PyObject * obj4 = 0 ;
16095 PyObject * obj5 = 0 ;
16096 PyObject * obj6 = 0 ;
16097 PyObject * obj7 = 0 ;
16098 PyObject * obj8 = 0 ;
16099 PyObject * obj9 = 0 ;
16100 PyObject * obj10 = 0 ;
16101 char * kwnames[] = {
16102 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16103 };
16104
16105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16107 if (!SWIG_IsOK(res1)) {
16108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16109 }
16110 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16112 if (!SWIG_IsOK(res2)) {
16113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16114 }
16115 arg2 = reinterpret_cast< wxWindow * >(argp2);
16116 if (obj2) {
16117 ecode3 = SWIG_AsVal_int(obj2, &val3);
16118 if (!SWIG_IsOK(ecode3)) {
16119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16120 }
16121 arg3 = static_cast< int >(val3);
16122 }
16123 if (obj3) {
093d3ff1 16124 {
554f62e9
RD
16125 arg4 = wxString_in_helper(obj3);
16126 if (arg4 == NULL) SWIG_fail;
16127 temp4 = true;
093d3ff1 16128 }
554f62e9
RD
16129 }
16130 if (obj4) {
d55e5bfc 16131 {
554f62e9
RD
16132 arg5 = &temp5;
16133 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16134 }
554f62e9
RD
16135 }
16136 if (obj5) {
093d3ff1 16137 {
554f62e9
RD
16138 arg6 = &temp6;
16139 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 16140 }
554f62e9
RD
16141 }
16142 if (obj6) {
093d3ff1 16143 {
554f62e9
RD
16144 if (! PySequence_Check(obj6)) {
16145 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16146 SWIG_fail;
16147 }
16148 arg7 = new wxArrayString;
16149 temp7 = true;
16150 int i, len=PySequence_Length(obj6);
16151 for (i=0; i<len; i++) {
16152 PyObject* item = PySequence_GetItem(obj6, i);
16153 wxString* s = wxString_in_helper(item);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 arg7->Add(*s);
16156 delete s;
16157 Py_DECREF(item);
16158 }
093d3ff1 16159 }
554f62e9
RD
16160 }
16161 if (obj7) {
16162 ecode8 = SWIG_AsVal_int(obj7, &val8);
16163 if (!SWIG_IsOK(ecode8)) {
16164 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16165 }
16166 arg8 = static_cast< int >(val8);
16167 }
16168 if (obj8) {
16169 ecode9 = SWIG_AsVal_long(obj8, &val9);
16170 if (!SWIG_IsOK(ecode9)) {
16171 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16172 }
16173 arg9 = static_cast< long >(val9);
16174 }
16175 if (obj9) {
16176 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16177 if (!SWIG_IsOK(res10)) {
16178 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 16179 }
554f62e9
RD
16180 if (!argp10) {
16181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 16182 }
554f62e9
RD
16183 arg10 = reinterpret_cast< wxValidator * >(argp10);
16184 }
16185 if (obj10) {
d55e5bfc 16186 {
554f62e9
RD
16187 arg11 = wxString_in_helper(obj10);
16188 if (arg11 == NULL) SWIG_fail;
16189 temp11 = true;
d55e5bfc 16190 }
554f62e9
RD
16191 }
16192 {
16193 PyThreadState* __tstate = wxPyBeginAllowThreads();
16194 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);
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 {
16199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16200 }
16201 {
16202 if (temp4)
16203 delete arg4;
16204 }
16205 {
16206 if (temp7) delete arg7;
16207 }
16208 {
16209 if (temp11)
16210 delete arg11;
16211 }
16212 return resultobj;
16213fail:
16214 {
16215 if (temp4)
16216 delete arg4;
16217 }
16218 {
16219 if (temp7) delete arg7;
16220 }
16221 {
16222 if (temp11)
16223 delete arg11;
16224 }
16225 return NULL;
16226}
16227
16228
16229SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16230 PyObject *resultobj = 0;
16231 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16232 int arg2 ;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 int val2 ;
16236 int ecode2 = 0 ;
16237 PyObject * obj0 = 0 ;
16238 PyObject * obj1 = 0 ;
16239 char * kwnames[] = {
16240 (char *) "self",(char *) "n", NULL
16241 };
16242
16243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16245 if (!SWIG_IsOK(res1)) {
16246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16247 }
16248 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16249 ecode2 = SWIG_AsVal_int(obj1, &val2);
16250 if (!SWIG_IsOK(ecode2)) {
16251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16252 }
16253 arg2 = static_cast< int >(val2);
16254 {
16255 PyThreadState* __tstate = wxPyBeginAllowThreads();
16256 (arg1)->SetSelection(arg2);
16257 wxPyEndAllowThreads(__tstate);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 resultobj = SWIG_Py_Void();
16261 return resultobj;
16262fail:
16263 return NULL;
d55e5bfc
RD
16264}
16265
16266
554f62e9
RD
16267SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16268 PyObject *resultobj = 0;
16269 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16270 int result;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 PyObject *swig_obj[1] ;
16274
16275 if (!args) SWIG_fail;
16276 swig_obj[0] = args;
16277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16280 }
16281 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 resultobj = SWIG_From_int(static_cast< int >(result));
16289 return resultobj;
16290fail:
16291 return NULL;
4896ac9e
RD
16292}
16293
16294
554f62e9
RD
16295SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16296 PyObject *resultobj = 0;
16297 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16298 wxString result;
16299 void *argp1 = 0 ;
16300 int res1 = 0 ;
16301 PyObject *swig_obj[1] ;
16302
16303 if (!args) SWIG_fail;
16304 swig_obj[0] = args;
16305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16308 }
16309 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16313 wxPyEndAllowThreads(__tstate);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 {
16317#if wxUSE_UNICODE
16318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16319#else
16320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16321#endif
16322 }
16323 return resultobj;
16324fail:
16325 return NULL;
16326}
16327
16328
16329SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj = 0;
16331 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16332 wxString *arg2 = 0 ;
16333 bool result;
16334 void *argp1 = 0 ;
16335 int res1 = 0 ;
16336 bool temp2 = false ;
16337 PyObject * obj0 = 0 ;
16338 PyObject * obj1 = 0 ;
16339 char * kwnames[] = {
16340 (char *) "self",(char *) "s", NULL
16341 };
16342
16343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16345 if (!SWIG_IsOK(res1)) {
16346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16347 }
16348 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16349 {
16350 arg2 = wxString_in_helper(obj1);
16351 if (arg2 == NULL) SWIG_fail;
16352 temp2 = true;
16353 }
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16357 wxPyEndAllowThreads(__tstate);
16358 if (PyErr_Occurred()) SWIG_fail;
16359 }
16360 {
16361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16362 }
16363 {
16364 if (temp2)
16365 delete arg2;
16366 }
16367 return resultobj;
16368fail:
16369 {
16370 if (temp2)
16371 delete arg2;
16372 }
16373 return NULL;
d55e5bfc
RD
16374}
16375
16376
554f62e9
RD
16377SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16378 PyObject *resultobj = 0;
16379 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16380 size_t result;
554f62e9
RD
16381 void *argp1 = 0 ;
16382 int res1 = 0 ;
16383 PyObject *swig_obj[1] ;
16384
16385 if (!args) SWIG_fail;
16386 swig_obj[0] = args;
16387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16388 if (!SWIG_IsOK(res1)) {
16389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16390 }
16391 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16394 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
554f62e9
RD
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
1c71765a 16398 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
554f62e9
RD
16399 return resultobj;
16400fail:
16401 return NULL;
16402}
16403
16404
16405SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16406 PyObject *resultobj = 0;
16407 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16408 wxString *arg2 = 0 ;
16409 int result;
16410 void *argp1 = 0 ;
16411 int res1 = 0 ;
16412 bool temp2 = false ;
16413 PyObject * obj0 = 0 ;
16414 PyObject * obj1 = 0 ;
16415 char * kwnames[] = {
16416 (char *) "self",(char *) "s", NULL
16417 };
16418
16419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16421 if (!SWIG_IsOK(res1)) {
16422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16423 }
16424 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16425 {
16426 arg2 = wxString_in_helper(obj1);
16427 if (arg2 == NULL) SWIG_fail;
16428 temp2 = true;
16429 }
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16433 wxPyEndAllowThreads(__tstate);
16434 if (PyErr_Occurred()) SWIG_fail;
16435 }
16436 resultobj = SWIG_From_int(static_cast< int >(result));
16437 {
16438 if (temp2)
16439 delete arg2;
16440 }
16441 return resultobj;
16442fail:
16443 {
16444 if (temp2)
16445 delete arg2;
16446 }
16447 return NULL;
16448}
16449
16450
16451SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj = 0;
16453 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16454 int arg2 ;
16455 wxString result;
16456 void *argp1 = 0 ;
16457 int res1 = 0 ;
16458 int val2 ;
16459 int ecode2 = 0 ;
16460 PyObject * obj0 = 0 ;
16461 PyObject * obj1 = 0 ;
16462 char * kwnames[] = {
16463 (char *) "self",(char *) "n", NULL
16464 };
16465
16466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16468 if (!SWIG_IsOK(res1)) {
16469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16470 }
16471 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16472 ecode2 = SWIG_AsVal_int(obj1, &val2);
16473 if (!SWIG_IsOK(ecode2)) {
16474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16475 }
16476 arg2 = static_cast< int >(val2);
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484#if wxUSE_UNICODE
16485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16486#else
16487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16488#endif
16489 }
16490 return resultobj;
16491fail:
16492 return NULL;
16493}
16494
16495
16496SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16497 PyObject *resultobj = 0;
16498 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16499 int arg2 ;
16500 wxString *arg3 = 0 ;
16501 void *argp1 = 0 ;
16502 int res1 = 0 ;
16503 int val2 ;
16504 int ecode2 = 0 ;
16505 bool temp3 = false ;
16506 PyObject * obj0 = 0 ;
16507 PyObject * obj1 = 0 ;
16508 PyObject * obj2 = 0 ;
16509 char * kwnames[] = {
16510 (char *) "self",(char *) "n",(char *) "label", NULL
16511 };
16512
16513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16515 if (!SWIG_IsOK(res1)) {
16516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16517 }
16518 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16519 ecode2 = SWIG_AsVal_int(obj1, &val2);
16520 if (!SWIG_IsOK(ecode2)) {
16521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16522 }
16523 arg2 = static_cast< int >(val2);
16524 {
16525 arg3 = wxString_in_helper(obj2);
16526 if (arg3 == NULL) SWIG_fail;
16527 temp3 = true;
16528 }
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 (arg1)->SetString(arg2,(wxString const &)*arg3);
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 resultobj = SWIG_Py_Void();
16536 {
16537 if (temp3)
16538 delete arg3;
16539 }
16540 return resultobj;
16541fail:
16542 {
16543 if (temp3)
16544 delete arg3;
16545 }
16546 return NULL;
16547}
16548
16549
16550SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16551 PyObject *resultobj = 0;
16552 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16553 unsigned int arg2 ;
554f62e9
RD
16554 bool arg3 = (bool) true ;
16555 void *argp1 = 0 ;
16556 int res1 = 0 ;
50f151d7 16557 unsigned int val2 ;
554f62e9
RD
16558 int ecode2 = 0 ;
16559 bool val3 ;
16560 int ecode3 = 0 ;
16561 PyObject * obj0 = 0 ;
16562 PyObject * obj1 = 0 ;
16563 PyObject * obj2 = 0 ;
16564 char * kwnames[] = {
16565 (char *) "self",(char *) "n",(char *) "enable", NULL
16566 };
16567
16568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16570 if (!SWIG_IsOK(res1)) {
16571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16572 }
16573 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16574 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16575 if (!SWIG_IsOK(ecode2)) {
50f151d7 16576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16577 }
50f151d7 16578 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16579 if (obj2) {
16580 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16581 if (!SWIG_IsOK(ecode3)) {
16582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16583 }
16584 arg3 = static_cast< bool >(val3);
16585 }
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 (arg1)->Enable(arg2,arg3);
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 resultobj = SWIG_Py_Void();
16593 return resultobj;
16594fail:
16595 return NULL;
16596}
16597
16598
16599SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16600 PyObject *resultobj = 0;
16601 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16602 unsigned int arg2 ;
554f62e9
RD
16603 bool arg3 = (bool) true ;
16604 void *argp1 = 0 ;
16605 int res1 = 0 ;
50f151d7 16606 unsigned int val2 ;
554f62e9
RD
16607 int ecode2 = 0 ;
16608 bool val3 ;
16609 int ecode3 = 0 ;
16610 PyObject * obj0 = 0 ;
16611 PyObject * obj1 = 0 ;
16612 PyObject * obj2 = 0 ;
16613 char * kwnames[] = {
16614 (char *) "self",(char *) "n",(char *) "show", NULL
16615 };
16616
16617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16619 if (!SWIG_IsOK(res1)) {
16620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16621 }
16622 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16623 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16624 if (!SWIG_IsOK(ecode2)) {
50f151d7 16625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16626 }
50f151d7 16627 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16628 if (obj2) {
16629 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16630 if (!SWIG_IsOK(ecode3)) {
16631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16632 }
16633 arg3 = static_cast< bool >(val3);
16634 }
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 (arg1)->Show(arg2,arg3);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_Py_Void();
16642 return resultobj;
16643fail:
16644 return NULL;
d55e5bfc
RD
16645}
16646
16647
50f151d7
RD
16648SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj = 0;
16650 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16651 unsigned int arg2 ;
16652 bool result;
16653 void *argp1 = 0 ;
16654 int res1 = 0 ;
16655 unsigned int val2 ;
16656 int ecode2 = 0 ;
16657 PyObject * obj0 = 0 ;
16658 PyObject * obj1 = 0 ;
16659 char * kwnames[] = {
16660 (char *) "self",(char *) "n", NULL
16661 };
16662
16663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16665 if (!SWIG_IsOK(res1)) {
16666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16667 }
16668 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16669 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16670 if (!SWIG_IsOK(ecode2)) {
16671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16672 }
16673 arg2 = static_cast< unsigned int >(val2);
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 {
16681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16682 }
16683 return resultobj;
16684fail:
16685 return NULL;
16686}
16687
16688
16689SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16690 PyObject *resultobj = 0;
16691 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16692 unsigned int arg2 ;
16693 bool result;
16694 void *argp1 = 0 ;
16695 int res1 = 0 ;
16696 unsigned int val2 ;
16697 int ecode2 = 0 ;
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
16700 char * kwnames[] = {
16701 (char *) "self",(char *) "n", NULL
16702 };
16703
16704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16706 if (!SWIG_IsOK(res1)) {
16707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16708 }
16709 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16710 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16711 if (!SWIG_IsOK(ecode2)) {
16712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16713 }
16714 arg2 = static_cast< unsigned int >(val2);
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 {
16722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16723 }
16724 return resultobj;
16725fail:
16726 return NULL;
16727}
16728
16729
554f62e9
RD
16730SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16731 PyObject *resultobj = 0;
16732 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16733 unsigned int result;
554f62e9
RD
16734 void *argp1 = 0 ;
16735 int res1 = 0 ;
16736 PyObject *swig_obj[1] ;
16737
16738 if (!args) SWIG_fail;
16739 swig_obj[0] = args;
16740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16741 if (!SWIG_IsOK(res1)) {
16742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16743 }
16744 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16747 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
554f62e9
RD
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
50f151d7 16751 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
16752 return resultobj;
16753fail:
16754 return NULL;
d55e5bfc
RD
16755}
16756
16757
554f62e9
RD
16758SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16759 PyObject *resultobj = 0;
16760 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16761 unsigned int result;
554f62e9
RD
16762 void *argp1 = 0 ;
16763 int res1 = 0 ;
16764 PyObject *swig_obj[1] ;
16765
16766 if (!args) SWIG_fail;
16767 swig_obj[0] = args;
16768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16769 if (!SWIG_IsOK(res1)) {
16770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16771 }
16772 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16775 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
554f62e9
RD
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
50f151d7 16779 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
16780 return resultobj;
16781fail:
16782 return NULL;
16783}
16784
16785
16786SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16787 PyObject *resultobj = 0;
16788 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16789 int arg2 ;
16790 wxDirection arg3 ;
16791 long arg4 ;
16792 int result;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
16795 int val2 ;
16796 int ecode2 = 0 ;
16797 int val3 ;
16798 int ecode3 = 0 ;
16799 long val4 ;
16800 int ecode4 = 0 ;
16801 PyObject * obj0 = 0 ;
16802 PyObject * obj1 = 0 ;
16803 PyObject * obj2 = 0 ;
16804 PyObject * obj3 = 0 ;
16805 char * kwnames[] = {
16806 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16807 };
16808
16809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16811 if (!SWIG_IsOK(res1)) {
16812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16813 }
16814 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16815 ecode2 = SWIG_AsVal_int(obj1, &val2);
16816 if (!SWIG_IsOK(ecode2)) {
16817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16818 }
16819 arg2 = static_cast< int >(val2);
16820 ecode3 = SWIG_AsVal_int(obj2, &val3);
16821 if (!SWIG_IsOK(ecode3)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16823 }
16824 arg3 = static_cast< wxDirection >(val3);
16825 ecode4 = SWIG_AsVal_long(obj3, &val4);
16826 if (!SWIG_IsOK(ecode4)) {
16827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16828 }
16829 arg4 = static_cast< long >(val4);
16830 {
16831 PyThreadState* __tstate = wxPyBeginAllowThreads();
16832 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16833 wxPyEndAllowThreads(__tstate);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 }
16836 resultobj = SWIG_From_int(static_cast< int >(result));
16837 return resultobj;
16838fail:
16839 return NULL;
16840}
16841
16842
16843SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16844 PyObject *resultobj = 0;
16845 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16846 SwigValueWrapper<wxVisualAttributes > result;
16847 int val1 ;
16848 int ecode1 = 0 ;
16849 PyObject * obj0 = 0 ;
16850 char * kwnames[] = {
16851 (char *) "variant", NULL
16852 };
16853
16854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16855 if (obj0) {
16856 ecode1 = SWIG_AsVal_int(obj0, &val1);
16857 if (!SWIG_IsOK(ecode1)) {
16858 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16859 }
16860 arg1 = static_cast< wxWindowVariant >(val1);
16861 }
16862 {
16863 if (!wxPyCheckForApp()) SWIG_fail;
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16870 return resultobj;
16871fail:
16872 return NULL;
16873}
16874
16875
16876SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16877 PyObject *obj;
16878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16879 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16880 return SWIG_Py_Void();
16881}
16882
16883SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16884 return SWIG_Python_InitShadowInstance(args);
16885}
16886
16887SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj = 0;
16889 wxWindow *arg1 = (wxWindow *) 0 ;
16890 int arg2 = (int) -1 ;
16891 wxString const &arg3_defvalue = wxPyEmptyString ;
16892 wxString *arg3 = (wxString *) &arg3_defvalue ;
16893 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16894 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16895 wxSize const &arg5_defvalue = wxDefaultSize ;
16896 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16897 long arg6 = (long) 0 ;
16898 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16899 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16900 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16901 wxString *arg8 = (wxString *) &arg8_defvalue ;
16902 wxRadioButton *result = 0 ;
16903 void *argp1 = 0 ;
16904 int res1 = 0 ;
16905 int val2 ;
16906 int ecode2 = 0 ;
16907 bool temp3 = false ;
16908 wxPoint temp4 ;
16909 wxSize temp5 ;
16910 long val6 ;
16911 int ecode6 = 0 ;
16912 void *argp7 = 0 ;
16913 int res7 = 0 ;
16914 bool temp8 = 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 char * kwnames[] = {
16924 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16925 };
16926
16927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16929 if (!SWIG_IsOK(res1)) {
16930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16931 }
16932 arg1 = reinterpret_cast< wxWindow * >(argp1);
16933 if (obj1) {
16934 ecode2 = SWIG_AsVal_int(obj1, &val2);
16935 if (!SWIG_IsOK(ecode2)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16937 }
16938 arg2 = static_cast< int >(val2);
16939 }
16940 if (obj2) {
d55e5bfc 16941 {
554f62e9
RD
16942 arg3 = wxString_in_helper(obj2);
16943 if (arg3 == NULL) SWIG_fail;
16944 temp3 = true;
d55e5bfc 16945 }
554f62e9
RD
16946 }
16947 if (obj3) {
d55e5bfc 16948 {
554f62e9
RD
16949 arg4 = &temp4;
16950 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16951 }
554f62e9
RD
16952 }
16953 if (obj4) {
d55e5bfc 16954 {
554f62e9
RD
16955 arg5 = &temp5;
16956 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16957 }
554f62e9
RD
16958 }
16959 if (obj5) {
16960 ecode6 = SWIG_AsVal_long(obj5, &val6);
16961 if (!SWIG_IsOK(ecode6)) {
16962 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16963 }
16964 arg6 = static_cast< long >(val6);
16965 }
16966 if (obj6) {
16967 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16968 if (!SWIG_IsOK(res7)) {
16969 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 16970 }
554f62e9
RD
16971 if (!argp7) {
16972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 16973 }
554f62e9
RD
16974 arg7 = reinterpret_cast< wxValidator * >(argp7);
16975 }
16976 if (obj7) {
d55e5bfc 16977 {
554f62e9
RD
16978 arg8 = wxString_in_helper(obj7);
16979 if (arg8 == NULL) SWIG_fail;
16980 temp8 = true;
d55e5bfc 16981 }
554f62e9
RD
16982 }
16983 {
16984 if (!wxPyCheckForApp()) SWIG_fail;
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16991 {
16992 if (temp3)
16993 delete arg3;
16994 }
16995 {
16996 if (temp8)
16997 delete arg8;
16998 }
16999 return resultobj;
17000fail:
17001 {
17002 if (temp3)
17003 delete arg3;
17004 }
17005 {
17006 if (temp8)
17007 delete arg8;
17008 }
17009 return NULL;
d55e5bfc
RD
17010}
17011
17012
554f62e9
RD
17013SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17014 PyObject *resultobj = 0;
17015 wxRadioButton *result = 0 ;
17016
17017 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17018 {
17019 if (!wxPyCheckForApp()) SWIG_fail;
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = (wxRadioButton *)new wxRadioButton();
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17026 return resultobj;
17027fail:
17028 return NULL;
17029}
17030
17031
17032SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17035 wxWindow *arg2 = (wxWindow *) 0 ;
17036 int arg3 = (int) -1 ;
17037 wxString const &arg4_defvalue = wxPyEmptyString ;
17038 wxString *arg4 = (wxString *) &arg4_defvalue ;
17039 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17040 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17041 wxSize const &arg6_defvalue = wxDefaultSize ;
17042 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17043 long arg7 = (long) 0 ;
17044 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17045 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17046 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17047 wxString *arg9 = (wxString *) &arg9_defvalue ;
17048 bool result;
17049 void *argp1 = 0 ;
17050 int res1 = 0 ;
17051 void *argp2 = 0 ;
17052 int res2 = 0 ;
17053 int val3 ;
17054 int ecode3 = 0 ;
17055 bool temp4 = false ;
17056 wxPoint temp5 ;
17057 wxSize temp6 ;
17058 long val7 ;
17059 int ecode7 = 0 ;
17060 void *argp8 = 0 ;
17061 int res8 = 0 ;
17062 bool temp9 = false ;
17063 PyObject * obj0 = 0 ;
17064 PyObject * obj1 = 0 ;
17065 PyObject * obj2 = 0 ;
17066 PyObject * obj3 = 0 ;
17067 PyObject * obj4 = 0 ;
17068 PyObject * obj5 = 0 ;
17069 PyObject * obj6 = 0 ;
17070 PyObject * obj7 = 0 ;
17071 PyObject * obj8 = 0 ;
17072 char * kwnames[] = {
17073 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17074 };
17075
17076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17078 if (!SWIG_IsOK(res1)) {
17079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17080 }
17081 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17083 if (!SWIG_IsOK(res2)) {
17084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17085 }
17086 arg2 = reinterpret_cast< wxWindow * >(argp2);
17087 if (obj2) {
17088 ecode3 = SWIG_AsVal_int(obj2, &val3);
17089 if (!SWIG_IsOK(ecode3)) {
17090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17091 }
17092 arg3 = static_cast< int >(val3);
17093 }
17094 if (obj3) {
d55e5bfc 17095 {
554f62e9
RD
17096 arg4 = wxString_in_helper(obj3);
17097 if (arg4 == NULL) SWIG_fail;
17098 temp4 = true;
d55e5bfc 17099 }
554f62e9
RD
17100 }
17101 if (obj4) {
d55e5bfc 17102 {
554f62e9
RD
17103 arg5 = &temp5;
17104 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17105 }
554f62e9
RD
17106 }
17107 if (obj5) {
d55e5bfc 17108 {
554f62e9
RD
17109 arg6 = &temp6;
17110 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17111 }
554f62e9
RD
17112 }
17113 if (obj6) {
17114 ecode7 = SWIG_AsVal_long(obj6, &val7);
17115 if (!SWIG_IsOK(ecode7)) {
17116 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17117 }
17118 arg7 = static_cast< long >(val7);
17119 }
17120 if (obj7) {
17121 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17122 if (!SWIG_IsOK(res8)) {
17123 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17124 }
17125 if (!argp8) {
17126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17127 }
554f62e9
RD
17128 arg8 = reinterpret_cast< wxValidator * >(argp8);
17129 }
17130 if (obj8) {
d55e5bfc 17131 {
554f62e9
RD
17132 arg9 = wxString_in_helper(obj8);
17133 if (arg9 == NULL) SWIG_fail;
17134 temp9 = true;
d55e5bfc 17135 }
554f62e9
RD
17136 }
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 {
17144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17145 }
17146 {
17147 if (temp4)
17148 delete arg4;
17149 }
17150 {
17151 if (temp9)
17152 delete arg9;
17153 }
17154 return resultobj;
17155fail:
17156 {
17157 if (temp4)
17158 delete arg4;
17159 }
17160 {
17161 if (temp9)
17162 delete arg9;
17163 }
17164 return NULL;
d55e5bfc
RD
17165}
17166
17167
554f62e9
RD
17168SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17169 PyObject *resultobj = 0;
17170 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17171 bool result;
17172 void *argp1 = 0 ;
17173 int res1 = 0 ;
17174 PyObject *swig_obj[1] ;
17175
17176 if (!args) SWIG_fail;
17177 swig_obj[0] = args;
17178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17179 if (!SWIG_IsOK(res1)) {
17180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17181 }
17182 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (bool)(arg1)->GetValue();
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 {
17190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17191 }
17192 return resultobj;
17193fail:
17194 return NULL;
17195}
17196
17197
17198SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17199 PyObject *resultobj = 0;
17200 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17201 bool arg2 ;
17202 void *argp1 = 0 ;
17203 int res1 = 0 ;
17204 bool val2 ;
17205 int ecode2 = 0 ;
17206 PyObject * obj0 = 0 ;
17207 PyObject * obj1 = 0 ;
17208 char * kwnames[] = {
17209 (char *) "self",(char *) "value", NULL
17210 };
17211
17212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17214 if (!SWIG_IsOK(res1)) {
17215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17216 }
17217 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17218 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17219 if (!SWIG_IsOK(ecode2)) {
17220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17221 }
17222 arg2 = static_cast< bool >(val2);
17223 {
17224 PyThreadState* __tstate = wxPyBeginAllowThreads();
17225 (arg1)->SetValue(arg2);
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = SWIG_Py_Void();
17230 return resultobj;
17231fail:
17232 return NULL;
17233}
17234
17235
17236SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj = 0;
17238 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17239 SwigValueWrapper<wxVisualAttributes > result;
17240 int val1 ;
17241 int ecode1 = 0 ;
17242 PyObject * obj0 = 0 ;
17243 char * kwnames[] = {
17244 (char *) "variant", NULL
17245 };
17246
17247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17248 if (obj0) {
17249 ecode1 = SWIG_AsVal_int(obj0, &val1);
17250 if (!SWIG_IsOK(ecode1)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17252 }
17253 arg1 = static_cast< wxWindowVariant >(val1);
17254 }
17255 {
17256 if (!wxPyCheckForApp()) SWIG_fail;
17257 PyThreadState* __tstate = wxPyBeginAllowThreads();
17258 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17263 return resultobj;
17264fail:
17265 return NULL;
d55e5bfc
RD
17266}
17267
17268
554f62e9
RD
17269SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 PyObject *obj;
17271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17272 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17273 return SWIG_Py_Void();
d55e5bfc
RD
17274}
17275
554f62e9
RD
17276SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17277 return SWIG_Python_InitShadowInstance(args);
17278}
d55e5bfc 17279
554f62e9
RD
17280SWIGINTERN int SliderNameStr_set(PyObject *) {
17281 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17282 return 1;
d55e5bfc
RD
17283}
17284
17285
554f62e9
RD
17286SWIGINTERN PyObject *SliderNameStr_get(void) {
17287 PyObject *pyobj = 0;
17288
17289 {
17290#if wxUSE_UNICODE
17291 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17292#else
17293 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17294#endif
17295 }
17296 return pyobj;
17297}
17298
17299
17300SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj = 0;
17302 wxWindow *arg1 = (wxWindow *) 0 ;
17303 int arg2 = (int) -1 ;
17304 int arg3 = (int) 0 ;
17305 int arg4 = (int) 0 ;
17306 int arg5 = (int) 100 ;
17307 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17308 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17309 wxSize const &arg7_defvalue = wxDefaultSize ;
17310 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17311 long arg8 = (long) wxSL_HORIZONTAL ;
17312 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17313 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17314 wxString const &arg10_defvalue = wxPySliderNameStr ;
17315 wxString *arg10 = (wxString *) &arg10_defvalue ;
17316 wxSlider *result = 0 ;
17317 void *argp1 = 0 ;
17318 int res1 = 0 ;
17319 int val2 ;
17320 int ecode2 = 0 ;
17321 int val3 ;
17322 int ecode3 = 0 ;
17323 int val4 ;
17324 int ecode4 = 0 ;
17325 int val5 ;
17326 int ecode5 = 0 ;
17327 wxPoint temp6 ;
17328 wxSize temp7 ;
17329 long val8 ;
17330 int ecode8 = 0 ;
17331 void *argp9 = 0 ;
17332 int res9 = 0 ;
17333 bool temp10 = false ;
17334 PyObject * obj0 = 0 ;
17335 PyObject * obj1 = 0 ;
17336 PyObject * obj2 = 0 ;
17337 PyObject * obj3 = 0 ;
17338 PyObject * obj4 = 0 ;
17339 PyObject * obj5 = 0 ;
17340 PyObject * obj6 = 0 ;
17341 PyObject * obj7 = 0 ;
17342 PyObject * obj8 = 0 ;
17343 PyObject * obj9 = 0 ;
17344 char * kwnames[] = {
17345 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17346 };
17347
17348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17350 if (!SWIG_IsOK(res1)) {
17351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17352 }
17353 arg1 = reinterpret_cast< wxWindow * >(argp1);
17354 if (obj1) {
17355 ecode2 = SWIG_AsVal_int(obj1, &val2);
17356 if (!SWIG_IsOK(ecode2)) {
17357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17358 }
17359 arg2 = static_cast< int >(val2);
17360 }
17361 if (obj2) {
17362 ecode3 = SWIG_AsVal_int(obj2, &val3);
17363 if (!SWIG_IsOK(ecode3)) {
17364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17365 }
17366 arg3 = static_cast< int >(val3);
17367 }
17368 if (obj3) {
17369 ecode4 = SWIG_AsVal_int(obj3, &val4);
17370 if (!SWIG_IsOK(ecode4)) {
17371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17372 }
17373 arg4 = static_cast< int >(val4);
17374 }
17375 if (obj4) {
17376 ecode5 = SWIG_AsVal_int(obj4, &val5);
17377 if (!SWIG_IsOK(ecode5)) {
17378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17379 }
17380 arg5 = static_cast< int >(val5);
17381 }
17382 if (obj5) {
d55e5bfc 17383 {
554f62e9
RD
17384 arg6 = &temp6;
17385 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17386 }
554f62e9
RD
17387 }
17388 if (obj6) {
093d3ff1 17389 {
554f62e9
RD
17390 arg7 = &temp7;
17391 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17392 }
554f62e9
RD
17393 }
17394 if (obj7) {
17395 ecode8 = SWIG_AsVal_long(obj7, &val8);
17396 if (!SWIG_IsOK(ecode8)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17398 }
17399 arg8 = static_cast< long >(val8);
17400 }
17401 if (obj8) {
17402 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17403 if (!SWIG_IsOK(res9)) {
17404 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17405 }
554f62e9
RD
17406 if (!argp9) {
17407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17408 }
554f62e9
RD
17409 arg9 = reinterpret_cast< wxValidator * >(argp9);
17410 }
17411 if (obj9) {
d55e5bfc 17412 {
554f62e9
RD
17413 arg10 = wxString_in_helper(obj9);
17414 if (arg10 == NULL) SWIG_fail;
17415 temp10 = true;
d55e5bfc 17416 }
554f62e9
RD
17417 }
17418 {
17419 if (!wxPyCheckForApp()) SWIG_fail;
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17426 {
17427 if (temp10)
17428 delete arg10;
17429 }
17430 return resultobj;
17431fail:
17432 {
17433 if (temp10)
17434 delete arg10;
17435 }
17436 return NULL;
d55e5bfc
RD
17437}
17438
17439
554f62e9
RD
17440SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17441 PyObject *resultobj = 0;
17442 wxSlider *result = 0 ;
17443
17444 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17445 {
17446 if (!wxPyCheckForApp()) SWIG_fail;
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 result = (wxSlider *)new wxSlider();
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17453 return resultobj;
17454fail:
17455 return NULL;
17456}
17457
17458
17459SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17460 PyObject *resultobj = 0;
17461 wxSlider *arg1 = (wxSlider *) 0 ;
17462 wxWindow *arg2 = (wxWindow *) 0 ;
17463 int arg3 = (int) -1 ;
17464 int arg4 = (int) 0 ;
17465 int arg5 = (int) 0 ;
17466 int arg6 = (int) 100 ;
17467 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17468 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17469 wxSize const &arg8_defvalue = wxDefaultSize ;
17470 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17471 long arg9 = (long) wxSL_HORIZONTAL ;
17472 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17473 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17474 wxString const &arg11_defvalue = wxPySliderNameStr ;
17475 wxString *arg11 = (wxString *) &arg11_defvalue ;
17476 bool result;
17477 void *argp1 = 0 ;
17478 int res1 = 0 ;
17479 void *argp2 = 0 ;
17480 int res2 = 0 ;
17481 int val3 ;
17482 int ecode3 = 0 ;
17483 int val4 ;
17484 int ecode4 = 0 ;
17485 int val5 ;
17486 int ecode5 = 0 ;
17487 int val6 ;
17488 int ecode6 = 0 ;
17489 wxPoint temp7 ;
17490 wxSize temp8 ;
17491 long val9 ;
17492 int ecode9 = 0 ;
17493 void *argp10 = 0 ;
17494 int res10 = 0 ;
17495 bool temp11 = false ;
17496 PyObject * obj0 = 0 ;
17497 PyObject * obj1 = 0 ;
17498 PyObject * obj2 = 0 ;
17499 PyObject * obj3 = 0 ;
17500 PyObject * obj4 = 0 ;
17501 PyObject * obj5 = 0 ;
17502 PyObject * obj6 = 0 ;
17503 PyObject * obj7 = 0 ;
17504 PyObject * obj8 = 0 ;
17505 PyObject * obj9 = 0 ;
17506 PyObject * obj10 = 0 ;
17507 char * kwnames[] = {
17508 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17509 };
17510
17511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17513 if (!SWIG_IsOK(res1)) {
17514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17515 }
17516 arg1 = reinterpret_cast< wxSlider * >(argp1);
17517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17518 if (!SWIG_IsOK(res2)) {
17519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17520 }
17521 arg2 = reinterpret_cast< wxWindow * >(argp2);
17522 if (obj2) {
17523 ecode3 = SWIG_AsVal_int(obj2, &val3);
17524 if (!SWIG_IsOK(ecode3)) {
17525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17526 }
17527 arg3 = static_cast< int >(val3);
17528 }
17529 if (obj3) {
17530 ecode4 = SWIG_AsVal_int(obj3, &val4);
17531 if (!SWIG_IsOK(ecode4)) {
17532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17533 }
17534 arg4 = static_cast< int >(val4);
17535 }
17536 if (obj4) {
17537 ecode5 = SWIG_AsVal_int(obj4, &val5);
17538 if (!SWIG_IsOK(ecode5)) {
17539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17540 }
17541 arg5 = static_cast< int >(val5);
17542 }
17543 if (obj5) {
17544 ecode6 = SWIG_AsVal_int(obj5, &val6);
17545 if (!SWIG_IsOK(ecode6)) {
17546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17547 }
17548 arg6 = static_cast< int >(val6);
17549 }
17550 if (obj6) {
d55e5bfc 17551 {
554f62e9
RD
17552 arg7 = &temp7;
17553 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17554 }
554f62e9
RD
17555 }
17556 if (obj7) {
093d3ff1 17557 {
554f62e9
RD
17558 arg8 = &temp8;
17559 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17560 }
17561 }
17562 if (obj8) {
17563 ecode9 = SWIG_AsVal_long(obj8, &val9);
17564 if (!SWIG_IsOK(ecode9)) {
17565 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17566 }
17567 arg9 = static_cast< long >(val9);
17568 }
17569 if (obj9) {
17570 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17571 if (!SWIG_IsOK(res10)) {
17572 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 17573 }
554f62e9
RD
17574 if (!argp10) {
17575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17576 }
17577 arg10 = reinterpret_cast< wxValidator * >(argp10);
17578 }
17579 if (obj10) {
d55e5bfc 17580 {
554f62e9
RD
17581 arg11 = wxString_in_helper(obj10);
17582 if (arg11 == NULL) SWIG_fail;
17583 temp11 = true;
d55e5bfc 17584 }
554f62e9
RD
17585 }
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 {
17593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17594 }
17595 {
17596 if (temp11)
17597 delete arg11;
17598 }
17599 return resultobj;
17600fail:
17601 {
17602 if (temp11)
17603 delete arg11;
17604 }
17605 return NULL;
d55e5bfc
RD
17606}
17607
17608
554f62e9
RD
17609SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17610 PyObject *resultobj = 0;
17611 wxSlider *arg1 = (wxSlider *) 0 ;
17612 int result;
17613 void *argp1 = 0 ;
17614 int res1 = 0 ;
17615 PyObject *swig_obj[1] ;
17616
17617 if (!args) SWIG_fail;
17618 swig_obj[0] = args;
17619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17620 if (!SWIG_IsOK(res1)) {
17621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17622 }
17623 arg1 = reinterpret_cast< wxSlider * >(argp1);
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 result = (int)((wxSlider const *)arg1)->GetValue();
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_From_int(static_cast< int >(result));
17631 return resultobj;
17632fail:
17633 return NULL;
17634}
17635
17636
17637SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj = 0;
17639 wxSlider *arg1 = (wxSlider *) 0 ;
17640 int arg2 ;
17641 void *argp1 = 0 ;
17642 int res1 = 0 ;
17643 int val2 ;
17644 int ecode2 = 0 ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "self",(char *) "value", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17653 if (!SWIG_IsOK(res1)) {
17654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17655 }
17656 arg1 = reinterpret_cast< wxSlider * >(argp1);
17657 ecode2 = SWIG_AsVal_int(obj1, &val2);
17658 if (!SWIG_IsOK(ecode2)) {
17659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17660 }
17661 arg2 = static_cast< int >(val2);
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 (arg1)->SetValue(arg2);
17665 wxPyEndAllowThreads(__tstate);
17666 if (PyErr_Occurred()) SWIG_fail;
17667 }
17668 resultobj = SWIG_Py_Void();
17669 return resultobj;
17670fail:
17671 return NULL;
17672}
17673
17674
17675SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17676 PyObject *resultobj = 0;
17677 wxSlider *arg1 = (wxSlider *) 0 ;
17678 int arg2 ;
17679 int arg3 ;
17680 void *argp1 = 0 ;
17681 int res1 = 0 ;
17682 int val2 ;
17683 int ecode2 = 0 ;
17684 int val3 ;
17685 int ecode3 = 0 ;
17686 PyObject * obj0 = 0 ;
17687 PyObject * obj1 = 0 ;
17688 PyObject * obj2 = 0 ;
17689 char * kwnames[] = {
17690 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17691 };
17692
17693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17695 if (!SWIG_IsOK(res1)) {
17696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17697 }
17698 arg1 = reinterpret_cast< wxSlider * >(argp1);
17699 ecode2 = SWIG_AsVal_int(obj1, &val2);
17700 if (!SWIG_IsOK(ecode2)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17702 }
17703 arg2 = static_cast< int >(val2);
17704 ecode3 = SWIG_AsVal_int(obj2, &val3);
17705 if (!SWIG_IsOK(ecode3)) {
17706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17707 }
17708 arg3 = static_cast< int >(val3);
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 (arg1)->SetRange(arg2,arg3);
17712 wxPyEndAllowThreads(__tstate);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 }
17715 resultobj = SWIG_Py_Void();
17716 return resultobj;
17717fail:
17718 return NULL;
d55e5bfc
RD
17719}
17720
17721
554f62e9
RD
17722SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17723 PyObject *resultobj = 0;
17724 wxSlider *arg1 = (wxSlider *) 0 ;
17725 int result;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 PyObject *swig_obj[1] ;
17729
17730 if (!args) SWIG_fail;
17731 swig_obj[0] = args;
17732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17733 if (!SWIG_IsOK(res1)) {
17734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17735 }
17736 arg1 = reinterpret_cast< wxSlider * >(argp1);
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = (int)((wxSlider const *)arg1)->GetMin();
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_From_int(static_cast< int >(result));
17744 return resultobj;
17745fail:
17746 return NULL;
d55e5bfc
RD
17747}
17748
17749
554f62e9
RD
17750SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17751 PyObject *resultobj = 0;
17752 wxSlider *arg1 = (wxSlider *) 0 ;
17753 int result;
17754 void *argp1 = 0 ;
17755 int res1 = 0 ;
17756 PyObject *swig_obj[1] ;
17757
17758 if (!args) SWIG_fail;
17759 swig_obj[0] = args;
17760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17761 if (!SWIG_IsOK(res1)) {
17762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17763 }
17764 arg1 = reinterpret_cast< wxSlider * >(argp1);
17765 {
17766 PyThreadState* __tstate = wxPyBeginAllowThreads();
17767 result = (int)((wxSlider const *)arg1)->GetMax();
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
17771 resultobj = SWIG_From_int(static_cast< int >(result));
17772 return resultobj;
17773fail:
17774 return NULL;
17775}
17776
17777
17778SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj = 0;
17780 wxSlider *arg1 = (wxSlider *) 0 ;
17781 int arg2 ;
17782 void *argp1 = 0 ;
17783 int res1 = 0 ;
17784 int val2 ;
17785 int ecode2 = 0 ;
17786 PyObject * obj0 = 0 ;
17787 PyObject * obj1 = 0 ;
17788 char * kwnames[] = {
17789 (char *) "self",(char *) "minValue", NULL
17790 };
17791
17792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17794 if (!SWIG_IsOK(res1)) {
17795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17796 }
17797 arg1 = reinterpret_cast< wxSlider * >(argp1);
17798 ecode2 = SWIG_AsVal_int(obj1, &val2);
17799 if (!SWIG_IsOK(ecode2)) {
17800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17801 }
17802 arg2 = static_cast< int >(val2);
17803 {
17804 PyThreadState* __tstate = wxPyBeginAllowThreads();
17805 (arg1)->SetMin(arg2);
17806 wxPyEndAllowThreads(__tstate);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 }
17809 resultobj = SWIG_Py_Void();
17810 return resultobj;
17811fail:
17812 return NULL;
17813}
17814
17815
17816SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17817 PyObject *resultobj = 0;
17818 wxSlider *arg1 = (wxSlider *) 0 ;
17819 int arg2 ;
17820 void *argp1 = 0 ;
17821 int res1 = 0 ;
17822 int val2 ;
17823 int ecode2 = 0 ;
17824 PyObject * obj0 = 0 ;
17825 PyObject * obj1 = 0 ;
17826 char * kwnames[] = {
17827 (char *) "self",(char *) "maxValue", NULL
17828 };
17829
17830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17832 if (!SWIG_IsOK(res1)) {
17833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17834 }
17835 arg1 = reinterpret_cast< wxSlider * >(argp1);
17836 ecode2 = SWIG_AsVal_int(obj1, &val2);
17837 if (!SWIG_IsOK(ecode2)) {
17838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17839 }
17840 arg2 = static_cast< int >(val2);
17841 {
17842 PyThreadState* __tstate = wxPyBeginAllowThreads();
17843 (arg1)->SetMax(arg2);
17844 wxPyEndAllowThreads(__tstate);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 resultobj = SWIG_Py_Void();
17848 return resultobj;
17849fail:
17850 return NULL;
17851}
17852
17853
17854SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17855 PyObject *resultobj = 0;
17856 wxSlider *arg1 = (wxSlider *) 0 ;
17857 int arg2 ;
17858 void *argp1 = 0 ;
17859 int res1 = 0 ;
17860 int val2 ;
17861 int ecode2 = 0 ;
17862 PyObject * obj0 = 0 ;
17863 PyObject * obj1 = 0 ;
17864 char * kwnames[] = {
17865 (char *) "self",(char *) "lineSize", NULL
17866 };
17867
17868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17870 if (!SWIG_IsOK(res1)) {
17871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17872 }
17873 arg1 = reinterpret_cast< wxSlider * >(argp1);
17874 ecode2 = SWIG_AsVal_int(obj1, &val2);
17875 if (!SWIG_IsOK(ecode2)) {
17876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17877 }
17878 arg2 = static_cast< int >(val2);
17879 {
17880 PyThreadState* __tstate = wxPyBeginAllowThreads();
17881 (arg1)->SetLineSize(arg2);
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 resultobj = SWIG_Py_Void();
17886 return resultobj;
17887fail:
17888 return NULL;
17889}
17890
17891
17892SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17893 PyObject *resultobj = 0;
17894 wxSlider *arg1 = (wxSlider *) 0 ;
17895 int arg2 ;
17896 void *argp1 = 0 ;
17897 int res1 = 0 ;
17898 int val2 ;
17899 int ecode2 = 0 ;
17900 PyObject * obj0 = 0 ;
17901 PyObject * obj1 = 0 ;
17902 char * kwnames[] = {
17903 (char *) "self",(char *) "pageSize", NULL
17904 };
17905
17906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17908 if (!SWIG_IsOK(res1)) {
17909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17910 }
17911 arg1 = reinterpret_cast< wxSlider * >(argp1);
17912 ecode2 = SWIG_AsVal_int(obj1, &val2);
17913 if (!SWIG_IsOK(ecode2)) {
17914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17915 }
17916 arg2 = static_cast< int >(val2);
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 (arg1)->SetPageSize(arg2);
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 resultobj = SWIG_Py_Void();
17924 return resultobj;
17925fail:
17926 return NULL;
d55e5bfc
RD
17927}
17928
17929
554f62e9
RD
17930SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17931 PyObject *resultobj = 0;
17932 wxSlider *arg1 = (wxSlider *) 0 ;
17933 int result;
17934 void *argp1 = 0 ;
17935 int res1 = 0 ;
17936 PyObject *swig_obj[1] ;
17937
17938 if (!args) SWIG_fail;
17939 swig_obj[0] = args;
17940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17941 if (!SWIG_IsOK(res1)) {
17942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17943 }
17944 arg1 = reinterpret_cast< wxSlider * >(argp1);
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = (int)((wxSlider const *)arg1)->GetLineSize();
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 resultobj = SWIG_From_int(static_cast< int >(result));
17952 return resultobj;
17953fail:
17954 return NULL;
d55e5bfc
RD
17955}
17956
17957
554f62e9
RD
17958SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17959 PyObject *resultobj = 0;
17960 wxSlider *arg1 = (wxSlider *) 0 ;
17961 int result;
17962 void *argp1 = 0 ;
17963 int res1 = 0 ;
17964 PyObject *swig_obj[1] ;
17965
17966 if (!args) SWIG_fail;
17967 swig_obj[0] = args;
17968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17969 if (!SWIG_IsOK(res1)) {
17970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17971 }
17972 arg1 = reinterpret_cast< wxSlider * >(argp1);
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 result = (int)((wxSlider const *)arg1)->GetPageSize();
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_From_int(static_cast< int >(result));
17980 return resultobj;
17981fail:
17982 return NULL;
17983}
17984
17985
17986SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj = 0;
17988 wxSlider *arg1 = (wxSlider *) 0 ;
17989 int arg2 ;
17990 void *argp1 = 0 ;
17991 int res1 = 0 ;
17992 int val2 ;
17993 int ecode2 = 0 ;
17994 PyObject * obj0 = 0 ;
17995 PyObject * obj1 = 0 ;
17996 char * kwnames[] = {
17997 (char *) "self",(char *) "lenPixels", NULL
17998 };
17999
18000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18002 if (!SWIG_IsOK(res1)) {
18003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18004 }
18005 arg1 = reinterpret_cast< wxSlider * >(argp1);
18006 ecode2 = SWIG_AsVal_int(obj1, &val2);
18007 if (!SWIG_IsOK(ecode2)) {
18008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18009 }
18010 arg2 = static_cast< int >(val2);
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->SetThumbLength(arg2);
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 resultobj = SWIG_Py_Void();
18018 return resultobj;
18019fail:
18020 return NULL;
f20a2e1f
RD
18021}
18022
18023
554f62e9
RD
18024SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18025 PyObject *resultobj = 0;
18026 wxSlider *arg1 = (wxSlider *) 0 ;
18027 int result;
18028 void *argp1 = 0 ;
18029 int res1 = 0 ;
18030 PyObject *swig_obj[1] ;
18031
18032 if (!args) SWIG_fail;
18033 swig_obj[0] = args;
18034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18037 }
18038 arg1 = reinterpret_cast< wxSlider * >(argp1);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_From_int(static_cast< int >(result));
18046 return resultobj;
18047fail:
18048 return NULL;
18049}
18050
18051
18052SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj = 0;
18054 wxSlider *arg1 = (wxSlider *) 0 ;
18055 int arg2 ;
18056 int arg3 = (int) 1 ;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 int val2 ;
18060 int ecode2 = 0 ;
18061 int val3 ;
18062 int ecode3 = 0 ;
18063 PyObject * obj0 = 0 ;
18064 PyObject * obj1 = 0 ;
18065 PyObject * obj2 = 0 ;
18066 char * kwnames[] = {
18067 (char *) "self",(char *) "n",(char *) "pos", NULL
18068 };
18069
18070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18072 if (!SWIG_IsOK(res1)) {
18073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18074 }
18075 arg1 = reinterpret_cast< wxSlider * >(argp1);
18076 ecode2 = SWIG_AsVal_int(obj1, &val2);
18077 if (!SWIG_IsOK(ecode2)) {
18078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18079 }
18080 arg2 = static_cast< int >(val2);
18081 if (obj2) {
18082 ecode3 = SWIG_AsVal_int(obj2, &val3);
18083 if (!SWIG_IsOK(ecode3)) {
18084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18085 }
18086 arg3 = static_cast< int >(val3);
18087 }
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 (arg1)->SetTickFreq(arg2,arg3);
18091 wxPyEndAllowThreads(__tstate);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 resultobj = SWIG_Py_Void();
18095 return resultobj;
18096fail:
18097 return NULL;
d55e5bfc
RD
18098}
18099
18100
554f62e9
RD
18101SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(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_GetTickFreq" "', 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)->GetTickFreq();
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;
d55e5bfc
RD
18126}
18127
18128
554f62e9
RD
18129SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18130 PyObject *resultobj = 0;
18131 wxSlider *arg1 = (wxSlider *) 0 ;
18132 void *argp1 = 0 ;
18133 int res1 = 0 ;
18134 PyObject *swig_obj[1] ;
18135
18136 if (!args) SWIG_fail;
18137 swig_obj[0] = args;
18138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18139 if (!SWIG_IsOK(res1)) {
18140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18141 }
18142 arg1 = reinterpret_cast< wxSlider * >(argp1);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->ClearTicks();
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151fail:
18152 return NULL;
18153}
18154
18155
18156SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxSlider *arg1 = (wxSlider *) 0 ;
18159 int arg2 ;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 int val2 ;
18163 int ecode2 = 0 ;
18164 PyObject * obj0 = 0 ;
18165 PyObject * obj1 = 0 ;
18166 char * kwnames[] = {
18167 (char *) "self",(char *) "tickPos", NULL
18168 };
18169
18170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18172 if (!SWIG_IsOK(res1)) {
18173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18174 }
18175 arg1 = reinterpret_cast< wxSlider * >(argp1);
18176 ecode2 = SWIG_AsVal_int(obj1, &val2);
18177 if (!SWIG_IsOK(ecode2)) {
18178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18179 }
18180 arg2 = static_cast< int >(val2);
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 (arg1)->SetTick(arg2);
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_Py_Void();
18188 return resultobj;
18189fail:
18190 return NULL;
d55e5bfc
RD
18191}
18192
18193
554f62e9
RD
18194SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18195 PyObject *resultobj = 0;
18196 wxSlider *arg1 = (wxSlider *) 0 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 PyObject *swig_obj[1] ;
18200
18201 if (!args) SWIG_fail;
18202 swig_obj[0] = args;
18203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18206 }
18207 arg1 = reinterpret_cast< wxSlider * >(argp1);
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 (arg1)->ClearSel();
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = SWIG_Py_Void();
18215 return resultobj;
18216fail:
18217 return NULL;
d55e5bfc
RD
18218}
18219
18220
554f62e9
RD
18221SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18222 PyObject *resultobj = 0;
18223 wxSlider *arg1 = (wxSlider *) 0 ;
18224 int result;
18225 void *argp1 = 0 ;
18226 int res1 = 0 ;
18227 PyObject *swig_obj[1] ;
18228
18229 if (!args) SWIG_fail;
18230 swig_obj[0] = args;
18231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18232 if (!SWIG_IsOK(res1)) {
18233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18234 }
18235 arg1 = reinterpret_cast< wxSlider * >(argp1);
18236 {
18237 PyThreadState* __tstate = wxPyBeginAllowThreads();
18238 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18239 wxPyEndAllowThreads(__tstate);
18240 if (PyErr_Occurred()) SWIG_fail;
18241 }
18242 resultobj = SWIG_From_int(static_cast< int >(result));
18243 return resultobj;
18244fail:
18245 return NULL;
d55e5bfc 18246}
554f62e9
RD
18247
18248
18249SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18250 PyObject *resultobj = 0;
18251 wxSlider *arg1 = (wxSlider *) 0 ;
18252 int result;
18253 void *argp1 = 0 ;
18254 int res1 = 0 ;
18255 PyObject *swig_obj[1] ;
18256
18257 if (!args) SWIG_fail;
18258 swig_obj[0] = args;
18259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18262 }
18263 arg1 = reinterpret_cast< wxSlider * >(argp1);
18264 {
18265 PyThreadState* __tstate = wxPyBeginAllowThreads();
18266 result = (int)((wxSlider const *)arg1)->GetSelStart();
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 resultobj = SWIG_From_int(static_cast< int >(result));
18271 return resultobj;
18272fail:
18273 return NULL;
18274}
18275
18276
18277SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18278 PyObject *resultobj = 0;
18279 wxSlider *arg1 = (wxSlider *) 0 ;
18280 int arg2 ;
18281 int arg3 ;
18282 void *argp1 = 0 ;
18283 int res1 = 0 ;
18284 int val2 ;
18285 int ecode2 = 0 ;
18286 int val3 ;
18287 int ecode3 = 0 ;
18288 PyObject * obj0 = 0 ;
18289 PyObject * obj1 = 0 ;
18290 PyObject * obj2 = 0 ;
18291 char * kwnames[] = {
18292 (char *) "self",(char *) "min",(char *) "max", NULL
18293 };
18294
18295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18297 if (!SWIG_IsOK(res1)) {
18298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18299 }
18300 arg1 = reinterpret_cast< wxSlider * >(argp1);
18301 ecode2 = SWIG_AsVal_int(obj1, &val2);
18302 if (!SWIG_IsOK(ecode2)) {
18303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18304 }
18305 arg2 = static_cast< int >(val2);
18306 ecode3 = SWIG_AsVal_int(obj2, &val3);
18307 if (!SWIG_IsOK(ecode3)) {
18308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18309 }
18310 arg3 = static_cast< int >(val3);
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 (arg1)->SetSelection(arg2,arg3);
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 resultobj = SWIG_Py_Void();
18318 return resultobj;
18319fail:
18320 return NULL;
18321}
18322
18323
18324SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18325 PyObject *resultobj = 0;
18326 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18327 SwigValueWrapper<wxVisualAttributes > result;
18328 int val1 ;
18329 int ecode1 = 0 ;
18330 PyObject * obj0 = 0 ;
18331 char * kwnames[] = {
18332 (char *) "variant", NULL
18333 };
18334
18335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18336 if (obj0) {
18337 ecode1 = SWIG_AsVal_int(obj0, &val1);
18338 if (!SWIG_IsOK(ecode1)) {
18339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18340 }
18341 arg1 = static_cast< wxWindowVariant >(val1);
18342 }
18343 {
18344 if (!wxPyCheckForApp()) SWIG_fail;
18345 PyThreadState* __tstate = wxPyBeginAllowThreads();
18346 result = wxSlider::GetClassDefaultAttributes(arg1);
18347 wxPyEndAllowThreads(__tstate);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 }
18350 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18351 return resultobj;
18352fail:
18353 return NULL;
d55e5bfc
RD
18354}
18355
18356
554f62e9
RD
18357SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18358 PyObject *obj;
18359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18360 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18361 return SWIG_Py_Void();
d55e5bfc
RD
18362}
18363
554f62e9
RD
18364SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18365 return SWIG_Python_InitShadowInstance(args);
18366}
d55e5bfc 18367
554f62e9
RD
18368SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18369 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18370 return 1;
d55e5bfc
RD
18371}
18372
18373
554f62e9
RD
18374SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18375 PyObject *pyobj = 0;
18376
18377 {
18378#if wxUSE_UNICODE
18379 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18380#else
18381 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18382#endif
18383 }
18384 return pyobj;
18385}
18386
18387
18388SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18389 PyObject *resultobj = 0;
18390 wxWindow *arg1 = (wxWindow *) 0 ;
18391 int arg2 = (int) -1 ;
18392 wxString const &arg3_defvalue = wxPyEmptyString ;
18393 wxString *arg3 = (wxString *) &arg3_defvalue ;
18394 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18395 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18396 wxSize const &arg5_defvalue = wxDefaultSize ;
18397 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18398 long arg6 = (long) 0 ;
18399 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18400 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18401 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18402 wxString *arg8 = (wxString *) &arg8_defvalue ;
18403 wxToggleButton *result = 0 ;
18404 void *argp1 = 0 ;
18405 int res1 = 0 ;
18406 int val2 ;
18407 int ecode2 = 0 ;
18408 bool temp3 = false ;
18409 wxPoint temp4 ;
18410 wxSize temp5 ;
18411 long val6 ;
18412 int ecode6 = 0 ;
18413 void *argp7 = 0 ;
18414 int res7 = 0 ;
18415 bool temp8 = 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 char * kwnames[] = {
18425 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18426 };
18427
18428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18430 if (!SWIG_IsOK(res1)) {
18431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18432 }
18433 arg1 = reinterpret_cast< wxWindow * >(argp1);
18434 if (obj1) {
18435 ecode2 = SWIG_AsVal_int(obj1, &val2);
18436 if (!SWIG_IsOK(ecode2)) {
18437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18438 }
18439 arg2 = static_cast< int >(val2);
18440 }
18441 if (obj2) {
d55e5bfc 18442 {
554f62e9
RD
18443 arg3 = wxString_in_helper(obj2);
18444 if (arg3 == NULL) SWIG_fail;
18445 temp3 = true;
d55e5bfc 18446 }
554f62e9
RD
18447 }
18448 if (obj3) {
d55e5bfc 18449 {
554f62e9
RD
18450 arg4 = &temp4;
18451 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 18452 }
554f62e9
RD
18453 }
18454 if (obj4) {
d55e5bfc 18455 {
554f62e9
RD
18456 arg5 = &temp5;
18457 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18458 }
554f62e9
RD
18459 }
18460 if (obj5) {
18461 ecode6 = SWIG_AsVal_long(obj5, &val6);
18462 if (!SWIG_IsOK(ecode6)) {
18463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18464 }
18465 arg6 = static_cast< long >(val6);
18466 }
18467 if (obj6) {
18468 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18469 if (!SWIG_IsOK(res7)) {
18470 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18471 }
554f62e9
RD
18472 if (!argp7) {
18473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18474 }
554f62e9
RD
18475 arg7 = reinterpret_cast< wxValidator * >(argp7);
18476 }
18477 if (obj7) {
093d3ff1 18478 {
554f62e9
RD
18479 arg8 = wxString_in_helper(obj7);
18480 if (arg8 == NULL) SWIG_fail;
18481 temp8 = true;
093d3ff1 18482 }
554f62e9
RD
18483 }
18484 {
18485 if (!wxPyCheckForApp()) SWIG_fail;
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18492 {
18493 if (temp3)
18494 delete arg3;
18495 }
18496 {
18497 if (temp8)
18498 delete arg8;
18499 }
18500 return resultobj;
18501fail:
18502 {
18503 if (temp3)
18504 delete arg3;
18505 }
18506 {
18507 if (temp8)
18508 delete arg8;
18509 }
18510 return NULL;
d55e5bfc
RD
18511}
18512
18513
554f62e9
RD
18514SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18515 PyObject *resultobj = 0;
18516 wxToggleButton *result = 0 ;
18517
18518 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18519 {
18520 if (!wxPyCheckForApp()) SWIG_fail;
18521 PyThreadState* __tstate = wxPyBeginAllowThreads();
18522 result = (wxToggleButton *)new wxToggleButton();
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18527 return resultobj;
18528fail:
18529 return NULL;
18530}
18531
18532
18533SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj = 0;
18535 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18536 wxWindow *arg2 = (wxWindow *) 0 ;
18537 int arg3 = (int) -1 ;
18538 wxString const &arg4_defvalue = wxPyEmptyString ;
18539 wxString *arg4 = (wxString *) &arg4_defvalue ;
18540 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18541 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18542 wxSize const &arg6_defvalue = wxDefaultSize ;
18543 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18544 long arg7 = (long) 0 ;
18545 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18546 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18547 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18548 wxString *arg9 = (wxString *) &arg9_defvalue ;
18549 bool result;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 void *argp2 = 0 ;
18553 int res2 = 0 ;
18554 int val3 ;
18555 int ecode3 = 0 ;
18556 bool temp4 = false ;
18557 wxPoint temp5 ;
18558 wxSize temp6 ;
18559 long val7 ;
18560 int ecode7 = 0 ;
18561 void *argp8 = 0 ;
18562 int res8 = 0 ;
18563 bool temp9 = false ;
18564 PyObject * obj0 = 0 ;
18565 PyObject * obj1 = 0 ;
18566 PyObject * obj2 = 0 ;
18567 PyObject * obj3 = 0 ;
18568 PyObject * obj4 = 0 ;
18569 PyObject * obj5 = 0 ;
18570 PyObject * obj6 = 0 ;
18571 PyObject * obj7 = 0 ;
18572 PyObject * obj8 = 0 ;
18573 char * kwnames[] = {
18574 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18575 };
18576
18577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18579 if (!SWIG_IsOK(res1)) {
18580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18581 }
18582 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18584 if (!SWIG_IsOK(res2)) {
18585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18586 }
18587 arg2 = reinterpret_cast< wxWindow * >(argp2);
18588 if (obj2) {
18589 ecode3 = SWIG_AsVal_int(obj2, &val3);
18590 if (!SWIG_IsOK(ecode3)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18592 }
18593 arg3 = static_cast< int >(val3);
18594 }
18595 if (obj3) {
d55e5bfc 18596 {
554f62e9
RD
18597 arg4 = wxString_in_helper(obj3);
18598 if (arg4 == NULL) SWIG_fail;
18599 temp4 = true;
d55e5bfc 18600 }
554f62e9
RD
18601 }
18602 if (obj4) {
093d3ff1 18603 {
554f62e9
RD
18604 arg5 = &temp5;
18605 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 18606 }
554f62e9
RD
18607 }
18608 if (obj5) {
d55e5bfc 18609 {
554f62e9
RD
18610 arg6 = &temp6;
18611 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 18612 }
554f62e9
RD
18613 }
18614 if (obj6) {
18615 ecode7 = SWIG_AsVal_long(obj6, &val7);
18616 if (!SWIG_IsOK(ecode7)) {
18617 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18618 }
18619 arg7 = static_cast< long >(val7);
18620 }
18621 if (obj7) {
18622 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18623 if (!SWIG_IsOK(res8)) {
18624 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 18625 }
554f62e9
RD
18626 if (!argp8) {
18627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18628 }
554f62e9
RD
18629 arg8 = reinterpret_cast< wxValidator * >(argp8);
18630 }
18631 if (obj8) {
093d3ff1 18632 {
554f62e9
RD
18633 arg9 = wxString_in_helper(obj8);
18634 if (arg9 == NULL) SWIG_fail;
18635 temp9 = true;
093d3ff1 18636 }
554f62e9
RD
18637 }
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 {
18645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18646 }
18647 {
18648 if (temp4)
18649 delete arg4;
18650 }
18651 {
18652 if (temp9)
18653 delete arg9;
18654 }
18655 return resultobj;
18656fail:
18657 {
18658 if (temp4)
18659 delete arg4;
18660 }
18661 {
18662 if (temp9)
18663 delete arg9;
18664 }
18665 return NULL;
18666}
18667
18668
18669SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18670 PyObject *resultobj = 0;
18671 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18672 bool arg2 ;
18673 void *argp1 = 0 ;
18674 int res1 = 0 ;
18675 bool val2 ;
18676 int ecode2 = 0 ;
18677 PyObject * obj0 = 0 ;
18678 PyObject * obj1 = 0 ;
18679 char * kwnames[] = {
18680 (char *) "self",(char *) "value", NULL
18681 };
18682
18683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18685 if (!SWIG_IsOK(res1)) {
18686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18687 }
18688 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18689 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18690 if (!SWIG_IsOK(ecode2)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18692 }
18693 arg2 = static_cast< bool >(val2);
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->SetValue(arg2);
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 resultobj = SWIG_Py_Void();
18701 return resultobj;
18702fail:
18703 return NULL;
d55e5bfc
RD
18704}
18705
18706
554f62e9
RD
18707SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18708 PyObject *resultobj = 0;
18709 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18710 bool result;
18711 void *argp1 = 0 ;
18712 int res1 = 0 ;
18713 PyObject *swig_obj[1] ;
18714
18715 if (!args) SWIG_fail;
18716 swig_obj[0] = args;
18717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18718 if (!SWIG_IsOK(res1)) {
18719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18720 }
18721 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18722 {
18723 PyThreadState* __tstate = wxPyBeginAllowThreads();
18724 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18725 wxPyEndAllowThreads(__tstate);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 }
18728 {
18729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18730 }
18731 return resultobj;
18732fail:
18733 return NULL;
d55e5bfc
RD
18734}
18735
18736
554f62e9
RD
18737SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj = 0;
18739 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18740 SwigValueWrapper<wxVisualAttributes > result;
18741 int val1 ;
18742 int ecode1 = 0 ;
18743 PyObject * obj0 = 0 ;
18744 char * kwnames[] = {
18745 (char *) "variant", NULL
18746 };
18747
18748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18749 if (obj0) {
18750 ecode1 = SWIG_AsVal_int(obj0, &val1);
18751 if (!SWIG_IsOK(ecode1)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18753 }
18754 arg1 = static_cast< wxWindowVariant >(val1);
18755 }
18756 {
18757 if (!wxPyCheckForApp()) SWIG_fail;
18758 PyThreadState* __tstate = wxPyBeginAllowThreads();
18759 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18764 return resultobj;
18765fail:
18766 return NULL;
d55e5bfc
RD
18767}
18768
18769
554f62e9
RD
18770SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18771 PyObject *obj;
18772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18773 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18774 return SWIG_Py_Void();
d55e5bfc
RD
18775}
18776
554f62e9
RD
18777SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18778 return SWIG_Python_InitShadowInstance(args);
f20a2e1f
RD
18779}
18780
554f62e9
RD
18781SWIGINTERN int NotebookNameStr_set(PyObject *) {
18782 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18783 return 1;
d55e5bfc
RD
18784}
18785
18786
554f62e9
RD
18787SWIGINTERN PyObject *NotebookNameStr_get(void) {
18788 PyObject *pyobj = 0;
18789
18790 {
d55e5bfc 18791#if wxUSE_UNICODE
554f62e9 18792 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18793#else
554f62e9 18794 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18795#endif
554f62e9
RD
18796 }
18797 return pyobj;
d55e5bfc
RD
18798}
18799
18800
554f62e9
RD
18801SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18802 PyObject *resultobj = 0;
18803 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18804 size_t result;
18805 void *argp1 = 0 ;
18806 int res1 = 0 ;
18807 PyObject *swig_obj[1] ;
18808
18809 if (!args) SWIG_fail;
18810 swig_obj[0] = args;
18811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18814 }
18815 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18816 {
18817 PyThreadState* __tstate = wxPyBeginAllowThreads();
18818 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18823 return resultobj;
18824fail:
18825 return NULL;
18826}
18827
18828
18829SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18830 PyObject *resultobj = 0;
18831 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18832 size_t arg2 ;
18833 wxWindow *result = 0 ;
18834 void *argp1 = 0 ;
18835 int res1 = 0 ;
18836 size_t val2 ;
18837 int ecode2 = 0 ;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 char * kwnames[] = {
18841 (char *) "self",(char *) "n", NULL
18842 };
18843
18844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18846 if (!SWIG_IsOK(res1)) {
18847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18848 }
18849 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18850 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18851 if (!SWIG_IsOK(ecode2)) {
18852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18853 }
18854 arg2 = static_cast< size_t >(val2);
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 result = (wxWindow *)(arg1)->GetPage(arg2);
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 {
18862 resultobj = wxPyMake_wxObject(result, 0);
18863 }
18864 return resultobj;
18865fail:
18866 return NULL;
d55e5bfc
RD
18867}
18868
18869
554f62e9
RD
18870SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18871 PyObject *resultobj = 0;
18872 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18873 wxWindow *result = 0 ;
18874 void *argp1 = 0 ;
18875 int res1 = 0 ;
18876 PyObject *swig_obj[1] ;
18877
18878 if (!args) SWIG_fail;
18879 swig_obj[0] = args;
18880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18881 if (!SWIG_IsOK(res1)) {
18882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18883 }
18884 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 {
18892 resultobj = wxPyMake_wxObject(result, 0);
18893 }
18894 return resultobj;
18895fail:
18896 return NULL;
d55e5bfc
RD
18897}
18898
18899
554f62e9
RD
18900SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18901 PyObject *resultobj = 0;
18902 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18903 int result;
18904 void *argp1 = 0 ;
18905 int res1 = 0 ;
18906 PyObject *swig_obj[1] ;
18907
18908 if (!args) SWIG_fail;
18909 swig_obj[0] = args;
18910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18911 if (!SWIG_IsOK(res1)) {
18912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18913 }
18914 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_From_int(static_cast< int >(result));
18922 return resultobj;
18923fail:
18924 return NULL;
18925}
18926
18927
18928SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj = 0;
18930 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18931 size_t arg2 ;
18932 wxString *arg3 = 0 ;
18933 bool result;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 size_t val2 ;
18937 int ecode2 = 0 ;
18938 bool temp3 = false ;
18939 PyObject * obj0 = 0 ;
18940 PyObject * obj1 = 0 ;
18941 PyObject * obj2 = 0 ;
18942 char * kwnames[] = {
18943 (char *) "self",(char *) "n",(char *) "strText", NULL
18944 };
18945
18946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18948 if (!SWIG_IsOK(res1)) {
18949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18950 }
18951 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18952 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18953 if (!SWIG_IsOK(ecode2)) {
18954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18955 }
18956 arg2 = static_cast< size_t >(val2);
18957 {
18958 arg3 = wxString_in_helper(obj2);
18959 if (arg3 == NULL) SWIG_fail;
18960 temp3 = true;
18961 }
18962 {
18963 PyThreadState* __tstate = wxPyBeginAllowThreads();
18964 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18965 wxPyEndAllowThreads(__tstate);
18966 if (PyErr_Occurred()) SWIG_fail;
18967 }
18968 {
18969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18970 }
18971 {
18972 if (temp3)
18973 delete arg3;
18974 }
18975 return resultobj;
18976fail:
18977 {
18978 if (temp3)
18979 delete arg3;
18980 }
18981 return NULL;
18982}
18983
18984
18985SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18986 PyObject *resultobj = 0;
18987 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18988 size_t arg2 ;
18989 wxString result;
18990 void *argp1 = 0 ;
18991 int res1 = 0 ;
18992 size_t val2 ;
18993 int ecode2 = 0 ;
18994 PyObject * obj0 = 0 ;
18995 PyObject * obj1 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "n", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19004 }
19005 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19006 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19009 }
19010 arg2 = static_cast< size_t >(val2);
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 {
19018#if wxUSE_UNICODE
19019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19020#else
19021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19022#endif
19023 }
19024 return resultobj;
19025fail:
19026 return NULL;
19027}
19028
19029
19030SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj = 0;
19032 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19033 wxImageList *arg2 = (wxImageList *) 0 ;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 void *argp2 = 0 ;
19037 int res2 = 0 ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "imageList", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) 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_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19048 }
19049 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19051 if (!SWIG_IsOK(res2)) {
19052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19053 }
19054 arg2 = reinterpret_cast< wxImageList * >(argp2);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 (arg1)->SetImageList(arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_Py_Void();
19062 return resultobj;
19063fail:
19064 return NULL;
19065}
19066
19067
19068SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj = 0;
19070 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19071 wxImageList *arg2 = (wxImageList *) 0 ;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 int res2 = 0 ;
19075 PyObject * obj0 = 0 ;
19076 PyObject * obj1 = 0 ;
19077 char * kwnames[] = {
19078 (char *) "self",(char *) "imageList", NULL
19079 };
19080
19081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19083 if (!SWIG_IsOK(res1)) {
19084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19085 }
19086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19087 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19088 if (!SWIG_IsOK(res2)) {
19089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19090 }
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 (arg1)->AssignImageList(arg2);
19094 wxPyEndAllowThreads(__tstate);
19095 if (PyErr_Occurred()) SWIG_fail;
19096 }
19097 resultobj = SWIG_Py_Void();
19098 return resultobj;
19099fail:
19100 return NULL;
d55e5bfc
RD
19101}
19102
19103
554f62e9
RD
19104SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19105 PyObject *resultobj = 0;
19106 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19107 wxImageList *result = 0 ;
19108 void *argp1 = 0 ;
19109 int res1 = 0 ;
19110 PyObject *swig_obj[1] ;
19111
19112 if (!args) SWIG_fail;
19113 swig_obj[0] = args;
19114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19115 if (!SWIG_IsOK(res1)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19117 }
19118 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 {
19126 resultobj = wxPyMake_wxObject(result, (bool)0);
19127 }
19128 return resultobj;
19129fail:
19130 return NULL;
19131}
19132
19133
19134SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19137 size_t arg2 ;
19138 int result;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 size_t val2 ;
19142 int ecode2 = 0 ;
19143 PyObject * obj0 = 0 ;
19144 PyObject * obj1 = 0 ;
19145 char * kwnames[] = {
19146 (char *) "self",(char *) "n", NULL
19147 };
19148
19149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19151 if (!SWIG_IsOK(res1)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19153 }
19154 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19155 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19156 if (!SWIG_IsOK(ecode2)) {
19157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19158 }
19159 arg2 = static_cast< size_t >(val2);
19160 {
19161 PyThreadState* __tstate = wxPyBeginAllowThreads();
19162 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19163 wxPyEndAllowThreads(__tstate);
19164 if (PyErr_Occurred()) SWIG_fail;
19165 }
19166 resultobj = SWIG_From_int(static_cast< int >(result));
19167 return resultobj;
19168fail:
19169 return NULL;
19170}
19171
19172
19173SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19174 PyObject *resultobj = 0;
19175 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19176 size_t arg2 ;
19177 int arg3 ;
19178 bool result;
19179 void *argp1 = 0 ;
19180 int res1 = 0 ;
19181 size_t val2 ;
19182 int ecode2 = 0 ;
19183 int val3 ;
19184 int ecode3 = 0 ;
19185 PyObject * obj0 = 0 ;
19186 PyObject * obj1 = 0 ;
19187 PyObject * obj2 = 0 ;
19188 char * kwnames[] = {
19189 (char *) "self",(char *) "n",(char *) "imageId", NULL
19190 };
19191
19192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19194 if (!SWIG_IsOK(res1)) {
19195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19196 }
19197 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19198 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19199 if (!SWIG_IsOK(ecode2)) {
19200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19201 }
19202 arg2 = static_cast< size_t >(val2);
19203 ecode3 = SWIG_AsVal_int(obj2, &val3);
19204 if (!SWIG_IsOK(ecode3)) {
19205 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19206 }
19207 arg3 = static_cast< int >(val3);
19208 {
19209 PyThreadState* __tstate = wxPyBeginAllowThreads();
19210 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19211 wxPyEndAllowThreads(__tstate);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 }
19214 {
19215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19216 }
19217 return resultobj;
19218fail:
19219 return NULL;
19220}
19221
19222
19223SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19226 wxSize *arg2 = 0 ;
19227 void *argp1 = 0 ;
19228 int res1 = 0 ;
19229 wxSize temp2 ;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 char * kwnames[] = {
19233 (char *) "self",(char *) "size", NULL
19234 };
19235
19236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19238 if (!SWIG_IsOK(res1)) {
19239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19240 }
19241 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19242 {
19243 arg2 = &temp2;
19244 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19245 }
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 (arg1)->SetPageSize((wxSize const &)*arg2);
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_Py_Void();
19253 return resultobj;
19254fail:
19255 return NULL;
19256}
19257
19258
19259SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj = 0;
19261 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19262 wxSize *arg2 = 0 ;
19263 wxSize result;
19264 void *argp1 = 0 ;
19265 int res1 = 0 ;
19266 wxSize temp2 ;
19267 PyObject * obj0 = 0 ;
19268 PyObject * obj1 = 0 ;
19269 char * kwnames[] = {
19270 (char *) "self",(char *) "sizePage", NULL
19271 };
19272
19273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19277 }
19278 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19279 {
19280 arg2 = &temp2;
19281 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19282 }
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19290 return resultobj;
19291fail:
19292 return NULL;
d55e5bfc
RD
19293}
19294
19295
554f62e9
RD
19296SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19297 PyObject *resultobj = 0;
19298 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19299 unsigned int result;
554f62e9
RD
19300 void *argp1 = 0 ;
19301 int res1 = 0 ;
19302 PyObject *swig_obj[1] ;
19303
19304 if (!args) SWIG_fail;
19305 swig_obj[0] = args;
19306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19307 if (!SWIG_IsOK(res1)) {
19308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19309 }
19310 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19313 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
554f62e9
RD
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
e9d6f3a4 19317 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
19318 return resultobj;
19319fail:
19320 return NULL;
19321}
19322
19323
19324SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19325 PyObject *resultobj = 0;
19326 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19327 unsigned int arg2 ;
554f62e9
RD
19328 void *argp1 = 0 ;
19329 int res1 = 0 ;
e9d6f3a4 19330 unsigned int val2 ;
554f62e9
RD
19331 int ecode2 = 0 ;
19332 PyObject * obj0 = 0 ;
19333 PyObject * obj1 = 0 ;
19334 char * kwnames[] = {
19335 (char *) "self",(char *) "internalBorder", NULL
19336 };
19337
19338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19340 if (!SWIG_IsOK(res1)) {
19341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19342 }
19343 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19344 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 19345 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 19347 }
e9d6f3a4 19348 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 (arg1)->SetInternalBorder(arg2);
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 resultobj = SWIG_Py_Void();
19356 return resultobj;
19357fail:
19358 return NULL;
d55e5bfc
RD
19359}
19360
19361
554f62e9
RD
19362SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19363 PyObject *resultobj = 0;
19364 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19365 bool result;
19366 void *argp1 = 0 ;
19367 int res1 = 0 ;
19368 PyObject *swig_obj[1] ;
19369
19370 if (!args) SWIG_fail;
19371 swig_obj[0] = args;
19372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19373 if (!SWIG_IsOK(res1)) {
19374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19375 }
19376 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19377 {
19378 PyThreadState* __tstate = wxPyBeginAllowThreads();
19379 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19380 wxPyEndAllowThreads(__tstate);
19381 if (PyErr_Occurred()) SWIG_fail;
19382 }
19383 {
19384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19385 }
19386 return resultobj;
19387fail:
19388 return NULL;
19389}
19390
19391
e9d6f3a4
RD
19392SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19395 int arg2 ;
19396 void *argp1 = 0 ;
19397 int res1 = 0 ;
19398 int val2 ;
19399 int ecode2 = 0 ;
19400 PyObject * obj0 = 0 ;
19401 PyObject * obj1 = 0 ;
19402 char * kwnames[] = {
19403 (char *) "self",(char *) "margin", NULL
19404 };
19405
19406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19408 if (!SWIG_IsOK(res1)) {
19409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19410 }
19411 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19412 ecode2 = SWIG_AsVal_int(obj1, &val2);
19413 if (!SWIG_IsOK(ecode2)) {
19414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19415 }
19416 arg2 = static_cast< int >(val2);
19417 {
19418 PyThreadState* __tstate = wxPyBeginAllowThreads();
19419 (arg1)->SetControlMargin(arg2);
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 resultobj = SWIG_Py_Void();
19424 return resultobj;
19425fail:
19426 return NULL;
19427}
19428
19429
19430SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19431 PyObject *resultobj = 0;
19432 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19433 int result;
19434 void *argp1 = 0 ;
19435 int res1 = 0 ;
19436 PyObject *swig_obj[1] ;
19437
19438 if (!args) SWIG_fail;
19439 swig_obj[0] = args;
19440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19441 if (!SWIG_IsOK(res1)) {
19442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19443 }
19444 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 resultobj = SWIG_From_int(static_cast< int >(result));
19452 return resultobj;
19453fail:
19454 return NULL;
19455}
19456
19457
554f62e9
RD
19458SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19459 PyObject *resultobj = 0;
19460 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19461 bool arg2 ;
19462 void *argp1 = 0 ;
19463 int res1 = 0 ;
19464 bool val2 ;
19465 int ecode2 = 0 ;
19466 PyObject * obj0 = 0 ;
19467 PyObject * obj1 = 0 ;
19468 char * kwnames[] = {
19469 (char *) "self",(char *) "fit", NULL
19470 };
19471
19472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19474 if (!SWIG_IsOK(res1)) {
19475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19476 }
19477 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19478 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19479 if (!SWIG_IsOK(ecode2)) {
19480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19481 }
19482 arg2 = static_cast< bool >(val2);
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 (arg1)->SetFitToCurrentPage(arg2);
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 resultobj = SWIG_Py_Void();
19490 return resultobj;
19491fail:
19492 return NULL;
d55e5bfc
RD
19493}
19494
19495
554f62e9
RD
19496SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19497 PyObject *resultobj = 0;
19498 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19499 bool result;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 PyObject *swig_obj[1] ;
19503
19504 if (!args) SWIG_fail;
19505 swig_obj[0] = args;
19506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19507 if (!SWIG_IsOK(res1)) {
19508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19509 }
19510 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 {
19518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19519 }
19520 return resultobj;
19521fail:
19522 return NULL;
19523}
19524
19525
e9d6f3a4
RD
19526SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19527 PyObject *resultobj = 0;
19528 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19529 wxSizer *result = 0 ;
19530 void *argp1 = 0 ;
19531 int res1 = 0 ;
19532 PyObject *swig_obj[1] ;
19533
19534 if (!args) SWIG_fail;
19535 swig_obj[0] = args;
19536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19537 if (!SWIG_IsOK(res1)) {
19538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19539 }
19540 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 {
19548 resultobj = wxPyMake_wxObject(result, (bool)0);
19549 }
19550 return resultobj;
19551fail:
19552 return NULL;
19553}
19554
19555
554f62e9
RD
19556SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj = 0;
19558 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19559 size_t arg2 ;
19560 bool result;
19561 void *argp1 = 0 ;
19562 int res1 = 0 ;
19563 size_t val2 ;
19564 int ecode2 = 0 ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 char * kwnames[] = {
19568 (char *) "self",(char *) "n", NULL
19569 };
19570
19571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19573 if (!SWIG_IsOK(res1)) {
19574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19575 }
19576 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19577 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19578 if (!SWIG_IsOK(ecode2)) {
19579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19580 }
19581 arg2 = static_cast< size_t >(val2);
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 result = (bool)(arg1)->DeletePage(arg2);
19585 wxPyEndAllowThreads(__tstate);
19586 if (PyErr_Occurred()) SWIG_fail;
19587 }
19588 {
19589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19590 }
19591 return resultobj;
19592fail:
19593 return NULL;
19594}
19595
19596
19597SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19598 PyObject *resultobj = 0;
19599 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19600 size_t arg2 ;
19601 bool result;
19602 void *argp1 = 0 ;
19603 int res1 = 0 ;
19604 size_t val2 ;
19605 int ecode2 = 0 ;
19606 PyObject * obj0 = 0 ;
19607 PyObject * obj1 = 0 ;
19608 char * kwnames[] = {
19609 (char *) "self",(char *) "n", NULL
19610 };
19611
19612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19616 }
19617 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19618 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19619 if (!SWIG_IsOK(ecode2)) {
19620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19621 }
19622 arg2 = static_cast< size_t >(val2);
19623 {
19624 PyThreadState* __tstate = wxPyBeginAllowThreads();
19625 result = (bool)(arg1)->RemovePage(arg2);
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 {
19630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19631 }
19632 return resultobj;
19633fail:
19634 return NULL;
d55e5bfc
RD
19635}
19636
19637
554f62e9
RD
19638SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19639 PyObject *resultobj = 0;
19640 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19641 bool result;
19642 void *argp1 = 0 ;
19643 int res1 = 0 ;
19644 PyObject *swig_obj[1] ;
19645
19646 if (!args) SWIG_fail;
19647 swig_obj[0] = args;
19648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19649 if (!SWIG_IsOK(res1)) {
19650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19651 }
19652 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 result = (bool)(arg1)->DeleteAllPages();
19656 wxPyEndAllowThreads(__tstate);
19657 if (PyErr_Occurred()) SWIG_fail;
19658 }
19659 {
19660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19661 }
19662 return resultobj;
19663fail:
19664 return NULL;
19665}
19666
19667
19668SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19669 PyObject *resultobj = 0;
19670 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19671 wxWindow *arg2 = (wxWindow *) 0 ;
19672 wxString *arg3 = 0 ;
19673 bool arg4 = (bool) false ;
19674 int arg5 = (int) -1 ;
19675 bool result;
19676 void *argp1 = 0 ;
19677 int res1 = 0 ;
19678 void *argp2 = 0 ;
19679 int res2 = 0 ;
19680 bool temp3 = false ;
19681 bool val4 ;
19682 int ecode4 = 0 ;
19683 int val5 ;
19684 int ecode5 = 0 ;
19685 PyObject * obj0 = 0 ;
19686 PyObject * obj1 = 0 ;
19687 PyObject * obj2 = 0 ;
19688 PyObject * obj3 = 0 ;
19689 PyObject * obj4 = 0 ;
19690 char * kwnames[] = {
19691 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19692 };
19693
19694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19696 if (!SWIG_IsOK(res1)) {
19697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19698 }
19699 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19701 if (!SWIG_IsOK(res2)) {
19702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19703 }
19704 arg2 = reinterpret_cast< wxWindow * >(argp2);
19705 {
19706 arg3 = wxString_in_helper(obj2);
19707 if (arg3 == NULL) SWIG_fail;
19708 temp3 = true;
19709 }
19710 if (obj3) {
19711 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19712 if (!SWIG_IsOK(ecode4)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19714 }
19715 arg4 = static_cast< bool >(val4);
19716 }
19717 if (obj4) {
19718 ecode5 = SWIG_AsVal_int(obj4, &val5);
19719 if (!SWIG_IsOK(ecode5)) {
19720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19721 }
19722 arg5 = static_cast< int >(val5);
19723 }
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 {
19731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19732 }
19733 {
19734 if (temp3)
19735 delete arg3;
19736 }
19737 return resultobj;
19738fail:
19739 {
19740 if (temp3)
19741 delete arg3;
19742 }
19743 return NULL;
19744}
19745
19746
19747SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19748 PyObject *resultobj = 0;
19749 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19750 size_t arg2 ;
19751 wxWindow *arg3 = (wxWindow *) 0 ;
19752 wxString *arg4 = 0 ;
19753 bool arg5 = (bool) false ;
19754 int arg6 = (int) -1 ;
19755 bool result;
19756 void *argp1 = 0 ;
19757 int res1 = 0 ;
19758 size_t val2 ;
19759 int ecode2 = 0 ;
19760 void *argp3 = 0 ;
19761 int res3 = 0 ;
19762 bool temp4 = false ;
19763 bool val5 ;
19764 int ecode5 = 0 ;
19765 int val6 ;
19766 int ecode6 = 0 ;
19767 PyObject * obj0 = 0 ;
19768 PyObject * obj1 = 0 ;
19769 PyObject * obj2 = 0 ;
19770 PyObject * obj3 = 0 ;
19771 PyObject * obj4 = 0 ;
19772 PyObject * obj5 = 0 ;
19773 char * kwnames[] = {
19774 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19775 };
19776
19777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19779 if (!SWIG_IsOK(res1)) {
19780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19781 }
19782 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19783 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19784 if (!SWIG_IsOK(ecode2)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19786 }
19787 arg2 = static_cast< size_t >(val2);
19788 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19789 if (!SWIG_IsOK(res3)) {
19790 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19791 }
19792 arg3 = reinterpret_cast< wxWindow * >(argp3);
19793 {
19794 arg4 = wxString_in_helper(obj3);
19795 if (arg4 == NULL) SWIG_fail;
19796 temp4 = true;
19797 }
19798 if (obj4) {
19799 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19800 if (!SWIG_IsOK(ecode5)) {
19801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19802 }
19803 arg5 = static_cast< bool >(val5);
19804 }
19805 if (obj5) {
19806 ecode6 = SWIG_AsVal_int(obj5, &val6);
19807 if (!SWIG_IsOK(ecode6)) {
19808 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19809 }
19810 arg6 = static_cast< int >(val6);
19811 }
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 {
19819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19820 }
19821 {
19822 if (temp4)
19823 delete arg4;
19824 }
19825 return resultobj;
19826fail:
19827 {
19828 if (temp4)
19829 delete arg4;
19830 }
19831 return NULL;
19832}
19833
19834
19835SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19838 size_t arg2 ;
19839 int result;
19840 void *argp1 = 0 ;
19841 int res1 = 0 ;
19842 size_t val2 ;
19843 int ecode2 = 0 ;
19844 PyObject * obj0 = 0 ;
19845 PyObject * obj1 = 0 ;
19846 char * kwnames[] = {
19847 (char *) "self",(char *) "n", NULL
19848 };
19849
19850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19854 }
19855 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19856 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19857 if (!SWIG_IsOK(ecode2)) {
19858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19859 }
19860 arg2 = static_cast< size_t >(val2);
19861 {
19862 PyThreadState* __tstate = wxPyBeginAllowThreads();
19863 result = (int)(arg1)->SetSelection(arg2);
19864 wxPyEndAllowThreads(__tstate);
19865 if (PyErr_Occurred()) SWIG_fail;
19866 }
19867 resultobj = SWIG_From_int(static_cast< int >(result));
19868 return resultobj;
19869fail:
19870 return NULL;
19871}
19872
19873
19874SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19875 PyObject *resultobj = 0;
19876 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19877 bool arg2 = (bool) true ;
19878 void *argp1 = 0 ;
19879 int res1 = 0 ;
19880 bool val2 ;
19881 int ecode2 = 0 ;
19882 PyObject * obj0 = 0 ;
19883 PyObject * obj1 = 0 ;
19884 char * kwnames[] = {
19885 (char *) "self",(char *) "forward", NULL
19886 };
19887
19888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19890 if (!SWIG_IsOK(res1)) {
19891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19892 }
19893 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19894 if (obj1) {
19895 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19896 if (!SWIG_IsOK(ecode2)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19898 }
19899 arg2 = static_cast< bool >(val2);
19900 }
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 (arg1)->AdvanceSelection(arg2);
19904 wxPyEndAllowThreads(__tstate);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 }
19907 resultobj = SWIG_Py_Void();
19908 return resultobj;
19909fail:
19910 return NULL;
19911}
19912
19913
19914SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19915 PyObject *resultobj = 0;
19916 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19917 SwigValueWrapper<wxVisualAttributes > result;
19918 int val1 ;
19919 int ecode1 = 0 ;
19920 PyObject * obj0 = 0 ;
19921 char * kwnames[] = {
19922 (char *) "variant", NULL
19923 };
19924
19925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19926 if (obj0) {
19927 ecode1 = SWIG_AsVal_int(obj0, &val1);
19928 if (!SWIG_IsOK(ecode1)) {
19929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19930 }
19931 arg1 = static_cast< wxWindowVariant >(val1);
19932 }
19933 {
19934 if (!wxPyCheckForApp()) SWIG_fail;
19935 PyThreadState* __tstate = wxPyBeginAllowThreads();
19936 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19941 return resultobj;
19942fail:
19943 return NULL;
19944}
19945
19946
19947SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19948 PyObject *obj;
19949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19950 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19951 return SWIG_Py_Void();
19952}
19953
19954SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19955 PyObject *resultobj = 0;
19956 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19957 int arg2 = (int) 0 ;
19958 int arg3 = (int) -1 ;
19959 int arg4 = (int) -1 ;
19960 wxBookCtrlBaseEvent *result = 0 ;
19961 int val1 ;
19962 int ecode1 = 0 ;
19963 int val2 ;
19964 int ecode2 = 0 ;
19965 int val3 ;
19966 int ecode3 = 0 ;
19967 int val4 ;
19968 int ecode4 = 0 ;
19969 PyObject * obj0 = 0 ;
19970 PyObject * obj1 = 0 ;
19971 PyObject * obj2 = 0 ;
19972 PyObject * obj3 = 0 ;
19973 char * kwnames[] = {
19974 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19975 };
19976
19977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19978 if (obj0) {
19979 ecode1 = SWIG_AsVal_int(obj0, &val1);
19980 if (!SWIG_IsOK(ecode1)) {
19981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19982 }
19983 arg1 = static_cast< wxEventType >(val1);
19984 }
19985 if (obj1) {
19986 ecode2 = SWIG_AsVal_int(obj1, &val2);
19987 if (!SWIG_IsOK(ecode2)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19989 }
19990 arg2 = static_cast< int >(val2);
19991 }
19992 if (obj2) {
19993 ecode3 = SWIG_AsVal_int(obj2, &val3);
19994 if (!SWIG_IsOK(ecode3)) {
19995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19996 }
19997 arg3 = static_cast< int >(val3);
19998 }
19999 if (obj3) {
20000 ecode4 = SWIG_AsVal_int(obj3, &val4);
20001 if (!SWIG_IsOK(ecode4)) {
20002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20003 }
20004 arg4 = static_cast< int >(val4);
20005 }
20006 {
20007 PyThreadState* __tstate = wxPyBeginAllowThreads();
20008 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20009 wxPyEndAllowThreads(__tstate);
20010 if (PyErr_Occurred()) SWIG_fail;
20011 }
20012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20013 return resultobj;
20014fail:
20015 return NULL;
d55e5bfc
RD
20016}
20017
20018
554f62e9
RD
20019SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20020 PyObject *resultobj = 0;
20021 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20022 int result;
20023 void *argp1 = 0 ;
20024 int res1 = 0 ;
20025 PyObject *swig_obj[1] ;
20026
20027 if (!args) SWIG_fail;
20028 swig_obj[0] = args;
20029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20030 if (!SWIG_IsOK(res1)) {
20031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20032 }
20033 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20034 {
20035 PyThreadState* __tstate = wxPyBeginAllowThreads();
20036 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20037 wxPyEndAllowThreads(__tstate);
20038 if (PyErr_Occurred()) SWIG_fail;
20039 }
20040 resultobj = SWIG_From_int(static_cast< int >(result));
20041 return resultobj;
20042fail:
20043 return NULL;
20044}
20045
20046
20047SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj = 0;
20049 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20050 int arg2 ;
20051 void *argp1 = 0 ;
20052 int res1 = 0 ;
20053 int val2 ;
20054 int ecode2 = 0 ;
20055 PyObject * obj0 = 0 ;
20056 PyObject * obj1 = 0 ;
20057 char * kwnames[] = {
20058 (char *) "self",(char *) "nSel", NULL
20059 };
20060
20061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20063 if (!SWIG_IsOK(res1)) {
20064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20065 }
20066 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20067 ecode2 = SWIG_AsVal_int(obj1, &val2);
20068 if (!SWIG_IsOK(ecode2)) {
20069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20070 }
20071 arg2 = static_cast< int >(val2);
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 (arg1)->SetSelection(arg2);
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 resultobj = SWIG_Py_Void();
20079 return resultobj;
20080fail:
20081 return NULL;
d55e5bfc
RD
20082}
20083
20084
554f62e9
RD
20085SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20086 PyObject *resultobj = 0;
20087 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20088 int result;
20089 void *argp1 = 0 ;
20090 int res1 = 0 ;
20091 PyObject *swig_obj[1] ;
20092
20093 if (!args) SWIG_fail;
20094 swig_obj[0] = args;
20095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20096 if (!SWIG_IsOK(res1)) {
20097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20098 }
20099 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20100 {
20101 PyThreadState* __tstate = wxPyBeginAllowThreads();
20102 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20103 wxPyEndAllowThreads(__tstate);
20104 if (PyErr_Occurred()) SWIG_fail;
20105 }
20106 resultobj = SWIG_From_int(static_cast< int >(result));
20107 return resultobj;
20108fail:
20109 return NULL;
20110}
20111
20112
20113SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20114 PyObject *resultobj = 0;
20115 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20116 int arg2 ;
20117 void *argp1 = 0 ;
20118 int res1 = 0 ;
20119 int val2 ;
20120 int ecode2 = 0 ;
20121 PyObject * obj0 = 0 ;
20122 PyObject * obj1 = 0 ;
20123 char * kwnames[] = {
20124 (char *) "self",(char *) "nOldSel", NULL
20125 };
20126
20127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20129 if (!SWIG_IsOK(res1)) {
20130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20131 }
20132 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20133 ecode2 = SWIG_AsVal_int(obj1, &val2);
20134 if (!SWIG_IsOK(ecode2)) {
20135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20136 }
20137 arg2 = static_cast< int >(val2);
20138 {
20139 PyThreadState* __tstate = wxPyBeginAllowThreads();
20140 (arg1)->SetOldSelection(arg2);
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 resultobj = SWIG_Py_Void();
20145 return resultobj;
20146fail:
20147 return NULL;
20148}
20149
20150
20151SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20152 PyObject *obj;
20153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20154 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20155 return SWIG_Py_Void();
20156}
20157
20158SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20159 return SWIG_Python_InitShadowInstance(args);
20160}
20161
20162SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20163 PyObject *resultobj = 0;
20164 wxWindow *arg1 = (wxWindow *) 0 ;
20165 int arg2 = (int) -1 ;
20166 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20167 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20168 wxSize const &arg4_defvalue = wxDefaultSize ;
20169 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20170 long arg5 = (long) 0 ;
20171 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20172 wxString *arg6 = (wxString *) &arg6_defvalue ;
20173 wxNotebook *result = 0 ;
20174 void *argp1 = 0 ;
20175 int res1 = 0 ;
20176 int val2 ;
20177 int ecode2 = 0 ;
20178 wxPoint temp3 ;
20179 wxSize temp4 ;
20180 long val5 ;
20181 int ecode5 = 0 ;
20182 bool temp6 = false ;
20183 PyObject * obj0 = 0 ;
20184 PyObject * obj1 = 0 ;
20185 PyObject * obj2 = 0 ;
20186 PyObject * obj3 = 0 ;
20187 PyObject * obj4 = 0 ;
20188 PyObject * obj5 = 0 ;
20189 char * kwnames[] = {
20190 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20191 };
20192
20193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20195 if (!SWIG_IsOK(res1)) {
20196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20197 }
20198 arg1 = reinterpret_cast< wxWindow * >(argp1);
20199 if (obj1) {
20200 ecode2 = SWIG_AsVal_int(obj1, &val2);
20201 if (!SWIG_IsOK(ecode2)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20203 }
20204 arg2 = static_cast< int >(val2);
20205 }
20206 if (obj2) {
093d3ff1 20207 {
554f62e9
RD
20208 arg3 = &temp3;
20209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20210 }
554f62e9
RD
20211 }
20212 if (obj3) {
d55e5bfc 20213 {
554f62e9
RD
20214 arg4 = &temp4;
20215 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20216 }
554f62e9
RD
20217 }
20218 if (obj4) {
20219 ecode5 = SWIG_AsVal_long(obj4, &val5);
20220 if (!SWIG_IsOK(ecode5)) {
20221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20222 }
20223 arg5 = static_cast< long >(val5);
20224 }
20225 if (obj5) {
20226 {
20227 arg6 = wxString_in_helper(obj5);
20228 if (arg6 == NULL) SWIG_fail;
20229 temp6 = true;
20230 }
20231 }
20232 {
20233 if (!wxPyCheckForApp()) SWIG_fail;
20234 PyThreadState* __tstate = wxPyBeginAllowThreads();
20235 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20236 wxPyEndAllowThreads(__tstate);
20237 if (PyErr_Occurred()) SWIG_fail;
20238 }
20239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20240 {
20241 if (temp6)
20242 delete arg6;
20243 }
20244 return resultobj;
20245fail:
20246 {
20247 if (temp6)
20248 delete arg6;
20249 }
20250 return NULL;
d55e5bfc
RD
20251}
20252
20253
554f62e9
RD
20254SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20255 PyObject *resultobj = 0;
20256 wxNotebook *result = 0 ;
20257
20258 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20259 {
20260 if (!wxPyCheckForApp()) SWIG_fail;
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 result = (wxNotebook *)new wxNotebook();
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20267 return resultobj;
20268fail:
20269 return NULL;
20270}
20271
20272
20273SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20274 PyObject *resultobj = 0;
20275 wxNotebook *arg1 = (wxNotebook *) 0 ;
20276 wxWindow *arg2 = (wxWindow *) 0 ;
20277 int arg3 = (int) -1 ;
20278 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20279 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20280 wxSize const &arg5_defvalue = wxDefaultSize ;
20281 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20282 long arg6 = (long) 0 ;
20283 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20284 wxString *arg7 = (wxString *) &arg7_defvalue ;
20285 bool result;
20286 void *argp1 = 0 ;
20287 int res1 = 0 ;
20288 void *argp2 = 0 ;
20289 int res2 = 0 ;
20290 int val3 ;
20291 int ecode3 = 0 ;
20292 wxPoint temp4 ;
20293 wxSize temp5 ;
20294 long val6 ;
20295 int ecode6 = 0 ;
20296 bool temp7 = false ;
20297 PyObject * obj0 = 0 ;
20298 PyObject * obj1 = 0 ;
20299 PyObject * obj2 = 0 ;
20300 PyObject * obj3 = 0 ;
20301 PyObject * obj4 = 0 ;
20302 PyObject * obj5 = 0 ;
20303 PyObject * obj6 = 0 ;
20304 char * kwnames[] = {
20305 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20306 };
20307
20308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20310 if (!SWIG_IsOK(res1)) {
20311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20312 }
20313 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20315 if (!SWIG_IsOK(res2)) {
20316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20317 }
20318 arg2 = reinterpret_cast< wxWindow * >(argp2);
20319 if (obj2) {
20320 ecode3 = SWIG_AsVal_int(obj2, &val3);
20321 if (!SWIG_IsOK(ecode3)) {
20322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20323 }
20324 arg3 = static_cast< int >(val3);
20325 }
20326 if (obj3) {
093d3ff1 20327 {
554f62e9
RD
20328 arg4 = &temp4;
20329 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20330 }
554f62e9
RD
20331 }
20332 if (obj4) {
093d3ff1 20333 {
554f62e9
RD
20334 arg5 = &temp5;
20335 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 20336 }
554f62e9
RD
20337 }
20338 if (obj5) {
20339 ecode6 = SWIG_AsVal_long(obj5, &val6);
20340 if (!SWIG_IsOK(ecode6)) {
20341 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20342 }
20343 arg6 = static_cast< long >(val6);
20344 }
20345 if (obj6) {
d55e5bfc 20346 {
554f62e9
RD
20347 arg7 = wxString_in_helper(obj6);
20348 if (arg7 == NULL) SWIG_fail;
20349 temp7 = true;
d55e5bfc 20350 }
554f62e9
RD
20351 }
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20355 wxPyEndAllowThreads(__tstate);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 }
20358 {
20359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20360 }
20361 {
20362 if (temp7)
20363 delete arg7;
20364 }
20365 return resultobj;
20366fail:
20367 {
20368 if (temp7)
20369 delete arg7;
20370 }
20371 return NULL;
f20a2e1f
RD
20372}
20373
20374
554f62e9
RD
20375SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20376 PyObject *resultobj = 0;
20377 wxNotebook *arg1 = (wxNotebook *) 0 ;
20378 int result;
20379 void *argp1 = 0 ;
20380 int res1 = 0 ;
20381 PyObject *swig_obj[1] ;
20382
20383 if (!args) SWIG_fail;
20384 swig_obj[0] = args;
20385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20386 if (!SWIG_IsOK(res1)) {
20387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20388 }
20389 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20390 {
20391 PyThreadState* __tstate = wxPyBeginAllowThreads();
20392 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20393 wxPyEndAllowThreads(__tstate);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 resultobj = SWIG_From_int(static_cast< int >(result));
20397 return resultobj;
20398fail:
20399 return NULL;
20400}
20401
20402
20403SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20404 PyObject *resultobj = 0;
20405 wxNotebook *arg1 = (wxNotebook *) 0 ;
20406 wxSize *arg2 = 0 ;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 wxSize temp2 ;
20410 PyObject * obj0 = 0 ;
20411 PyObject * obj1 = 0 ;
20412 char * kwnames[] = {
20413 (char *) "self",(char *) "padding", NULL
20414 };
20415
20416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20418 if (!SWIG_IsOK(res1)) {
20419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20420 }
20421 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20422 {
20423 arg2 = &temp2;
20424 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20425 }
20426 {
20427 PyThreadState* __tstate = wxPyBeginAllowThreads();
20428 (arg1)->SetPadding((wxSize const &)*arg2);
20429 wxPyEndAllowThreads(__tstate);
20430 if (PyErr_Occurred()) SWIG_fail;
20431 }
20432 resultobj = SWIG_Py_Void();
20433 return resultobj;
20434fail:
20435 return NULL;
20436}
20437
20438
20439SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20440 PyObject *resultobj = 0;
20441 wxNotebook *arg1 = (wxNotebook *) 0 ;
20442 wxSize *arg2 = 0 ;
20443 void *argp1 = 0 ;
20444 int res1 = 0 ;
20445 wxSize temp2 ;
20446 PyObject * obj0 = 0 ;
20447 PyObject * obj1 = 0 ;
20448 char * kwnames[] = {
20449 (char *) "self",(char *) "sz", NULL
20450 };
20451
20452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20456 }
20457 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20458 {
20459 arg2 = &temp2;
20460 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20461 }
20462 {
20463 PyThreadState* __tstate = wxPyBeginAllowThreads();
20464 (arg1)->SetTabSize((wxSize const &)*arg2);
20465 wxPyEndAllowThreads(__tstate);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 resultobj = SWIG_Py_Void();
20469 return resultobj;
20470fail:
20471 return NULL;
20472}
20473
20474
20475SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20476 PyObject *resultobj = 0;
20477 wxNotebook *arg1 = (wxNotebook *) 0 ;
20478 wxPoint *arg2 = 0 ;
20479 long *arg3 = (long *) 0 ;
20480 int result;
20481 void *argp1 = 0 ;
20482 int res1 = 0 ;
20483 wxPoint temp2 ;
20484 long temp3 ;
20485 int res3 = SWIG_TMPOBJ ;
20486 PyObject * obj0 = 0 ;
20487 PyObject * obj1 = 0 ;
20488 char * kwnames[] = {
20489 (char *) "self",(char *) "pt", NULL
20490 };
20491
20492 arg3 = &temp3;
20493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20495 if (!SWIG_IsOK(res1)) {
20496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20497 }
20498 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20499 {
20500 arg2 = &temp2;
20501 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20502 }
20503 {
20504 PyThreadState* __tstate = wxPyBeginAllowThreads();
20505 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20506 wxPyEndAllowThreads(__tstate);
20507 if (PyErr_Occurred()) SWIG_fail;
20508 }
20509 resultobj = SWIG_From_int(static_cast< int >(result));
20510 if (SWIG_IsTmpObj(res3)) {
20511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20512 } else {
20513 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20515 }
20516 return resultobj;
20517fail:
20518 return NULL;
d55e5bfc
RD
20519}
20520
20521
554f62e9
RD
20522SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20523 PyObject *resultobj = 0;
20524 wxNotebook *arg1 = (wxNotebook *) 0 ;
20525 wxColour result;
20526 void *argp1 = 0 ;
20527 int res1 = 0 ;
20528 PyObject *swig_obj[1] ;
20529
20530 if (!args) SWIG_fail;
20531 swig_obj[0] = args;
20532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20533 if (!SWIG_IsOK(res1)) {
20534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20535 }
20536 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20540 wxPyEndAllowThreads(__tstate);
20541 if (PyErr_Occurred()) SWIG_fail;
20542 }
20543 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20544 return resultobj;
20545fail:
20546 return NULL;
20547}
20548
20549
20550SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj = 0;
20552 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20553 SwigValueWrapper<wxVisualAttributes > result;
20554 int val1 ;
20555 int ecode1 = 0 ;
20556 PyObject * obj0 = 0 ;
20557 char * kwnames[] = {
20558 (char *) "variant", NULL
20559 };
20560
20561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20562 if (obj0) {
20563 ecode1 = SWIG_AsVal_int(obj0, &val1);
20564 if (!SWIG_IsOK(ecode1)) {
20565 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20566 }
20567 arg1 = static_cast< wxWindowVariant >(val1);
20568 }
20569 {
20570 if (!wxPyCheckForApp()) SWIG_fail;
20571 PyThreadState* __tstate = wxPyBeginAllowThreads();
20572 result = wxNotebook::GetClassDefaultAttributes(arg1);
20573 wxPyEndAllowThreads(__tstate);
20574 if (PyErr_Occurred()) SWIG_fail;
20575 }
20576 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20577 return resultobj;
20578fail:
20579 return NULL;
20580}
20581
20582
20583SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20584 PyObject *obj;
20585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20586 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20587 return SWIG_Py_Void();
20588}
20589
20590SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20591 return SWIG_Python_InitShadowInstance(args);
20592}
20593
20594SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20595 PyObject *resultobj = 0;
20596 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20597 int arg2 = (int) 0 ;
20598 int arg3 = (int) -1 ;
20599 int arg4 = (int) -1 ;
20600 wxNotebookEvent *result = 0 ;
20601 int val1 ;
20602 int ecode1 = 0 ;
20603 int val2 ;
20604 int ecode2 = 0 ;
20605 int val3 ;
20606 int ecode3 = 0 ;
20607 int val4 ;
20608 int ecode4 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 PyObject * obj2 = 0 ;
20612 PyObject * obj3 = 0 ;
20613 char * kwnames[] = {
20614 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20615 };
20616
20617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20618 if (obj0) {
20619 ecode1 = SWIG_AsVal_int(obj0, &val1);
20620 if (!SWIG_IsOK(ecode1)) {
20621 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20622 }
20623 arg1 = static_cast< wxEventType >(val1);
20624 }
20625 if (obj1) {
20626 ecode2 = SWIG_AsVal_int(obj1, &val2);
20627 if (!SWIG_IsOK(ecode2)) {
20628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20629 }
20630 arg2 = static_cast< int >(val2);
20631 }
20632 if (obj2) {
20633 ecode3 = SWIG_AsVal_int(obj2, &val3);
20634 if (!SWIG_IsOK(ecode3)) {
20635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20636 }
20637 arg3 = static_cast< int >(val3);
20638 }
20639 if (obj3) {
20640 ecode4 = SWIG_AsVal_int(obj3, &val4);
20641 if (!SWIG_IsOK(ecode4)) {
20642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20643 }
20644 arg4 = static_cast< int >(val4);
20645 }
20646 {
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20653 return resultobj;
20654fail:
20655 return NULL;
20656}
20657
20658
20659SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20660 PyObject *obj;
20661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20662 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20663 return SWIG_Py_Void();
20664}
20665
20666SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20667 return SWIG_Python_InitShadowInstance(args);
20668}
20669
20670SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj = 0;
20672 wxWindow *arg1 = (wxWindow *) 0 ;
20673 int arg2 = (int) -1 ;
20674 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20675 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20676 wxSize const &arg4_defvalue = wxDefaultSize ;
20677 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20678 long arg5 = (long) 0 ;
20679 wxString const &arg6_defvalue = wxPyEmptyString ;
20680 wxString *arg6 = (wxString *) &arg6_defvalue ;
20681 wxListbook *result = 0 ;
20682 void *argp1 = 0 ;
20683 int res1 = 0 ;
20684 int val2 ;
20685 int ecode2 = 0 ;
20686 wxPoint temp3 ;
20687 wxSize temp4 ;
20688 long val5 ;
20689 int ecode5 = 0 ;
20690 bool temp6 = false ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 PyObject * obj2 = 0 ;
20694 PyObject * obj3 = 0 ;
20695 PyObject * obj4 = 0 ;
20696 PyObject * obj5 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20705 }
20706 arg1 = reinterpret_cast< wxWindow * >(argp1);
20707 if (obj1) {
20708 ecode2 = SWIG_AsVal_int(obj1, &val2);
20709 if (!SWIG_IsOK(ecode2)) {
20710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20711 }
20712 arg2 = static_cast< int >(val2);
20713 }
20714 if (obj2) {
20715 {
20716 arg3 = &temp3;
20717 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 20718 }
554f62e9
RD
20719 }
20720 if (obj3) {
d55e5bfc 20721 {
554f62e9
RD
20722 arg4 = &temp4;
20723 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20724 }
554f62e9
RD
20725 }
20726 if (obj4) {
20727 ecode5 = SWIG_AsVal_long(obj4, &val5);
20728 if (!SWIG_IsOK(ecode5)) {
20729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20730 }
20731 arg5 = static_cast< long >(val5);
20732 }
20733 if (obj5) {
d55e5bfc 20734 {
554f62e9
RD
20735 arg6 = wxString_in_helper(obj5);
20736 if (arg6 == NULL) SWIG_fail;
20737 temp6 = true;
d55e5bfc 20738 }
554f62e9
RD
20739 }
20740 {
20741 if (!wxPyCheckForApp()) SWIG_fail;
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20748 {
20749 if (temp6)
20750 delete arg6;
20751 }
20752 return resultobj;
20753fail:
20754 {
20755 if (temp6)
20756 delete arg6;
20757 }
20758 return NULL;
d55e5bfc
RD
20759}
20760
20761
554f62e9
RD
20762SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20763 PyObject *resultobj = 0;
20764 wxListbook *result = 0 ;
20765
20766 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20767 {
20768 if (!wxPyCheckForApp()) SWIG_fail;
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (wxListbook *)new wxListbook();
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20775 return resultobj;
20776fail:
20777 return NULL;
20778}
20779
20780
20781SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj = 0;
20783 wxListbook *arg1 = (wxListbook *) 0 ;
20784 wxWindow *arg2 = (wxWindow *) 0 ;
20785 int arg3 = (int) -1 ;
20786 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20787 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20788 wxSize const &arg5_defvalue = wxDefaultSize ;
20789 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20790 long arg6 = (long) 0 ;
20791 wxString const &arg7_defvalue = wxPyEmptyString ;
20792 wxString *arg7 = (wxString *) &arg7_defvalue ;
20793 bool result;
20794 void *argp1 = 0 ;
20795 int res1 = 0 ;
20796 void *argp2 = 0 ;
20797 int res2 = 0 ;
20798 int val3 ;
20799 int ecode3 = 0 ;
20800 wxPoint temp4 ;
20801 wxSize temp5 ;
20802 long val6 ;
20803 int ecode6 = 0 ;
20804 bool temp7 = false ;
20805 PyObject * obj0 = 0 ;
20806 PyObject * obj1 = 0 ;
20807 PyObject * obj2 = 0 ;
20808 PyObject * obj3 = 0 ;
20809 PyObject * obj4 = 0 ;
20810 PyObject * obj5 = 0 ;
20811 PyObject * obj6 = 0 ;
20812 char * kwnames[] = {
20813 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20814 };
20815
20816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20818 if (!SWIG_IsOK(res1)) {
20819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20820 }
20821 arg1 = reinterpret_cast< wxListbook * >(argp1);
20822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20823 if (!SWIG_IsOK(res2)) {
20824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20825 }
20826 arg2 = reinterpret_cast< wxWindow * >(argp2);
20827 if (obj2) {
20828 ecode3 = SWIG_AsVal_int(obj2, &val3);
20829 if (!SWIG_IsOK(ecode3)) {
20830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20831 }
20832 arg3 = static_cast< int >(val3);
20833 }
20834 if (obj3) {
d55e5bfc 20835 {
554f62e9
RD
20836 arg4 = &temp4;
20837 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20838 }
554f62e9
RD
20839 }
20840 if (obj4) {
d55e5bfc 20841 {
554f62e9
RD
20842 arg5 = &temp5;
20843 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20844 }
554f62e9
RD
20845 }
20846 if (obj5) {
20847 ecode6 = SWIG_AsVal_long(obj5, &val6);
20848 if (!SWIG_IsOK(ecode6)) {
20849 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20850 }
20851 arg6 = static_cast< long >(val6);
20852 }
20853 if (obj6) {
d55e5bfc 20854 {
554f62e9
RD
20855 arg7 = wxString_in_helper(obj6);
20856 if (arg7 == NULL) SWIG_fail;
20857 temp7 = true;
d55e5bfc 20858 }
554f62e9
RD
20859 }
20860 {
20861 PyThreadState* __tstate = wxPyBeginAllowThreads();
20862 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20863 wxPyEndAllowThreads(__tstate);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 }
20866 {
20867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20868 }
20869 {
20870 if (temp7)
20871 delete arg7;
20872 }
20873 return resultobj;
20874fail:
20875 {
20876 if (temp7)
20877 delete arg7;
20878 }
20879 return NULL;
d55e5bfc
RD
20880}
20881
20882
554f62e9
RD
20883SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *resultobj = 0;
20885 wxListbook *arg1 = (wxListbook *) 0 ;
20886 wxListView *result = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 PyObject *swig_obj[1] ;
20890
20891 if (!args) SWIG_fail;
20892 swig_obj[0] = args;
20893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20894 if (!SWIG_IsOK(res1)) {
20895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20896 }
20897 arg1 = reinterpret_cast< wxListbook * >(argp1);
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
20900 result = (wxListView *)(arg1)->GetListView();
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20905 return resultobj;
20906fail:
20907 return NULL;
20908}
20909
20910
20911SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20912 PyObject *obj;
20913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20914 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20915 return SWIG_Py_Void();
20916}
20917
20918SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20919 return SWIG_Python_InitShadowInstance(args);
20920}
20921
20922SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20923 PyObject *resultobj = 0;
20924 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20925 int arg2 = (int) 0 ;
20926 int arg3 = (int) -1 ;
20927 int arg4 = (int) -1 ;
20928 wxListbookEvent *result = 0 ;
20929 int val1 ;
20930 int ecode1 = 0 ;
20931 int val2 ;
20932 int ecode2 = 0 ;
20933 int val3 ;
20934 int ecode3 = 0 ;
20935 int val4 ;
20936 int ecode4 = 0 ;
20937 PyObject * obj0 = 0 ;
20938 PyObject * obj1 = 0 ;
20939 PyObject * obj2 = 0 ;
20940 PyObject * obj3 = 0 ;
20941 char * kwnames[] = {
20942 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20943 };
20944
20945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20946 if (obj0) {
20947 ecode1 = SWIG_AsVal_int(obj0, &val1);
20948 if (!SWIG_IsOK(ecode1)) {
20949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20950 }
20951 arg1 = static_cast< wxEventType >(val1);
20952 }
20953 if (obj1) {
20954 ecode2 = SWIG_AsVal_int(obj1, &val2);
20955 if (!SWIG_IsOK(ecode2)) {
20956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20957 }
20958 arg2 = static_cast< int >(val2);
20959 }
20960 if (obj2) {
20961 ecode3 = SWIG_AsVal_int(obj2, &val3);
20962 if (!SWIG_IsOK(ecode3)) {
20963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20964 }
20965 arg3 = static_cast< int >(val3);
20966 }
20967 if (obj3) {
20968 ecode4 = SWIG_AsVal_int(obj3, &val4);
20969 if (!SWIG_IsOK(ecode4)) {
20970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20971 }
20972 arg4 = static_cast< int >(val4);
20973 }
20974 {
20975 PyThreadState* __tstate = wxPyBeginAllowThreads();
20976 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20977 wxPyEndAllowThreads(__tstate);
20978 if (PyErr_Occurred()) SWIG_fail;
20979 }
20980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20981 return resultobj;
20982fail:
20983 return NULL;
20984}
20985
20986
20987SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20988 PyObject *obj;
20989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20990 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20991 return SWIG_Py_Void();
20992}
20993
20994SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20995 return SWIG_Python_InitShadowInstance(args);
20996}
20997
20998SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20999 PyObject *resultobj = 0;
21000 wxWindow *arg1 = (wxWindow *) 0 ;
21001 int arg2 ;
21002 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21003 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21004 wxSize const &arg4_defvalue = wxDefaultSize ;
21005 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21006 long arg5 = (long) 0 ;
21007 wxString const &arg6_defvalue = wxPyEmptyString ;
21008 wxString *arg6 = (wxString *) &arg6_defvalue ;
21009 wxChoicebook *result = 0 ;
21010 void *argp1 = 0 ;
21011 int res1 = 0 ;
21012 int val2 ;
21013 int ecode2 = 0 ;
21014 wxPoint temp3 ;
21015 wxSize temp4 ;
21016 long val5 ;
21017 int ecode5 = 0 ;
21018 bool temp6 = false ;
21019 PyObject * obj0 = 0 ;
21020 PyObject * obj1 = 0 ;
21021 PyObject * obj2 = 0 ;
21022 PyObject * obj3 = 0 ;
21023 PyObject * obj4 = 0 ;
21024 PyObject * obj5 = 0 ;
21025 char * kwnames[] = {
21026 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21027 };
21028
21029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21033 }
21034 arg1 = reinterpret_cast< wxWindow * >(argp1);
21035 ecode2 = SWIG_AsVal_int(obj1, &val2);
21036 if (!SWIG_IsOK(ecode2)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21038 }
21039 arg2 = static_cast< int >(val2);
21040 if (obj2) {
d55e5bfc 21041 {
554f62e9
RD
21042 arg3 = &temp3;
21043 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21044 }
554f62e9
RD
21045 }
21046 if (obj3) {
d55e5bfc 21047 {
554f62e9
RD
21048 arg4 = &temp4;
21049 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21050 }
554f62e9
RD
21051 }
21052 if (obj4) {
21053 ecode5 = SWIG_AsVal_long(obj4, &val5);
21054 if (!SWIG_IsOK(ecode5)) {
21055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21056 }
21057 arg5 = static_cast< long >(val5);
21058 }
21059 if (obj5) {
d55e5bfc 21060 {
554f62e9
RD
21061 arg6 = wxString_in_helper(obj5);
21062 if (arg6 == NULL) SWIG_fail;
21063 temp6 = true;
d55e5bfc 21064 }
554f62e9
RD
21065 }
21066 {
21067 if (!wxPyCheckForApp()) SWIG_fail;
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21074 {
21075 if (temp6)
21076 delete arg6;
21077 }
21078 return resultobj;
21079fail:
21080 {
21081 if (temp6)
21082 delete arg6;
21083 }
21084 return NULL;
d55e5bfc
RD
21085}
21086
21087
554f62e9
RD
21088SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21089 PyObject *resultobj = 0;
21090 wxChoicebook *result = 0 ;
21091
21092 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21093 {
21094 if (!wxPyCheckForApp()) SWIG_fail;
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 result = (wxChoicebook *)new wxChoicebook();
21097 wxPyEndAllowThreads(__tstate);
21098 if (PyErr_Occurred()) SWIG_fail;
21099 }
21100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21101 return resultobj;
21102fail:
21103 return NULL;
21104}
21105
21106
21107SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21108 PyObject *resultobj = 0;
21109 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21110 wxWindow *arg2 = (wxWindow *) 0 ;
21111 int arg3 ;
21112 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21113 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21114 wxSize const &arg5_defvalue = wxDefaultSize ;
21115 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21116 long arg6 = (long) 0 ;
21117 wxString const &arg7_defvalue = wxPyEmptyString ;
21118 wxString *arg7 = (wxString *) &arg7_defvalue ;
21119 bool result;
21120 void *argp1 = 0 ;
21121 int res1 = 0 ;
21122 void *argp2 = 0 ;
21123 int res2 = 0 ;
21124 int val3 ;
21125 int ecode3 = 0 ;
21126 wxPoint temp4 ;
21127 wxSize temp5 ;
21128 long val6 ;
21129 int ecode6 = 0 ;
21130 bool temp7 = false ;
21131 PyObject * obj0 = 0 ;
21132 PyObject * obj1 = 0 ;
21133 PyObject * obj2 = 0 ;
21134 PyObject * obj3 = 0 ;
21135 PyObject * obj4 = 0 ;
21136 PyObject * obj5 = 0 ;
21137 PyObject * obj6 = 0 ;
21138 char * kwnames[] = {
21139 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21140 };
21141
21142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21144 if (!SWIG_IsOK(res1)) {
21145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21146 }
21147 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21149 if (!SWIG_IsOK(res2)) {
21150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21151 }
21152 arg2 = reinterpret_cast< wxWindow * >(argp2);
21153 ecode3 = SWIG_AsVal_int(obj2, &val3);
21154 if (!SWIG_IsOK(ecode3)) {
21155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21156 }
21157 arg3 = static_cast< int >(val3);
21158 if (obj3) {
093d3ff1 21159 {
554f62e9
RD
21160 arg4 = &temp4;
21161 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21162 }
554f62e9
RD
21163 }
21164 if (obj4) {
093d3ff1 21165 {
554f62e9
RD
21166 arg5 = &temp5;
21167 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21168 }
554f62e9
RD
21169 }
21170 if (obj5) {
21171 ecode6 = SWIG_AsVal_long(obj5, &val6);
21172 if (!SWIG_IsOK(ecode6)) {
21173 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21174 }
21175 arg6 = static_cast< long >(val6);
21176 }
21177 if (obj6) {
d55e5bfc 21178 {
554f62e9
RD
21179 arg7 = wxString_in_helper(obj6);
21180 if (arg7 == NULL) SWIG_fail;
21181 temp7 = true;
d55e5bfc 21182 }
554f62e9
RD
21183 }
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21187 wxPyEndAllowThreads(__tstate);
21188 if (PyErr_Occurred()) SWIG_fail;
21189 }
21190 {
21191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21192 }
21193 {
21194 if (temp7)
21195 delete arg7;
21196 }
21197 return resultobj;
21198fail:
21199 {
21200 if (temp7)
21201 delete arg7;
21202 }
21203 return NULL;
d55e5bfc
RD
21204}
21205
21206
554f62e9
RD
21207SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21208 PyObject *resultobj = 0;
21209 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21210 wxChoice *result = 0 ;
21211 void *argp1 = 0 ;
21212 int res1 = 0 ;
21213 PyObject *swig_obj[1] ;
21214
21215 if (!args) SWIG_fail;
21216 swig_obj[0] = args;
21217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21220 }
21221 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21229 return resultobj;
21230fail:
21231 return NULL;
21232}
21233
21234
21235SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 PyObject *obj;
21237 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21238 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21239 return SWIG_Py_Void();
21240}
21241
21242SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21243 return SWIG_Python_InitShadowInstance(args);
21244}
21245
21246SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21247 PyObject *resultobj = 0;
21248 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21249 int arg2 = (int) 0 ;
21250 int arg3 = (int) -1 ;
21251 int arg4 = (int) -1 ;
21252 wxChoicebookEvent *result = 0 ;
21253 int val1 ;
21254 int ecode1 = 0 ;
21255 int val2 ;
21256 int ecode2 = 0 ;
21257 int val3 ;
21258 int ecode3 = 0 ;
21259 int val4 ;
21260 int ecode4 = 0 ;
21261 PyObject * obj0 = 0 ;
21262 PyObject * obj1 = 0 ;
21263 PyObject * obj2 = 0 ;
21264 PyObject * obj3 = 0 ;
21265 char * kwnames[] = {
21266 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21267 };
21268
21269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21270 if (obj0) {
21271 ecode1 = SWIG_AsVal_int(obj0, &val1);
21272 if (!SWIG_IsOK(ecode1)) {
21273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21274 }
21275 arg1 = static_cast< wxEventType >(val1);
21276 }
21277 if (obj1) {
21278 ecode2 = SWIG_AsVal_int(obj1, &val2);
21279 if (!SWIG_IsOK(ecode2)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21281 }
21282 arg2 = static_cast< int >(val2);
21283 }
21284 if (obj2) {
21285 ecode3 = SWIG_AsVal_int(obj2, &val3);
21286 if (!SWIG_IsOK(ecode3)) {
21287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21288 }
21289 arg3 = static_cast< int >(val3);
21290 }
21291 if (obj3) {
21292 ecode4 = SWIG_AsVal_int(obj3, &val4);
21293 if (!SWIG_IsOK(ecode4)) {
21294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21295 }
21296 arg4 = static_cast< int >(val4);
21297 }
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21305 return resultobj;
21306fail:
21307 return NULL;
21308}
21309
21310
21311SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21312 PyObject *obj;
21313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21314 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21315 return SWIG_Py_Void();
21316}
21317
21318SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21319 return SWIG_Python_InitShadowInstance(args);
21320}
21321
21322SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21323 PyObject *resultobj = 0;
21324 wxWindow *arg1 = (wxWindow *) 0 ;
21325 int arg2 ;
21326 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21327 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21328 wxSize const &arg4_defvalue = wxDefaultSize ;
21329 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21330 long arg5 = (long) wxBK_DEFAULT ;
21331 wxString const &arg6_defvalue = wxPyEmptyString ;
21332 wxString *arg6 = (wxString *) &arg6_defvalue ;
21333 wxTreebook *result = 0 ;
21334 void *argp1 = 0 ;
21335 int res1 = 0 ;
21336 int val2 ;
21337 int ecode2 = 0 ;
21338 wxPoint temp3 ;
21339 wxSize temp4 ;
21340 long val5 ;
21341 int ecode5 = 0 ;
21342 bool temp6 = false ;
21343 PyObject * obj0 = 0 ;
21344 PyObject * obj1 = 0 ;
21345 PyObject * obj2 = 0 ;
21346 PyObject * obj3 = 0 ;
21347 PyObject * obj4 = 0 ;
21348 PyObject * obj5 = 0 ;
21349 char * kwnames[] = {
21350 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21351 };
21352
21353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21355 if (!SWIG_IsOK(res1)) {
21356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21357 }
21358 arg1 = reinterpret_cast< wxWindow * >(argp1);
21359 ecode2 = SWIG_AsVal_int(obj1, &val2);
21360 if (!SWIG_IsOK(ecode2)) {
21361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21362 }
21363 arg2 = static_cast< int >(val2);
21364 if (obj2) {
d55e5bfc 21365 {
554f62e9
RD
21366 arg3 = &temp3;
21367 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21368 }
554f62e9
RD
21369 }
21370 if (obj3) {
d55e5bfc 21371 {
554f62e9
RD
21372 arg4 = &temp4;
21373 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21374 }
554f62e9
RD
21375 }
21376 if (obj4) {
21377 ecode5 = SWIG_AsVal_long(obj4, &val5);
21378 if (!SWIG_IsOK(ecode5)) {
21379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21380 }
21381 arg5 = static_cast< long >(val5);
21382 }
21383 if (obj5) {
d55e5bfc 21384 {
554f62e9
RD
21385 arg6 = wxString_in_helper(obj5);
21386 if (arg6 == NULL) SWIG_fail;
21387 temp6 = true;
d55e5bfc 21388 }
554f62e9
RD
21389 }
21390 {
21391 if (!wxPyCheckForApp()) SWIG_fail;
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21398 {
21399 if (temp6)
21400 delete arg6;
21401 }
21402 return resultobj;
21403fail:
21404 {
21405 if (temp6)
21406 delete arg6;
21407 }
21408 return NULL;
d55e5bfc
RD
21409}
21410
21411
554f62e9
RD
21412SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21413 PyObject *resultobj = 0;
21414 wxTreebook *result = 0 ;
21415
21416 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21417 {
21418 if (!wxPyCheckForApp()) SWIG_fail;
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (wxTreebook *)new wxTreebook();
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21425 return resultobj;
21426fail:
21427 return NULL;
21428}
21429
21430
21431SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21432 PyObject *resultobj = 0;
21433 wxTreebook *arg1 = (wxTreebook *) 0 ;
21434 wxWindow *arg2 = (wxWindow *) 0 ;
21435 int arg3 ;
21436 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21437 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21438 wxSize const &arg5_defvalue = wxDefaultSize ;
21439 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21440 long arg6 = (long) wxBK_DEFAULT ;
21441 wxString const &arg7_defvalue = wxPyEmptyString ;
21442 wxString *arg7 = (wxString *) &arg7_defvalue ;
21443 bool result;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 void *argp2 = 0 ;
21447 int res2 = 0 ;
21448 int val3 ;
21449 int ecode3 = 0 ;
21450 wxPoint temp4 ;
21451 wxSize temp5 ;
21452 long val6 ;
21453 int ecode6 = 0 ;
21454 bool temp7 = false ;
21455 PyObject * obj0 = 0 ;
21456 PyObject * obj1 = 0 ;
21457 PyObject * obj2 = 0 ;
21458 PyObject * obj3 = 0 ;
21459 PyObject * obj4 = 0 ;
21460 PyObject * obj5 = 0 ;
21461 PyObject * obj6 = 0 ;
21462 char * kwnames[] = {
21463 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21464 };
21465
21466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21468 if (!SWIG_IsOK(res1)) {
21469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21470 }
21471 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21473 if (!SWIG_IsOK(res2)) {
21474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21475 }
21476 arg2 = reinterpret_cast< wxWindow * >(argp2);
21477 ecode3 = SWIG_AsVal_int(obj2, &val3);
21478 if (!SWIG_IsOK(ecode3)) {
21479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21480 }
21481 arg3 = static_cast< int >(val3);
21482 if (obj3) {
093d3ff1 21483 {
554f62e9
RD
21484 arg4 = &temp4;
21485 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21486 }
554f62e9
RD
21487 }
21488 if (obj4) {
093d3ff1 21489 {
554f62e9
RD
21490 arg5 = &temp5;
21491 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21492 }
554f62e9
RD
21493 }
21494 if (obj5) {
21495 ecode6 = SWIG_AsVal_long(obj5, &val6);
21496 if (!SWIG_IsOK(ecode6)) {
21497 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21498 }
21499 arg6 = static_cast< long >(val6);
21500 }
21501 if (obj6) {
d55e5bfc 21502 {
554f62e9
RD
21503 arg7 = wxString_in_helper(obj6);
21504 if (arg7 == NULL) SWIG_fail;
21505 temp7 = true;
d55e5bfc 21506 }
554f62e9
RD
21507 }
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21511 wxPyEndAllowThreads(__tstate);
21512 if (PyErr_Occurred()) SWIG_fail;
21513 }
21514 {
21515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21516 }
21517 {
21518 if (temp7)
21519 delete arg7;
21520 }
21521 return resultobj;
21522fail:
21523 {
21524 if (temp7)
21525 delete arg7;
21526 }
21527 return NULL;
21528}
21529
21530
21531SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21532 PyObject *resultobj = 0;
21533 wxTreebook *arg1 = (wxTreebook *) 0 ;
21534 size_t arg2 ;
21535 wxWindow *arg3 = (wxWindow *) 0 ;
21536 wxString *arg4 = 0 ;
21537 bool arg5 = (bool) false ;
21538 int arg6 = (int) wxNOT_FOUND ;
21539 bool result;
21540 void *argp1 = 0 ;
21541 int res1 = 0 ;
21542 size_t val2 ;
21543 int ecode2 = 0 ;
21544 void *argp3 = 0 ;
21545 int res3 = 0 ;
21546 bool temp4 = false ;
21547 bool val5 ;
21548 int ecode5 = 0 ;
21549 int val6 ;
21550 int ecode6 = 0 ;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 PyObject * obj2 = 0 ;
21554 PyObject * obj3 = 0 ;
21555 PyObject * obj4 = 0 ;
21556 PyObject * obj5 = 0 ;
21557 char * kwnames[] = {
21558 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21559 };
21560
21561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21563 if (!SWIG_IsOK(res1)) {
21564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21565 }
21566 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21567 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21568 if (!SWIG_IsOK(ecode2)) {
21569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21570 }
21571 arg2 = static_cast< size_t >(val2);
21572 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21573 if (!SWIG_IsOK(res3)) {
21574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21575 }
21576 arg3 = reinterpret_cast< wxWindow * >(argp3);
21577 {
21578 arg4 = wxString_in_helper(obj3);
21579 if (arg4 == NULL) SWIG_fail;
21580 temp4 = true;
21581 }
21582 if (obj4) {
21583 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21584 if (!SWIG_IsOK(ecode5)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21586 }
21587 arg5 = static_cast< bool >(val5);
21588 }
21589 if (obj5) {
21590 ecode6 = SWIG_AsVal_int(obj5, &val6);
21591 if (!SWIG_IsOK(ecode6)) {
21592 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21593 }
21594 arg6 = static_cast< int >(val6);
21595 }
21596 {
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 {
21603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21604 }
21605 {
21606 if (temp4)
21607 delete arg4;
21608 }
21609 return resultobj;
21610fail:
21611 {
21612 if (temp4)
21613 delete arg4;
21614 }
21615 return NULL;
21616}
21617
21618
21619SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj = 0;
21621 wxTreebook *arg1 = (wxTreebook *) 0 ;
21622 wxWindow *arg2 = (wxWindow *) 0 ;
21623 wxString *arg3 = 0 ;
21624 bool arg4 = (bool) false ;
21625 int arg5 = (int) wxNOT_FOUND ;
21626 bool result;
21627 void *argp1 = 0 ;
21628 int res1 = 0 ;
21629 void *argp2 = 0 ;
21630 int res2 = 0 ;
21631 bool temp3 = false ;
21632 bool val4 ;
21633 int ecode4 = 0 ;
21634 int val5 ;
21635 int ecode5 = 0 ;
21636 PyObject * obj0 = 0 ;
21637 PyObject * obj1 = 0 ;
21638 PyObject * obj2 = 0 ;
21639 PyObject * obj3 = 0 ;
21640 PyObject * obj4 = 0 ;
21641 char * kwnames[] = {
21642 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21643 };
21644
21645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21647 if (!SWIG_IsOK(res1)) {
21648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21649 }
21650 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21652 if (!SWIG_IsOK(res2)) {
21653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21654 }
21655 arg2 = reinterpret_cast< wxWindow * >(argp2);
21656 {
21657 arg3 = wxString_in_helper(obj2);
21658 if (arg3 == NULL) SWIG_fail;
21659 temp3 = true;
21660 }
21661 if (obj3) {
21662 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21663 if (!SWIG_IsOK(ecode4)) {
21664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21665 }
21666 arg4 = static_cast< bool >(val4);
21667 }
21668 if (obj4) {
21669 ecode5 = SWIG_AsVal_int(obj4, &val5);
21670 if (!SWIG_IsOK(ecode5)) {
21671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21672 }
21673 arg5 = static_cast< int >(val5);
21674 }
21675 {
21676 PyThreadState* __tstate = wxPyBeginAllowThreads();
21677 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 {
21682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21683 }
21684 {
21685 if (temp3)
21686 delete arg3;
21687 }
21688 return resultobj;
21689fail:
21690 {
21691 if (temp3)
21692 delete arg3;
21693 }
21694 return NULL;
21695}
21696
21697
21698SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21699 PyObject *resultobj = 0;
21700 wxTreebook *arg1 = (wxTreebook *) 0 ;
21701 size_t arg2 ;
21702 bool result;
21703 void *argp1 = 0 ;
21704 int res1 = 0 ;
21705 size_t val2 ;
21706 int ecode2 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "self",(char *) "pos", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21717 }
21718 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21719 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21720 if (!SWIG_IsOK(ecode2)) {
21721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21722 }
21723 arg2 = static_cast< size_t >(val2);
21724 {
21725 PyThreadState* __tstate = wxPyBeginAllowThreads();
21726 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 {
21731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21732 }
21733 return resultobj;
21734fail:
21735 return NULL;
21736}
21737
21738
21739SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21740 PyObject *resultobj = 0;
21741 wxTreebook *arg1 = (wxTreebook *) 0 ;
21742 size_t arg2 ;
21743 bool arg3 = (bool) true ;
21744 bool result;
21745 void *argp1 = 0 ;
21746 int res1 = 0 ;
21747 size_t val2 ;
21748 int ecode2 = 0 ;
21749 bool val3 ;
21750 int ecode3 = 0 ;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 PyObject * obj2 = 0 ;
21754 char * kwnames[] = {
21755 (char *) "self",(char *) "pos",(char *) "expand", NULL
21756 };
21757
21758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21760 if (!SWIG_IsOK(res1)) {
21761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21762 }
21763 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21764 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21765 if (!SWIG_IsOK(ecode2)) {
21766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21767 }
21768 arg2 = static_cast< size_t >(val2);
21769 if (obj2) {
21770 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21771 if (!SWIG_IsOK(ecode3)) {
21772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21773 }
21774 arg3 = static_cast< bool >(val3);
21775 }
21776 {
21777 PyThreadState* __tstate = wxPyBeginAllowThreads();
21778 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21779 wxPyEndAllowThreads(__tstate);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 }
21782 {
21783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21784 }
21785 return resultobj;
21786fail:
21787 return NULL;
21788}
21789
21790
21791SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21792 PyObject *resultobj = 0;
21793 wxTreebook *arg1 = (wxTreebook *) 0 ;
21794 size_t arg2 ;
21795 bool result;
21796 void *argp1 = 0 ;
21797 int res1 = 0 ;
21798 size_t val2 ;
21799 int ecode2 = 0 ;
21800 PyObject * obj0 = 0 ;
21801 PyObject * obj1 = 0 ;
21802 char * kwnames[] = {
21803 (char *) "self",(char *) "pos", NULL
21804 };
21805
21806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21810 }
21811 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21812 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21813 if (!SWIG_IsOK(ecode2)) {
21814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21815 }
21816 arg2 = static_cast< size_t >(val2);
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = (bool)(arg1)->CollapseNode(arg2);
21820 wxPyEndAllowThreads(__tstate);
21821 if (PyErr_Occurred()) SWIG_fail;
21822 }
21823 {
21824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21825 }
21826 return resultobj;
21827fail:
21828 return NULL;
21829}
21830
21831
21832SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21833 PyObject *resultobj = 0;
21834 wxTreebook *arg1 = (wxTreebook *) 0 ;
21835 size_t arg2 ;
21836 int result;
21837 void *argp1 = 0 ;
21838 int res1 = 0 ;
21839 size_t val2 ;
21840 int ecode2 = 0 ;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 char * kwnames[] = {
21844 (char *) "self",(char *) "pos", NULL
21845 };
21846
21847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21849 if (!SWIG_IsOK(res1)) {
21850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21851 }
21852 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21853 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21854 if (!SWIG_IsOK(ecode2)) {
21855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21856 }
21857 arg2 = static_cast< size_t >(val2);
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 resultobj = SWIG_From_int(static_cast< int >(result));
21865 return resultobj;
21866fail:
21867 return NULL;
d55e5bfc
RD
21868}
21869
21870
554f62e9
RD
21871SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21872 PyObject *resultobj = 0;
21873 wxTreebook *arg1 = (wxTreebook *) 0 ;
21874 wxTreeCtrl *result = 0 ;
21875 void *argp1 = 0 ;
21876 int res1 = 0 ;
21877 PyObject *swig_obj[1] ;
21878
21879 if (!args) SWIG_fail;
21880 swig_obj[0] = args;
21881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21884 }
21885 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21893 return resultobj;
21894fail:
21895 return NULL;
21896}
21897
21898
21899SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21900 PyObject *obj;
21901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21902 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21903 return SWIG_Py_Void();
21904}
21905
21906SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21907 return SWIG_Python_InitShadowInstance(args);
21908}
21909
21910SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj = 0;
21912 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21913 int arg2 = (int) 0 ;
21914 int arg3 = (int) wxNOT_FOUND ;
21915 int arg4 = (int) wxNOT_FOUND ;
21916 wxTreebookEvent *result = 0 ;
21917 int val1 ;
21918 int ecode1 = 0 ;
21919 int val2 ;
21920 int ecode2 = 0 ;
21921 int val3 ;
21922 int ecode3 = 0 ;
21923 int val4 ;
21924 int ecode4 = 0 ;
21925 PyObject * obj0 = 0 ;
21926 PyObject * obj1 = 0 ;
21927 PyObject * obj2 = 0 ;
21928 PyObject * obj3 = 0 ;
21929 char * kwnames[] = {
21930 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21931 };
21932
21933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21934 if (obj0) {
21935 ecode1 = SWIG_AsVal_int(obj0, &val1);
21936 if (!SWIG_IsOK(ecode1)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21938 }
21939 arg1 = static_cast< wxEventType >(val1);
21940 }
21941 if (obj1) {
21942 ecode2 = SWIG_AsVal_int(obj1, &val2);
21943 if (!SWIG_IsOK(ecode2)) {
21944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21945 }
21946 arg2 = static_cast< int >(val2);
21947 }
21948 if (obj2) {
21949 ecode3 = SWIG_AsVal_int(obj2, &val3);
21950 if (!SWIG_IsOK(ecode3)) {
21951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21952 }
21953 arg3 = static_cast< int >(val3);
21954 }
21955 if (obj3) {
21956 ecode4 = SWIG_AsVal_int(obj3, &val4);
21957 if (!SWIG_IsOK(ecode4)) {
21958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21959 }
21960 arg4 = static_cast< int >(val4);
21961 }
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21969 return resultobj;
21970fail:
21971 return NULL;
21972}
21973
21974
21975SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21976 PyObject *obj;
21977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21978 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21979 return SWIG_Py_Void();
21980}
21981
21982SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21983 return SWIG_Python_InitShadowInstance(args);
21984}
21985
21986SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21987 PyObject *resultobj = 0;
21988 wxWindow *arg1 = (wxWindow *) 0 ;
21989 int arg2 ;
21990 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21991 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21992 wxSize const &arg4_defvalue = wxDefaultSize ;
21993 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21994 long arg5 = (long) wxBK_DEFAULT ;
21995 wxString const &arg6_defvalue = wxPyEmptyString ;
21996 wxString *arg6 = (wxString *) &arg6_defvalue ;
21997 wxToolbook *result = 0 ;
21998 void *argp1 = 0 ;
21999 int res1 = 0 ;
22000 int val2 ;
22001 int ecode2 = 0 ;
22002 wxPoint temp3 ;
22003 wxSize temp4 ;
22004 long val5 ;
22005 int ecode5 = 0 ;
22006 bool temp6 = false ;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 PyObject * obj2 = 0 ;
22010 PyObject * obj3 = 0 ;
22011 PyObject * obj4 = 0 ;
22012 PyObject * obj5 = 0 ;
22013 char * kwnames[] = {
22014 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22015 };
22016
22017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22019 if (!SWIG_IsOK(res1)) {
22020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22021 }
22022 arg1 = reinterpret_cast< wxWindow * >(argp1);
22023 ecode2 = SWIG_AsVal_int(obj1, &val2);
22024 if (!SWIG_IsOK(ecode2)) {
22025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22026 }
22027 arg2 = static_cast< int >(val2);
22028 if (obj2) {
093d3ff1 22029 {
554f62e9
RD
22030 arg3 = &temp3;
22031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 22032 }
554f62e9
RD
22033 }
22034 if (obj3) {
d55e5bfc 22035 {
554f62e9
RD
22036 arg4 = &temp4;
22037 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22038 }
554f62e9
RD
22039 }
22040 if (obj4) {
22041 ecode5 = SWIG_AsVal_long(obj4, &val5);
22042 if (!SWIG_IsOK(ecode5)) {
22043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22044 }
22045 arg5 = static_cast< long >(val5);
22046 }
22047 if (obj5) {
093d3ff1 22048 {
554f62e9
RD
22049 arg6 = wxString_in_helper(obj5);
22050 if (arg6 == NULL) SWIG_fail;
22051 temp6 = true;
093d3ff1 22052 }
554f62e9
RD
22053 }
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22061 {
22062 if (temp6)
22063 delete arg6;
22064 }
22065 return resultobj;
22066fail:
22067 {
22068 if (temp6)
22069 delete arg6;
22070 }
22071 return NULL;
d55e5bfc
RD
22072}
22073
22074
554f62e9
RD
22075SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22076 PyObject *resultobj = 0;
22077 wxToolbook *result = 0 ;
22078
22079 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 result = (wxToolbook *)new wxToolbook();
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22087 return resultobj;
22088fail:
22089 return NULL;
22090}
22091
22092
22093SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22094 PyObject *resultobj = 0;
22095 wxToolbook *arg1 = (wxToolbook *) 0 ;
22096 wxWindow *arg2 = (wxWindow *) 0 ;
22097 int arg3 ;
22098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22100 wxSize const &arg5_defvalue = wxDefaultSize ;
22101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22102 long arg6 = (long) 0 ;
22103 wxString const &arg7_defvalue = wxEmptyString ;
22104 wxString *arg7 = (wxString *) &arg7_defvalue ;
22105 bool result;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 void *argp2 = 0 ;
22109 int res2 = 0 ;
22110 int val3 ;
22111 int ecode3 = 0 ;
22112 wxPoint temp4 ;
22113 wxSize temp5 ;
22114 long val6 ;
22115 int ecode6 = 0 ;
22116 bool temp7 = false ;
22117 PyObject * obj0 = 0 ;
22118 PyObject * obj1 = 0 ;
22119 PyObject * obj2 = 0 ;
22120 PyObject * obj3 = 0 ;
22121 PyObject * obj4 = 0 ;
22122 PyObject * obj5 = 0 ;
22123 PyObject * obj6 = 0 ;
22124 char * kwnames[] = {
22125 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22126 };
22127
22128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22130 if (!SWIG_IsOK(res1)) {
22131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22132 }
22133 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22134 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22135 if (!SWIG_IsOK(res2)) {
22136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22137 }
22138 arg2 = reinterpret_cast< wxWindow * >(argp2);
22139 ecode3 = SWIG_AsVal_int(obj2, &val3);
22140 if (!SWIG_IsOK(ecode3)) {
22141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22142 }
22143 arg3 = static_cast< int >(val3);
22144 if (obj3) {
093d3ff1 22145 {
554f62e9
RD
22146 arg4 = &temp4;
22147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22148 }
554f62e9
RD
22149 }
22150 if (obj4) {
093d3ff1 22151 {
554f62e9
RD
22152 arg5 = &temp5;
22153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22154 }
554f62e9
RD
22155 }
22156 if (obj5) {
22157 ecode6 = SWIG_AsVal_long(obj5, &val6);
22158 if (!SWIG_IsOK(ecode6)) {
22159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22160 }
22161 arg6 = static_cast< long >(val6);
22162 }
22163 if (obj6) {
d55e5bfc 22164 {
554f62e9
RD
22165 arg7 = wxString_in_helper(obj6);
22166 if (arg7 == NULL) SWIG_fail;
22167 temp7 = true;
d55e5bfc 22168 }
554f62e9
RD
22169 }
22170 {
22171 PyThreadState* __tstate = wxPyBeginAllowThreads();
22172 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22173 wxPyEndAllowThreads(__tstate);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 {
22177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22178 }
22179 {
22180 if (temp7)
22181 delete arg7;
22182 }
22183 return resultobj;
22184fail:
22185 {
22186 if (temp7)
22187 delete arg7;
22188 }
22189 return NULL;
d55e5bfc
RD
22190}
22191
22192
554f62e9
RD
22193SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22194 PyObject *resultobj = 0;
22195 wxToolbook *arg1 = (wxToolbook *) 0 ;
22196 wxToolBarBase *result = 0 ;
22197 void *argp1 = 0 ;
22198 int res1 = 0 ;
22199 PyObject *swig_obj[1] ;
22200
22201 if (!args) SWIG_fail;
22202 swig_obj[0] = args;
22203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22204 if (!SWIG_IsOK(res1)) {
22205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22206 }
22207 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22208 {
22209 PyThreadState* __tstate = wxPyBeginAllowThreads();
22210 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22211 wxPyEndAllowThreads(__tstate);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 {
22215 resultobj = wxPyMake_wxObject(result, (bool)0);
22216 }
22217 return resultobj;
22218fail:
22219 return NULL;
f20a2e1f
RD
22220}
22221
22222
554f62e9
RD
22223SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22224 PyObject *resultobj = 0;
22225 wxToolbook *arg1 = (wxToolbook *) 0 ;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 PyObject *swig_obj[1] ;
22229
22230 if (!args) SWIG_fail;
22231 swig_obj[0] = args;
22232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22235 }
22236 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 (arg1)->Realize();
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_Py_Void();
22244 return resultobj;
22245fail:
22246 return NULL;
22247}
22248
22249
22250SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22251 PyObject *obj;
22252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22253 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22254 return SWIG_Py_Void();
22255}
22256
22257SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22258 return SWIG_Python_InitShadowInstance(args);
22259}
22260
22261SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj = 0;
22263 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22264 int arg2 = (int) 0 ;
22265 int arg3 = (int) wxNOT_FOUND ;
22266 int arg4 = (int) wxNOT_FOUND ;
22267 wxToolbookEvent *result = 0 ;
22268 int val1 ;
22269 int ecode1 = 0 ;
22270 int val2 ;
22271 int ecode2 = 0 ;
22272 int val3 ;
22273 int ecode3 = 0 ;
22274 int val4 ;
22275 int ecode4 = 0 ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 PyObject * obj2 = 0 ;
22279 PyObject * obj3 = 0 ;
22280 char * kwnames[] = {
22281 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22282 };
22283
22284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22285 if (obj0) {
22286 ecode1 = SWIG_AsVal_int(obj0, &val1);
22287 if (!SWIG_IsOK(ecode1)) {
22288 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22289 }
22290 arg1 = static_cast< wxEventType >(val1);
22291 }
22292 if (obj1) {
22293 ecode2 = SWIG_AsVal_int(obj1, &val2);
22294 if (!SWIG_IsOK(ecode2)) {
22295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22296 }
22297 arg2 = static_cast< int >(val2);
22298 }
22299 if (obj2) {
22300 ecode3 = SWIG_AsVal_int(obj2, &val3);
22301 if (!SWIG_IsOK(ecode3)) {
22302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22303 }
22304 arg3 = static_cast< int >(val3);
22305 }
22306 if (obj3) {
22307 ecode4 = SWIG_AsVal_int(obj3, &val4);
22308 if (!SWIG_IsOK(ecode4)) {
22309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22310 }
22311 arg4 = static_cast< int >(val4);
22312 }
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22316 wxPyEndAllowThreads(__tstate);
22317 if (PyErr_Occurred()) SWIG_fail;
22318 }
22319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22320 return resultobj;
22321fail:
22322 return NULL;
d55e5bfc
RD
22323}
22324
22325
554f62e9
RD
22326SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22327 PyObject *obj;
22328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22329 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22330 return SWIG_Py_Void();
d55e5bfc
RD
22331}
22332
554f62e9
RD
22333SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22334 return SWIG_Python_InitShadowInstance(args);
22335}
d55e5bfc 22336
554f62e9
RD
22337SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22338 PyObject *resultobj = 0;
22339 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22340 int result;
22341 void *argp1 = 0 ;
22342 int res1 = 0 ;
22343 PyObject *swig_obj[1] ;
22344
22345 if (!args) SWIG_fail;
22346 swig_obj[0] = args;
22347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22348 if (!SWIG_IsOK(res1)) {
22349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22350 }
22351 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (int)(arg1)->GetId();
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 resultobj = SWIG_From_int(static_cast< int >(result));
22359 return resultobj;
22360fail:
22361 return NULL;
d55e5bfc
RD
22362}
22363
22364
554f62e9
RD
22365SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22366 PyObject *resultobj = 0;
22367 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22368 wxControl *result = 0 ;
22369 void *argp1 = 0 ;
22370 int res1 = 0 ;
22371 PyObject *swig_obj[1] ;
22372
22373 if (!args) SWIG_fail;
22374 swig_obj[0] = args;
22375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22376 if (!SWIG_IsOK(res1)) {
22377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22378 }
22379 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (wxControl *)(arg1)->GetControl();
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 {
22387 resultobj = wxPyMake_wxObject(result, 0);
22388 }
22389 return resultobj;
22390fail:
22391 return NULL;
d55e5bfc
RD
22392}
22393
22394
554f62e9
RD
22395SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22398 wxToolBarBase *result = 0 ;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22408 }
22409 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (wxToolBarBase *)(arg1)->GetToolBar();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
22417 resultobj = wxPyMake_wxObject(result, (bool)0);
22418 }
22419 return resultobj;
22420fail:
22421 return NULL;
d55e5bfc
RD
22422}
22423
22424
554f62e9
RD
22425SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22426 PyObject *resultobj = 0;
22427 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22428 int result;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 PyObject *swig_obj[1] ;
22432
22433 if (!args) SWIG_fail;
22434 swig_obj[0] = args;
22435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22436 if (!SWIG_IsOK(res1)) {
22437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22438 }
22439 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22442 result = (int)(arg1)->IsButton();
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 resultobj = SWIG_From_int(static_cast< int >(result));
22447 return resultobj;
22448fail:
22449 return NULL;
d55e5bfc
RD
22450}
22451
22452
554f62e9
RD
22453SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454 PyObject *resultobj = 0;
22455 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22456 int result;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22466 }
22467 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = (int)(arg1)->IsControl();
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_From_int(static_cast< int >(result));
22475 return resultobj;
22476fail:
22477 return NULL;
d55e5bfc
RD
22478}
22479
22480
554f62e9
RD
22481SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22482 PyObject *resultobj = 0;
22483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22484 int result;
22485 void *argp1 = 0 ;
22486 int res1 = 0 ;
22487 PyObject *swig_obj[1] ;
22488
22489 if (!args) SWIG_fail;
22490 swig_obj[0] = args;
22491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22492 if (!SWIG_IsOK(res1)) {
22493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22494 }
22495 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22496 {
22497 PyThreadState* __tstate = wxPyBeginAllowThreads();
22498 result = (int)(arg1)->IsSeparator();
22499 wxPyEndAllowThreads(__tstate);
22500 if (PyErr_Occurred()) SWIG_fail;
22501 }
22502 resultobj = SWIG_From_int(static_cast< int >(result));
22503 return resultobj;
22504fail:
22505 return NULL;
d55e5bfc
RD
22506}
22507
22508
554f62e9
RD
22509SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22510 PyObject *resultobj = 0;
22511 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22512 int result;
22513 void *argp1 = 0 ;
22514 int res1 = 0 ;
22515 PyObject *swig_obj[1] ;
22516
22517 if (!args) SWIG_fail;
22518 swig_obj[0] = args;
22519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22520 if (!SWIG_IsOK(res1)) {
22521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22522 }
22523 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 result = (int)(arg1)->GetStyle();
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 resultobj = SWIG_From_int(static_cast< int >(result));
22531 return resultobj;
22532fail:
22533 return NULL;
d55e5bfc
RD
22534}
22535
22536
554f62e9
RD
22537SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22538 PyObject *resultobj = 0;
22539 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22540 wxItemKind result;
22541 void *argp1 = 0 ;
22542 int res1 = 0 ;
22543 PyObject *swig_obj[1] ;
22544
22545 if (!args) SWIG_fail;
22546 swig_obj[0] = args;
22547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22548 if (!SWIG_IsOK(res1)) {
22549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22550 }
22551 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 result = (wxItemKind)(arg1)->GetKind();
22555 wxPyEndAllowThreads(__tstate);
22556 if (PyErr_Occurred()) SWIG_fail;
22557 }
22558 resultobj = SWIG_From_int(static_cast< int >(result));
22559 return resultobj;
22560fail:
22561 return NULL;
d55e5bfc
RD
22562}
22563
22564
554f62e9
RD
22565SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22566 PyObject *resultobj = 0;
22567 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22568 bool result;
22569 void *argp1 = 0 ;
22570 int res1 = 0 ;
22571 PyObject *swig_obj[1] ;
22572
22573 if (!args) SWIG_fail;
22574 swig_obj[0] = args;
22575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22578 }
22579 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = (bool)(arg1)->IsEnabled();
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 {
22587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22588 }
22589 return resultobj;
22590fail:
22591 return NULL;
d55e5bfc
RD
22592}
22593
22594
554f62e9
RD
22595SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22596 PyObject *resultobj = 0;
22597 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22598 bool result;
22599 void *argp1 = 0 ;
22600 int res1 = 0 ;
22601 PyObject *swig_obj[1] ;
22602
22603 if (!args) SWIG_fail;
22604 swig_obj[0] = args;
22605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22606 if (!SWIG_IsOK(res1)) {
22607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22608 }
22609 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22610 {
22611 PyThreadState* __tstate = wxPyBeginAllowThreads();
22612 result = (bool)(arg1)->IsToggled();
22613 wxPyEndAllowThreads(__tstate);
22614 if (PyErr_Occurred()) SWIG_fail;
22615 }
22616 {
22617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22618 }
22619 return resultobj;
22620fail:
22621 return NULL;
d55e5bfc
RD
22622}
22623
22624
554f62e9
RD
22625SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626 PyObject *resultobj = 0;
22627 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22628 bool result;
22629 void *argp1 = 0 ;
22630 int res1 = 0 ;
22631 PyObject *swig_obj[1] ;
22632
22633 if (!args) SWIG_fail;
22634 swig_obj[0] = args;
22635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22638 }
22639 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (bool)(arg1)->CanBeToggled();
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 {
22647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22648 }
22649 return resultobj;
22650fail:
22651 return NULL;
d55e5bfc
RD
22652}
22653
22654
554f62e9
RD
22655SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22656 PyObject *resultobj = 0;
22657 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22658 wxBitmap *result = 0 ;
22659 void *argp1 = 0 ;
22660 int res1 = 0 ;
22661 PyObject *swig_obj[1] ;
22662
22663 if (!args) SWIG_fail;
22664 swig_obj[0] = args;
22665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22666 if (!SWIG_IsOK(res1)) {
22667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22668 }
22669 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22672 {
554f62e9
RD
22673 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22674 result = (wxBitmap *) &_result_ref;
093d3ff1 22675 }
554f62e9
RD
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 {
22680 wxBitmap* resultptr = new wxBitmap(*result);
22681 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22682 }
22683 return resultobj;
22684fail:
22685 return NULL;
d55e5bfc
RD
22686}
22687
22688
554f62e9
RD
22689SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22690 PyObject *resultobj = 0;
22691 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22692 wxBitmap *result = 0 ;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 PyObject *swig_obj[1] ;
22696
22697 if (!args) SWIG_fail;
22698 swig_obj[0] = args;
22699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22702 }
22703 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 22706 {
554f62e9
RD
22707 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22708 result = (wxBitmap *) &_result_ref;
d55e5bfc 22709 }
554f62e9
RD
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 {
22714 wxBitmap* resultptr = new wxBitmap(*result);
22715 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22716 }
22717 return resultobj;
22718fail:
22719 return NULL;
d55e5bfc
RD
22720}
22721
22722
554f62e9
RD
22723SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22724 PyObject *resultobj = 0;
22725 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22726 wxBitmap result;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 PyObject *swig_obj[1] ;
22730
22731 if (!args) SWIG_fail;
22732 swig_obj[0] = args;
22733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22736 }
22737 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 result = (arg1)->GetBitmap();
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22745 return resultobj;
22746fail:
22747 return NULL;
22748}
22749
22750
22751SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22752 PyObject *resultobj = 0;
22753 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22754 wxString result;
22755 void *argp1 = 0 ;
22756 int res1 = 0 ;
22757 PyObject *swig_obj[1] ;
22758
22759 if (!args) SWIG_fail;
22760 swig_obj[0] = args;
22761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22762 if (!SWIG_IsOK(res1)) {
22763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22764 }
22765 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22766 {
22767 PyThreadState* __tstate = wxPyBeginAllowThreads();
22768 result = (arg1)->GetLabel();
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 {
d55e5bfc 22773#if wxUSE_UNICODE
554f62e9 22774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 22775#else
554f62e9 22776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 22777#endif
554f62e9
RD
22778 }
22779 return resultobj;
22780fail:
22781 return NULL;
d55e5bfc
RD
22782}
22783
22784
554f62e9
RD
22785SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22786 PyObject *resultobj = 0;
22787 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22788 wxString result;
22789 void *argp1 = 0 ;
22790 int res1 = 0 ;
22791 PyObject *swig_obj[1] ;
22792
22793 if (!args) SWIG_fail;
22794 swig_obj[0] = args;
22795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22796 if (!SWIG_IsOK(res1)) {
22797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22798 }
22799 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22800 {
22801 PyThreadState* __tstate = wxPyBeginAllowThreads();
22802 result = (arg1)->GetShortHelp();
22803 wxPyEndAllowThreads(__tstate);
22804 if (PyErr_Occurred()) SWIG_fail;
22805 }
22806 {
22807#if wxUSE_UNICODE
22808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22809#else
22810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22811#endif
22812 }
22813 return resultobj;
22814fail:
22815 return NULL;
d55e5bfc
RD
22816}
22817
22818
554f62e9
RD
22819SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22820 PyObject *resultobj = 0;
22821 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22822 wxString result;
22823 void *argp1 = 0 ;
22824 int res1 = 0 ;
22825 PyObject *swig_obj[1] ;
22826
22827 if (!args) SWIG_fail;
22828 swig_obj[0] = args;
22829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22830 if (!SWIG_IsOK(res1)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22832 }
22833 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22834 {
22835 PyThreadState* __tstate = wxPyBeginAllowThreads();
22836 result = (arg1)->GetLongHelp();
22837 wxPyEndAllowThreads(__tstate);
22838 if (PyErr_Occurred()) SWIG_fail;
22839 }
22840 {
22841#if wxUSE_UNICODE
22842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22843#else
22844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22845#endif
22846 }
22847 return resultobj;
22848fail:
22849 return NULL;
22850}
22851
22852
22853SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22854 PyObject *resultobj = 0;
22855 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22856 bool arg2 ;
22857 bool result;
22858 void *argp1 = 0 ;
22859 int res1 = 0 ;
22860 bool val2 ;
22861 int ecode2 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 char * kwnames[] = {
22865 (char *) "self",(char *) "enable", NULL
22866 };
22867
22868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22870 if (!SWIG_IsOK(res1)) {
22871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22872 }
22873 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22874 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22875 if (!SWIG_IsOK(ecode2)) {
22876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22877 }
22878 arg2 = static_cast< bool >(val2);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (bool)(arg1)->Enable(arg2);
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 {
22886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22887 }
22888 return resultobj;
22889fail:
22890 return NULL;
d55e5bfc
RD
22891}
22892
22893
554f62e9
RD
22894SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22895 PyObject *resultobj = 0;
22896 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22897 void *argp1 = 0 ;
22898 int res1 = 0 ;
22899 PyObject *swig_obj[1] ;
22900
22901 if (!args) SWIG_fail;
22902 swig_obj[0] = args;
22903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22904 if (!SWIG_IsOK(res1)) {
22905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22906 }
22907 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 (arg1)->Toggle();
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 resultobj = SWIG_Py_Void();
22915 return resultobj;
22916fail:
22917 return NULL;
22918}
22919
22920
22921SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj = 0;
22923 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22924 bool arg2 ;
22925 bool result;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 bool val2 ;
22929 int ecode2 = 0 ;
22930 PyObject * obj0 = 0 ;
22931 PyObject * obj1 = 0 ;
22932 char * kwnames[] = {
22933 (char *) "self",(char *) "toggle", NULL
22934 };
22935
22936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22938 if (!SWIG_IsOK(res1)) {
22939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22940 }
22941 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22942 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22943 if (!SWIG_IsOK(ecode2)) {
22944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22945 }
22946 arg2 = static_cast< bool >(val2);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (bool)(arg1)->SetToggle(arg2);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 {
22954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22955 }
22956 return resultobj;
22957fail:
22958 return NULL;
22959}
22960
22961
22962SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22963 PyObject *resultobj = 0;
22964 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22965 wxString *arg2 = 0 ;
22966 bool result;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 bool temp2 = false ;
22970 PyObject * obj0 = 0 ;
22971 PyObject * obj1 = 0 ;
22972 char * kwnames[] = {
22973 (char *) "self",(char *) "help", NULL
22974 };
22975
22976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22978 if (!SWIG_IsOK(res1)) {
22979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22980 }
22981 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22982 {
22983 arg2 = wxString_in_helper(obj1);
22984 if (arg2 == NULL) SWIG_fail;
22985 temp2 = true;
22986 }
22987 {
22988 PyThreadState* __tstate = wxPyBeginAllowThreads();
22989 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 {
22994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22995 }
22996 {
22997 if (temp2)
22998 delete arg2;
22999 }
23000 return resultobj;
23001fail:
23002 {
23003 if (temp2)
23004 delete arg2;
23005 }
23006 return NULL;
23007}
23008
23009
23010SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23011 PyObject *resultobj = 0;
23012 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23013 wxString *arg2 = 0 ;
23014 bool result;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 bool temp2 = false ;
23018 PyObject * obj0 = 0 ;
23019 PyObject * obj1 = 0 ;
23020 char * kwnames[] = {
23021 (char *) "self",(char *) "help", NULL
23022 };
23023
23024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23026 if (!SWIG_IsOK(res1)) {
23027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23028 }
23029 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23030 {
23031 arg2 = wxString_in_helper(obj1);
23032 if (arg2 == NULL) SWIG_fail;
23033 temp2 = true;
23034 }
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 {
23042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23043 }
23044 {
23045 if (temp2)
23046 delete arg2;
23047 }
23048 return resultobj;
23049fail:
23050 {
23051 if (temp2)
23052 delete arg2;
23053 }
23054 return NULL;
23055}
23056
23057
23058SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj = 0;
23060 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23061 wxBitmap *arg2 = 0 ;
23062 void *argp1 = 0 ;
23063 int res1 = 0 ;
23064 void *argp2 = 0 ;
23065 int res2 = 0 ;
23066 PyObject * obj0 = 0 ;
23067 PyObject * obj1 = 0 ;
23068 char * kwnames[] = {
23069 (char *) "self",(char *) "bmp", NULL
23070 };
23071
23072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23074 if (!SWIG_IsOK(res1)) {
23075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23076 }
23077 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23079 if (!SWIG_IsOK(res2)) {
23080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23081 }
23082 if (!argp2) {
23083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23084 }
23085 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_Py_Void();
23093 return resultobj;
23094fail:
23095 return NULL;
23096}
23097
23098
23099SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23100 PyObject *resultobj = 0;
23101 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23102 wxBitmap *arg2 = 0 ;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 void *argp2 = 0 ;
23106 int res2 = 0 ;
23107 PyObject * obj0 = 0 ;
23108 PyObject * obj1 = 0 ;
23109 char * kwnames[] = {
23110 (char *) "self",(char *) "bmp", NULL
23111 };
23112
23113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23117 }
23118 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23120 if (!SWIG_IsOK(res2)) {
23121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23122 }
23123 if (!argp2) {
23124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23125 }
23126 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23127 {
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
23129 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 resultobj = SWIG_Py_Void();
23134 return resultobj;
23135fail:
23136 return NULL;
23137}
23138
23139
23140SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23141 PyObject *resultobj = 0;
23142 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23143 wxString *arg2 = 0 ;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 bool temp2 = false ;
23147 PyObject * obj0 = 0 ;
23148 PyObject * obj1 = 0 ;
23149 char * kwnames[] = {
23150 (char *) "self",(char *) "label", NULL
23151 };
23152
23153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23155 if (!SWIG_IsOK(res1)) {
23156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23157 }
23158 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23159 {
23160 arg2 = wxString_in_helper(obj1);
23161 if (arg2 == NULL) SWIG_fail;
23162 temp2 = true;
23163 }
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 (arg1)->SetLabel((wxString const &)*arg2);
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 resultobj = SWIG_Py_Void();
23171 {
23172 if (temp2)
23173 delete arg2;
23174 }
23175 return resultobj;
23176fail:
23177 {
23178 if (temp2)
23179 delete arg2;
23180 }
23181 return NULL;
d55e5bfc
RD
23182}
23183
23184
554f62e9
RD
23185SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23186 PyObject *resultobj = 0;
23187 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23188 void *argp1 = 0 ;
23189 int res1 = 0 ;
23190 PyObject *swig_obj[1] ;
23191
23192 if (!args) SWIG_fail;
23193 swig_obj[0] = args;
23194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23195 if (!SWIG_IsOK(res1)) {
23196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23197 }
23198 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23199 {
23200 PyThreadState* __tstate = wxPyBeginAllowThreads();
23201 (arg1)->Detach();
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 resultobj = SWIG_Py_Void();
23206 return resultobj;
23207fail:
23208 return NULL;
23209}
23210
23211
23212SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23213 PyObject *resultobj = 0;
23214 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23215 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23216 void *argp1 = 0 ;
23217 int res1 = 0 ;
23218 void *argp2 = 0 ;
23219 int res2 = 0 ;
23220 PyObject * obj0 = 0 ;
23221 PyObject * obj1 = 0 ;
23222 char * kwnames[] = {
23223 (char *) "self",(char *) "tbar", NULL
23224 };
23225
23226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23228 if (!SWIG_IsOK(res1)) {
23229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23230 }
23231 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23233 if (!SWIG_IsOK(res2)) {
23234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23235 }
23236 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23237 {
23238 PyThreadState* __tstate = wxPyBeginAllowThreads();
23239 (arg1)->Attach(arg2);
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_Py_Void();
23244 return resultobj;
23245fail:
23246 return NULL;
d55e5bfc
RD
23247}
23248
23249
554f62e9
RD
23250SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23251 PyObject *resultobj = 0;
23252 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23253 PyObject *result = 0 ;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject *swig_obj[1] ;
23257
23258 if (!args) SWIG_fail;
23259 swig_obj[0] = args;
23260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23263 }
23264 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 resultobj = result;
23272 return resultobj;
23273fail:
23274 return NULL;
23275}
23276
23277
23278SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23279 PyObject *resultobj = 0;
23280 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23281 PyObject *arg2 = (PyObject *) 0 ;
23282 void *argp1 = 0 ;
23283 int res1 = 0 ;
23284 PyObject * obj0 = 0 ;
23285 PyObject * obj1 = 0 ;
23286 char * kwnames[] = {
23287 (char *) "self",(char *) "clientData", NULL
23288 };
23289
23290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23292 if (!SWIG_IsOK(res1)) {
23293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23294 }
23295 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23296 arg2 = obj1;
23297 {
23298 PyThreadState* __tstate = wxPyBeginAllowThreads();
23299 wxToolBarToolBase_SetClientData(arg1,arg2);
23300 wxPyEndAllowThreads(__tstate);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 }
23303 resultobj = SWIG_Py_Void();
23304 return resultobj;
23305fail:
23306 return NULL;
23307}
23308
23309
23310SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23311 PyObject *obj;
23312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23313 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23314 return SWIG_Py_Void();
23315}
23316
23317SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23318 PyObject *resultobj = 0;
23319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23320 int arg2 ;
23321 wxString *arg3 = 0 ;
23322 wxBitmap *arg4 = 0 ;
23323 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23324 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23325 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23326 wxString const &arg7_defvalue = wxPyEmptyString ;
23327 wxString *arg7 = (wxString *) &arg7_defvalue ;
23328 wxString const &arg8_defvalue = wxPyEmptyString ;
23329 wxString *arg8 = (wxString *) &arg8_defvalue ;
23330 PyObject *arg9 = (PyObject *) NULL ;
23331 wxToolBarToolBase *result = 0 ;
23332 void *argp1 = 0 ;
23333 int res1 = 0 ;
23334 int val2 ;
23335 int ecode2 = 0 ;
23336 bool temp3 = false ;
23337 void *argp4 = 0 ;
23338 int res4 = 0 ;
23339 void *argp5 = 0 ;
23340 int res5 = 0 ;
23341 int val6 ;
23342 int ecode6 = 0 ;
23343 bool temp7 = false ;
23344 bool temp8 = false ;
23345 PyObject * obj0 = 0 ;
23346 PyObject * obj1 = 0 ;
23347 PyObject * obj2 = 0 ;
23348 PyObject * obj3 = 0 ;
23349 PyObject * obj4 = 0 ;
23350 PyObject * obj5 = 0 ;
23351 PyObject * obj6 = 0 ;
23352 PyObject * obj7 = 0 ;
23353 PyObject * obj8 = 0 ;
23354 char * kwnames[] = {
23355 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23356 };
23357
23358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23360 if (!SWIG_IsOK(res1)) {
23361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23362 }
23363 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23364 ecode2 = SWIG_AsVal_int(obj1, &val2);
23365 if (!SWIG_IsOK(ecode2)) {
23366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23367 }
23368 arg2 = static_cast< int >(val2);
23369 {
23370 arg3 = wxString_in_helper(obj2);
23371 if (arg3 == NULL) SWIG_fail;
23372 temp3 = true;
23373 }
23374 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23375 if (!SWIG_IsOK(res4)) {
23376 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23377 }
23378 if (!argp4) {
23379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23380 }
23381 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23382 if (obj4) {
23383 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23384 if (!SWIG_IsOK(res5)) {
23385 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23386 }
23387 if (!argp5) {
23388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23389 }
23390 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23391 }
23392 if (obj5) {
23393 ecode6 = SWIG_AsVal_int(obj5, &val6);
23394 if (!SWIG_IsOK(ecode6)) {
23395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23396 }
23397 arg6 = static_cast< wxItemKind >(val6);
23398 }
23399 if (obj6) {
d55e5bfc 23400 {
554f62e9
RD
23401 arg7 = wxString_in_helper(obj6);
23402 if (arg7 == NULL) SWIG_fail;
23403 temp7 = true;
d55e5bfc 23404 }
554f62e9
RD
23405 }
23406 if (obj7) {
093d3ff1 23407 {
554f62e9
RD
23408 arg8 = wxString_in_helper(obj7);
23409 if (arg8 == NULL) SWIG_fail;
23410 temp8 = true;
093d3ff1 23411 }
554f62e9
RD
23412 }
23413 if (obj8) {
23414 arg9 = obj8;
23415 }
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 {
23423 resultobj = wxPyMake_wxObject(result, (bool)0);
23424 }
23425 {
23426 if (temp3)
23427 delete arg3;
23428 }
23429 {
23430 if (temp7)
23431 delete arg7;
23432 }
23433 {
23434 if (temp8)
23435 delete arg8;
23436 }
23437 return resultobj;
23438fail:
23439 {
23440 if (temp3)
23441 delete arg3;
23442 }
23443 {
23444 if (temp7)
23445 delete arg7;
23446 }
23447 {
23448 if (temp8)
23449 delete arg8;
23450 }
23451 return NULL;
23452}
23453
23454
23455SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj = 0;
23457 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23458 size_t arg2 ;
23459 int arg3 ;
23460 wxString *arg4 = 0 ;
23461 wxBitmap *arg5 = 0 ;
23462 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23463 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23464 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23465 wxString const &arg8_defvalue = wxPyEmptyString ;
23466 wxString *arg8 = (wxString *) &arg8_defvalue ;
23467 wxString const &arg9_defvalue = wxPyEmptyString ;
23468 wxString *arg9 = (wxString *) &arg9_defvalue ;
23469 PyObject *arg10 = (PyObject *) NULL ;
23470 wxToolBarToolBase *result = 0 ;
23471 void *argp1 = 0 ;
23472 int res1 = 0 ;
23473 size_t val2 ;
23474 int ecode2 = 0 ;
23475 int val3 ;
23476 int ecode3 = 0 ;
23477 bool temp4 = false ;
23478 void *argp5 = 0 ;
23479 int res5 = 0 ;
23480 void *argp6 = 0 ;
23481 int res6 = 0 ;
23482 int val7 ;
23483 int ecode7 = 0 ;
23484 bool temp8 = false ;
23485 bool temp9 = false ;
23486 PyObject * obj0 = 0 ;
23487 PyObject * obj1 = 0 ;
23488 PyObject * obj2 = 0 ;
23489 PyObject * obj3 = 0 ;
23490 PyObject * obj4 = 0 ;
23491 PyObject * obj5 = 0 ;
23492 PyObject * obj6 = 0 ;
23493 PyObject * obj7 = 0 ;
23494 PyObject * obj8 = 0 ;
23495 PyObject * obj9 = 0 ;
23496 char * kwnames[] = {
23497 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23498 };
23499
23500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23502 if (!SWIG_IsOK(res1)) {
23503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23504 }
23505 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23506 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23507 if (!SWIG_IsOK(ecode2)) {
23508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23509 }
23510 arg2 = static_cast< size_t >(val2);
23511 ecode3 = SWIG_AsVal_int(obj2, &val3);
23512 if (!SWIG_IsOK(ecode3)) {
23513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23514 }
23515 arg3 = static_cast< int >(val3);
23516 {
23517 arg4 = wxString_in_helper(obj3);
23518 if (arg4 == NULL) SWIG_fail;
23519 temp4 = true;
23520 }
23521 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23522 if (!SWIG_IsOK(res5)) {
23523 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23524 }
23525 if (!argp5) {
23526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23527 }
23528 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23529 if (obj5) {
23530 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23531 if (!SWIG_IsOK(res6)) {
23532 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23533 }
554f62e9
RD
23534 if (!argp6) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23536 }
554f62e9
RD
23537 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23538 }
23539 if (obj6) {
23540 ecode7 = SWIG_AsVal_int(obj6, &val7);
23541 if (!SWIG_IsOK(ecode7)) {
23542 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23543 }
23544 arg7 = static_cast< wxItemKind >(val7);
23545 }
23546 if (obj7) {
d55e5bfc 23547 {
554f62e9
RD
23548 arg8 = wxString_in_helper(obj7);
23549 if (arg8 == NULL) SWIG_fail;
23550 temp8 = true;
d55e5bfc 23551 }
554f62e9
RD
23552 }
23553 if (obj8) {
d55e5bfc 23554 {
554f62e9
RD
23555 arg9 = wxString_in_helper(obj8);
23556 if (arg9 == NULL) SWIG_fail;
23557 temp9 = true;
d55e5bfc 23558 }
554f62e9
RD
23559 }
23560 if (obj9) {
23561 arg10 = obj9;
23562 }
23563 {
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 {
23570 resultobj = wxPyMake_wxObject(result, (bool)0);
23571 }
23572 {
23573 if (temp4)
23574 delete arg4;
23575 }
23576 {
23577 if (temp8)
23578 delete arg8;
23579 }
23580 {
23581 if (temp9)
23582 delete arg9;
23583 }
23584 return resultobj;
23585fail:
23586 {
23587 if (temp4)
23588 delete arg4;
23589 }
23590 {
23591 if (temp8)
23592 delete arg8;
23593 }
23594 {
23595 if (temp9)
23596 delete arg9;
23597 }
23598 return NULL;
23599}
23600
23601
23602SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23603 PyObject *resultobj = 0;
23604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23605 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23606 wxToolBarToolBase *result = 0 ;
23607 void *argp1 = 0 ;
23608 int res1 = 0 ;
23609 void *argp2 = 0 ;
23610 int res2 = 0 ;
23611 PyObject * obj0 = 0 ;
23612 PyObject * obj1 = 0 ;
23613 char * kwnames[] = {
23614 (char *) "self",(char *) "tool", NULL
23615 };
23616
23617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23619 if (!SWIG_IsOK(res1)) {
23620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23621 }
23622 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23624 if (!SWIG_IsOK(res2)) {
23625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23626 }
23627 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
23634 {
23635 resultobj = wxPyMake_wxObject(result, (bool)0);
23636 }
23637 return resultobj;
23638fail:
23639 return NULL;
23640}
23641
23642
23643SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23644 PyObject *resultobj = 0;
23645 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23646 size_t arg2 ;
23647 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23648 wxToolBarToolBase *result = 0 ;
23649 void *argp1 = 0 ;
23650 int res1 = 0 ;
23651 size_t val2 ;
23652 int ecode2 = 0 ;
23653 void *argp3 = 0 ;
23654 int res3 = 0 ;
23655 PyObject * obj0 = 0 ;
23656 PyObject * obj1 = 0 ;
23657 PyObject * obj2 = 0 ;
23658 char * kwnames[] = {
23659 (char *) "self",(char *) "pos",(char *) "tool", NULL
23660 };
23661
23662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23664 if (!SWIG_IsOK(res1)) {
23665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23666 }
23667 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23668 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23669 if (!SWIG_IsOK(ecode2)) {
23670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23671 }
23672 arg2 = static_cast< size_t >(val2);
23673 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23674 if (!SWIG_IsOK(res3)) {
23675 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23676 }
23677 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23678 {
23679 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23681 wxPyEndAllowThreads(__tstate);
23682 if (PyErr_Occurred()) SWIG_fail;
23683 }
23684 {
23685 resultobj = wxPyMake_wxObject(result, (bool)0);
23686 }
23687 return resultobj;
23688fail:
23689 return NULL;
23690}
23691
23692
23693SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23694 PyObject *resultobj = 0;
23695 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23696 wxControl *arg2 = (wxControl *) 0 ;
23697 wxToolBarToolBase *result = 0 ;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 void *argp2 = 0 ;
23701 int res2 = 0 ;
23702 PyObject * obj0 = 0 ;
23703 PyObject * obj1 = 0 ;
23704 char * kwnames[] = {
23705 (char *) "self",(char *) "control", NULL
23706 };
23707
23708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23710 if (!SWIG_IsOK(res1)) {
23711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23712 }
23713 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23715 if (!SWIG_IsOK(res2)) {
23716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23717 }
23718 arg2 = reinterpret_cast< wxControl * >(argp2);
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23722 wxPyEndAllowThreads(__tstate);
23723 if (PyErr_Occurred()) SWIG_fail;
23724 }
23725 {
23726 resultobj = wxPyMake_wxObject(result, (bool)0);
23727 }
23728 return resultobj;
23729fail:
23730 return NULL;
23731}
23732
23733
23734SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23735 PyObject *resultobj = 0;
23736 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23737 size_t arg2 ;
23738 wxControl *arg3 = (wxControl *) 0 ;
23739 wxToolBarToolBase *result = 0 ;
23740 void *argp1 = 0 ;
23741 int res1 = 0 ;
23742 size_t val2 ;
23743 int ecode2 = 0 ;
23744 void *argp3 = 0 ;
23745 int res3 = 0 ;
23746 PyObject * obj0 = 0 ;
23747 PyObject * obj1 = 0 ;
23748 PyObject * obj2 = 0 ;
23749 char * kwnames[] = {
23750 (char *) "self",(char *) "pos",(char *) "control", NULL
23751 };
23752
23753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23755 if (!SWIG_IsOK(res1)) {
23756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23757 }
23758 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23759 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23760 if (!SWIG_IsOK(ecode2)) {
23761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23762 }
23763 arg2 = static_cast< size_t >(val2);
23764 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23765 if (!SWIG_IsOK(res3)) {
23766 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23767 }
23768 arg3 = reinterpret_cast< wxControl * >(argp3);
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23772 wxPyEndAllowThreads(__tstate);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 {
23776 resultobj = wxPyMake_wxObject(result, (bool)0);
23777 }
23778 return resultobj;
23779fail:
23780 return NULL;
23781}
23782
23783
23784SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23785 PyObject *resultobj = 0;
23786 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23787 int arg2 ;
23788 wxControl *result = 0 ;
23789 void *argp1 = 0 ;
23790 int res1 = 0 ;
23791 int val2 ;
23792 int ecode2 = 0 ;
23793 PyObject * obj0 = 0 ;
23794 PyObject * obj1 = 0 ;
23795 char * kwnames[] = {
23796 (char *) "self",(char *) "id", NULL
23797 };
23798
23799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23801 if (!SWIG_IsOK(res1)) {
23802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23803 }
23804 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23805 ecode2 = SWIG_AsVal_int(obj1, &val2);
23806 if (!SWIG_IsOK(ecode2)) {
23807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23808 }
23809 arg2 = static_cast< int >(val2);
23810 {
23811 PyThreadState* __tstate = wxPyBeginAllowThreads();
23812 result = (wxControl *)(arg1)->FindControl(arg2);
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
23816 {
23817 resultobj = wxPyMake_wxObject(result, 0);
23818 }
23819 return resultobj;
23820fail:
23821 return NULL;
d55e5bfc
RD
23822}
23823
23824
554f62e9
RD
23825SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23826 PyObject *resultobj = 0;
23827 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23828 wxToolBarToolBase *result = 0 ;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 PyObject *swig_obj[1] ;
23832
23833 if (!args) SWIG_fail;
23834 swig_obj[0] = args;
23835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23836 if (!SWIG_IsOK(res1)) {
23837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23838 }
23839 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23840 {
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23843 wxPyEndAllowThreads(__tstate);
23844 if (PyErr_Occurred()) SWIG_fail;
23845 }
23846 {
23847 resultobj = wxPyMake_wxObject(result, (bool)0);
23848 }
23849 return resultobj;
23850fail:
23851 return NULL;
23852}
23853
23854
23855SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23856 PyObject *resultobj = 0;
23857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23858 size_t arg2 ;
23859 wxToolBarToolBase *result = 0 ;
23860 void *argp1 = 0 ;
23861 int res1 = 0 ;
23862 size_t val2 ;
23863 int ecode2 = 0 ;
23864 PyObject * obj0 = 0 ;
23865 PyObject * obj1 = 0 ;
23866 char * kwnames[] = {
23867 (char *) "self",(char *) "pos", NULL
23868 };
23869
23870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23872 if (!SWIG_IsOK(res1)) {
23873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23874 }
23875 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23876 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23877 if (!SWIG_IsOK(ecode2)) {
23878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23879 }
23880 arg2 = static_cast< size_t >(val2);
23881 {
23882 PyThreadState* __tstate = wxPyBeginAllowThreads();
23883 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 {
23888 resultobj = wxPyMake_wxObject(result, (bool)0);
23889 }
23890 return resultobj;
23891fail:
23892 return NULL;
23893}
23894
23895
23896SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23897 PyObject *resultobj = 0;
23898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23899 int arg2 ;
23900 wxToolBarToolBase *result = 0 ;
23901 void *argp1 = 0 ;
23902 int res1 = 0 ;
23903 int val2 ;
23904 int ecode2 = 0 ;
23905 PyObject * obj0 = 0 ;
23906 PyObject * obj1 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "id", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23915 }
23916 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23917 ecode2 = SWIG_AsVal_int(obj1, &val2);
23918 if (!SWIG_IsOK(ecode2)) {
23919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23920 }
23921 arg2 = static_cast< int >(val2);
23922 {
23923 PyThreadState* __tstate = wxPyBeginAllowThreads();
23924 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23925 wxPyEndAllowThreads(__tstate);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 }
23928 {
23929 resultobj = wxPyMake_wxObject(result, (bool)0);
23930 }
23931 return resultobj;
23932fail:
23933 return NULL;
23934}
23935
23936
23937SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23938 PyObject *resultobj = 0;
23939 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23940 size_t arg2 ;
23941 bool result;
23942 void *argp1 = 0 ;
23943 int res1 = 0 ;
23944 size_t val2 ;
23945 int ecode2 = 0 ;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948 char * kwnames[] = {
23949 (char *) "self",(char *) "pos", NULL
23950 };
23951
23952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23954 if (!SWIG_IsOK(res1)) {
23955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23956 }
23957 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23958 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23959 if (!SWIG_IsOK(ecode2)) {
23960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23961 }
23962 arg2 = static_cast< size_t >(val2);
23963 {
23964 PyThreadState* __tstate = wxPyBeginAllowThreads();
23965 result = (bool)(arg1)->DeleteToolByPos(arg2);
23966 wxPyEndAllowThreads(__tstate);
23967 if (PyErr_Occurred()) SWIG_fail;
23968 }
23969 {
23970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23971 }
23972 return resultobj;
23973fail:
23974 return NULL;
23975}
23976
23977
23978SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj = 0;
23980 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23981 int arg2 ;
23982 bool result;
23983 void *argp1 = 0 ;
23984 int res1 = 0 ;
23985 int val2 ;
23986 int ecode2 = 0 ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "self",(char *) "id", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) 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_DeleteTool" "', 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_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24002 }
24003 arg2 = static_cast< int >(val2);
24004 {
24005 PyThreadState* __tstate = wxPyBeginAllowThreads();
24006 result = (bool)(arg1)->DeleteTool(arg2);
24007 wxPyEndAllowThreads(__tstate);
24008 if (PyErr_Occurred()) SWIG_fail;
24009 }
24010 {
24011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24012 }
24013 return resultobj;
24014fail:
24015 return NULL;
d55e5bfc
RD
24016}
24017
24018
554f62e9
RD
24019SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24020 PyObject *resultobj = 0;
24021 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 PyObject *swig_obj[1] ;
24025
24026 if (!args) SWIG_fail;
24027 swig_obj[0] = args;
24028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24031 }
24032 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 (arg1)->ClearTools();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_Py_Void();
24040 return resultobj;
24041fail:
24042 return NULL;
f20a2e1f
RD
24043}
24044
24045
554f62e9
RD
24046SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *resultobj = 0;
24048 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24049 bool result;
24050 void *argp1 = 0 ;
24051 int res1 = 0 ;
24052 PyObject *swig_obj[1] ;
24053
24054 if (!args) SWIG_fail;
24055 swig_obj[0] = args;
24056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24057 if (!SWIG_IsOK(res1)) {
24058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24059 }
24060 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24061 {
24062 PyThreadState* __tstate = wxPyBeginAllowThreads();
24063 result = (bool)(arg1)->Realize();
24064 wxPyEndAllowThreads(__tstate);
24065 if (PyErr_Occurred()) SWIG_fail;
24066 }
24067 {
24068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24069 }
24070 return resultobj;
24071fail:
24072 return NULL;
24073}
24074
24075
24076SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24077 PyObject *resultobj = 0;
24078 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24079 int arg2 ;
24080 bool arg3 ;
24081 void *argp1 = 0 ;
24082 int res1 = 0 ;
24083 int val2 ;
24084 int ecode2 = 0 ;
24085 bool val3 ;
24086 int ecode3 = 0 ;
24087 PyObject * obj0 = 0 ;
24088 PyObject * obj1 = 0 ;
24089 PyObject * obj2 = 0 ;
24090 char * kwnames[] = {
24091 (char *) "self",(char *) "id",(char *) "enable", NULL
24092 };
24093
24094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24096 if (!SWIG_IsOK(res1)) {
24097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24098 }
24099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24100 ecode2 = SWIG_AsVal_int(obj1, &val2);
24101 if (!SWIG_IsOK(ecode2)) {
24102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24103 }
24104 arg2 = static_cast< int >(val2);
24105 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24106 if (!SWIG_IsOK(ecode3)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24108 }
24109 arg3 = static_cast< bool >(val3);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 (arg1)->EnableTool(arg2,arg3);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 resultobj = SWIG_Py_Void();
24117 return resultobj;
24118fail:
24119 return NULL;
24120}
24121
24122
24123SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24124 PyObject *resultobj = 0;
24125 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24126 int arg2 ;
24127 bool arg3 ;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 int val2 ;
24131 int ecode2 = 0 ;
24132 bool val3 ;
24133 int ecode3 = 0 ;
24134 PyObject * obj0 = 0 ;
24135 PyObject * obj1 = 0 ;
24136 PyObject * obj2 = 0 ;
24137 char * kwnames[] = {
24138 (char *) "self",(char *) "id",(char *) "toggle", NULL
24139 };
24140
24141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24143 if (!SWIG_IsOK(res1)) {
24144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24145 }
24146 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24147 ecode2 = SWIG_AsVal_int(obj1, &val2);
24148 if (!SWIG_IsOK(ecode2)) {
24149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24150 }
24151 arg2 = static_cast< int >(val2);
24152 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24153 if (!SWIG_IsOK(ecode3)) {
24154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24155 }
24156 arg3 = static_cast< bool >(val3);
24157 {
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 (arg1)->ToggleTool(arg2,arg3);
24160 wxPyEndAllowThreads(__tstate);
24161 if (PyErr_Occurred()) SWIG_fail;
24162 }
24163 resultobj = SWIG_Py_Void();
24164 return resultobj;
24165fail:
24166 return NULL;
24167}
24168
24169
24170SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24171 PyObject *resultobj = 0;
24172 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24173 int arg2 ;
24174 bool arg3 ;
24175 void *argp1 = 0 ;
24176 int res1 = 0 ;
24177 int val2 ;
24178 int ecode2 = 0 ;
24179 bool val3 ;
24180 int ecode3 = 0 ;
24181 PyObject * obj0 = 0 ;
24182 PyObject * obj1 = 0 ;
24183 PyObject * obj2 = 0 ;
24184 char * kwnames[] = {
24185 (char *) "self",(char *) "id",(char *) "toggle", NULL
24186 };
24187
24188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24190 if (!SWIG_IsOK(res1)) {
24191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24192 }
24193 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24194 ecode2 = SWIG_AsVal_int(obj1, &val2);
24195 if (!SWIG_IsOK(ecode2)) {
24196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24197 }
24198 arg2 = static_cast< int >(val2);
24199 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24200 if (!SWIG_IsOK(ecode3)) {
24201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24202 }
24203 arg3 = static_cast< bool >(val3);
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 (arg1)->SetToggle(arg2,arg3);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 resultobj = SWIG_Py_Void();
24211 return resultobj;
24212fail:
24213 return NULL;
24214}
24215
24216
24217SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24218 PyObject *resultobj = 0;
24219 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24220 int arg2 ;
24221 PyObject *result = 0 ;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 int val2 ;
24225 int ecode2 = 0 ;
24226 PyObject * obj0 = 0 ;
24227 PyObject * obj1 = 0 ;
24228 char * kwnames[] = {
24229 (char *) "self",(char *) "id", NULL
24230 };
24231
24232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24236 }
24237 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24238 ecode2 = SWIG_AsVal_int(obj1, &val2);
24239 if (!SWIG_IsOK(ecode2)) {
24240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24241 }
24242 arg2 = static_cast< int >(val2);
24243 {
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24246 wxPyEndAllowThreads(__tstate);
24247 if (PyErr_Occurred()) SWIG_fail;
24248 }
24249 resultobj = result;
24250 return resultobj;
24251fail:
24252 return NULL;
24253}
24254
24255
24256SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24257 PyObject *resultobj = 0;
24258 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24259 int arg2 ;
24260 PyObject *arg3 = (PyObject *) 0 ;
24261 void *argp1 = 0 ;
24262 int res1 = 0 ;
24263 int val2 ;
24264 int ecode2 = 0 ;
24265 PyObject * obj0 = 0 ;
24266 PyObject * obj1 = 0 ;
24267 PyObject * obj2 = 0 ;
24268 char * kwnames[] = {
24269 (char *) "self",(char *) "id",(char *) "clientData", NULL
24270 };
24271
24272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24274 if (!SWIG_IsOK(res1)) {
24275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24276 }
24277 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24278 ecode2 = SWIG_AsVal_int(obj1, &val2);
24279 if (!SWIG_IsOK(ecode2)) {
24280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24281 }
24282 arg2 = static_cast< int >(val2);
24283 arg3 = obj2;
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 resultobj = SWIG_Py_Void();
24291 return resultobj;
24292fail:
24293 return NULL;
24294}
24295
24296
24297SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj = 0;
24299 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24300 int arg2 ;
24301 int result;
24302 void *argp1 = 0 ;
24303 int res1 = 0 ;
24304 int val2 ;
24305 int ecode2 = 0 ;
24306 PyObject * obj0 = 0 ;
24307 PyObject * obj1 = 0 ;
24308 char * kwnames[] = {
24309 (char *) "self",(char *) "id", NULL
24310 };
24311
24312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24314 if (!SWIG_IsOK(res1)) {
24315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24316 }
24317 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24318 ecode2 = SWIG_AsVal_int(obj1, &val2);
24319 if (!SWIG_IsOK(ecode2)) {
24320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24321 }
24322 arg2 = static_cast< int >(val2);
24323 {
24324 PyThreadState* __tstate = wxPyBeginAllowThreads();
24325 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = SWIG_From_int(static_cast< int >(result));
24330 return resultobj;
24331fail:
24332 return NULL;
24333}
24334
24335
24336SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj = 0;
24338 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24339 int arg2 ;
24340 bool result;
24341 void *argp1 = 0 ;
24342 int res1 = 0 ;
24343 int val2 ;
24344 int ecode2 = 0 ;
24345 PyObject * obj0 = 0 ;
24346 PyObject * obj1 = 0 ;
24347 char * kwnames[] = {
24348 (char *) "self",(char *) "id", NULL
24349 };
24350
24351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24353 if (!SWIG_IsOK(res1)) {
24354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24355 }
24356 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24357 ecode2 = SWIG_AsVal_int(obj1, &val2);
24358 if (!SWIG_IsOK(ecode2)) {
24359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24360 }
24361 arg2 = static_cast< int >(val2);
24362 {
24363 PyThreadState* __tstate = wxPyBeginAllowThreads();
24364 result = (bool)(arg1)->GetToolState(arg2);
24365 wxPyEndAllowThreads(__tstate);
24366 if (PyErr_Occurred()) SWIG_fail;
24367 }
24368 {
24369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24370 }
24371 return resultobj;
24372fail:
24373 return NULL;
24374}
24375
24376
24377SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24378 PyObject *resultobj = 0;
24379 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24380 int arg2 ;
24381 bool result;
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 int val2 ;
24385 int ecode2 = 0 ;
24386 PyObject * obj0 = 0 ;
24387 PyObject * obj1 = 0 ;
24388 char * kwnames[] = {
24389 (char *) "self",(char *) "id", NULL
24390 };
24391
24392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24394 if (!SWIG_IsOK(res1)) {
24395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24396 }
24397 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24398 ecode2 = SWIG_AsVal_int(obj1, &val2);
24399 if (!SWIG_IsOK(ecode2)) {
24400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24401 }
24402 arg2 = static_cast< int >(val2);
24403 {
24404 PyThreadState* __tstate = wxPyBeginAllowThreads();
24405 result = (bool)(arg1)->GetToolEnabled(arg2);
24406 wxPyEndAllowThreads(__tstate);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 {
24410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24411 }
24412 return resultobj;
24413fail:
24414 return NULL;
24415}
24416
24417
24418SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24419 PyObject *resultobj = 0;
24420 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24421 int arg2 ;
24422 wxString *arg3 = 0 ;
24423 void *argp1 = 0 ;
24424 int res1 = 0 ;
24425 int val2 ;
24426 int ecode2 = 0 ;
24427 bool temp3 = false ;
24428 PyObject * obj0 = 0 ;
24429 PyObject * obj1 = 0 ;
24430 PyObject * obj2 = 0 ;
24431 char * kwnames[] = {
24432 (char *) "self",(char *) "id",(char *) "helpString", NULL
24433 };
24434
24435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24437 if (!SWIG_IsOK(res1)) {
24438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24439 }
24440 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24441 ecode2 = SWIG_AsVal_int(obj1, &val2);
24442 if (!SWIG_IsOK(ecode2)) {
24443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24444 }
24445 arg2 = static_cast< int >(val2);
24446 {
24447 arg3 = wxString_in_helper(obj2);
24448 if (arg3 == NULL) SWIG_fail;
24449 temp3 = true;
24450 }
24451 {
24452 PyThreadState* __tstate = wxPyBeginAllowThreads();
24453 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24454 wxPyEndAllowThreads(__tstate);
24455 if (PyErr_Occurred()) SWIG_fail;
24456 }
24457 resultobj = SWIG_Py_Void();
24458 {
24459 if (temp3)
24460 delete arg3;
24461 }
24462 return resultobj;
24463fail:
24464 {
24465 if (temp3)
24466 delete arg3;
24467 }
24468 return NULL;
24469}
24470
24471
24472SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24473 PyObject *resultobj = 0;
24474 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24475 int arg2 ;
24476 wxString result;
24477 void *argp1 = 0 ;
24478 int res1 = 0 ;
24479 int val2 ;
24480 int ecode2 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 char * kwnames[] = {
24484 (char *) "self",(char *) "id", NULL
24485 };
24486
24487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24489 if (!SWIG_IsOK(res1)) {
24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24491 }
24492 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24493 ecode2 = SWIG_AsVal_int(obj1, &val2);
24494 if (!SWIG_IsOK(ecode2)) {
24495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24496 }
24497 arg2 = static_cast< int >(val2);
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 result = (arg1)->GetToolShortHelp(arg2);
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 {
d55e5bfc 24505#if wxUSE_UNICODE
554f62e9 24506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 24507#else
554f62e9 24508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 24509#endif
554f62e9
RD
24510 }
24511 return resultobj;
24512fail:
24513 return NULL;
24514}
24515
24516
24517SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj = 0;
24519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24520 int arg2 ;
24521 wxString *arg3 = 0 ;
24522 void *argp1 = 0 ;
24523 int res1 = 0 ;
24524 int val2 ;
24525 int ecode2 = 0 ;
24526 bool temp3 = false ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 PyObject * obj2 = 0 ;
24530 char * kwnames[] = {
24531 (char *) "self",(char *) "id",(char *) "helpString", NULL
24532 };
24533
24534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24538 }
24539 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24540 ecode2 = SWIG_AsVal_int(obj1, &val2);
24541 if (!SWIG_IsOK(ecode2)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24543 }
24544 arg2 = static_cast< int >(val2);
24545 {
24546 arg3 = wxString_in_helper(obj2);
24547 if (arg3 == NULL) SWIG_fail;
24548 temp3 = true;
24549 }
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 resultobj = SWIG_Py_Void();
24557 {
24558 if (temp3)
24559 delete arg3;
24560 }
24561 return resultobj;
24562fail:
24563 {
24564 if (temp3)
24565 delete arg3;
24566 }
24567 return NULL;
24568}
24569
24570
24571SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24572 PyObject *resultobj = 0;
24573 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24574 int arg2 ;
24575 wxString result;
24576 void *argp1 = 0 ;
24577 int res1 = 0 ;
24578 int val2 ;
24579 int ecode2 = 0 ;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582 char * kwnames[] = {
24583 (char *) "self",(char *) "id", NULL
24584 };
24585
24586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24588 if (!SWIG_IsOK(res1)) {
24589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24590 }
24591 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24592 ecode2 = SWIG_AsVal_int(obj1, &val2);
24593 if (!SWIG_IsOK(ecode2)) {
24594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24595 }
24596 arg2 = static_cast< int >(val2);
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 result = (arg1)->GetToolLongHelp(arg2);
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 {
24604#if wxUSE_UNICODE
24605 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24606#else
24607 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24608#endif
24609 }
24610 return resultobj;
24611fail:
24612 return NULL;
24613}
24614
24615
24616SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24617 PyObject *resultobj = 0;
24618 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24619 int arg2 ;
24620 int arg3 ;
24621 void *argp1 = 0 ;
24622 int res1 = 0 ;
24623 int val2 ;
24624 int ecode2 = 0 ;
24625 int val3 ;
24626 int ecode3 = 0 ;
24627 PyObject * obj0 = 0 ;
24628 PyObject * obj1 = 0 ;
24629 PyObject * obj2 = 0 ;
24630 char * kwnames[] = {
24631 (char *) "self",(char *) "x",(char *) "y", NULL
24632 };
24633
24634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24636 if (!SWIG_IsOK(res1)) {
24637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24638 }
24639 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24640 ecode2 = SWIG_AsVal_int(obj1, &val2);
24641 if (!SWIG_IsOK(ecode2)) {
24642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24643 }
24644 arg2 = static_cast< int >(val2);
24645 ecode3 = SWIG_AsVal_int(obj2, &val3);
24646 if (!SWIG_IsOK(ecode3)) {
24647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24648 }
24649 arg3 = static_cast< int >(val3);
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 (arg1)->SetMargins(arg2,arg3);
24653 wxPyEndAllowThreads(__tstate);
24654 if (PyErr_Occurred()) SWIG_fail;
24655 }
24656 resultobj = SWIG_Py_Void();
24657 return resultobj;
24658fail:
24659 return NULL;
24660}
24661
24662
24663SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj = 0;
24665 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24666 wxSize *arg2 = 0 ;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 wxSize temp2 ;
24670 PyObject * obj0 = 0 ;
24671 PyObject * obj1 = 0 ;
24672 char * kwnames[] = {
24673 (char *) "self",(char *) "size", NULL
24674 };
24675
24676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24678 if (!SWIG_IsOK(res1)) {
24679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24680 }
24681 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24682 {
24683 arg2 = &temp2;
24684 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24685 }
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 (arg1)->SetMargins((wxSize const &)*arg2);
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 resultobj = SWIG_Py_Void();
24693 return resultobj;
24694fail:
24695 return NULL;
24696}
24697
24698
24699SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24700 PyObject *resultobj = 0;
24701 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24702 int arg2 ;
24703 void *argp1 = 0 ;
24704 int res1 = 0 ;
24705 int val2 ;
24706 int ecode2 = 0 ;
24707 PyObject * obj0 = 0 ;
24708 PyObject * obj1 = 0 ;
24709 char * kwnames[] = {
24710 (char *) "self",(char *) "packing", NULL
24711 };
24712
24713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24715 if (!SWIG_IsOK(res1)) {
24716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24717 }
24718 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24719 ecode2 = SWIG_AsVal_int(obj1, &val2);
24720 if (!SWIG_IsOK(ecode2)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24722 }
24723 arg2 = static_cast< int >(val2);
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 (arg1)->SetToolPacking(arg2);
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
24730 resultobj = SWIG_Py_Void();
24731 return resultobj;
24732fail:
24733 return NULL;
24734}
24735
24736
24737SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj = 0;
24739 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24740 int arg2 ;
24741 void *argp1 = 0 ;
24742 int res1 = 0 ;
24743 int val2 ;
24744 int ecode2 = 0 ;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 char * kwnames[] = {
24748 (char *) "self",(char *) "separation", NULL
24749 };
24750
24751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24753 if (!SWIG_IsOK(res1)) {
24754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24755 }
24756 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24757 ecode2 = SWIG_AsVal_int(obj1, &val2);
24758 if (!SWIG_IsOK(ecode2)) {
24759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24760 }
24761 arg2 = static_cast< int >(val2);
24762 {
24763 PyThreadState* __tstate = wxPyBeginAllowThreads();
24764 (arg1)->SetToolSeparation(arg2);
24765 wxPyEndAllowThreads(__tstate);
24766 if (PyErr_Occurred()) SWIG_fail;
24767 }
24768 resultobj = SWIG_Py_Void();
24769 return resultobj;
24770fail:
24771 return NULL;
d55e5bfc
RD
24772}
24773
24774
554f62e9
RD
24775SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24776 PyObject *resultobj = 0;
24777 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24778 wxSize result;
24779 void *argp1 = 0 ;
24780 int res1 = 0 ;
24781 PyObject *swig_obj[1] ;
24782
24783 if (!args) SWIG_fail;
24784 swig_obj[0] = args;
24785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24786 if (!SWIG_IsOK(res1)) {
24787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24788 }
24789 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 result = (arg1)->GetToolMargins();
24793 wxPyEndAllowThreads(__tstate);
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24797 return resultobj;
24798fail:
24799 return NULL;
d55e5bfc
RD
24800}
24801
24802
554f62e9
RD
24803SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24804 PyObject *resultobj = 0;
24805 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24806 wxSize result;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 PyObject *swig_obj[1] ;
24810
24811 if (!args) SWIG_fail;
24812 swig_obj[0] = args;
24813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24814 if (!SWIG_IsOK(res1)) {
24815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24816 }
24817 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = (arg1)->GetMargins();
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24825 return resultobj;
24826fail:
24827 return NULL;
d55e5bfc
RD
24828}
24829
24830
554f62e9
RD
24831SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24832 PyObject *resultobj = 0;
24833 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24834 int result;
24835 void *argp1 = 0 ;
24836 int res1 = 0 ;
24837 PyObject *swig_obj[1] ;
24838
24839 if (!args) SWIG_fail;
24840 swig_obj[0] = args;
24841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24842 if (!SWIG_IsOK(res1)) {
24843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24844 }
24845 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24846 {
24847 PyThreadState* __tstate = wxPyBeginAllowThreads();
24848 result = (int)(arg1)->GetToolPacking();
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_From_int(static_cast< int >(result));
24853 return resultobj;
24854fail:
24855 return NULL;
d55e5bfc
RD
24856}
24857
24858
554f62e9
RD
24859SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24860 PyObject *resultobj = 0;
24861 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24862 int result;
24863 void *argp1 = 0 ;
24864 int res1 = 0 ;
24865 PyObject *swig_obj[1] ;
24866
24867 if (!args) SWIG_fail;
24868 swig_obj[0] = args;
24869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24872 }
24873 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 result = (int)(arg1)->GetToolSeparation();
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 resultobj = SWIG_From_int(static_cast< int >(result));
24881 return resultobj;
24882fail:
24883 return NULL;
24884}
24885
24886
24887SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24888 PyObject *resultobj = 0;
24889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24890 int arg2 ;
24891 void *argp1 = 0 ;
24892 int res1 = 0 ;
24893 int val2 ;
24894 int ecode2 = 0 ;
24895 PyObject * obj0 = 0 ;
24896 PyObject * obj1 = 0 ;
24897 char * kwnames[] = {
24898 (char *) "self",(char *) "nRows", NULL
24899 };
24900
24901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24903 if (!SWIG_IsOK(res1)) {
24904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24905 }
24906 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24907 ecode2 = SWIG_AsVal_int(obj1, &val2);
24908 if (!SWIG_IsOK(ecode2)) {
24909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24910 }
24911 arg2 = static_cast< int >(val2);
24912 {
24913 PyThreadState* __tstate = wxPyBeginAllowThreads();
24914 (arg1)->SetRows(arg2);
24915 wxPyEndAllowThreads(__tstate);
24916 if (PyErr_Occurred()) SWIG_fail;
24917 }
24918 resultobj = SWIG_Py_Void();
24919 return resultobj;
24920fail:
24921 return NULL;
24922}
24923
24924
24925SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24926 PyObject *resultobj = 0;
24927 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24928 int arg2 ;
24929 int arg3 ;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 int val2 ;
24933 int ecode2 = 0 ;
24934 int val3 ;
24935 int ecode3 = 0 ;
24936 PyObject * obj0 = 0 ;
24937 PyObject * obj1 = 0 ;
24938 PyObject * obj2 = 0 ;
24939 char * kwnames[] = {
24940 (char *) "self",(char *) "rows",(char *) "cols", NULL
24941 };
24942
24943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24945 if (!SWIG_IsOK(res1)) {
24946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24947 }
24948 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24949 ecode2 = SWIG_AsVal_int(obj1, &val2);
24950 if (!SWIG_IsOK(ecode2)) {
24951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24952 }
24953 arg2 = static_cast< int >(val2);
24954 ecode3 = SWIG_AsVal_int(obj2, &val3);
24955 if (!SWIG_IsOK(ecode3)) {
24956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24957 }
24958 arg3 = static_cast< int >(val3);
24959 {
24960 PyThreadState* __tstate = wxPyBeginAllowThreads();
24961 (arg1)->SetMaxRowsCols(arg2,arg3);
24962 wxPyEndAllowThreads(__tstate);
24963 if (PyErr_Occurred()) SWIG_fail;
24964 }
24965 resultobj = SWIG_Py_Void();
24966 return resultobj;
24967fail:
24968 return NULL;
d55e5bfc
RD
24969}
24970
24971
554f62e9
RD
24972SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24973 PyObject *resultobj = 0;
24974 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24975 int result;
24976 void *argp1 = 0 ;
24977 int res1 = 0 ;
24978 PyObject *swig_obj[1] ;
24979
24980 if (!args) SWIG_fail;
24981 swig_obj[0] = args;
24982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24983 if (!SWIG_IsOK(res1)) {
24984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24985 }
24986 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (int)(arg1)->GetMaxRows();
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 resultobj = SWIG_From_int(static_cast< int >(result));
24994 return resultobj;
24995fail:
24996 return NULL;
d55e5bfc
RD
24997}
24998
24999
554f62e9
RD
25000SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25001 PyObject *resultobj = 0;
25002 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25003 int result;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 PyObject *swig_obj[1] ;
25007
25008 if (!args) SWIG_fail;
25009 swig_obj[0] = args;
25010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25011 if (!SWIG_IsOK(res1)) {
25012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25013 }
25014 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25015 {
25016 PyThreadState* __tstate = wxPyBeginAllowThreads();
25017 result = (int)(arg1)->GetMaxCols();
25018 wxPyEndAllowThreads(__tstate);
25019 if (PyErr_Occurred()) SWIG_fail;
25020 }
25021 resultobj = SWIG_From_int(static_cast< int >(result));
25022 return resultobj;
25023fail:
25024 return NULL;
25025}
25026
25027
25028SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25029 PyObject *resultobj = 0;
25030 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25031 wxSize *arg2 = 0 ;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 wxSize temp2 ;
25035 PyObject * obj0 = 0 ;
25036 PyObject * obj1 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "self",(char *) "size", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25043 if (!SWIG_IsOK(res1)) {
25044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25045 }
25046 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25047 {
25048 arg2 = &temp2;
25049 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25050 }
25051 {
25052 PyThreadState* __tstate = wxPyBeginAllowThreads();
25053 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25054 wxPyEndAllowThreads(__tstate);
25055 if (PyErr_Occurred()) SWIG_fail;
25056 }
25057 resultobj = SWIG_Py_Void();
25058 return resultobj;
25059fail:
25060 return NULL;
d55e5bfc
RD
25061}
25062
25063
554f62e9
RD
25064SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25065 PyObject *resultobj = 0;
25066 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25067 wxSize result;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 PyObject *swig_obj[1] ;
25071
25072 if (!args) SWIG_fail;
25073 swig_obj[0] = args;
25074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25075 if (!SWIG_IsOK(res1)) {
25076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25077 }
25078 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25079 {
25080 PyThreadState* __tstate = wxPyBeginAllowThreads();
25081 result = (arg1)->GetToolBitmapSize();
25082 wxPyEndAllowThreads(__tstate);
25083 if (PyErr_Occurred()) SWIG_fail;
25084 }
25085 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25086 return resultobj;
25087fail:
25088 return NULL;
d55e5bfc
RD
25089}
25090
25091
554f62e9
RD
25092SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25093 PyObject *resultobj = 0;
25094 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25095 wxSize result;
25096 void *argp1 = 0 ;
25097 int res1 = 0 ;
25098 PyObject *swig_obj[1] ;
25099
25100 if (!args) SWIG_fail;
25101 swig_obj[0] = args;
25102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25105 }
25106 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = (arg1)->GetToolSize();
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25114 return resultobj;
25115fail:
25116 return NULL;
25117}
25118
25119
25120SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25121 PyObject *resultobj = 0;
25122 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25123 int arg2 ;
25124 int arg3 ;
25125 wxToolBarToolBase *result = 0 ;
25126 void *argp1 = 0 ;
25127 int res1 = 0 ;
25128 int val2 ;
25129 int ecode2 = 0 ;
25130 int val3 ;
25131 int ecode3 = 0 ;
25132 PyObject * obj0 = 0 ;
25133 PyObject * obj1 = 0 ;
25134 PyObject * obj2 = 0 ;
25135 char * kwnames[] = {
25136 (char *) "self",(char *) "x",(char *) "y", NULL
25137 };
25138
25139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25143 }
25144 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25145 ecode2 = SWIG_AsVal_int(obj1, &val2);
25146 if (!SWIG_IsOK(ecode2)) {
25147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25148 }
25149 arg2 = static_cast< int >(val2);
25150 ecode3 = SWIG_AsVal_int(obj2, &val3);
25151 if (!SWIG_IsOK(ecode3)) {
25152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25153 }
25154 arg3 = static_cast< int >(val3);
25155 {
25156 PyThreadState* __tstate = wxPyBeginAllowThreads();
25157 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25158 wxPyEndAllowThreads(__tstate);
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 {
25162 resultobj = wxPyMake_wxObject(result, (bool)0);
25163 }
25164 return resultobj;
25165fail:
25166 return NULL;
25167}
25168
25169
25170SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25171 PyObject *resultobj = 0;
25172 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25173 int arg2 ;
25174 wxToolBarToolBase *result = 0 ;
25175 void *argp1 = 0 ;
25176 int res1 = 0 ;
25177 int val2 ;
25178 int ecode2 = 0 ;
25179 PyObject * obj0 = 0 ;
25180 PyObject * obj1 = 0 ;
25181 char * kwnames[] = {
25182 (char *) "self",(char *) "toolid", NULL
25183 };
25184
25185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25187 if (!SWIG_IsOK(res1)) {
25188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25189 }
25190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25191 ecode2 = SWIG_AsVal_int(obj1, &val2);
25192 if (!SWIG_IsOK(ecode2)) {
25193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25194 }
25195 arg2 = static_cast< int >(val2);
25196 {
25197 PyThreadState* __tstate = wxPyBeginAllowThreads();
25198 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25199 wxPyEndAllowThreads(__tstate);
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 {
25203 resultobj = wxPyMake_wxObject(result, (bool)0);
25204 }
25205 return resultobj;
25206fail:
25207 return NULL;
d55e5bfc
RD
25208}
25209
25210
554f62e9
RD
25211SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25212 PyObject *resultobj = 0;
25213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25214 bool result;
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
25217 PyObject *swig_obj[1] ;
25218
25219 if (!args) SWIG_fail;
25220 swig_obj[0] = args;
25221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25222 if (!SWIG_IsOK(res1)) {
25223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25224 }
25225 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (bool)(arg1)->IsVertical();
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 {
25233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25234 }
25235 return resultobj;
25236fail:
25237 return NULL;
d55e5bfc
RD
25238}
25239
25240
554f62e9
RD
25241SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25242 PyObject *resultobj = 0;
25243 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25244 size_t result;
25245 void *argp1 = 0 ;
25246 int res1 = 0 ;
25247 PyObject *swig_obj[1] ;
25248
25249 if (!args) SWIG_fail;
25250 swig_obj[0] = args;
25251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25252 if (!SWIG_IsOK(res1)) {
25253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25254 }
25255 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25256 {
25257 PyThreadState* __tstate = wxPyBeginAllowThreads();
25258 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25259 wxPyEndAllowThreads(__tstate);
25260 if (PyErr_Occurred()) SWIG_fail;
25261 }
25262 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25263 return resultobj;
25264fail:
25265 return NULL;
25266}
25267
25268
25269SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25270 PyObject *obj;
25271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25272 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25273 return SWIG_Py_Void();
25274}
25275
25276SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25277 PyObject *resultobj = 0;
25278 wxWindow *arg1 = (wxWindow *) 0 ;
25279 int arg2 = (int) -1 ;
25280 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25281 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25282 wxSize const &arg4_defvalue = wxDefaultSize ;
25283 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25284 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25285 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25286 wxString *arg6 = (wxString *) &arg6_defvalue ;
25287 wxToolBar *result = 0 ;
25288 void *argp1 = 0 ;
25289 int res1 = 0 ;
25290 int val2 ;
25291 int ecode2 = 0 ;
25292 wxPoint temp3 ;
25293 wxSize temp4 ;
25294 long val5 ;
25295 int ecode5 = 0 ;
25296 bool temp6 = false ;
25297 PyObject * obj0 = 0 ;
25298 PyObject * obj1 = 0 ;
25299 PyObject * obj2 = 0 ;
25300 PyObject * obj3 = 0 ;
25301 PyObject * obj4 = 0 ;
25302 PyObject * obj5 = 0 ;
25303 char * kwnames[] = {
25304 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25305 };
25306
25307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25309 if (!SWIG_IsOK(res1)) {
25310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25311 }
25312 arg1 = reinterpret_cast< wxWindow * >(argp1);
25313 if (obj1) {
25314 ecode2 = SWIG_AsVal_int(obj1, &val2);
25315 if (!SWIG_IsOK(ecode2)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25317 }
25318 arg2 = static_cast< int >(val2);
25319 }
25320 if (obj2) {
d55e5bfc 25321 {
554f62e9
RD
25322 arg3 = &temp3;
25323 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25324 }
554f62e9
RD
25325 }
25326 if (obj3) {
093d3ff1 25327 {
554f62e9
RD
25328 arg4 = &temp4;
25329 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25330 }
554f62e9
RD
25331 }
25332 if (obj4) {
25333 ecode5 = SWIG_AsVal_long(obj4, &val5);
25334 if (!SWIG_IsOK(ecode5)) {
25335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25336 }
25337 arg5 = static_cast< long >(val5);
25338 }
25339 if (obj5) {
d55e5bfc 25340 {
554f62e9
RD
25341 arg6 = wxString_in_helper(obj5);
25342 if (arg6 == NULL) SWIG_fail;
25343 temp6 = true;
d55e5bfc 25344 }
554f62e9
RD
25345 }
25346 {
25347 if (!wxPyCheckForApp()) SWIG_fail;
25348 PyThreadState* __tstate = wxPyBeginAllowThreads();
25349 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25350 wxPyEndAllowThreads(__tstate);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25354 {
25355 if (temp6)
25356 delete arg6;
25357 }
25358 return resultobj;
25359fail:
25360 {
25361 if (temp6)
25362 delete arg6;
25363 }
25364 return NULL;
d55e5bfc
RD
25365}
25366
25367
554f62e9
RD
25368SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25369 PyObject *resultobj = 0;
25370 wxToolBar *result = 0 ;
25371
25372 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25373 {
25374 if (!wxPyCheckForApp()) SWIG_fail;
25375 PyThreadState* __tstate = wxPyBeginAllowThreads();
25376 result = (wxToolBar *)new wxToolBar();
25377 wxPyEndAllowThreads(__tstate);
25378 if (PyErr_Occurred()) SWIG_fail;
25379 }
25380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25381 return resultobj;
25382fail:
25383 return NULL;
25384}
25385
25386
25387SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25388 PyObject *resultobj = 0;
25389 wxToolBar *arg1 = (wxToolBar *) 0 ;
25390 wxWindow *arg2 = (wxWindow *) 0 ;
25391 int arg3 = (int) -1 ;
25392 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25393 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25394 wxSize const &arg5_defvalue = wxDefaultSize ;
25395 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25396 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25397 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25398 wxString *arg7 = (wxString *) &arg7_defvalue ;
25399 bool result;
25400 void *argp1 = 0 ;
25401 int res1 = 0 ;
25402 void *argp2 = 0 ;
25403 int res2 = 0 ;
25404 int val3 ;
25405 int ecode3 = 0 ;
25406 wxPoint temp4 ;
25407 wxSize temp5 ;
25408 long val6 ;
25409 int ecode6 = 0 ;
25410 bool temp7 = false ;
25411 PyObject * obj0 = 0 ;
25412 PyObject * obj1 = 0 ;
25413 PyObject * obj2 = 0 ;
25414 PyObject * obj3 = 0 ;
25415 PyObject * obj4 = 0 ;
25416 PyObject * obj5 = 0 ;
25417 PyObject * obj6 = 0 ;
25418 char * kwnames[] = {
25419 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25420 };
25421
25422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25424 if (!SWIG_IsOK(res1)) {
25425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25426 }
25427 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25429 if (!SWIG_IsOK(res2)) {
25430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25431 }
25432 arg2 = reinterpret_cast< wxWindow * >(argp2);
25433 if (obj2) {
25434 ecode3 = SWIG_AsVal_int(obj2, &val3);
25435 if (!SWIG_IsOK(ecode3)) {
25436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25437 }
25438 arg3 = static_cast< int >(val3);
25439 }
25440 if (obj3) {
d55e5bfc 25441 {
554f62e9
RD
25442 arg4 = &temp4;
25443 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25444 }
554f62e9
RD
25445 }
25446 if (obj4) {
093d3ff1 25447 {
554f62e9
RD
25448 arg5 = &temp5;
25449 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 25450 }
554f62e9
RD
25451 }
25452 if (obj5) {
25453 ecode6 = SWIG_AsVal_long(obj5, &val6);
25454 if (!SWIG_IsOK(ecode6)) {
25455 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25456 }
25457 arg6 = static_cast< long >(val6);
25458 }
25459 if (obj6) {
25460 {
25461 arg7 = wxString_in_helper(obj6);
25462 if (arg7 == NULL) SWIG_fail;
25463 temp7 = true;
25464 }
25465 }
25466 {
25467 PyThreadState* __tstate = wxPyBeginAllowThreads();
25468 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25469 wxPyEndAllowThreads(__tstate);
25470 if (PyErr_Occurred()) SWIG_fail;
25471 }
25472 {
25473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25474 }
25475 {
25476 if (temp7)
25477 delete arg7;
25478 }
25479 return resultobj;
25480fail:
25481 {
25482 if (temp7)
25483 delete arg7;
25484 }
25485 return NULL;
25486}
25487
25488
554f62e9
RD
25489SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25490 PyObject *resultobj = 0;
25491 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25492 SwigValueWrapper<wxVisualAttributes > result;
25493 int val1 ;
25494 int ecode1 = 0 ;
25495 PyObject * obj0 = 0 ;
25496 char * kwnames[] = {
25497 (char *) "variant", NULL
25498 };
25499
25500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25501 if (obj0) {
25502 ecode1 = SWIG_AsVal_int(obj0, &val1);
25503 if (!SWIG_IsOK(ecode1)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25505 }
25506 arg1 = static_cast< wxWindowVariant >(val1);
25507 }
25508 {
25509 if (!wxPyCheckForApp()) SWIG_fail;
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 result = wxToolBar::GetClassDefaultAttributes(arg1);
25512 wxPyEndAllowThreads(__tstate);
25513 if (PyErr_Occurred()) SWIG_fail;
25514 }
25515 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25516 return resultobj;
25517fail:
25518 return NULL;
d55e5bfc
RD
25519}
25520
25521
554f62e9
RD
25522SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 PyObject *obj;
25524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25525 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25526 return SWIG_Py_Void();
d55e5bfc
RD
25527}
25528
554f62e9
RD
25529SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25530 return SWIG_Python_InitShadowInstance(args);
25531}
d55e5bfc 25532
554f62e9
RD
25533SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25534 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25535 return 1;
d55e5bfc
RD
25536}
25537
25538
554f62e9
RD
25539SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25540 PyObject *pyobj = 0;
25541
25542 {
25543#if wxUSE_UNICODE
25544 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25545#else
25546 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25547#endif
25548 }
25549 return pyobj;
25550}
25551
25552
25553SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25554 PyObject *resultobj = 0;
25555 wxColour const &arg1_defvalue = wxNullColour ;
25556 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25557 wxColour const &arg2_defvalue = wxNullColour ;
25558 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25559 wxFont const &arg3_defvalue = wxNullFont ;
25560 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25561 wxListItemAttr *result = 0 ;
25562 wxColour temp1 ;
25563 wxColour temp2 ;
25564 void *argp3 = 0 ;
25565 int res3 = 0 ;
25566 PyObject * obj0 = 0 ;
25567 PyObject * obj1 = 0 ;
25568 PyObject * obj2 = 0 ;
25569 char * kwnames[] = {
25570 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25571 };
25572
25573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25574 if (obj0) {
093d3ff1 25575 {
554f62e9
RD
25576 arg1 = &temp1;
25577 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25578 }
554f62e9
RD
25579 }
25580 if (obj1) {
d55e5bfc 25581 {
554f62e9
RD
25582 arg2 = &temp2;
25583 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 25584 }
554f62e9
RD
25585 }
25586 if (obj2) {
25587 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25588 if (!SWIG_IsOK(res3)) {
25589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25590 }
25591 if (!argp3) {
25592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25593 }
25594 arg3 = reinterpret_cast< wxFont * >(argp3);
25595 }
25596 {
25597 PyThreadState* __tstate = wxPyBeginAllowThreads();
25598 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25599 wxPyEndAllowThreads(__tstate);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25603 return resultobj;
25604fail:
25605 return NULL;
d55e5bfc
RD
25606}
25607
25608
554f62e9
RD
25609SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25610 PyObject *resultobj = 0;
25611 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25612 void *argp1 = 0 ;
25613 int res1 = 0 ;
25614 PyObject *swig_obj[1] ;
25615
25616 if (!args) SWIG_fail;
25617 swig_obj[0] = args;
25618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25619 if (!SWIG_IsOK(res1)) {
25620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25621 }
25622 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25623 {
25624 PyThreadState* __tstate = wxPyBeginAllowThreads();
25625 delete arg1;
d55e5bfc 25626
554f62e9
RD
25627 wxPyEndAllowThreads(__tstate);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 resultobj = SWIG_Py_Void();
25631 return resultobj;
25632fail:
25633 return NULL;
25634}
25635
25636
25637SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25638 PyObject *resultobj = 0;
25639 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25640 wxColour *arg2 = 0 ;
25641 void *argp1 = 0 ;
25642 int res1 = 0 ;
25643 wxColour temp2 ;
25644 PyObject * obj0 = 0 ;
25645 PyObject * obj1 = 0 ;
25646 char * kwnames[] = {
25647 (char *) "self",(char *) "colText", NULL
25648 };
25649
25650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25652 if (!SWIG_IsOK(res1)) {
25653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25654 }
25655 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25656 {
25657 arg2 = &temp2;
25658 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25659 }
25660 {
25661 PyThreadState* __tstate = wxPyBeginAllowThreads();
25662 (arg1)->SetTextColour((wxColour const &)*arg2);
25663 wxPyEndAllowThreads(__tstate);
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
25666 resultobj = SWIG_Py_Void();
25667 return resultobj;
25668fail:
25669 return NULL;
25670}
25671
25672
25673SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj = 0;
25675 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25676 wxColour *arg2 = 0 ;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 wxColour temp2 ;
25680 PyObject * obj0 = 0 ;
25681 PyObject * obj1 = 0 ;
25682 char * kwnames[] = {
25683 (char *) "self",(char *) "colBack", NULL
25684 };
25685
25686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25688 if (!SWIG_IsOK(res1)) {
25689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25690 }
25691 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25692 {
25693 arg2 = &temp2;
25694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25695 }
25696 {
25697 PyThreadState* __tstate = wxPyBeginAllowThreads();
25698 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 resultobj = SWIG_Py_Void();
25703 return resultobj;
25704fail:
25705 return NULL;
25706}
25707
25708
25709SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj = 0;
25711 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25712 wxFont *arg2 = 0 ;
25713 void *argp1 = 0 ;
25714 int res1 = 0 ;
25715 void *argp2 = 0 ;
25716 int res2 = 0 ;
25717 PyObject * obj0 = 0 ;
25718 PyObject * obj1 = 0 ;
25719 char * kwnames[] = {
25720 (char *) "self",(char *) "font", NULL
25721 };
25722
25723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25725 if (!SWIG_IsOK(res1)) {
25726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25727 }
25728 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25730 if (!SWIG_IsOK(res2)) {
25731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25732 }
25733 if (!argp2) {
25734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25735 }
25736 arg2 = reinterpret_cast< wxFont * >(argp2);
25737 {
25738 PyThreadState* __tstate = wxPyBeginAllowThreads();
25739 (arg1)->SetFont((wxFont const &)*arg2);
25740 wxPyEndAllowThreads(__tstate);
25741 if (PyErr_Occurred()) SWIG_fail;
25742 }
25743 resultobj = SWIG_Py_Void();
25744 return resultobj;
25745fail:
25746 return NULL;
d55e5bfc
RD
25747}
25748
25749
554f62e9
RD
25750SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25751 PyObject *resultobj = 0;
25752 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25753 bool result;
25754 void *argp1 = 0 ;
25755 int res1 = 0 ;
25756 PyObject *swig_obj[1] ;
25757
25758 if (!args) SWIG_fail;
25759 swig_obj[0] = args;
25760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25761 if (!SWIG_IsOK(res1)) {
25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25763 }
25764 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25765 {
25766 PyThreadState* __tstate = wxPyBeginAllowThreads();
25767 result = (bool)(arg1)->HasTextColour();
25768 wxPyEndAllowThreads(__tstate);
25769 if (PyErr_Occurred()) SWIG_fail;
25770 }
25771 {
25772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25773 }
25774 return resultobj;
25775fail:
25776 return NULL;
d55e5bfc
RD
25777}
25778
25779
554f62e9
RD
25780SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25781 PyObject *resultobj = 0;
25782 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25783 bool result;
25784 void *argp1 = 0 ;
25785 int res1 = 0 ;
25786 PyObject *swig_obj[1] ;
25787
25788 if (!args) SWIG_fail;
25789 swig_obj[0] = args;
25790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25791 if (!SWIG_IsOK(res1)) {
25792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25793 }
25794 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25795 {
25796 PyThreadState* __tstate = wxPyBeginAllowThreads();
25797 result = (bool)(arg1)->HasBackgroundColour();
25798 wxPyEndAllowThreads(__tstate);
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 {
25802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25803 }
25804 return resultobj;
25805fail:
25806 return NULL;
d55e5bfc
RD
25807}
25808
25809
554f62e9
RD
25810SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25811 PyObject *resultobj = 0;
25812 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25813 bool result;
25814 void *argp1 = 0 ;
25815 int res1 = 0 ;
25816 PyObject *swig_obj[1] ;
25817
25818 if (!args) SWIG_fail;
25819 swig_obj[0] = args;
25820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25821 if (!SWIG_IsOK(res1)) {
25822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25823 }
25824 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25825 {
25826 PyThreadState* __tstate = wxPyBeginAllowThreads();
25827 result = (bool)(arg1)->HasFont();
25828 wxPyEndAllowThreads(__tstate);
25829 if (PyErr_Occurred()) SWIG_fail;
25830 }
25831 {
25832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25833 }
25834 return resultobj;
25835fail:
25836 return NULL;
d55e5bfc
RD
25837}
25838
25839
554f62e9
RD
25840SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25841 PyObject *resultobj = 0;
25842 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25843 wxColour result;
25844 void *argp1 = 0 ;
25845 int res1 = 0 ;
25846 PyObject *swig_obj[1] ;
25847
25848 if (!args) SWIG_fail;
25849 swig_obj[0] = args;
25850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25851 if (!SWIG_IsOK(res1)) {
25852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25853 }
25854 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25855 {
25856 PyThreadState* __tstate = wxPyBeginAllowThreads();
25857 result = (arg1)->GetTextColour();
25858 wxPyEndAllowThreads(__tstate);
25859 if (PyErr_Occurred()) SWIG_fail;
25860 }
25861 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25862 return resultobj;
25863fail:
25864 return NULL;
d55e5bfc
RD
25865}
25866
25867
554f62e9
RD
25868SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25869 PyObject *resultobj = 0;
25870 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25871 wxColour result;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 PyObject *swig_obj[1] ;
25875
25876 if (!args) SWIG_fail;
25877 swig_obj[0] = args;
25878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25879 if (!SWIG_IsOK(res1)) {
25880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25881 }
25882 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25883 {
25884 PyThreadState* __tstate = wxPyBeginAllowThreads();
25885 result = (arg1)->GetBackgroundColour();
25886 wxPyEndAllowThreads(__tstate);
25887 if (PyErr_Occurred()) SWIG_fail;
25888 }
25889 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25890 return resultobj;
25891fail:
25892 return NULL;
d55e5bfc
RD
25893}
25894
25895
554f62e9
RD
25896SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25897 PyObject *resultobj = 0;
25898 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25899 wxFont result;
25900 void *argp1 = 0 ;
25901 int res1 = 0 ;
25902 PyObject *swig_obj[1] ;
25903
25904 if (!args) SWIG_fail;
25905 swig_obj[0] = args;
25906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25907 if (!SWIG_IsOK(res1)) {
25908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25909 }
25910 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25911 {
25912 PyThreadState* __tstate = wxPyBeginAllowThreads();
25913 result = (arg1)->GetFont();
25914 wxPyEndAllowThreads(__tstate);
25915 if (PyErr_Occurred()) SWIG_fail;
25916 }
25917 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25918 return resultobj;
25919fail:
25920 return NULL;
25921}
25922
25923
25924SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25925 PyObject *resultobj = 0;
25926 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25927 wxListItemAttr *arg2 = 0 ;
25928 void *argp1 = 0 ;
25929 int res1 = 0 ;
25930 void *argp2 = 0 ;
25931 int res2 = 0 ;
25932 PyObject * obj0 = 0 ;
25933 PyObject * obj1 = 0 ;
25934 char * kwnames[] = {
25935 (char *) "self",(char *) "source", NULL
25936 };
25937
25938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25942 }
25943 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25945 if (!SWIG_IsOK(res2)) {
25946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25947 }
25948 if (!argp2) {
25949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25950 }
25951 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_Py_Void();
25959 return resultobj;
25960fail:
25961 return NULL;
d55e5bfc
RD
25962}
25963
25964
554f62e9
RD
25965SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 PyObject *resultobj = 0;
25967 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25968 void *argp1 = 0 ;
25969 int res1 = 0 ;
25970 PyObject *swig_obj[1] ;
25971
25972 if (!args) SWIG_fail;
25973 swig_obj[0] = args;
25974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25977 }
25978 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 wxListItemAttr_Destroy(arg1);
25982 wxPyEndAllowThreads(__tstate);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_Py_Void();
25986 return resultobj;
25987fail:
25988 return NULL;
f20a2e1f
RD
25989}
25990
25991
554f62e9
RD
25992SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 PyObject *obj;
25994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25995 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25996 return SWIG_Py_Void();
d55e5bfc 25997}
554f62e9
RD
25998
25999SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26000 return SWIG_Python_InitShadowInstance(args);
26001}
26002
26003SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 PyObject *resultobj = 0;
26005 wxListItem *result = 0 ;
26006
26007 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26008 {
26009 PyThreadState* __tstate = wxPyBeginAllowThreads();
26010 result = (wxListItem *)new wxListItem();
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 {
26015 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26016 }
26017 return resultobj;
26018fail:
26019 return NULL;
d55e5bfc
RD
26020}
26021
26022
554f62e9
RD
26023SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26024 PyObject *resultobj = 0;
26025 wxListItem *arg1 = (wxListItem *) 0 ;
26026 void *argp1 = 0 ;
26027 int res1 = 0 ;
26028 PyObject *swig_obj[1] ;
26029
26030 if (!args) SWIG_fail;
26031 swig_obj[0] = args;
26032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26033 if (!SWIG_IsOK(res1)) {
26034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26035 }
26036 arg1 = reinterpret_cast< wxListItem * >(argp1);
26037 {
26038 PyThreadState* __tstate = wxPyBeginAllowThreads();
26039 delete arg1;
d55e5bfc 26040
554f62e9
RD
26041 wxPyEndAllowThreads(__tstate);
26042 if (PyErr_Occurred()) SWIG_fail;
26043 }
26044 resultobj = SWIG_Py_Void();
26045 return resultobj;
26046fail:
26047 return NULL;
d55e5bfc
RD
26048}
26049
26050
554f62e9
RD
26051SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26052 PyObject *resultobj = 0;
26053 wxListItem *arg1 = (wxListItem *) 0 ;
26054 void *argp1 = 0 ;
26055 int res1 = 0 ;
26056 PyObject *swig_obj[1] ;
26057
26058 if (!args) SWIG_fail;
26059 swig_obj[0] = args;
26060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26061 if (!SWIG_IsOK(res1)) {
26062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26063 }
26064 arg1 = reinterpret_cast< wxListItem * >(argp1);
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 (arg1)->Clear();
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 resultobj = SWIG_Py_Void();
26072 return resultobj;
26073fail:
26074 return NULL;
d55e5bfc
RD
26075}
26076
26077
554f62e9
RD
26078SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26079 PyObject *resultobj = 0;
26080 wxListItem *arg1 = (wxListItem *) 0 ;
26081 void *argp1 = 0 ;
26082 int res1 = 0 ;
26083 PyObject *swig_obj[1] ;
26084
26085 if (!args) SWIG_fail;
26086 swig_obj[0] = args;
26087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26088 if (!SWIG_IsOK(res1)) {
26089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26090 }
26091 arg1 = reinterpret_cast< wxListItem * >(argp1);
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 (arg1)->ClearAttributes();
26095 wxPyEndAllowThreads(__tstate);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100fail:
26101 return NULL;
26102}
26103
26104
26105SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj = 0;
26107 wxListItem *arg1 = (wxListItem *) 0 ;
26108 long arg2 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 long val2 ;
26112 int ecode2 = 0 ;
26113 PyObject * obj0 = 0 ;
26114 PyObject * obj1 = 0 ;
26115 char * kwnames[] = {
26116 (char *) "self",(char *) "mask", NULL
26117 };
26118
26119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26121 if (!SWIG_IsOK(res1)) {
26122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26123 }
26124 arg1 = reinterpret_cast< wxListItem * >(argp1);
26125 ecode2 = SWIG_AsVal_long(obj1, &val2);
26126 if (!SWIG_IsOK(ecode2)) {
26127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26128 }
26129 arg2 = static_cast< long >(val2);
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 (arg1)->SetMask(arg2);
26133 wxPyEndAllowThreads(__tstate);
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 resultobj = SWIG_Py_Void();
26137 return resultobj;
26138fail:
26139 return NULL;
26140}
26141
26142
26143SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxListItem *arg1 = (wxListItem *) 0 ;
26146 long arg2 ;
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 long val2 ;
26150 int ecode2 = 0 ;
26151 PyObject * obj0 = 0 ;
26152 PyObject * obj1 = 0 ;
26153 char * kwnames[] = {
26154 (char *) "self",(char *) "id", NULL
26155 };
26156
26157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26161 }
26162 arg1 = reinterpret_cast< wxListItem * >(argp1);
26163 ecode2 = SWIG_AsVal_long(obj1, &val2);
26164 if (!SWIG_IsOK(ecode2)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26166 }
26167 arg2 = static_cast< long >(val2);
26168 {
26169 PyThreadState* __tstate = wxPyBeginAllowThreads();
26170 (arg1)->SetId(arg2);
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 resultobj = SWIG_Py_Void();
26175 return resultobj;
26176fail:
26177 return NULL;
26178}
26179
26180
26181SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj = 0;
26183 wxListItem *arg1 = (wxListItem *) 0 ;
26184 int arg2 ;
26185 void *argp1 = 0 ;
26186 int res1 = 0 ;
26187 int val2 ;
26188 int ecode2 = 0 ;
26189 PyObject * obj0 = 0 ;
26190 PyObject * obj1 = 0 ;
26191 char * kwnames[] = {
26192 (char *) "self",(char *) "col", NULL
26193 };
26194
26195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26197 if (!SWIG_IsOK(res1)) {
26198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26199 }
26200 arg1 = reinterpret_cast< wxListItem * >(argp1);
26201 ecode2 = SWIG_AsVal_int(obj1, &val2);
26202 if (!SWIG_IsOK(ecode2)) {
26203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26204 }
26205 arg2 = static_cast< int >(val2);
26206 {
26207 PyThreadState* __tstate = wxPyBeginAllowThreads();
26208 (arg1)->SetColumn(arg2);
26209 wxPyEndAllowThreads(__tstate);
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
26213 return resultobj;
26214fail:
26215 return NULL;
26216}
26217
26218
26219SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26220 PyObject *resultobj = 0;
26221 wxListItem *arg1 = (wxListItem *) 0 ;
26222 long arg2 ;
26223 void *argp1 = 0 ;
26224 int res1 = 0 ;
26225 long val2 ;
26226 int ecode2 = 0 ;
26227 PyObject * obj0 = 0 ;
26228 PyObject * obj1 = 0 ;
26229 char * kwnames[] = {
26230 (char *) "self",(char *) "state", NULL
26231 };
26232
26233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26237 }
26238 arg1 = reinterpret_cast< wxListItem * >(argp1);
26239 ecode2 = SWIG_AsVal_long(obj1, &val2);
26240 if (!SWIG_IsOK(ecode2)) {
26241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26242 }
26243 arg2 = static_cast< long >(val2);
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 (arg1)->SetState(arg2);
26247 wxPyEndAllowThreads(__tstate);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 resultobj = SWIG_Py_Void();
26251 return resultobj;
26252fail:
26253 return NULL;
26254}
26255
26256
26257SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj = 0;
26259 wxListItem *arg1 = (wxListItem *) 0 ;
26260 long arg2 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 long val2 ;
26264 int ecode2 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "stateMask", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26275 }
26276 arg1 = reinterpret_cast< wxListItem * >(argp1);
26277 ecode2 = SWIG_AsVal_long(obj1, &val2);
26278 if (!SWIG_IsOK(ecode2)) {
26279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26280 }
26281 arg2 = static_cast< long >(val2);
26282 {
26283 PyThreadState* __tstate = wxPyBeginAllowThreads();
26284 (arg1)->SetStateMask(arg2);
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 resultobj = SWIG_Py_Void();
26289 return resultobj;
26290fail:
26291 return NULL;
26292}
26293
26294
26295SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj = 0;
26297 wxListItem *arg1 = (wxListItem *) 0 ;
26298 wxString *arg2 = 0 ;
26299 void *argp1 = 0 ;
26300 int res1 = 0 ;
26301 bool temp2 = false ;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 char * kwnames[] = {
26305 (char *) "self",(char *) "text", NULL
26306 };
26307
26308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26310 if (!SWIG_IsOK(res1)) {
26311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26312 }
26313 arg1 = reinterpret_cast< wxListItem * >(argp1);
26314 {
26315 arg2 = wxString_in_helper(obj1);
26316 if (arg2 == NULL) SWIG_fail;
26317 temp2 = true;
26318 }
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 (arg1)->SetText((wxString const &)*arg2);
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 resultobj = SWIG_Py_Void();
26326 {
26327 if (temp2)
26328 delete arg2;
26329 }
26330 return resultobj;
26331fail:
26332 {
26333 if (temp2)
26334 delete arg2;
26335 }
26336 return NULL;
26337}
26338
26339
26340SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26341 PyObject *resultobj = 0;
26342 wxListItem *arg1 = (wxListItem *) 0 ;
26343 int arg2 ;
26344 void *argp1 = 0 ;
26345 int res1 = 0 ;
26346 int val2 ;
26347 int ecode2 = 0 ;
26348 PyObject * obj0 = 0 ;
26349 PyObject * obj1 = 0 ;
26350 char * kwnames[] = {
26351 (char *) "self",(char *) "image", NULL
26352 };
26353
26354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26356 if (!SWIG_IsOK(res1)) {
26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26358 }
26359 arg1 = reinterpret_cast< wxListItem * >(argp1);
26360 ecode2 = SWIG_AsVal_int(obj1, &val2);
26361 if (!SWIG_IsOK(ecode2)) {
26362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26363 }
26364 arg2 = static_cast< int >(val2);
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 (arg1)->SetImage(arg2);
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373fail:
26374 return NULL;
26375}
26376
26377
26378SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26379 PyObject *resultobj = 0;
26380 wxListItem *arg1 = (wxListItem *) 0 ;
26381 long arg2 ;
26382 void *argp1 = 0 ;
26383 int res1 = 0 ;
26384 long val2 ;
26385 int ecode2 = 0 ;
26386 PyObject * obj0 = 0 ;
26387 PyObject * obj1 = 0 ;
26388 char * kwnames[] = {
26389 (char *) "self",(char *) "data", NULL
26390 };
26391
26392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26396 }
26397 arg1 = reinterpret_cast< wxListItem * >(argp1);
26398 ecode2 = SWIG_AsVal_long(obj1, &val2);
26399 if (!SWIG_IsOK(ecode2)) {
26400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26401 }
26402 arg2 = static_cast< long >(val2);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 (arg1)->SetData(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_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 wxListItem *arg1 = (wxListItem *) 0 ;
26419 int arg2 ;
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 int val2 ;
26423 int ecode2 = 0 ;
26424 PyObject * obj0 = 0 ;
26425 PyObject * obj1 = 0 ;
26426 char * kwnames[] = {
26427 (char *) "self",(char *) "width", NULL
26428 };
26429
26430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",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_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItem * >(argp1);
26436 ecode2 = SWIG_AsVal_int(obj1, &val2);
26437 if (!SWIG_IsOK(ecode2)) {
26438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26439 }
26440 arg2 = static_cast< int >(val2);
26441 {
26442 PyThreadState* __tstate = wxPyBeginAllowThreads();
26443 (arg1)->SetWidth(arg2);
26444 wxPyEndAllowThreads(__tstate);
26445 if (PyErr_Occurred()) SWIG_fail;
26446 }
26447 resultobj = SWIG_Py_Void();
26448 return resultobj;
26449fail:
26450 return NULL;
26451}
26452
26453
26454SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26455 PyObject *resultobj = 0;
26456 wxListItem *arg1 = (wxListItem *) 0 ;
26457 wxListColumnFormat arg2 ;
26458 void *argp1 = 0 ;
26459 int res1 = 0 ;
26460 int val2 ;
26461 int ecode2 = 0 ;
26462 PyObject * obj0 = 0 ;
26463 PyObject * obj1 = 0 ;
26464 char * kwnames[] = {
26465 (char *) "self",(char *) "align", NULL
26466 };
26467
26468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26470 if (!SWIG_IsOK(res1)) {
26471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26472 }
26473 arg1 = reinterpret_cast< wxListItem * >(argp1);
26474 ecode2 = SWIG_AsVal_int(obj1, &val2);
26475 if (!SWIG_IsOK(ecode2)) {
26476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26477 }
26478 arg2 = static_cast< wxListColumnFormat >(val2);
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 (arg1)->SetAlign(arg2);
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 resultobj = SWIG_Py_Void();
26486 return resultobj;
26487fail:
26488 return NULL;
26489}
26490
26491
26492SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26493 PyObject *resultobj = 0;
26494 wxListItem *arg1 = (wxListItem *) 0 ;
26495 wxColour *arg2 = 0 ;
26496 void *argp1 = 0 ;
26497 int res1 = 0 ;
26498 wxColour temp2 ;
26499 PyObject * obj0 = 0 ;
26500 PyObject * obj1 = 0 ;
26501 char * kwnames[] = {
26502 (char *) "self",(char *) "colText", NULL
26503 };
26504
26505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26507 if (!SWIG_IsOK(res1)) {
26508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26509 }
26510 arg1 = reinterpret_cast< wxListItem * >(argp1);
26511 {
26512 arg2 = &temp2;
26513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26514 }
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->SetTextColour((wxColour const &)*arg2);
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523fail:
26524 return NULL;
26525}
26526
26527
26528SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26529 PyObject *resultobj = 0;
26530 wxListItem *arg1 = (wxListItem *) 0 ;
26531 wxColour *arg2 = 0 ;
26532 void *argp1 = 0 ;
26533 int res1 = 0 ;
26534 wxColour temp2 ;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26537 char * kwnames[] = {
26538 (char *) "self",(char *) "colBack", NULL
26539 };
26540
26541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26543 if (!SWIG_IsOK(res1)) {
26544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26545 }
26546 arg1 = reinterpret_cast< wxListItem * >(argp1);
26547 {
26548 arg2 = &temp2;
26549 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26550 }
26551 {
26552 PyThreadState* __tstate = wxPyBeginAllowThreads();
26553 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26554 wxPyEndAllowThreads(__tstate);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 }
26557 resultobj = SWIG_Py_Void();
26558 return resultobj;
26559fail:
26560 return NULL;
26561}
26562
26563
26564SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26565 PyObject *resultobj = 0;
26566 wxListItem *arg1 = (wxListItem *) 0 ;
26567 wxFont *arg2 = 0 ;
26568 void *argp1 = 0 ;
26569 int res1 = 0 ;
26570 void *argp2 = 0 ;
26571 int res2 = 0 ;
26572 PyObject * obj0 = 0 ;
26573 PyObject * obj1 = 0 ;
26574 char * kwnames[] = {
26575 (char *) "self",(char *) "font", NULL
26576 };
26577
26578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26580 if (!SWIG_IsOK(res1)) {
26581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26582 }
26583 arg1 = reinterpret_cast< wxListItem * >(argp1);
26584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26585 if (!SWIG_IsOK(res2)) {
26586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26587 }
26588 if (!argp2) {
26589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26590 }
26591 arg2 = reinterpret_cast< wxFont * >(argp2);
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 (arg1)->SetFont((wxFont const &)*arg2);
26595 wxPyEndAllowThreads(__tstate);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 resultobj = SWIG_Py_Void();
26599 return resultobj;
26600fail:
26601 return NULL;
d55e5bfc
RD
26602}
26603
26604
554f62e9
RD
26605SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26606 PyObject *resultobj = 0;
26607 wxListItem *arg1 = (wxListItem *) 0 ;
26608 long result;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 PyObject *swig_obj[1] ;
26612
26613 if (!args) SWIG_fail;
26614 swig_obj[0] = args;
26615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26618 }
26619 arg1 = reinterpret_cast< wxListItem * >(argp1);
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 result = (long)(arg1)->GetMask();
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_From_long(static_cast< long >(result));
26627 return resultobj;
26628fail:
26629 return NULL;
d55e5bfc
RD
26630}
26631
26632
554f62e9
RD
26633SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26634 PyObject *resultobj = 0;
26635 wxListItem *arg1 = (wxListItem *) 0 ;
26636 long result;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 PyObject *swig_obj[1] ;
26640
26641 if (!args) SWIG_fail;
26642 swig_obj[0] = args;
26643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26644 if (!SWIG_IsOK(res1)) {
26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26646 }
26647 arg1 = reinterpret_cast< wxListItem * >(argp1);
26648 {
26649 PyThreadState* __tstate = wxPyBeginAllowThreads();
26650 result = (long)(arg1)->GetId();
26651 wxPyEndAllowThreads(__tstate);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 resultobj = SWIG_From_long(static_cast< long >(result));
26655 return resultobj;
26656fail:
26657 return NULL;
d55e5bfc
RD
26658}
26659
26660
554f62e9
RD
26661SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26662 PyObject *resultobj = 0;
26663 wxListItem *arg1 = (wxListItem *) 0 ;
26664 int result;
26665 void *argp1 = 0 ;
26666 int res1 = 0 ;
26667 PyObject *swig_obj[1] ;
26668
26669 if (!args) SWIG_fail;
26670 swig_obj[0] = args;
26671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26672 if (!SWIG_IsOK(res1)) {
26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26674 }
26675 arg1 = reinterpret_cast< wxListItem * >(argp1);
26676 {
26677 PyThreadState* __tstate = wxPyBeginAllowThreads();
26678 result = (int)(arg1)->GetColumn();
26679 wxPyEndAllowThreads(__tstate);
26680 if (PyErr_Occurred()) SWIG_fail;
26681 }
26682 resultobj = SWIG_From_int(static_cast< int >(result));
26683 return resultobj;
26684fail:
26685 return NULL;
d55e5bfc
RD
26686}
26687
26688
554f62e9
RD
26689SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26690 PyObject *resultobj = 0;
26691 wxListItem *arg1 = (wxListItem *) 0 ;
26692 long result;
26693 void *argp1 = 0 ;
26694 int res1 = 0 ;
26695 PyObject *swig_obj[1] ;
26696
26697 if (!args) SWIG_fail;
26698 swig_obj[0] = args;
26699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26702 }
26703 arg1 = reinterpret_cast< wxListItem * >(argp1);
26704 {
26705 PyThreadState* __tstate = wxPyBeginAllowThreads();
26706 result = (long)(arg1)->GetState();
26707 wxPyEndAllowThreads(__tstate);
26708 if (PyErr_Occurred()) SWIG_fail;
26709 }
26710 resultobj = SWIG_From_long(static_cast< long >(result));
26711 return resultobj;
26712fail:
26713 return NULL;
d55e5bfc
RD
26714}
26715
26716
554f62e9
RD
26717SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26718 PyObject *resultobj = 0;
26719 wxListItem *arg1 = (wxListItem *) 0 ;
26720 wxString *result = 0 ;
26721 void *argp1 = 0 ;
26722 int res1 = 0 ;
26723 PyObject *swig_obj[1] ;
26724
26725 if (!args) SWIG_fail;
26726 swig_obj[0] = args;
26727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26728 if (!SWIG_IsOK(res1)) {
26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26730 }
26731 arg1 = reinterpret_cast< wxListItem * >(argp1);
26732 {
26733 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 26734 {
554f62e9
RD
26735 wxString const &_result_ref = (arg1)->GetText();
26736 result = (wxString *) &_result_ref;
26737 }
26738 wxPyEndAllowThreads(__tstate);
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 {
d55e5bfc 26742#if wxUSE_UNICODE
554f62e9 26743 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 26744#else
554f62e9 26745 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 26746#endif
554f62e9
RD
26747 }
26748 return resultobj;
26749fail:
26750 return NULL;
d55e5bfc
RD
26751}
26752
26753
554f62e9
RD
26754SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26755 PyObject *resultobj = 0;
26756 wxListItem *arg1 = (wxListItem *) 0 ;
26757 int result;
26758 void *argp1 = 0 ;
26759 int res1 = 0 ;
26760 PyObject *swig_obj[1] ;
26761
26762 if (!args) SWIG_fail;
26763 swig_obj[0] = args;
26764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26765 if (!SWIG_IsOK(res1)) {
26766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26767 }
26768 arg1 = reinterpret_cast< wxListItem * >(argp1);
26769 {
26770 PyThreadState* __tstate = wxPyBeginAllowThreads();
26771 result = (int)(arg1)->GetImage();
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 resultobj = SWIG_From_int(static_cast< int >(result));
26776 return resultobj;
26777fail:
26778 return NULL;
d55e5bfc
RD
26779}
26780
26781
554f62e9
RD
26782SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26783 PyObject *resultobj = 0;
26784 wxListItem *arg1 = (wxListItem *) 0 ;
26785 long result;
26786 void *argp1 = 0 ;
26787 int res1 = 0 ;
26788 PyObject *swig_obj[1] ;
26789
26790 if (!args) SWIG_fail;
26791 swig_obj[0] = args;
26792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26793 if (!SWIG_IsOK(res1)) {
26794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26795 }
26796 arg1 = reinterpret_cast< wxListItem * >(argp1);
26797 {
26798 PyThreadState* __tstate = wxPyBeginAllowThreads();
26799 result = (long)(arg1)->GetData();
26800 wxPyEndAllowThreads(__tstate);
26801 if (PyErr_Occurred()) SWIG_fail;
26802 }
26803 resultobj = SWIG_From_long(static_cast< long >(result));
26804 return resultobj;
26805fail:
26806 return NULL;
8fb0e70a
RD
26807}
26808
26809
554f62e9
RD
26810SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26811 PyObject *resultobj = 0;
26812 wxListItem *arg1 = (wxListItem *) 0 ;
26813 int result;
26814 void *argp1 = 0 ;
26815 int res1 = 0 ;
26816 PyObject *swig_obj[1] ;
26817
26818 if (!args) SWIG_fail;
26819 swig_obj[0] = args;
26820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26821 if (!SWIG_IsOK(res1)) {
26822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26823 }
26824 arg1 = reinterpret_cast< wxListItem * >(argp1);
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 result = (int)(arg1)->GetWidth();
26828 wxPyEndAllowThreads(__tstate);
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 resultobj = SWIG_From_int(static_cast< int >(result));
26832 return resultobj;
26833fail:
26834 return NULL;
d55e5bfc
RD
26835}
26836
26837
554f62e9
RD
26838SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26839 PyObject *resultobj = 0;
26840 wxListItem *arg1 = (wxListItem *) 0 ;
26841 wxListColumnFormat result;
26842 void *argp1 = 0 ;
26843 int res1 = 0 ;
26844 PyObject *swig_obj[1] ;
26845
26846 if (!args) SWIG_fail;
26847 swig_obj[0] = args;
26848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26849 if (!SWIG_IsOK(res1)) {
26850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26851 }
26852 arg1 = reinterpret_cast< wxListItem * >(argp1);
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 result = (wxListColumnFormat)(arg1)->GetAlign();
26856 wxPyEndAllowThreads(__tstate);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_From_int(static_cast< int >(result));
26860 return resultobj;
26861fail:
26862 return NULL;
d55e5bfc
RD
26863}
26864
26865
554f62e9
RD
26866SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26867 PyObject *resultobj = 0;
26868 wxListItem *arg1 = (wxListItem *) 0 ;
26869 wxListItemAttr *result = 0 ;
26870 void *argp1 = 0 ;
26871 int res1 = 0 ;
26872 PyObject *swig_obj[1] ;
26873
26874 if (!args) SWIG_fail;
26875 swig_obj[0] = args;
26876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26877 if (!SWIG_IsOK(res1)) {
26878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26879 }
26880 arg1 = reinterpret_cast< wxListItem * >(argp1);
26881 {
26882 PyThreadState* __tstate = wxPyBeginAllowThreads();
26883 result = (wxListItemAttr *)(arg1)->GetAttributes();
26884 wxPyEndAllowThreads(__tstate);
26885 if (PyErr_Occurred()) SWIG_fail;
26886 }
26887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26888 return resultobj;
26889fail:
26890 return NULL;
d55e5bfc
RD
26891}
26892
26893
554f62e9
RD
26894SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26895 PyObject *resultobj = 0;
26896 wxListItem *arg1 = (wxListItem *) 0 ;
26897 bool result;
26898 void *argp1 = 0 ;
26899 int res1 = 0 ;
26900 PyObject *swig_obj[1] ;
26901
26902 if (!args) SWIG_fail;
26903 swig_obj[0] = args;
26904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26905 if (!SWIG_IsOK(res1)) {
26906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26907 }
26908 arg1 = reinterpret_cast< wxListItem * >(argp1);
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (bool)(arg1)->HasAttributes();
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 {
26916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26917 }
26918 return resultobj;
26919fail:
26920 return NULL;
d55e5bfc
RD
26921}
26922
26923
554f62e9
RD
26924SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26925 PyObject *resultobj = 0;
26926 wxListItem *arg1 = (wxListItem *) 0 ;
26927 wxColour result;
26928 void *argp1 = 0 ;
26929 int res1 = 0 ;
26930 PyObject *swig_obj[1] ;
26931
26932 if (!args) SWIG_fail;
26933 swig_obj[0] = args;
26934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26935 if (!SWIG_IsOK(res1)) {
26936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26937 }
26938 arg1 = reinterpret_cast< wxListItem * >(argp1);
26939 {
26940 PyThreadState* __tstate = wxPyBeginAllowThreads();
26941 result = ((wxListItem const *)arg1)->GetTextColour();
26942 wxPyEndAllowThreads(__tstate);
26943 if (PyErr_Occurred()) SWIG_fail;
26944 }
26945 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26946 return resultobj;
26947fail:
26948 return NULL;
d55e5bfc
RD
26949}
26950
26951
554f62e9
RD
26952SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26953 PyObject *resultobj = 0;
26954 wxListItem *arg1 = (wxListItem *) 0 ;
26955 wxColour result;
26956 void *argp1 = 0 ;
26957 int res1 = 0 ;
26958 PyObject *swig_obj[1] ;
26959
26960 if (!args) SWIG_fail;
26961 swig_obj[0] = args;
26962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26963 if (!SWIG_IsOK(res1)) {
26964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26965 }
26966 arg1 = reinterpret_cast< wxListItem * >(argp1);
26967 {
26968 PyThreadState* __tstate = wxPyBeginAllowThreads();
26969 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26970 wxPyEndAllowThreads(__tstate);
26971 if (PyErr_Occurred()) SWIG_fail;
26972 }
26973 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26974 return resultobj;
26975fail:
26976 return NULL;
d55e5bfc
RD
26977}
26978
26979
554f62e9
RD
26980SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26981 PyObject *resultobj = 0;
26982 wxListItem *arg1 = (wxListItem *) 0 ;
26983 wxFont result;
26984 void *argp1 = 0 ;
26985 int res1 = 0 ;
26986 PyObject *swig_obj[1] ;
26987
26988 if (!args) SWIG_fail;
26989 swig_obj[0] = args;
26990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26991 if (!SWIG_IsOK(res1)) {
26992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26993 }
26994 arg1 = reinterpret_cast< wxListItem * >(argp1);
26995 {
26996 PyThreadState* __tstate = wxPyBeginAllowThreads();
26997 result = ((wxListItem const *)arg1)->GetFont();
26998 wxPyEndAllowThreads(__tstate);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 }
27001 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27002 return resultobj;
27003fail:
27004 return NULL;
27005}
27006
27007
27008SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27009 PyObject *resultobj = 0;
27010 wxListItem *arg1 = (wxListItem *) 0 ;
27011 long arg2 ;
27012 void *argp1 = 0 ;
27013 int res1 = 0 ;
27014 long val2 ;
27015 int ecode2 = 0 ;
27016 PyObject *swig_obj[2] ;
27017
27018 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27020 if (!SWIG_IsOK(res1)) {
27021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27022 }
27023 arg1 = reinterpret_cast< wxListItem * >(argp1);
27024 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27025 if (!SWIG_IsOK(ecode2)) {
27026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27027 }
27028 arg2 = static_cast< long >(val2);
27029 if (arg1) (arg1)->m_mask = arg2;
27030
27031 resultobj = SWIG_Py_Void();
27032 return resultobj;
27033fail:
27034 return NULL;
d55e5bfc
RD
27035}
27036
27037
554f62e9
RD
27038SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27039 PyObject *resultobj = 0;
27040 wxListItem *arg1 = (wxListItem *) 0 ;
27041 long result;
27042 void *argp1 = 0 ;
27043 int res1 = 0 ;
27044 PyObject *swig_obj[1] ;
27045
27046 if (!args) SWIG_fail;
27047 swig_obj[0] = args;
27048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27049 if (!SWIG_IsOK(res1)) {
27050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27051 }
27052 arg1 = reinterpret_cast< wxListItem * >(argp1);
27053 result = (long) ((arg1)->m_mask);
27054 resultobj = SWIG_From_long(static_cast< long >(result));
27055 return resultobj;
27056fail:
27057 return NULL;
27058}
27059
27060
27061SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27062 PyObject *resultobj = 0;
27063 wxListItem *arg1 = (wxListItem *) 0 ;
27064 long arg2 ;
27065 void *argp1 = 0 ;
27066 int res1 = 0 ;
27067 long val2 ;
27068 int ecode2 = 0 ;
27069 PyObject *swig_obj[2] ;
27070
27071 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27073 if (!SWIG_IsOK(res1)) {
27074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27075 }
27076 arg1 = reinterpret_cast< wxListItem * >(argp1);
27077 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27078 if (!SWIG_IsOK(ecode2)) {
27079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27080 }
27081 arg2 = static_cast< long >(val2);
27082 if (arg1) (arg1)->m_itemId = arg2;
27083
27084 resultobj = SWIG_Py_Void();
27085 return resultobj;
27086fail:
27087 return NULL;
d55e5bfc
RD
27088}
27089
27090
554f62e9
RD
27091SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27092 PyObject *resultobj = 0;
27093 wxListItem *arg1 = (wxListItem *) 0 ;
27094 long result;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 PyObject *swig_obj[1] ;
27098
27099 if (!args) SWIG_fail;
27100 swig_obj[0] = args;
27101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27102 if (!SWIG_IsOK(res1)) {
27103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27104 }
27105 arg1 = reinterpret_cast< wxListItem * >(argp1);
27106 result = (long) ((arg1)->m_itemId);
27107 resultobj = SWIG_From_long(static_cast< long >(result));
27108 return resultobj;
27109fail:
27110 return NULL;
27111}
27112
27113
27114SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27115 PyObject *resultobj = 0;
27116 wxListItem *arg1 = (wxListItem *) 0 ;
27117 int arg2 ;
27118 void *argp1 = 0 ;
27119 int res1 = 0 ;
27120 int val2 ;
27121 int ecode2 = 0 ;
27122 PyObject *swig_obj[2] ;
27123
27124 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27128 }
27129 arg1 = reinterpret_cast< wxListItem * >(argp1);
27130 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27131 if (!SWIG_IsOK(ecode2)) {
27132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27133 }
27134 arg2 = static_cast< int >(val2);
27135 if (arg1) (arg1)->m_col = arg2;
27136
27137 resultobj = SWIG_Py_Void();
27138 return resultobj;
27139fail:
27140 return NULL;
d55e5bfc
RD
27141}
27142
27143
554f62e9
RD
27144SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27145 PyObject *resultobj = 0;
27146 wxListItem *arg1 = (wxListItem *) 0 ;
27147 int result;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 PyObject *swig_obj[1] ;
27151
27152 if (!args) SWIG_fail;
27153 swig_obj[0] = args;
27154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27155 if (!SWIG_IsOK(res1)) {
27156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27157 }
27158 arg1 = reinterpret_cast< wxListItem * >(argp1);
27159 result = (int) ((arg1)->m_col);
27160 resultobj = SWIG_From_int(static_cast< int >(result));
27161 return resultobj;
27162fail:
27163 return NULL;
27164}
27165
27166
27167SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27168 PyObject *resultobj = 0;
27169 wxListItem *arg1 = (wxListItem *) 0 ;
27170 long arg2 ;
27171 void *argp1 = 0 ;
27172 int res1 = 0 ;
27173 long val2 ;
27174 int ecode2 = 0 ;
27175 PyObject *swig_obj[2] ;
27176
27177 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27179 if (!SWIG_IsOK(res1)) {
27180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27181 }
27182 arg1 = reinterpret_cast< wxListItem * >(argp1);
27183 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27184 if (!SWIG_IsOK(ecode2)) {
27185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27186 }
27187 arg2 = static_cast< long >(val2);
27188 if (arg1) (arg1)->m_state = arg2;
27189
27190 resultobj = SWIG_Py_Void();
27191 return resultobj;
27192fail:
27193 return NULL;
d55e5bfc
RD
27194}
27195
27196
554f62e9
RD
27197SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27198 PyObject *resultobj = 0;
27199 wxListItem *arg1 = (wxListItem *) 0 ;
27200 long result;
27201 void *argp1 = 0 ;
27202 int res1 = 0 ;
27203 PyObject *swig_obj[1] ;
27204
27205 if (!args) SWIG_fail;
27206 swig_obj[0] = args;
27207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27208 if (!SWIG_IsOK(res1)) {
27209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27210 }
27211 arg1 = reinterpret_cast< wxListItem * >(argp1);
27212 result = (long) ((arg1)->m_state);
27213 resultobj = SWIG_From_long(static_cast< long >(result));
27214 return resultobj;
27215fail:
27216 return NULL;
27217}
27218
27219
27220SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27221 PyObject *resultobj = 0;
27222 wxListItem *arg1 = (wxListItem *) 0 ;
27223 long arg2 ;
27224 void *argp1 = 0 ;
27225 int res1 = 0 ;
27226 long val2 ;
27227 int ecode2 = 0 ;
27228 PyObject *swig_obj[2] ;
27229
27230 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
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_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27234 }
27235 arg1 = reinterpret_cast< wxListItem * >(argp1);
27236 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27237 if (!SWIG_IsOK(ecode2)) {
27238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27239 }
27240 arg2 = static_cast< long >(val2);
27241 if (arg1) (arg1)->m_stateMask = arg2;
27242
27243 resultobj = SWIG_Py_Void();
27244 return resultobj;
27245fail:
27246 return NULL;
7e08d4ef
RD
27247}
27248
27249
554f62e9
RD
27250SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27251 PyObject *resultobj = 0;
27252 wxListItem *arg1 = (wxListItem *) 0 ;
27253 long result;
27254 void *argp1 = 0 ;
27255 int res1 = 0 ;
27256 PyObject *swig_obj[1] ;
27257
27258 if (!args) SWIG_fail;
27259 swig_obj[0] = args;
27260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27261 if (!SWIG_IsOK(res1)) {
27262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27263 }
27264 arg1 = reinterpret_cast< wxListItem * >(argp1);
27265 result = (long) ((arg1)->m_stateMask);
27266 resultobj = SWIG_From_long(static_cast< long >(result));
27267 return resultobj;
27268fail:
27269 return NULL;
27270}
27271
27272
27273SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27274 PyObject *resultobj = 0;
27275 wxListItem *arg1 = (wxListItem *) 0 ;
27276 wxString *arg2 = (wxString *) 0 ;
27277 void *argp1 = 0 ;
27278 int res1 = 0 ;
27279 bool temp2 = false ;
27280 PyObject *swig_obj[2] ;
27281
27282 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27284 if (!SWIG_IsOK(res1)) {
27285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27286 }
27287 arg1 = reinterpret_cast< wxListItem * >(argp1);
27288 {
27289 arg2 = wxString_in_helper(swig_obj[1]);
27290 if (arg2 == NULL) SWIG_fail;
27291 temp2 = true;
27292 }
27293 if (arg1) (arg1)->m_text = *arg2;
27294
27295 resultobj = SWIG_Py_Void();
27296 {
27297 if (temp2)
27298 delete arg2;
27299 }
27300 return resultobj;
27301fail:
27302 {
27303 if (temp2)
27304 delete arg2;
27305 }
27306 return NULL;
7e08d4ef
RD
27307}
27308
27309
554f62e9
RD
27310SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27311 PyObject *resultobj = 0;
27312 wxListItem *arg1 = (wxListItem *) 0 ;
27313 wxString *result = 0 ;
27314 void *argp1 = 0 ;
27315 int res1 = 0 ;
27316 PyObject *swig_obj[1] ;
27317
27318 if (!args) SWIG_fail;
27319 swig_obj[0] = args;
27320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27321 if (!SWIG_IsOK(res1)) {
27322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27323 }
27324 arg1 = reinterpret_cast< wxListItem * >(argp1);
27325 result = (wxString *)& ((arg1)->m_text);
27326 {
27327#if wxUSE_UNICODE
27328 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27329#else
27330 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27331#endif
27332 }
27333 return resultobj;
27334fail:
27335 return NULL;
7e08d4ef
RD
27336}
27337
27338
554f62e9
RD
27339SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27340 PyObject *resultobj = 0;
27341 wxListItem *arg1 = (wxListItem *) 0 ;
27342 int arg2 ;
27343 void *argp1 = 0 ;
27344 int res1 = 0 ;
27345 int val2 ;
27346 int ecode2 = 0 ;
27347 PyObject *swig_obj[2] ;
27348
27349 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27351 if (!SWIG_IsOK(res1)) {
27352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27353 }
27354 arg1 = reinterpret_cast< wxListItem * >(argp1);
27355 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27356 if (!SWIG_IsOK(ecode2)) {
27357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27358 }
27359 arg2 = static_cast< int >(val2);
27360 if (arg1) (arg1)->m_image = arg2;
27361
27362 resultobj = SWIG_Py_Void();
27363 return resultobj;
27364fail:
27365 return NULL;
7e08d4ef
RD
27366}
27367
27368
554f62e9
RD
27369SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27370 PyObject *resultobj = 0;
27371 wxListItem *arg1 = (wxListItem *) 0 ;
27372 int result;
27373 void *argp1 = 0 ;
27374 int res1 = 0 ;
27375 PyObject *swig_obj[1] ;
27376
27377 if (!args) SWIG_fail;
27378 swig_obj[0] = args;
27379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27380 if (!SWIG_IsOK(res1)) {
27381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27382 }
27383 arg1 = reinterpret_cast< wxListItem * >(argp1);
27384 result = (int) ((arg1)->m_image);
27385 resultobj = SWIG_From_int(static_cast< int >(result));
27386 return resultobj;
27387fail:
27388 return NULL;
27389}
27390
27391
27392SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27393 PyObject *resultobj = 0;
27394 wxListItem *arg1 = (wxListItem *) 0 ;
27395 long arg2 ;
27396 void *argp1 = 0 ;
27397 int res1 = 0 ;
27398 long val2 ;
27399 int ecode2 = 0 ;
27400 PyObject *swig_obj[2] ;
27401
27402 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27406 }
27407 arg1 = reinterpret_cast< wxListItem * >(argp1);
27408 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27409 if (!SWIG_IsOK(ecode2)) {
27410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27411 }
27412 arg2 = static_cast< long >(val2);
27413 if (arg1) (arg1)->m_data = arg2;
27414
27415 resultobj = SWIG_Py_Void();
27416 return resultobj;
27417fail:
27418 return NULL;
7e08d4ef
RD
27419}
27420
27421
554f62e9
RD
27422SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27423 PyObject *resultobj = 0;
27424 wxListItem *arg1 = (wxListItem *) 0 ;
27425 long result;
27426 void *argp1 = 0 ;
27427 int res1 = 0 ;
27428 PyObject *swig_obj[1] ;
27429
27430 if (!args) SWIG_fail;
27431 swig_obj[0] = args;
27432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27433 if (!SWIG_IsOK(res1)) {
27434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27435 }
27436 arg1 = reinterpret_cast< wxListItem * >(argp1);
27437 result = (long) ((arg1)->m_data);
27438 resultobj = SWIG_From_long(static_cast< long >(result));
27439 return resultobj;
27440fail:
27441 return NULL;
27442}
27443
27444
27445SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27446 PyObject *resultobj = 0;
27447 wxListItem *arg1 = (wxListItem *) 0 ;
27448 int arg2 ;
27449 void *argp1 = 0 ;
27450 int res1 = 0 ;
27451 int val2 ;
27452 int ecode2 = 0 ;
27453 PyObject *swig_obj[2] ;
27454
27455 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27459 }
27460 arg1 = reinterpret_cast< wxListItem * >(argp1);
27461 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27462 if (!SWIG_IsOK(ecode2)) {
27463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27464 }
27465 arg2 = static_cast< int >(val2);
27466 if (arg1) (arg1)->m_format = arg2;
27467
27468 resultobj = SWIG_Py_Void();
27469 return resultobj;
27470fail:
27471 return NULL;
d55e5bfc
RD
27472}
27473
27474
554f62e9
RD
27475SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27476 PyObject *resultobj = 0;
27477 wxListItem *arg1 = (wxListItem *) 0 ;
27478 int result;
27479 void *argp1 = 0 ;
27480 int res1 = 0 ;
27481 PyObject *swig_obj[1] ;
27482
27483 if (!args) SWIG_fail;
27484 swig_obj[0] = args;
27485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27486 if (!SWIG_IsOK(res1)) {
27487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27488 }
27489 arg1 = reinterpret_cast< wxListItem * >(argp1);
27490 result = (int) ((arg1)->m_format);
27491 resultobj = SWIG_From_int(static_cast< int >(result));
27492 return resultobj;
27493fail:
27494 return NULL;
27495}
27496
27497
27498SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27499 PyObject *resultobj = 0;
27500 wxListItem *arg1 = (wxListItem *) 0 ;
27501 int arg2 ;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 int val2 ;
27505 int ecode2 = 0 ;
27506 PyObject *swig_obj[2] ;
27507
27508 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27510 if (!SWIG_IsOK(res1)) {
27511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27512 }
27513 arg1 = reinterpret_cast< wxListItem * >(argp1);
27514 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27515 if (!SWIG_IsOK(ecode2)) {
27516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27517 }
27518 arg2 = static_cast< int >(val2);
27519 if (arg1) (arg1)->m_width = arg2;
27520
27521 resultobj = SWIG_Py_Void();
27522 return resultobj;
27523fail:
27524 return NULL;
d55e5bfc
RD
27525}
27526
27527
554f62e9
RD
27528SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27529 PyObject *resultobj = 0;
27530 wxListItem *arg1 = (wxListItem *) 0 ;
27531 int result;
27532 void *argp1 = 0 ;
27533 int res1 = 0 ;
27534 PyObject *swig_obj[1] ;
27535
27536 if (!args) SWIG_fail;
27537 swig_obj[0] = args;
27538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27539 if (!SWIG_IsOK(res1)) {
27540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27541 }
27542 arg1 = reinterpret_cast< wxListItem * >(argp1);
27543 result = (int) ((arg1)->m_width);
27544 resultobj = SWIG_From_int(static_cast< int >(result));
27545 return resultobj;
27546fail:
27547 return NULL;
27548}
27549
27550
27551SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27552 PyObject *obj;
27553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27554 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27555 return SWIG_Py_Void();
27556}
27557
27558SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27559 return SWIG_Python_InitShadowInstance(args);
27560}
27561
27562SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27563 PyObject *resultobj = 0;
27564 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27565 int arg2 = (int) 0 ;
27566 wxListEvent *result = 0 ;
27567 int val1 ;
27568 int ecode1 = 0 ;
27569 int val2 ;
27570 int ecode2 = 0 ;
27571 PyObject * obj0 = 0 ;
27572 PyObject * obj1 = 0 ;
27573 char * kwnames[] = {
27574 (char *) "commandType",(char *) "id", NULL
27575 };
27576
27577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27578 if (obj0) {
27579 ecode1 = SWIG_AsVal_int(obj0, &val1);
27580 if (!SWIG_IsOK(ecode1)) {
27581 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27582 }
27583 arg1 = static_cast< wxEventType >(val1);
27584 }
27585 if (obj1) {
27586 ecode2 = SWIG_AsVal_int(obj1, &val2);
27587 if (!SWIG_IsOK(ecode2)) {
27588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27589 }
27590 arg2 = static_cast< int >(val2);
27591 }
27592 {
27593 PyThreadState* __tstate = wxPyBeginAllowThreads();
27594 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27595 wxPyEndAllowThreads(__tstate);
27596 if (PyErr_Occurred()) SWIG_fail;
27597 }
27598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27599 return resultobj;
27600fail:
27601 return NULL;
27602}
27603
27604
27605SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27606 PyObject *resultobj = 0;
27607 wxListEvent *arg1 = (wxListEvent *) 0 ;
27608 int arg2 ;
27609 void *argp1 = 0 ;
27610 int res1 = 0 ;
27611 int val2 ;
27612 int ecode2 = 0 ;
27613 PyObject *swig_obj[2] ;
27614
27615 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27617 if (!SWIG_IsOK(res1)) {
27618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27619 }
27620 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27621 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27622 if (!SWIG_IsOK(ecode2)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27624 }
27625 arg2 = static_cast< int >(val2);
27626 if (arg1) (arg1)->m_code = arg2;
27627
27628 resultobj = SWIG_Py_Void();
27629 return resultobj;
27630fail:
27631 return NULL;
d55e5bfc
RD
27632}
27633
27634
554f62e9
RD
27635SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27636 PyObject *resultobj = 0;
27637 wxListEvent *arg1 = (wxListEvent *) 0 ;
27638 int result;
27639 void *argp1 = 0 ;
27640 int res1 = 0 ;
27641 PyObject *swig_obj[1] ;
27642
27643 if (!args) SWIG_fail;
27644 swig_obj[0] = args;
27645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27646 if (!SWIG_IsOK(res1)) {
27647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27648 }
27649 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27650 result = (int) ((arg1)->m_code);
27651 resultobj = SWIG_From_int(static_cast< int >(result));
27652 return resultobj;
27653fail:
27654 return NULL;
27655}
27656
27657
27658SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27659 PyObject *resultobj = 0;
27660 wxListEvent *arg1 = (wxListEvent *) 0 ;
27661 long arg2 ;
27662 void *argp1 = 0 ;
27663 int res1 = 0 ;
27664 long val2 ;
27665 int ecode2 = 0 ;
27666 PyObject *swig_obj[2] ;
27667
27668 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27670 if (!SWIG_IsOK(res1)) {
27671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27672 }
27673 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27674 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27675 if (!SWIG_IsOK(ecode2)) {
27676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27677 }
27678 arg2 = static_cast< long >(val2);
27679 if (arg1) (arg1)->m_oldItemIndex = arg2;
27680
27681 resultobj = SWIG_Py_Void();
27682 return resultobj;
27683fail:
27684 return NULL;
d55e5bfc
RD
27685}
27686
27687
554f62e9
RD
27688SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27689 PyObject *resultobj = 0;
27690 wxListEvent *arg1 = (wxListEvent *) 0 ;
27691 long result;
27692 void *argp1 = 0 ;
27693 int res1 = 0 ;
27694 PyObject *swig_obj[1] ;
27695
27696 if (!args) SWIG_fail;
27697 swig_obj[0] = args;
27698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27699 if (!SWIG_IsOK(res1)) {
27700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27701 }
27702 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27703 result = (long) ((arg1)->m_oldItemIndex);
27704 resultobj = SWIG_From_long(static_cast< long >(result));
27705 return resultobj;
27706fail:
27707 return NULL;
27708}
27709
27710
27711SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27712 PyObject *resultobj = 0;
27713 wxListEvent *arg1 = (wxListEvent *) 0 ;
27714 long arg2 ;
27715 void *argp1 = 0 ;
27716 int res1 = 0 ;
27717 long val2 ;
27718 int ecode2 = 0 ;
27719 PyObject *swig_obj[2] ;
27720
27721 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27723 if (!SWIG_IsOK(res1)) {
27724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27725 }
27726 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27727 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27728 if (!SWIG_IsOK(ecode2)) {
27729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27730 }
27731 arg2 = static_cast< long >(val2);
27732 if (arg1) (arg1)->m_itemIndex = arg2;
27733
27734 resultobj = SWIG_Py_Void();
27735 return resultobj;
27736fail:
27737 return NULL;
d55e5bfc
RD
27738}
27739
27740
554f62e9
RD
27741SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27742 PyObject *resultobj = 0;
27743 wxListEvent *arg1 = (wxListEvent *) 0 ;
27744 long result;
27745 void *argp1 = 0 ;
27746 int res1 = 0 ;
27747 PyObject *swig_obj[1] ;
27748
27749 if (!args) SWIG_fail;
27750 swig_obj[0] = args;
27751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27752 if (!SWIG_IsOK(res1)) {
27753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27754 }
27755 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27756 result = (long) ((arg1)->m_itemIndex);
27757 resultobj = SWIG_From_long(static_cast< long >(result));
27758 return resultobj;
27759fail:
27760 return NULL;
27761}
27762
27763
27764SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27765 PyObject *resultobj = 0;
27766 wxListEvent *arg1 = (wxListEvent *) 0 ;
27767 int arg2 ;
27768 void *argp1 = 0 ;
27769 int res1 = 0 ;
27770 int val2 ;
27771 int ecode2 = 0 ;
27772 PyObject *swig_obj[2] ;
27773
27774 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27776 if (!SWIG_IsOK(res1)) {
27777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27778 }
27779 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27780 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27781 if (!SWIG_IsOK(ecode2)) {
27782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27783 }
27784 arg2 = static_cast< int >(val2);
27785 if (arg1) (arg1)->m_col = arg2;
27786
27787 resultobj = SWIG_Py_Void();
27788 return resultobj;
27789fail:
27790 return NULL;
d55e5bfc
RD
27791}
27792
27793
554f62e9
RD
27794SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27795 PyObject *resultobj = 0;
27796 wxListEvent *arg1 = (wxListEvent *) 0 ;
27797 int result;
27798 void *argp1 = 0 ;
27799 int res1 = 0 ;
27800 PyObject *swig_obj[1] ;
27801
27802 if (!args) SWIG_fail;
27803 swig_obj[0] = args;
27804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27805 if (!SWIG_IsOK(res1)) {
27806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27807 }
27808 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27809 result = (int) ((arg1)->m_col);
27810 resultobj = SWIG_From_int(static_cast< int >(result));
27811 return resultobj;
27812fail:
27813 return NULL;
27814}
27815
27816
27817SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27818 PyObject *resultobj = 0;
27819 wxListEvent *arg1 = (wxListEvent *) 0 ;
27820 wxPoint *arg2 = (wxPoint *) 0 ;
27821 void *argp1 = 0 ;
27822 int res1 = 0 ;
27823 void *argp2 = 0 ;
27824 int res2 = 0 ;
27825 PyObject *swig_obj[2] ;
27826
27827 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27831 }
27832 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27833 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27834 if (!SWIG_IsOK(res2)) {
27835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27836 }
27837 arg2 = reinterpret_cast< wxPoint * >(argp2);
27838 if (arg1) (arg1)->m_pointDrag = *arg2;
27839
27840 resultobj = SWIG_Py_Void();
27841 return resultobj;
27842fail:
27843 return NULL;
d55e5bfc
RD
27844}
27845
27846
554f62e9
RD
27847SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27848 PyObject *resultobj = 0;
27849 wxListEvent *arg1 = (wxListEvent *) 0 ;
27850 wxPoint *result = 0 ;
27851 void *argp1 = 0 ;
27852 int res1 = 0 ;
27853 PyObject *swig_obj[1] ;
27854
27855 if (!args) SWIG_fail;
27856 swig_obj[0] = args;
27857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27858 if (!SWIG_IsOK(res1)) {
27859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27860 }
27861 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27862 result = (wxPoint *)& ((arg1)->m_pointDrag);
27863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27864 return resultobj;
27865fail:
27866 return NULL;
27867}
27868
27869
27870SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27871 PyObject *resultobj = 0;
27872 wxListEvent *arg1 = (wxListEvent *) 0 ;
27873 wxListItem *result = 0 ;
27874 void *argp1 = 0 ;
27875 int res1 = 0 ;
27876 PyObject *swig_obj[1] ;
27877
27878 if (!args) SWIG_fail;
27879 swig_obj[0] = args;
27880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27881 if (!SWIG_IsOK(res1)) {
27882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27883 }
27884 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27885 result = (wxListItem *)& ((arg1)->m_item);
27886 {
27887 resultobj = wxPyMake_wxObject(result, (bool)0);
27888 }
27889 return resultobj;
27890fail:
27891 return NULL;
f20a2e1f
RD
27892}
27893
27894
554f62e9
RD
27895SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListEvent *arg1 = (wxListEvent *) 0 ;
27898 int result;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 PyObject *swig_obj[1] ;
27902
27903 if (!args) SWIG_fail;
27904 swig_obj[0] = args;
27905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27906 if (!SWIG_IsOK(res1)) {
27907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27908 }
27909 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27910 {
27911 PyThreadState* __tstate = wxPyBeginAllowThreads();
27912 result = (int)(arg1)->GetKeyCode();
27913 wxPyEndAllowThreads(__tstate);
27914 if (PyErr_Occurred()) SWIG_fail;
27915 }
27916 resultobj = SWIG_From_int(static_cast< int >(result));
27917 return resultobj;
27918fail:
27919 return NULL;
d55e5bfc
RD
27920}
27921
27922
554f62e9
RD
27923SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27924 PyObject *resultobj = 0;
27925 wxListEvent *arg1 = (wxListEvent *) 0 ;
27926 long result;
27927 void *argp1 = 0 ;
27928 int res1 = 0 ;
27929 PyObject *swig_obj[1] ;
27930
27931 if (!args) SWIG_fail;
27932 swig_obj[0] = args;
27933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27934 if (!SWIG_IsOK(res1)) {
27935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27936 }
27937 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27938 {
27939 PyThreadState* __tstate = wxPyBeginAllowThreads();
27940 result = (long)(arg1)->GetIndex();
27941 wxPyEndAllowThreads(__tstate);
27942 if (PyErr_Occurred()) SWIG_fail;
27943 }
27944 resultobj = SWIG_From_long(static_cast< long >(result));
27945 return resultobj;
27946fail:
27947 return NULL;
d55e5bfc
RD
27948}
27949
27950
554f62e9
RD
27951SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27952 PyObject *resultobj = 0;
27953 wxListEvent *arg1 = (wxListEvent *) 0 ;
27954 int result;
27955 void *argp1 = 0 ;
27956 int res1 = 0 ;
27957 PyObject *swig_obj[1] ;
27958
27959 if (!args) SWIG_fail;
27960 swig_obj[0] = args;
27961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27962 if (!SWIG_IsOK(res1)) {
27963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27964 }
27965 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27966 {
27967 PyThreadState* __tstate = wxPyBeginAllowThreads();
27968 result = (int)(arg1)->GetColumn();
27969 wxPyEndAllowThreads(__tstate);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 resultobj = SWIG_From_int(static_cast< int >(result));
27973 return resultobj;
27974fail:
27975 return NULL;
d55e5bfc
RD
27976}
27977
27978
554f62e9
RD
27979SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27980 PyObject *resultobj = 0;
27981 wxListEvent *arg1 = (wxListEvent *) 0 ;
27982 wxPoint result;
27983 void *argp1 = 0 ;
27984 int res1 = 0 ;
27985 PyObject *swig_obj[1] ;
27986
27987 if (!args) SWIG_fail;
27988 swig_obj[0] = args;
27989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27990 if (!SWIG_IsOK(res1)) {
27991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27992 }
27993 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27994 {
27995 PyThreadState* __tstate = wxPyBeginAllowThreads();
27996 result = (arg1)->GetPoint();
27997 wxPyEndAllowThreads(__tstate);
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
28000 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28001 return resultobj;
28002fail:
28003 return NULL;
d55e5bfc
RD
28004}
28005
28006
554f62e9
RD
28007SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28008 PyObject *resultobj = 0;
28009 wxListEvent *arg1 = (wxListEvent *) 0 ;
28010 wxString *result = 0 ;
28011 void *argp1 = 0 ;
28012 int res1 = 0 ;
28013 PyObject *swig_obj[1] ;
28014
28015 if (!args) SWIG_fail;
28016 swig_obj[0] = args;
28017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28018 if (!SWIG_IsOK(res1)) {
28019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28020 }
28021 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28024 {
554f62e9
RD
28025 wxString const &_result_ref = (arg1)->GetLabel();
28026 result = (wxString *) &_result_ref;
d55e5bfc 28027 }
554f62e9
RD
28028 wxPyEndAllowThreads(__tstate);
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 {
28032#if wxUSE_UNICODE
28033 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28034#else
28035 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28036#endif
28037 }
28038 return resultobj;
28039fail:
28040 return NULL;
d55e5bfc
RD
28041}
28042
28043
554f62e9
RD
28044SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28045 PyObject *resultobj = 0;
28046 wxListEvent *arg1 = (wxListEvent *) 0 ;
28047 wxString *result = 0 ;
28048 void *argp1 = 0 ;
28049 int res1 = 0 ;
28050 PyObject *swig_obj[1] ;
28051
28052 if (!args) SWIG_fail;
28053 swig_obj[0] = args;
28054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28055 if (!SWIG_IsOK(res1)) {
28056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28057 }
28058 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28059 {
28060 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28061 {
554f62e9
RD
28062 wxString const &_result_ref = (arg1)->GetText();
28063 result = (wxString *) &_result_ref;
d55e5bfc 28064 }
554f62e9
RD
28065 wxPyEndAllowThreads(__tstate);
28066 if (PyErr_Occurred()) SWIG_fail;
28067 }
28068 {
28069#if wxUSE_UNICODE
28070 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28071#else
28072 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28073#endif
28074 }
28075 return resultobj;
28076fail:
28077 return NULL;
d55e5bfc
RD
28078}
28079
28080
554f62e9
RD
28081SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28082 PyObject *resultobj = 0;
28083 wxListEvent *arg1 = (wxListEvent *) 0 ;
28084 int result;
28085 void *argp1 = 0 ;
28086 int res1 = 0 ;
28087 PyObject *swig_obj[1] ;
28088
28089 if (!args) SWIG_fail;
28090 swig_obj[0] = args;
28091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28092 if (!SWIG_IsOK(res1)) {
28093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28094 }
28095 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 result = (int)(arg1)->GetImage();
28099 wxPyEndAllowThreads(__tstate);
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 resultobj = SWIG_From_int(static_cast< int >(result));
28103 return resultobj;
28104fail:
28105 return NULL;
d55e5bfc
RD
28106}
28107
28108
554f62e9
RD
28109SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28110 PyObject *resultobj = 0;
28111 wxListEvent *arg1 = (wxListEvent *) 0 ;
28112 long result;
28113 void *argp1 = 0 ;
28114 int res1 = 0 ;
28115 PyObject *swig_obj[1] ;
28116
28117 if (!args) SWIG_fail;
28118 swig_obj[0] = args;
28119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28122 }
28123 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28124 {
28125 PyThreadState* __tstate = wxPyBeginAllowThreads();
28126 result = (long)(arg1)->GetData();
28127 wxPyEndAllowThreads(__tstate);
28128 if (PyErr_Occurred()) SWIG_fail;
28129 }
28130 resultobj = SWIG_From_long(static_cast< long >(result));
28131 return resultobj;
28132fail:
28133 return NULL;
d55e5bfc
RD
28134}
28135
28136
554f62e9
RD
28137SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28138 PyObject *resultobj = 0;
28139 wxListEvent *arg1 = (wxListEvent *) 0 ;
28140 long result;
28141 void *argp1 = 0 ;
28142 int res1 = 0 ;
28143 PyObject *swig_obj[1] ;
28144
28145 if (!args) SWIG_fail;
28146 swig_obj[0] = args;
28147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28148 if (!SWIG_IsOK(res1)) {
28149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28150 }
28151 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28152 {
28153 PyThreadState* __tstate = wxPyBeginAllowThreads();
28154 result = (long)(arg1)->GetMask();
28155 wxPyEndAllowThreads(__tstate);
28156 if (PyErr_Occurred()) SWIG_fail;
28157 }
28158 resultobj = SWIG_From_long(static_cast< long >(result));
28159 return resultobj;
28160fail:
28161 return NULL;
d55e5bfc
RD
28162}
28163
28164
554f62e9
RD
28165SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28166 PyObject *resultobj = 0;
28167 wxListEvent *arg1 = (wxListEvent *) 0 ;
28168 wxListItem *result = 0 ;
28169 void *argp1 = 0 ;
28170 int res1 = 0 ;
28171 PyObject *swig_obj[1] ;
28172
28173 if (!args) SWIG_fail;
28174 swig_obj[0] = args;
28175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28176 if (!SWIG_IsOK(res1)) {
28177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28178 }
28179 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28182 {
554f62e9
RD
28183 wxListItem const &_result_ref = (arg1)->GetItem();
28184 result = (wxListItem *) &_result_ref;
093d3ff1 28185 }
554f62e9
RD
28186 wxPyEndAllowThreads(__tstate);
28187 if (PyErr_Occurred()) SWIG_fail;
28188 }
28189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28190 return resultobj;
28191fail:
28192 return NULL;
d55e5bfc
RD
28193}
28194
28195
554f62e9
RD
28196SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28197 PyObject *resultobj = 0;
28198 wxListEvent *arg1 = (wxListEvent *) 0 ;
28199 long result;
28200 void *argp1 = 0 ;
28201 int res1 = 0 ;
28202 PyObject *swig_obj[1] ;
28203
28204 if (!args) SWIG_fail;
28205 swig_obj[0] = args;
28206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28207 if (!SWIG_IsOK(res1)) {
28208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28209 }
28210 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28211 {
28212 PyThreadState* __tstate = wxPyBeginAllowThreads();
28213 result = (long)(arg1)->GetCacheFrom();
28214 wxPyEndAllowThreads(__tstate);
28215 if (PyErr_Occurred()) SWIG_fail;
28216 }
28217 resultobj = SWIG_From_long(static_cast< long >(result));
28218 return resultobj;
28219fail:
28220 return NULL;
d55e5bfc
RD
28221}
28222
28223
554f62e9
RD
28224SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28225 PyObject *resultobj = 0;
28226 wxListEvent *arg1 = (wxListEvent *) 0 ;
28227 long result;
28228 void *argp1 = 0 ;
28229 int res1 = 0 ;
28230 PyObject *swig_obj[1] ;
28231
28232 if (!args) SWIG_fail;
28233 swig_obj[0] = args;
28234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28235 if (!SWIG_IsOK(res1)) {
28236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28237 }
28238 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28239 {
28240 PyThreadState* __tstate = wxPyBeginAllowThreads();
28241 result = (long)(arg1)->GetCacheTo();
28242 wxPyEndAllowThreads(__tstate);
28243 if (PyErr_Occurred()) SWIG_fail;
28244 }
28245 resultobj = SWIG_From_long(static_cast< long >(result));
28246 return resultobj;
28247fail:
28248 return NULL;
091fdbfa
RD
28249}
28250
28251
554f62e9
RD
28252SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28253 PyObject *resultobj = 0;
28254 wxListEvent *arg1 = (wxListEvent *) 0 ;
28255 bool result;
28256 void *argp1 = 0 ;
28257 int res1 = 0 ;
28258 PyObject *swig_obj[1] ;
28259
28260 if (!args) SWIG_fail;
28261 swig_obj[0] = args;
28262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28263 if (!SWIG_IsOK(res1)) {
28264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28265 }
28266 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28267 {
28268 PyThreadState* __tstate = wxPyBeginAllowThreads();
28269 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28270 wxPyEndAllowThreads(__tstate);
28271 if (PyErr_Occurred()) SWIG_fail;
28272 }
28273 {
28274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28275 }
28276 return resultobj;
28277fail:
28278 return NULL;
28279}
28280
28281
28282SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28283 PyObject *resultobj = 0;
28284 wxListEvent *arg1 = (wxListEvent *) 0 ;
28285 bool arg2 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 bool val2 ;
28289 int ecode2 = 0 ;
28290 PyObject * obj0 = 0 ;
28291 PyObject * obj1 = 0 ;
28292 char * kwnames[] = {
28293 (char *) "self",(char *) "editCancelled", NULL
28294 };
28295
28296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28298 if (!SWIG_IsOK(res1)) {
28299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28300 }
28301 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28302 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28303 if (!SWIG_IsOK(ecode2)) {
28304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28305 }
28306 arg2 = static_cast< bool >(val2);
28307 {
28308 PyThreadState* __tstate = wxPyBeginAllowThreads();
28309 (arg1)->SetEditCanceled(arg2);
28310 wxPyEndAllowThreads(__tstate);
28311 if (PyErr_Occurred()) SWIG_fail;
28312 }
28313 resultobj = SWIG_Py_Void();
28314 return resultobj;
28315fail:
28316 return NULL;
28317}
28318
28319
28320SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28321 PyObject *obj;
28322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28323 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28324 return SWIG_Py_Void();
28325}
28326
28327SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28328 return SWIG_Python_InitShadowInstance(args);
28329}
28330
28331SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28332 PyObject *resultobj = 0;
28333 wxWindow *arg1 = (wxWindow *) 0 ;
28334 int arg2 = (int) -1 ;
28335 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28336 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28337 wxSize const &arg4_defvalue = wxDefaultSize ;
28338 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28339 long arg5 = (long) wxLC_ICON ;
28340 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28341 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28342 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28343 wxString *arg7 = (wxString *) &arg7_defvalue ;
28344 wxPyListCtrl *result = 0 ;
28345 void *argp1 = 0 ;
28346 int res1 = 0 ;
28347 int val2 ;
28348 int ecode2 = 0 ;
28349 wxPoint temp3 ;
28350 wxSize temp4 ;
28351 long val5 ;
28352 int ecode5 = 0 ;
28353 void *argp6 = 0 ;
28354 int res6 = 0 ;
28355 bool temp7 = false ;
28356 PyObject * obj0 = 0 ;
28357 PyObject * obj1 = 0 ;
28358 PyObject * obj2 = 0 ;
28359 PyObject * obj3 = 0 ;
28360 PyObject * obj4 = 0 ;
28361 PyObject * obj5 = 0 ;
28362 PyObject * obj6 = 0 ;
28363 char * kwnames[] = {
28364 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28365 };
28366
28367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28369 if (!SWIG_IsOK(res1)) {
28370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28371 }
28372 arg1 = reinterpret_cast< wxWindow * >(argp1);
28373 if (obj1) {
28374 ecode2 = SWIG_AsVal_int(obj1, &val2);
28375 if (!SWIG_IsOK(ecode2)) {
28376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28377 }
28378 arg2 = static_cast< int >(val2);
28379 }
28380 if (obj2) {
f20a2e1f 28381 {
554f62e9
RD
28382 arg3 = &temp3;
28383 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 28384 }
554f62e9
RD
28385 }
28386 if (obj3) {
d55e5bfc 28387 {
554f62e9
RD
28388 arg4 = &temp4;
28389 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28390 }
554f62e9
RD
28391 }
28392 if (obj4) {
28393 ecode5 = SWIG_AsVal_long(obj4, &val5);
28394 if (!SWIG_IsOK(ecode5)) {
28395 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28396 }
28397 arg5 = static_cast< long >(val5);
28398 }
28399 if (obj5) {
28400 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28401 if (!SWIG_IsOK(res6)) {
28402 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28403 }
554f62e9
RD
28404 if (!argp6) {
28405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28406 }
554f62e9
RD
28407 arg6 = reinterpret_cast< wxValidator * >(argp6);
28408 }
28409 if (obj6) {
d55e5bfc 28410 {
554f62e9
RD
28411 arg7 = wxString_in_helper(obj6);
28412 if (arg7 == NULL) SWIG_fail;
28413 temp7 = true;
d55e5bfc 28414 }
554f62e9
RD
28415 }
28416 {
28417 if (!wxPyCheckForApp()) SWIG_fail;
28418 PyThreadState* __tstate = wxPyBeginAllowThreads();
28419 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28420 wxPyEndAllowThreads(__tstate);
28421 if (PyErr_Occurred()) SWIG_fail;
28422 }
28423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28424 {
28425 if (temp7)
28426 delete arg7;
28427 }
28428 return resultobj;
28429fail:
28430 {
28431 if (temp7)
28432 delete arg7;
28433 }
28434 return NULL;
d55e5bfc
RD
28435}
28436
28437
554f62e9
RD
28438SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28439 PyObject *resultobj = 0;
28440 wxPyListCtrl *result = 0 ;
28441
28442 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28443 {
28444 if (!wxPyCheckForApp()) SWIG_fail;
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = (wxPyListCtrl *)new wxPyListCtrl();
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28451 return resultobj;
28452fail:
28453 return NULL;
28454}
28455
28456
28457SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28458 PyObject *resultobj = 0;
28459 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28460 wxWindow *arg2 = (wxWindow *) 0 ;
28461 int arg3 = (int) -1 ;
28462 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28463 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28464 wxSize const &arg5_defvalue = wxDefaultSize ;
28465 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28466 long arg6 = (long) wxLC_ICON ;
28467 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28468 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28469 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28470 wxString *arg8 = (wxString *) &arg8_defvalue ;
28471 bool result;
28472 void *argp1 = 0 ;
28473 int res1 = 0 ;
28474 void *argp2 = 0 ;
28475 int res2 = 0 ;
28476 int val3 ;
28477 int ecode3 = 0 ;
28478 wxPoint temp4 ;
28479 wxSize temp5 ;
28480 long val6 ;
28481 int ecode6 = 0 ;
28482 void *argp7 = 0 ;
28483 int res7 = 0 ;
28484 bool temp8 = false ;
28485 PyObject * obj0 = 0 ;
28486 PyObject * obj1 = 0 ;
28487 PyObject * obj2 = 0 ;
28488 PyObject * obj3 = 0 ;
28489 PyObject * obj4 = 0 ;
28490 PyObject * obj5 = 0 ;
28491 PyObject * obj6 = 0 ;
28492 PyObject * obj7 = 0 ;
28493 char * kwnames[] = {
28494 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28495 };
28496
28497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28499 if (!SWIG_IsOK(res1)) {
28500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28501 }
28502 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28503 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28504 if (!SWIG_IsOK(res2)) {
28505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28506 }
28507 arg2 = reinterpret_cast< wxWindow * >(argp2);
28508 if (obj2) {
28509 ecode3 = SWIG_AsVal_int(obj2, &val3);
28510 if (!SWIG_IsOK(ecode3)) {
28511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28512 }
28513 arg3 = static_cast< int >(val3);
28514 }
28515 if (obj3) {
d55e5bfc 28516 {
554f62e9
RD
28517 arg4 = &temp4;
28518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28519 }
554f62e9
RD
28520 }
28521 if (obj4) {
d55e5bfc 28522 {
554f62e9
RD
28523 arg5 = &temp5;
28524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 28525 }
554f62e9
RD
28526 }
28527 if (obj5) {
28528 ecode6 = SWIG_AsVal_long(obj5, &val6);
28529 if (!SWIG_IsOK(ecode6)) {
28530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28531 }
28532 arg6 = static_cast< long >(val6);
28533 }
28534 if (obj6) {
28535 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28536 if (!SWIG_IsOK(res7)) {
28537 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 28538 }
554f62e9
RD
28539 if (!argp7) {
28540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 28541 }
554f62e9
RD
28542 arg7 = reinterpret_cast< wxValidator * >(argp7);
28543 }
28544 if (obj7) {
d55e5bfc 28545 {
554f62e9
RD
28546 arg8 = wxString_in_helper(obj7);
28547 if (arg8 == NULL) SWIG_fail;
28548 temp8 = true;
d55e5bfc 28549 }
554f62e9
RD
28550 }
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28554 wxPyEndAllowThreads(__tstate);
28555 if (PyErr_Occurred()) SWIG_fail;
28556 }
28557 {
28558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28559 }
28560 {
28561 if (temp8)
28562 delete arg8;
28563 }
28564 return resultobj;
28565fail:
28566 {
28567 if (temp8)
28568 delete arg8;
28569 }
28570 return NULL;
28571}
28572
28573
28574SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28575 PyObject *resultobj = 0;
28576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28577 PyObject *arg2 = (PyObject *) 0 ;
28578 PyObject *arg3 = (PyObject *) 0 ;
28579 void *argp1 = 0 ;
28580 int res1 = 0 ;
28581 PyObject * obj0 = 0 ;
28582 PyObject * obj1 = 0 ;
28583 PyObject * obj2 = 0 ;
28584 char * kwnames[] = {
28585 (char *) "self",(char *) "self",(char *) "_class", NULL
28586 };
28587
28588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28590 if (!SWIG_IsOK(res1)) {
28591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28592 }
28593 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28594 arg2 = obj1;
28595 arg3 = obj2;
28596 {
28597 PyThreadState* __tstate = wxPyBeginAllowThreads();
28598 (arg1)->_setCallbackInfo(arg2,arg3);
28599 wxPyEndAllowThreads(__tstate);
28600 if (PyErr_Occurred()) SWIG_fail;
28601 }
28602 resultobj = SWIG_Py_Void();
28603 return resultobj;
28604fail:
28605 return NULL;
28606}
28607
28608
28609SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28610 PyObject *resultobj = 0;
28611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28612 int arg2 ;
28613 wxListItem *result = 0 ;
28614 void *argp1 = 0 ;
28615 int res1 = 0 ;
28616 int val2 ;
28617 int ecode2 = 0 ;
28618 PyObject * obj0 = 0 ;
28619 PyObject * obj1 = 0 ;
28620 char * kwnames[] = {
28621 (char *) "self",(char *) "col", NULL
28622 };
28623
28624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28628 }
28629 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28630 ecode2 = SWIG_AsVal_int(obj1, &val2);
28631 if (!SWIG_IsOK(ecode2)) {
28632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28633 }
28634 arg2 = static_cast< int >(val2);
28635 {
28636 PyThreadState* __tstate = wxPyBeginAllowThreads();
28637 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28638 wxPyEndAllowThreads(__tstate);
28639 if (PyErr_Occurred()) SWIG_fail;
28640 }
28641 {
28642 resultobj = wxPyMake_wxObject(result, (bool)0);
28643 }
28644 return resultobj;
28645fail:
28646 return NULL;
28647}
28648
28649
28650SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28651 PyObject *resultobj = 0;
28652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28653 int arg2 ;
28654 wxListItem *arg3 = 0 ;
28655 bool result;
28656 void *argp1 = 0 ;
28657 int res1 = 0 ;
28658 int val2 ;
28659 int ecode2 = 0 ;
28660 void *argp3 = 0 ;
28661 int res3 = 0 ;
28662 PyObject * obj0 = 0 ;
28663 PyObject * obj1 = 0 ;
28664 PyObject * obj2 = 0 ;
28665 char * kwnames[] = {
28666 (char *) "self",(char *) "col",(char *) "item", NULL
28667 };
28668
28669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28671 if (!SWIG_IsOK(res1)) {
28672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28673 }
28674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28675 ecode2 = SWIG_AsVal_int(obj1, &val2);
28676 if (!SWIG_IsOK(ecode2)) {
28677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28678 }
28679 arg2 = static_cast< int >(val2);
28680 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28681 if (!SWIG_IsOK(res3)) {
28682 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28683 }
28684 if (!argp3) {
28685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28686 }
28687 arg3 = reinterpret_cast< wxListItem * >(argp3);
28688 {
28689 PyThreadState* __tstate = wxPyBeginAllowThreads();
28690 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 {
28695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28696 }
28697 return resultobj;
28698fail:
28699 return NULL;
28700}
28701
28702
28703SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj = 0;
28705 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28706 int arg2 ;
28707 int result;
28708 void *argp1 = 0 ;
28709 int res1 = 0 ;
28710 int val2 ;
28711 int ecode2 = 0 ;
28712 PyObject * obj0 = 0 ;
28713 PyObject * obj1 = 0 ;
28714 char * kwnames[] = {
28715 (char *) "self",(char *) "col", NULL
28716 };
28717
28718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28720 if (!SWIG_IsOK(res1)) {
28721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28722 }
28723 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28724 ecode2 = SWIG_AsVal_int(obj1, &val2);
28725 if (!SWIG_IsOK(ecode2)) {
28726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28727 }
28728 arg2 = static_cast< int >(val2);
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 resultobj = SWIG_From_int(static_cast< int >(result));
28736 return resultobj;
28737fail:
28738 return NULL;
28739}
28740
28741
28742SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28743 PyObject *resultobj = 0;
28744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28745 int arg2 ;
28746 int arg3 ;
28747 bool result;
28748 void *argp1 = 0 ;
28749 int res1 = 0 ;
28750 int val2 ;
28751 int ecode2 = 0 ;
28752 int val3 ;
28753 int ecode3 = 0 ;
28754 PyObject * obj0 = 0 ;
28755 PyObject * obj1 = 0 ;
28756 PyObject * obj2 = 0 ;
28757 char * kwnames[] = {
28758 (char *) "self",(char *) "col",(char *) "width", NULL
28759 };
28760
28761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28763 if (!SWIG_IsOK(res1)) {
28764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28765 }
28766 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28767 ecode2 = SWIG_AsVal_int(obj1, &val2);
28768 if (!SWIG_IsOK(ecode2)) {
28769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28770 }
28771 arg2 = static_cast< int >(val2);
28772 ecode3 = SWIG_AsVal_int(obj2, &val3);
28773 if (!SWIG_IsOK(ecode3)) {
28774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28775 }
28776 arg3 = static_cast< int >(val3);
28777 {
28778 PyThreadState* __tstate = wxPyBeginAllowThreads();
28779 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28780 wxPyEndAllowThreads(__tstate);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 {
28784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28785 }
28786 return resultobj;
28787fail:
28788 return NULL;
d55e5bfc
RD
28789}
28790
28791
554f62e9
RD
28792SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28793 PyObject *resultobj = 0;
28794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28795 int result;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 PyObject *swig_obj[1] ;
28799
28800 if (!args) SWIG_fail;
28801 swig_obj[0] = args;
28802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28803 if (!SWIG_IsOK(res1)) {
28804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28805 }
28806 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_From_int(static_cast< int >(result));
28814 return resultobj;
28815fail:
28816 return NULL;
7e08d4ef
RD
28817}
28818
28819
554f62e9
RD
28820SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28821 PyObject *resultobj = 0;
28822 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28823 wxRect result;
28824 void *argp1 = 0 ;
28825 int res1 = 0 ;
28826 PyObject *swig_obj[1] ;
28827
28828 if (!args) SWIG_fail;
28829 swig_obj[0] = args;
28830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28831 if (!SWIG_IsOK(res1)) {
28832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28833 }
28834 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28838 wxPyEndAllowThreads(__tstate);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28842 return resultobj;
28843fail:
28844 return NULL;
7e08d4ef
RD
28845}
28846
28847
554f62e9
RD
28848SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28849 PyObject *resultobj = 0;
28850 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28851 wxTextCtrl *result = 0 ;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 PyObject *swig_obj[1] ;
28855
28856 if (!args) SWIG_fail;
28857 swig_obj[0] = args;
28858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28861 }
28862 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 {
28870 resultobj = wxPyMake_wxObject(result, 0);
28871 }
28872 return resultobj;
28873fail:
28874 return NULL;
28875}
28876
28877
28878SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28879 PyObject *resultobj = 0;
28880 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28881 long arg2 ;
28882 int arg3 = (int) 0 ;
28883 wxListItem *result = 0 ;
28884 void *argp1 = 0 ;
28885 int res1 = 0 ;
28886 long val2 ;
28887 int ecode2 = 0 ;
28888 int val3 ;
28889 int ecode3 = 0 ;
28890 PyObject * obj0 = 0 ;
28891 PyObject * obj1 = 0 ;
28892 PyObject * obj2 = 0 ;
28893 char * kwnames[] = {
28894 (char *) "self",(char *) "itemId",(char *) "col", NULL
28895 };
28896
28897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28899 if (!SWIG_IsOK(res1)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28901 }
28902 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28903 ecode2 = SWIG_AsVal_long(obj1, &val2);
28904 if (!SWIG_IsOK(ecode2)) {
28905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28906 }
28907 arg2 = static_cast< long >(val2);
28908 if (obj2) {
28909 ecode3 = SWIG_AsVal_int(obj2, &val3);
28910 if (!SWIG_IsOK(ecode3)) {
28911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28912 }
28913 arg3 = static_cast< int >(val3);
28914 }
28915 {
28916 PyThreadState* __tstate = wxPyBeginAllowThreads();
28917 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28918 wxPyEndAllowThreads(__tstate);
28919 if (PyErr_Occurred()) SWIG_fail;
28920 }
28921 {
28922 resultobj = wxPyMake_wxObject(result, (bool)0);
28923 }
28924 return resultobj;
28925fail:
28926 return NULL;
28927}
28928
28929
28930SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28931 PyObject *resultobj = 0;
28932 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28933 wxListItem *arg2 = 0 ;
28934 bool result;
28935 void *argp1 = 0 ;
28936 int res1 = 0 ;
28937 void *argp2 = 0 ;
28938 int res2 = 0 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "self",(char *) "info", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28949 }
28950 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28952 if (!SWIG_IsOK(res2)) {
28953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28954 }
28955 if (!argp2) {
28956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28957 }
28958 arg2 = reinterpret_cast< wxListItem * >(argp2);
28959 {
28960 PyThreadState* __tstate = wxPyBeginAllowThreads();
28961 result = (bool)(arg1)->SetItem(*arg2);
28962 wxPyEndAllowThreads(__tstate);
28963 if (PyErr_Occurred()) SWIG_fail;
28964 }
28965 {
28966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28967 }
28968 return resultobj;
28969fail:
28970 return NULL;
28971}
28972
28973
28974SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28975 PyObject *resultobj = 0;
28976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28977 long arg2 ;
28978 int arg3 ;
28979 wxString *arg4 = 0 ;
28980 int arg5 = (int) -1 ;
28981 long result;
28982 void *argp1 = 0 ;
28983 int res1 = 0 ;
28984 long val2 ;
28985 int ecode2 = 0 ;
28986 int val3 ;
28987 int ecode3 = 0 ;
28988 bool temp4 = false ;
28989 int val5 ;
28990 int ecode5 = 0 ;
28991 PyObject * obj0 = 0 ;
28992 PyObject * obj1 = 0 ;
28993 PyObject * obj2 = 0 ;
28994 PyObject * obj3 = 0 ;
28995 PyObject * obj4 = 0 ;
28996 char * kwnames[] = {
28997 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28998 };
28999
29000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29002 if (!SWIG_IsOK(res1)) {
29003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29004 }
29005 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29006 ecode2 = SWIG_AsVal_long(obj1, &val2);
29007 if (!SWIG_IsOK(ecode2)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29009 }
29010 arg2 = static_cast< long >(val2);
29011 ecode3 = SWIG_AsVal_int(obj2, &val3);
29012 if (!SWIG_IsOK(ecode3)) {
29013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29014 }
29015 arg3 = static_cast< int >(val3);
29016 {
29017 arg4 = wxString_in_helper(obj3);
29018 if (arg4 == NULL) SWIG_fail;
29019 temp4 = true;
29020 }
29021 if (obj4) {
29022 ecode5 = SWIG_AsVal_int(obj4, &val5);
29023 if (!SWIG_IsOK(ecode5)) {
29024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29025 }
29026 arg5 = static_cast< int >(val5);
29027 }
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 resultobj = SWIG_From_long(static_cast< long >(result));
29035 {
29036 if (temp4)
29037 delete arg4;
29038 }
29039 return resultobj;
29040fail:
29041 {
29042 if (temp4)
29043 delete arg4;
29044 }
29045 return NULL;
29046}
29047
29048
29049SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29050 PyObject *resultobj = 0;
29051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29052 long arg2 ;
29053 long arg3 ;
29054 int result;
29055 void *argp1 = 0 ;
29056 int res1 = 0 ;
29057 long val2 ;
29058 int ecode2 = 0 ;
29059 long val3 ;
29060 int ecode3 = 0 ;
29061 PyObject * obj0 = 0 ;
29062 PyObject * obj1 = 0 ;
29063 PyObject * obj2 = 0 ;
29064 char * kwnames[] = {
29065 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29066 };
29067
29068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29072 }
29073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29074 ecode2 = SWIG_AsVal_long(obj1, &val2);
29075 if (!SWIG_IsOK(ecode2)) {
29076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29077 }
29078 arg2 = static_cast< long >(val2);
29079 ecode3 = SWIG_AsVal_long(obj2, &val3);
29080 if (!SWIG_IsOK(ecode3)) {
29081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29082 }
29083 arg3 = static_cast< long >(val3);
29084 {
29085 PyThreadState* __tstate = wxPyBeginAllowThreads();
29086 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29087 wxPyEndAllowThreads(__tstate);
29088 if (PyErr_Occurred()) SWIG_fail;
29089 }
29090 resultobj = SWIG_From_int(static_cast< int >(result));
29091 return resultobj;
29092fail:
29093 return NULL;
29094}
29095
29096
29097SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29098 PyObject *resultobj = 0;
29099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29100 long arg2 ;
29101 long arg3 ;
29102 long arg4 ;
29103 bool result;
29104 void *argp1 = 0 ;
29105 int res1 = 0 ;
29106 long val2 ;
29107 int ecode2 = 0 ;
29108 long val3 ;
29109 int ecode3 = 0 ;
29110 long val4 ;
29111 int ecode4 = 0 ;
29112 PyObject * obj0 = 0 ;
29113 PyObject * obj1 = 0 ;
29114 PyObject * obj2 = 0 ;
29115 PyObject * obj3 = 0 ;
29116 char * kwnames[] = {
29117 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29118 };
29119
29120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29122 if (!SWIG_IsOK(res1)) {
29123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29124 }
29125 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29126 ecode2 = SWIG_AsVal_long(obj1, &val2);
29127 if (!SWIG_IsOK(ecode2)) {
29128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29129 }
29130 arg2 = static_cast< long >(val2);
29131 ecode3 = SWIG_AsVal_long(obj2, &val3);
29132 if (!SWIG_IsOK(ecode3)) {
29133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29134 }
29135 arg3 = static_cast< long >(val3);
29136 ecode4 = SWIG_AsVal_long(obj3, &val4);
29137 if (!SWIG_IsOK(ecode4)) {
29138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29139 }
29140 arg4 = static_cast< long >(val4);
29141 {
29142 PyThreadState* __tstate = wxPyBeginAllowThreads();
29143 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29144 wxPyEndAllowThreads(__tstate);
29145 if (PyErr_Occurred()) SWIG_fail;
29146 }
29147 {
29148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29149 }
29150 return resultobj;
29151fail:
29152 return NULL;
29153}
29154
29155
29156SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29157 PyObject *resultobj = 0;
29158 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29159 long arg2 ;
29160 int arg3 ;
29161 int arg4 = (int) -1 ;
29162 bool result;
29163 void *argp1 = 0 ;
29164 int res1 = 0 ;
29165 long val2 ;
29166 int ecode2 = 0 ;
29167 int val3 ;
29168 int ecode3 = 0 ;
29169 int val4 ;
29170 int ecode4 = 0 ;
29171 PyObject * obj0 = 0 ;
29172 PyObject * obj1 = 0 ;
29173 PyObject * obj2 = 0 ;
29174 PyObject * obj3 = 0 ;
29175 char * kwnames[] = {
29176 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29177 };
29178
29179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29181 if (!SWIG_IsOK(res1)) {
29182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29183 }
29184 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29185 ecode2 = SWIG_AsVal_long(obj1, &val2);
29186 if (!SWIG_IsOK(ecode2)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29188 }
29189 arg2 = static_cast< long >(val2);
29190 ecode3 = SWIG_AsVal_int(obj2, &val3);
29191 if (!SWIG_IsOK(ecode3)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29193 }
29194 arg3 = static_cast< int >(val3);
29195 if (obj3) {
29196 ecode4 = SWIG_AsVal_int(obj3, &val4);
29197 if (!SWIG_IsOK(ecode4)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29199 }
29200 arg4 = static_cast< int >(val4);
29201 }
29202 {
29203 PyThreadState* __tstate = wxPyBeginAllowThreads();
29204 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29205 wxPyEndAllowThreads(__tstate);
29206 if (PyErr_Occurred()) SWIG_fail;
29207 }
29208 {
29209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29210 }
29211 return resultobj;
29212fail:
29213 return NULL;
29214}
29215
29216
29217SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29218 PyObject *resultobj = 0;
29219 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29220 long arg2 ;
29221 long arg3 ;
29222 int arg4 ;
29223 bool result;
29224 void *argp1 = 0 ;
29225 int res1 = 0 ;
29226 long val2 ;
29227 int ecode2 = 0 ;
29228 long val3 ;
29229 int ecode3 = 0 ;
29230 int val4 ;
29231 int ecode4 = 0 ;
29232 PyObject * obj0 = 0 ;
29233 PyObject * obj1 = 0 ;
29234 PyObject * obj2 = 0 ;
29235 PyObject * obj3 = 0 ;
29236 char * kwnames[] = {
29237 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29238 };
29239
29240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29242 if (!SWIG_IsOK(res1)) {
29243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29244 }
29245 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29246 ecode2 = SWIG_AsVal_long(obj1, &val2);
29247 if (!SWIG_IsOK(ecode2)) {
29248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29249 }
29250 arg2 = static_cast< long >(val2);
29251 ecode3 = SWIG_AsVal_long(obj2, &val3);
29252 if (!SWIG_IsOK(ecode3)) {
29253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29254 }
29255 arg3 = static_cast< long >(val3);
29256 ecode4 = SWIG_AsVal_int(obj3, &val4);
29257 if (!SWIG_IsOK(ecode4)) {
29258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29259 }
29260 arg4 = static_cast< int >(val4);
29261 {
29262 PyThreadState* __tstate = wxPyBeginAllowThreads();
29263 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29264 wxPyEndAllowThreads(__tstate);
29265 if (PyErr_Occurred()) SWIG_fail;
29266 }
29267 {
29268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29269 }
29270 return resultobj;
29271fail:
29272 return NULL;
29273}
29274
29275
29276SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29277 PyObject *resultobj = 0;
29278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29279 long arg2 ;
29280 wxString result;
29281 void *argp1 = 0 ;
29282 int res1 = 0 ;
29283 long val2 ;
29284 int ecode2 = 0 ;
29285 PyObject * obj0 = 0 ;
29286 PyObject * obj1 = 0 ;
29287 char * kwnames[] = {
29288 (char *) "self",(char *) "item", NULL
29289 };
29290
29291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29295 }
29296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29297 ecode2 = SWIG_AsVal_long(obj1, &val2);
29298 if (!SWIG_IsOK(ecode2)) {
29299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29300 }
29301 arg2 = static_cast< long >(val2);
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29305 wxPyEndAllowThreads(__tstate);
29306 if (PyErr_Occurred()) SWIG_fail;
29307 }
29308 {
29309#if wxUSE_UNICODE
29310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29311#else
29312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29313#endif
29314 }
29315 return resultobj;
29316fail:
29317 return NULL;
29318}
29319
29320
29321SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29322 PyObject *resultobj = 0;
29323 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29324 long arg2 ;
29325 wxString *arg3 = 0 ;
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 long val2 ;
29329 int ecode2 = 0 ;
29330 bool temp3 = false ;
29331 PyObject * obj0 = 0 ;
29332 PyObject * obj1 = 0 ;
29333 PyObject * obj2 = 0 ;
29334 char * kwnames[] = {
29335 (char *) "self",(char *) "item",(char *) "str", NULL
29336 };
29337
29338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29340 if (!SWIG_IsOK(res1)) {
29341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29342 }
29343 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29344 ecode2 = SWIG_AsVal_long(obj1, &val2);
29345 if (!SWIG_IsOK(ecode2)) {
29346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29347 }
29348 arg2 = static_cast< long >(val2);
29349 {
29350 arg3 = wxString_in_helper(obj2);
29351 if (arg3 == NULL) SWIG_fail;
29352 temp3 = true;
29353 }
29354 {
29355 PyThreadState* __tstate = wxPyBeginAllowThreads();
29356 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29357 wxPyEndAllowThreads(__tstate);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 }
29360 resultobj = SWIG_Py_Void();
29361 {
29362 if (temp3)
29363 delete arg3;
29364 }
29365 return resultobj;
29366fail:
29367 {
29368 if (temp3)
29369 delete arg3;
29370 }
29371 return NULL;
29372}
29373
29374
29375SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29376 PyObject *resultobj = 0;
29377 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29378 long arg2 ;
29379 long result;
29380 void *argp1 = 0 ;
29381 int res1 = 0 ;
29382 long val2 ;
29383 int ecode2 = 0 ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 char * kwnames[] = {
29387 (char *) "self",(char *) "item", NULL
29388 };
29389
29390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29392 if (!SWIG_IsOK(res1)) {
29393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29394 }
29395 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29396 ecode2 = SWIG_AsVal_long(obj1, &val2);
29397 if (!SWIG_IsOK(ecode2)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29399 }
29400 arg2 = static_cast< long >(val2);
29401 {
29402 PyThreadState* __tstate = wxPyBeginAllowThreads();
29403 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29404 wxPyEndAllowThreads(__tstate);
29405 if (PyErr_Occurred()) SWIG_fail;
29406 }
29407 resultobj = SWIG_From_long(static_cast< long >(result));
29408 return resultobj;
29409fail:
29410 return NULL;
29411}
29412
29413
29414SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29415 PyObject *resultobj = 0;
29416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29417 long arg2 ;
29418 long arg3 ;
29419 bool result;
29420 void *argp1 = 0 ;
29421 int res1 = 0 ;
29422 long val2 ;
29423 int ecode2 = 0 ;
29424 long val3 ;
29425 int ecode3 = 0 ;
29426 PyObject * obj0 = 0 ;
29427 PyObject * obj1 = 0 ;
29428 PyObject * obj2 = 0 ;
29429 char * kwnames[] = {
29430 (char *) "self",(char *) "item",(char *) "data", NULL
29431 };
29432
29433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29435 if (!SWIG_IsOK(res1)) {
29436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29437 }
29438 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29439 ecode2 = SWIG_AsVal_long(obj1, &val2);
29440 if (!SWIG_IsOK(ecode2)) {
29441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29442 }
29443 arg2 = static_cast< long >(val2);
29444 ecode3 = SWIG_AsVal_long(obj2, &val3);
29445 if (!SWIG_IsOK(ecode3)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29447 }
29448 arg3 = static_cast< long >(val3);
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 result = (bool)(arg1)->SetItemData(arg2,arg3);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 {
29456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29457 }
29458 return resultobj;
29459fail:
29460 return NULL;
29461}
29462
29463
29464SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29465 PyObject *resultobj = 0;
29466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29467 long arg2 ;
29468 wxPoint result;
29469 void *argp1 = 0 ;
29470 int res1 = 0 ;
29471 long val2 ;
29472 int ecode2 = 0 ;
29473 PyObject * obj0 = 0 ;
29474 PyObject * obj1 = 0 ;
29475 char * kwnames[] = {
29476 (char *) "self",(char *) "item", NULL
29477 };
29478
29479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29483 }
29484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29485 ecode2 = SWIG_AsVal_long(obj1, &val2);
29486 if (!SWIG_IsOK(ecode2)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29488 }
29489 arg2 = static_cast< long >(val2);
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29497 return resultobj;
29498fail:
29499 return NULL;
29500}
29501
29502
29503SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29506 long arg2 ;
29507 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29508 wxRect result;
29509 void *argp1 = 0 ;
29510 int res1 = 0 ;
29511 long val2 ;
29512 int ecode2 = 0 ;
29513 int val3 ;
29514 int ecode3 = 0 ;
29515 PyObject * obj0 = 0 ;
29516 PyObject * obj1 = 0 ;
29517 PyObject * obj2 = 0 ;
29518 char * kwnames[] = {
29519 (char *) "self",(char *) "item",(char *) "code", NULL
29520 };
29521
29522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29524 if (!SWIG_IsOK(res1)) {
29525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29526 }
29527 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29528 ecode2 = SWIG_AsVal_long(obj1, &val2);
29529 if (!SWIG_IsOK(ecode2)) {
29530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29531 }
29532 arg2 = static_cast< long >(val2);
29533 if (obj2) {
29534 ecode3 = SWIG_AsVal_int(obj2, &val3);
29535 if (!SWIG_IsOK(ecode3)) {
29536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29537 }
29538 arg3 = static_cast< int >(val3);
29539 }
29540 {
29541 PyThreadState* __tstate = wxPyBeginAllowThreads();
29542 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29543 wxPyEndAllowThreads(__tstate);
29544 if (PyErr_Occurred()) SWIG_fail;
29545 }
29546 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29547 return resultobj;
29548fail:
29549 return NULL;
29550}
29551
29552
29553SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29554 PyObject *resultobj = 0;
29555 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29556 long arg2 ;
29557 wxPoint *arg3 = 0 ;
29558 bool result;
29559 void *argp1 = 0 ;
29560 int res1 = 0 ;
29561 long val2 ;
29562 int ecode2 = 0 ;
29563 wxPoint temp3 ;
29564 PyObject * obj0 = 0 ;
29565 PyObject * obj1 = 0 ;
29566 PyObject * obj2 = 0 ;
29567 char * kwnames[] = {
29568 (char *) "self",(char *) "item",(char *) "pos", NULL
29569 };
29570
29571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29573 if (!SWIG_IsOK(res1)) {
29574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29575 }
29576 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29577 ecode2 = SWIG_AsVal_long(obj1, &val2);
29578 if (!SWIG_IsOK(ecode2)) {
29579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29580 }
29581 arg2 = static_cast< long >(val2);
29582 {
29583 arg3 = &temp3;
29584 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29585 }
29586 {
29587 PyThreadState* __tstate = wxPyBeginAllowThreads();
29588 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29589 wxPyEndAllowThreads(__tstate);
29590 if (PyErr_Occurred()) SWIG_fail;
29591 }
29592 {
29593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29594 }
29595 return resultobj;
29596fail:
29597 return NULL;
7e08d4ef
RD
29598}
29599
29600
554f62e9
RD
29601SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29602 PyObject *resultobj = 0;
29603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29604 int result;
29605 void *argp1 = 0 ;
29606 int res1 = 0 ;
29607 PyObject *swig_obj[1] ;
29608
29609 if (!args) SWIG_fail;
29610 swig_obj[0] = args;
29611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29612 if (!SWIG_IsOK(res1)) {
29613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29614 }
29615 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29616 {
29617 PyThreadState* __tstate = wxPyBeginAllowThreads();
29618 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29619 wxPyEndAllowThreads(__tstate);
29620 if (PyErr_Occurred()) SWIG_fail;
29621 }
29622 resultobj = SWIG_From_int(static_cast< int >(result));
29623 return resultobj;
29624fail:
29625 return NULL;
7e08d4ef
RD
29626}
29627
29628
554f62e9
RD
29629SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29630 PyObject *resultobj = 0;
29631 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29632 int result;
29633 void *argp1 = 0 ;
29634 int res1 = 0 ;
29635 PyObject *swig_obj[1] ;
29636
29637 if (!args) SWIG_fail;
29638 swig_obj[0] = args;
29639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29642 }
29643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29644 {
29645 PyThreadState* __tstate = wxPyBeginAllowThreads();
29646 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29647 wxPyEndAllowThreads(__tstate);
29648 if (PyErr_Occurred()) SWIG_fail;
29649 }
29650 resultobj = SWIG_From_int(static_cast< int >(result));
29651 return resultobj;
29652fail:
29653 return NULL;
7e08d4ef
RD
29654}
29655
29656
554f62e9
RD
29657SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29658 PyObject *resultobj = 0;
29659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29660 wxSize result;
29661 void *argp1 = 0 ;
29662 int res1 = 0 ;
29663 PyObject *swig_obj[1] ;
29664
29665 if (!args) SWIG_fail;
29666 swig_obj[0] = args;
29667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29668 if (!SWIG_IsOK(res1)) {
29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29670 }
29671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29672 {
29673 PyThreadState* __tstate = wxPyBeginAllowThreads();
29674 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29675 wxPyEndAllowThreads(__tstate);
29676 if (PyErr_Occurred()) SWIG_fail;
29677 }
29678 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29679 return resultobj;
29680fail:
29681 return NULL;
7e08d4ef
RD
29682}
29683
29684
554f62e9
RD
29685SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29686 PyObject *resultobj = 0;
29687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29688 int result;
29689 void *argp1 = 0 ;
29690 int res1 = 0 ;
29691 PyObject *swig_obj[1] ;
29692
29693 if (!args) SWIG_fail;
29694 swig_obj[0] = args;
29695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29696 if (!SWIG_IsOK(res1)) {
29697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29698 }
29699 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29700 {
29701 PyThreadState* __tstate = wxPyBeginAllowThreads();
29702 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29703 wxPyEndAllowThreads(__tstate);
29704 if (PyErr_Occurred()) SWIG_fail;
29705 }
29706 resultobj = SWIG_From_int(static_cast< int >(result));
29707 return resultobj;
29708fail:
29709 return NULL;
7e08d4ef
RD
29710}
29711
29712
554f62e9
RD
29713SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29714 PyObject *resultobj = 0;
29715 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29716 wxColour result;
29717 void *argp1 = 0 ;
29718 int res1 = 0 ;
29719 PyObject *swig_obj[1] ;
29720
29721 if (!args) SWIG_fail;
29722 swig_obj[0] = args;
29723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29724 if (!SWIG_IsOK(res1)) {
29725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29726 }
29727 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29728 {
29729 PyThreadState* __tstate = wxPyBeginAllowThreads();
29730 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29731 wxPyEndAllowThreads(__tstate);
29732 if (PyErr_Occurred()) SWIG_fail;
29733 }
29734 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29735 return resultobj;
29736fail:
29737 return NULL;
29738}
29739
29740
29741SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29742 PyObject *resultobj = 0;
29743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29744 wxColour *arg2 = 0 ;
29745 void *argp1 = 0 ;
29746 int res1 = 0 ;
29747 wxColour temp2 ;
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 char * kwnames[] = {
29751 (char *) "self",(char *) "col", NULL
29752 };
29753
29754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29756 if (!SWIG_IsOK(res1)) {
29757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29758 }
29759 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29760 {
29761 arg2 = &temp2;
29762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29763 }
29764 {
29765 PyThreadState* __tstate = wxPyBeginAllowThreads();
29766 (arg1)->SetTextColour((wxColour const &)*arg2);
29767 wxPyEndAllowThreads(__tstate);
29768 if (PyErr_Occurred()) SWIG_fail;
29769 }
29770 resultobj = SWIG_Py_Void();
29771 return resultobj;
29772fail:
29773 return NULL;
7e08d4ef
RD
29774}
29775
29776
554f62e9
RD
29777SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29778 PyObject *resultobj = 0;
29779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29780 long result;
29781 void *argp1 = 0 ;
29782 int res1 = 0 ;
29783 PyObject *swig_obj[1] ;
29784
29785 if (!args) SWIG_fail;
29786 swig_obj[0] = args;
29787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29788 if (!SWIG_IsOK(res1)) {
29789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29790 }
29791 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29792 {
29793 PyThreadState* __tstate = wxPyBeginAllowThreads();
29794 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29795 wxPyEndAllowThreads(__tstate);
29796 if (PyErr_Occurred()) SWIG_fail;
29797 }
29798 resultobj = SWIG_From_long(static_cast< long >(result));
29799 return resultobj;
29800fail:
29801 return NULL;
29802}
29803
29804
29805SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29806 PyObject *resultobj = 0;
29807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29808 long arg2 ;
29809 bool arg3 = (bool) true ;
29810 void *argp1 = 0 ;
29811 int res1 = 0 ;
29812 long val2 ;
29813 int ecode2 = 0 ;
29814 bool val3 ;
29815 int ecode3 = 0 ;
29816 PyObject * obj0 = 0 ;
29817 PyObject * obj1 = 0 ;
29818 PyObject * obj2 = 0 ;
29819 char * kwnames[] = {
29820 (char *) "self",(char *) "style",(char *) "add", NULL
29821 };
29822
29823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29825 if (!SWIG_IsOK(res1)) {
29826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29827 }
29828 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29829 ecode2 = SWIG_AsVal_long(obj1, &val2);
29830 if (!SWIG_IsOK(ecode2)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29832 }
29833 arg2 = static_cast< long >(val2);
29834 if (obj2) {
29835 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29836 if (!SWIG_IsOK(ecode3)) {
29837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29838 }
29839 arg3 = static_cast< bool >(val3);
29840 }
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 (arg1)->SetSingleStyle(arg2,arg3);
29844 wxPyEndAllowThreads(__tstate);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 resultobj = SWIG_Py_Void();
29848 return resultobj;
29849fail:
29850 return NULL;
29851}
29852
29853
29854SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29855 PyObject *resultobj = 0;
29856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29857 long arg2 ;
29858 int arg3 = (int) wxLIST_NEXT_ALL ;
29859 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29860 long result;
29861 void *argp1 = 0 ;
29862 int res1 = 0 ;
29863 long val2 ;
29864 int ecode2 = 0 ;
29865 int val3 ;
29866 int ecode3 = 0 ;
29867 int val4 ;
29868 int ecode4 = 0 ;
29869 PyObject * obj0 = 0 ;
29870 PyObject * obj1 = 0 ;
29871 PyObject * obj2 = 0 ;
29872 PyObject * obj3 = 0 ;
29873 char * kwnames[] = {
29874 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29875 };
29876
29877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29879 if (!SWIG_IsOK(res1)) {
29880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29881 }
29882 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29883 ecode2 = SWIG_AsVal_long(obj1, &val2);
29884 if (!SWIG_IsOK(ecode2)) {
29885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29886 }
29887 arg2 = static_cast< long >(val2);
29888 if (obj2) {
29889 ecode3 = SWIG_AsVal_int(obj2, &val3);
29890 if (!SWIG_IsOK(ecode3)) {
29891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29892 }
29893 arg3 = static_cast< int >(val3);
29894 }
29895 if (obj3) {
29896 ecode4 = SWIG_AsVal_int(obj3, &val4);
29897 if (!SWIG_IsOK(ecode4)) {
29898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29899 }
29900 arg4 = static_cast< int >(val4);
29901 }
29902 {
29903 PyThreadState* __tstate = wxPyBeginAllowThreads();
29904 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29905 wxPyEndAllowThreads(__tstate);
29906 if (PyErr_Occurred()) SWIG_fail;
29907 }
29908 resultobj = SWIG_From_long(static_cast< long >(result));
29909 return resultobj;
29910fail:
29911 return NULL;
29912}
29913
29914
29915SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29916 PyObject *resultobj = 0;
29917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29918 int arg2 ;
29919 wxImageList *result = 0 ;
29920 void *argp1 = 0 ;
29921 int res1 = 0 ;
29922 int val2 ;
29923 int ecode2 = 0 ;
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 char * kwnames[] = {
29927 (char *) "self",(char *) "which", NULL
29928 };
29929
29930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29932 if (!SWIG_IsOK(res1)) {
29933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29934 }
29935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29936 ecode2 = SWIG_AsVal_int(obj1, &val2);
29937 if (!SWIG_IsOK(ecode2)) {
29938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29939 }
29940 arg2 = static_cast< int >(val2);
29941 {
29942 PyThreadState* __tstate = wxPyBeginAllowThreads();
29943 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29944 wxPyEndAllowThreads(__tstate);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 {
29948 resultobj = wxPyMake_wxObject(result, (bool)0);
29949 }
29950 return resultobj;
29951fail:
29952 return NULL;
29953}
29954
29955
29956SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29957 PyObject *resultobj = 0;
29958 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29959 wxImageList *arg2 = (wxImageList *) 0 ;
29960 int arg3 ;
29961 void *argp1 = 0 ;
29962 int res1 = 0 ;
29963 void *argp2 = 0 ;
29964 int res2 = 0 ;
29965 int val3 ;
29966 int ecode3 = 0 ;
29967 PyObject * obj0 = 0 ;
29968 PyObject * obj1 = 0 ;
29969 PyObject * obj2 = 0 ;
29970 char * kwnames[] = {
29971 (char *) "self",(char *) "imageList",(char *) "which", NULL
29972 };
29973
29974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29976 if (!SWIG_IsOK(res1)) {
29977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29978 }
29979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29981 if (!SWIG_IsOK(res2)) {
29982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29983 }
29984 arg2 = reinterpret_cast< wxImageList * >(argp2);
29985 ecode3 = SWIG_AsVal_int(obj2, &val3);
29986 if (!SWIG_IsOK(ecode3)) {
29987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29988 }
29989 arg3 = static_cast< int >(val3);
29990 {
29991 PyThreadState* __tstate = wxPyBeginAllowThreads();
29992 (arg1)->SetImageList(arg2,arg3);
29993 wxPyEndAllowThreads(__tstate);
29994 if (PyErr_Occurred()) SWIG_fail;
29995 }
29996 resultobj = SWIG_Py_Void();
29997 return resultobj;
29998fail:
29999 return NULL;
30000}
30001
30002
30003SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30004 PyObject *resultobj = 0;
30005 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30006 wxImageList *arg2 = (wxImageList *) 0 ;
30007 int arg3 ;
30008 void *argp1 = 0 ;
30009 int res1 = 0 ;
30010 int res2 = 0 ;
30011 int val3 ;
30012 int ecode3 = 0 ;
30013 PyObject * obj0 = 0 ;
30014 PyObject * obj1 = 0 ;
30015 PyObject * obj2 = 0 ;
30016 char * kwnames[] = {
30017 (char *) "self",(char *) "imageList",(char *) "which", NULL
30018 };
30019
30020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30022 if (!SWIG_IsOK(res1)) {
30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30024 }
30025 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30026 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30027 if (!SWIG_IsOK(res2)) {
30028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30029 }
30030 ecode3 = SWIG_AsVal_int(obj2, &val3);
30031 if (!SWIG_IsOK(ecode3)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30033 }
30034 arg3 = static_cast< int >(val3);
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 (arg1)->AssignImageList(arg2,arg3);
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 resultobj = SWIG_Py_Void();
30042 return resultobj;
30043fail:
30044 return NULL;
7e08d4ef
RD
30045}
30046
30047
554f62e9
RD
30048SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30049 PyObject *resultobj = 0;
30050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30051 bool result;
30052 void *argp1 = 0 ;
30053 int res1 = 0 ;
30054 PyObject *swig_obj[1] ;
30055
30056 if (!args) SWIG_fail;
30057 swig_obj[0] = args;
30058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30059 if (!SWIG_IsOK(res1)) {
30060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30061 }
30062 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30063 {
30064 PyThreadState* __tstate = wxPyBeginAllowThreads();
30065 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30066 wxPyEndAllowThreads(__tstate);
30067 if (PyErr_Occurred()) SWIG_fail;
30068 }
30069 {
30070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30071 }
30072 return resultobj;
30073fail:
30074 return NULL;
7e08d4ef
RD
30075}
30076
30077
554f62e9
RD
30078SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30079 PyObject *resultobj = 0;
30080 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30081 bool result;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 PyObject *swig_obj[1] ;
30085
30086 if (!args) SWIG_fail;
30087 swig_obj[0] = args;
30088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30089 if (!SWIG_IsOK(res1)) {
30090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30091 }
30092 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30093 {
30094 PyThreadState* __tstate = wxPyBeginAllowThreads();
30095 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30096 wxPyEndAllowThreads(__tstate);
30097 if (PyErr_Occurred()) SWIG_fail;
30098 }
30099 {
30100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30101 }
30102 return resultobj;
30103fail:
30104 return NULL;
30105}
30106
30107
30108SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30109 PyObject *resultobj = 0;
30110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30111 long arg2 ;
30112 void *argp1 = 0 ;
30113 int res1 = 0 ;
30114 long val2 ;
30115 int ecode2 = 0 ;
30116 PyObject * obj0 = 0 ;
30117 PyObject * obj1 = 0 ;
30118 char * kwnames[] = {
30119 (char *) "self",(char *) "item", NULL
30120 };
30121
30122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30124 if (!SWIG_IsOK(res1)) {
30125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30126 }
30127 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30128 ecode2 = SWIG_AsVal_long(obj1, &val2);
30129 if (!SWIG_IsOK(ecode2)) {
30130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30131 }
30132 arg2 = static_cast< long >(val2);
30133 {
30134 PyThreadState* __tstate = wxPyBeginAllowThreads();
30135 (arg1)->RefreshItem(arg2);
30136 wxPyEndAllowThreads(__tstate);
30137 if (PyErr_Occurred()) SWIG_fail;
30138 }
30139 resultobj = SWIG_Py_Void();
30140 return resultobj;
30141fail:
30142 return NULL;
30143}
30144
30145
30146SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30147 PyObject *resultobj = 0;
30148 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30149 long arg2 ;
30150 long arg3 ;
30151 void *argp1 = 0 ;
30152 int res1 = 0 ;
30153 long val2 ;
30154 int ecode2 = 0 ;
30155 long val3 ;
30156 int ecode3 = 0 ;
30157 PyObject * obj0 = 0 ;
30158 PyObject * obj1 = 0 ;
30159 PyObject * obj2 = 0 ;
30160 char * kwnames[] = {
30161 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30162 };
30163
30164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30168 }
30169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30170 ecode2 = SWIG_AsVal_long(obj1, &val2);
30171 if (!SWIG_IsOK(ecode2)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30173 }
30174 arg2 = static_cast< long >(val2);
30175 ecode3 = SWIG_AsVal_long(obj2, &val3);
30176 if (!SWIG_IsOK(ecode3)) {
30177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30178 }
30179 arg3 = static_cast< long >(val3);
30180 {
30181 PyThreadState* __tstate = wxPyBeginAllowThreads();
30182 (arg1)->RefreshItems(arg2,arg3);
30183 wxPyEndAllowThreads(__tstate);
30184 if (PyErr_Occurred()) SWIG_fail;
30185 }
30186 resultobj = SWIG_Py_Void();
30187 return resultobj;
30188fail:
30189 return NULL;
30190}
30191
30192
30193SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30194 PyObject *resultobj = 0;
30195 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30196 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30197 bool result;
30198 void *argp1 = 0 ;
30199 int res1 = 0 ;
30200 int val2 ;
30201 int ecode2 = 0 ;
30202 PyObject * obj0 = 0 ;
30203 PyObject * obj1 = 0 ;
30204 char * kwnames[] = {
30205 (char *) "self",(char *) "flag", NULL
30206 };
30207
30208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30210 if (!SWIG_IsOK(res1)) {
30211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30212 }
30213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30214 if (obj1) {
30215 ecode2 = SWIG_AsVal_int(obj1, &val2);
30216 if (!SWIG_IsOK(ecode2)) {
30217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30218 }
30219 arg2 = static_cast< int >(val2);
30220 }
30221 {
30222 PyThreadState* __tstate = wxPyBeginAllowThreads();
30223 result = (bool)(arg1)->Arrange(arg2);
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 {
30228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30229 }
30230 return resultobj;
30231fail:
30232 return NULL;
30233}
30234
30235
30236SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj = 0;
30238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30239 long arg2 ;
30240 bool result;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 long val2 ;
30244 int ecode2 = 0 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 char * kwnames[] = {
30248 (char *) "self",(char *) "item", NULL
30249 };
30250
30251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30253 if (!SWIG_IsOK(res1)) {
30254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30255 }
30256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30257 ecode2 = SWIG_AsVal_long(obj1, &val2);
30258 if (!SWIG_IsOK(ecode2)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30260 }
30261 arg2 = static_cast< long >(val2);
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = (bool)(arg1)->DeleteItem(arg2);
30265 wxPyEndAllowThreads(__tstate);
30266 if (PyErr_Occurred()) SWIG_fail;
30267 }
30268 {
30269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30270 }
30271 return resultobj;
30272fail:
30273 return NULL;
7e08d4ef
RD
30274}
30275
30276
554f62e9
RD
30277SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30278 PyObject *resultobj = 0;
30279 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30280 bool result;
30281 void *argp1 = 0 ;
30282 int res1 = 0 ;
30283 PyObject *swig_obj[1] ;
30284
30285 if (!args) SWIG_fail;
30286 swig_obj[0] = args;
30287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30288 if (!SWIG_IsOK(res1)) {
30289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30290 }
30291 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30292 {
30293 PyThreadState* __tstate = wxPyBeginAllowThreads();
30294 result = (bool)(arg1)->DeleteAllItems();
30295 wxPyEndAllowThreads(__tstate);
30296 if (PyErr_Occurred()) SWIG_fail;
30297 }
30298 {
30299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30300 }
30301 return resultobj;
30302fail:
30303 return NULL;
30304}
30305
30306
30307SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30308 PyObject *resultobj = 0;
30309 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30310 int arg2 ;
30311 bool result;
30312 void *argp1 = 0 ;
30313 int res1 = 0 ;
30314 int val2 ;
30315 int ecode2 = 0 ;
30316 PyObject * obj0 = 0 ;
30317 PyObject * obj1 = 0 ;
30318 char * kwnames[] = {
30319 (char *) "self",(char *) "col", NULL
30320 };
30321
30322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30324 if (!SWIG_IsOK(res1)) {
30325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30326 }
30327 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30328 ecode2 = SWIG_AsVal_int(obj1, &val2);
30329 if (!SWIG_IsOK(ecode2)) {
30330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30331 }
30332 arg2 = static_cast< int >(val2);
30333 {
30334 PyThreadState* __tstate = wxPyBeginAllowThreads();
30335 result = (bool)(arg1)->DeleteColumn(arg2);
30336 wxPyEndAllowThreads(__tstate);
30337 if (PyErr_Occurred()) SWIG_fail;
30338 }
30339 {
30340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30341 }
30342 return resultobj;
30343fail:
30344 return NULL;
7e08d4ef
RD
30345}
30346
30347
554f62e9
RD
30348SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30349 PyObject *resultobj = 0;
30350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30351 bool result;
30352 void *argp1 = 0 ;
30353 int res1 = 0 ;
30354 PyObject *swig_obj[1] ;
30355
30356 if (!args) SWIG_fail;
30357 swig_obj[0] = args;
30358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30359 if (!SWIG_IsOK(res1)) {
30360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30361 }
30362 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30363 {
30364 PyThreadState* __tstate = wxPyBeginAllowThreads();
30365 result = (bool)(arg1)->DeleteAllColumns();
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 {
30370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30371 }
30372 return resultobj;
30373fail:
30374 return NULL;
7e08d4ef
RD
30375}
30376
30377
554f62e9
RD
30378SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30379 PyObject *resultobj = 0;
30380 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30381 void *argp1 = 0 ;
30382 int res1 = 0 ;
30383 PyObject *swig_obj[1] ;
30384
30385 if (!args) SWIG_fail;
30386 swig_obj[0] = args;
30387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30388 if (!SWIG_IsOK(res1)) {
30389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30390 }
30391 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30392 {
30393 PyThreadState* __tstate = wxPyBeginAllowThreads();
30394 (arg1)->ClearAll();
30395 wxPyEndAllowThreads(__tstate);
30396 if (PyErr_Occurred()) SWIG_fail;
30397 }
30398 resultobj = SWIG_Py_Void();
30399 return resultobj;
30400fail:
30401 return NULL;
30402}
30403
30404
30405SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30406 PyObject *resultobj = 0;
30407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30408 long arg2 ;
30409 wxTextCtrl *result = 0 ;
30410 void *argp1 = 0 ;
30411 int res1 = 0 ;
30412 long val2 ;
30413 int ecode2 = 0 ;
30414 PyObject * obj0 = 0 ;
30415 PyObject * obj1 = 0 ;
30416 char * kwnames[] = {
30417 (char *) "self",(char *) "item", NULL
30418 };
30419
30420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30422 if (!SWIG_IsOK(res1)) {
30423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30424 }
30425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30426 ecode2 = SWIG_AsVal_long(obj1, &val2);
30427 if (!SWIG_IsOK(ecode2)) {
30428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30429 }
30430 arg2 = static_cast< long >(val2);
30431 {
30432 PyThreadState* __tstate = wxPyBeginAllowThreads();
30433 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30434 wxPyEndAllowThreads(__tstate);
30435 if (PyErr_Occurred()) SWIG_fail;
30436 }
30437 {
30438 resultobj = wxPyMake_wxObject(result, 0);
30439 }
30440 return resultobj;
30441fail:
30442 return NULL;
30443}
30444
30445
30446SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30447 PyObject *resultobj = 0;
30448 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30449 bool arg2 ;
30450 bool result;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 bool val2 ;
30454 int ecode2 = 0 ;
30455 PyObject * obj0 = 0 ;
30456 PyObject * obj1 = 0 ;
30457 char * kwnames[] = {
30458 (char *) "self",(char *) "cancel", NULL
30459 };
30460
30461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30463 if (!SWIG_IsOK(res1)) {
30464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30465 }
30466 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30467 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30468 if (!SWIG_IsOK(ecode2)) {
30469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30470 }
30471 arg2 = static_cast< bool >(val2);
30472 {
30473 PyThreadState* __tstate = wxPyBeginAllowThreads();
30474 result = (bool)(arg1)->EndEditLabel(arg2);
30475 wxPyEndAllowThreads(__tstate);
30476 if (PyErr_Occurred()) SWIG_fail;
30477 }
30478 {
30479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30480 }
30481 return resultobj;
30482fail:
30483 return NULL;
30484}
30485
30486
30487SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30488 PyObject *resultobj = 0;
30489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30490 long arg2 ;
30491 bool result;
30492 void *argp1 = 0 ;
30493 int res1 = 0 ;
30494 long val2 ;
30495 int ecode2 = 0 ;
30496 PyObject * obj0 = 0 ;
30497 PyObject * obj1 = 0 ;
30498 char * kwnames[] = {
30499 (char *) "self",(char *) "item", NULL
30500 };
30501
30502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30504 if (!SWIG_IsOK(res1)) {
30505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30506 }
30507 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30508 ecode2 = SWIG_AsVal_long(obj1, &val2);
30509 if (!SWIG_IsOK(ecode2)) {
30510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30511 }
30512 arg2 = static_cast< long >(val2);
30513 {
30514 PyThreadState* __tstate = wxPyBeginAllowThreads();
30515 result = (bool)(arg1)->EnsureVisible(arg2);
30516 wxPyEndAllowThreads(__tstate);
30517 if (PyErr_Occurred()) SWIG_fail;
30518 }
30519 {
30520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30521 }
30522 return resultobj;
30523fail:
30524 return NULL;
30525}
30526
30527
30528SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30529 PyObject *resultobj = 0;
30530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30531 long arg2 ;
30532 wxString *arg3 = 0 ;
30533 bool arg4 = (bool) false ;
30534 long result;
30535 void *argp1 = 0 ;
30536 int res1 = 0 ;
30537 long val2 ;
30538 int ecode2 = 0 ;
30539 bool temp3 = false ;
30540 bool val4 ;
30541 int ecode4 = 0 ;
30542 PyObject * obj0 = 0 ;
30543 PyObject * obj1 = 0 ;
30544 PyObject * obj2 = 0 ;
30545 PyObject * obj3 = 0 ;
30546 char * kwnames[] = {
30547 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30548 };
30549
30550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30552 if (!SWIG_IsOK(res1)) {
30553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30554 }
30555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30556 ecode2 = SWIG_AsVal_long(obj1, &val2);
30557 if (!SWIG_IsOK(ecode2)) {
30558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30559 }
30560 arg2 = static_cast< long >(val2);
30561 {
30562 arg3 = wxString_in_helper(obj2);
30563 if (arg3 == NULL) SWIG_fail;
30564 temp3 = true;
30565 }
30566 if (obj3) {
30567 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30568 if (!SWIG_IsOK(ecode4)) {
30569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30570 }
30571 arg4 = static_cast< bool >(val4);
30572 }
30573 {
30574 PyThreadState* __tstate = wxPyBeginAllowThreads();
30575 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30576 wxPyEndAllowThreads(__tstate);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 resultobj = SWIG_From_long(static_cast< long >(result));
30580 {
30581 if (temp3)
30582 delete arg3;
30583 }
30584 return resultobj;
30585fail:
30586 {
30587 if (temp3)
30588 delete arg3;
30589 }
30590 return NULL;
30591}
30592
30593
30594SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30595 PyObject *resultobj = 0;
30596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30597 long arg2 ;
30598 long arg3 ;
30599 long result;
30600 void *argp1 = 0 ;
30601 int res1 = 0 ;
30602 long val2 ;
30603 int ecode2 = 0 ;
30604 long val3 ;
30605 int ecode3 = 0 ;
30606 PyObject * obj0 = 0 ;
30607 PyObject * obj1 = 0 ;
30608 PyObject * obj2 = 0 ;
30609 char * kwnames[] = {
30610 (char *) "self",(char *) "start",(char *) "data", NULL
30611 };
30612
30613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30615 if (!SWIG_IsOK(res1)) {
30616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30617 }
30618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30619 ecode2 = SWIG_AsVal_long(obj1, &val2);
30620 if (!SWIG_IsOK(ecode2)) {
30621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30622 }
30623 arg2 = static_cast< long >(val2);
30624 ecode3 = SWIG_AsVal_long(obj2, &val3);
30625 if (!SWIG_IsOK(ecode3)) {
30626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30627 }
30628 arg3 = static_cast< long >(val3);
30629 {
30630 PyThreadState* __tstate = wxPyBeginAllowThreads();
30631 result = (long)(arg1)->FindItem(arg2,arg3);
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 resultobj = SWIG_From_long(static_cast< long >(result));
30636 return resultobj;
30637fail:
30638 return NULL;
30639}
30640
30641
30642SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj = 0;
30644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30645 long arg2 ;
30646 wxPoint *arg3 = 0 ;
30647 int arg4 ;
30648 long result;
30649 void *argp1 = 0 ;
30650 int res1 = 0 ;
30651 long val2 ;
30652 int ecode2 = 0 ;
30653 wxPoint temp3 ;
30654 int val4 ;
30655 int ecode4 = 0 ;
30656 PyObject * obj0 = 0 ;
30657 PyObject * obj1 = 0 ;
30658 PyObject * obj2 = 0 ;
30659 PyObject * obj3 = 0 ;
30660 char * kwnames[] = {
30661 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30662 };
30663
30664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30666 if (!SWIG_IsOK(res1)) {
30667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30668 }
30669 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30670 ecode2 = SWIG_AsVal_long(obj1, &val2);
30671 if (!SWIG_IsOK(ecode2)) {
30672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30673 }
30674 arg2 = static_cast< long >(val2);
30675 {
30676 arg3 = &temp3;
30677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30678 }
30679 ecode4 = SWIG_AsVal_int(obj3, &val4);
30680 if (!SWIG_IsOK(ecode4)) {
30681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30682 }
30683 arg4 = static_cast< int >(val4);
30684 {
30685 PyThreadState* __tstate = wxPyBeginAllowThreads();
30686 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30687 wxPyEndAllowThreads(__tstate);
30688 if (PyErr_Occurred()) SWIG_fail;
30689 }
30690 resultobj = SWIG_From_long(static_cast< long >(result));
30691 return resultobj;
30692fail:
30693 return NULL;
30694}
30695
30696
30697SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30698 PyObject *resultobj = 0;
30699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30700 wxPoint *arg2 = 0 ;
30701 int *arg3 = 0 ;
30702 long result;
30703 void *argp1 = 0 ;
30704 int res1 = 0 ;
30705 wxPoint temp2 ;
30706 int temp3 ;
30707 int res3 = SWIG_TMPOBJ ;
30708 PyObject * obj0 = 0 ;
30709 PyObject * obj1 = 0 ;
30710 char * kwnames[] = {
30711 (char *) "self",(char *) "point", NULL
30712 };
30713
30714 arg3 = &temp3;
30715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30717 if (!SWIG_IsOK(res1)) {
30718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30719 }
30720 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30721 {
30722 arg2 = &temp2;
30723 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30724 }
30725 {
30726 PyThreadState* __tstate = wxPyBeginAllowThreads();
30727 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30728 wxPyEndAllowThreads(__tstate);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 resultobj = SWIG_From_long(static_cast< long >(result));
30732 if (SWIG_IsTmpObj(res3)) {
30733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30734 } else {
30735 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30737 }
30738 return resultobj;
30739fail:
30740 return NULL;
30741}
30742
30743
30744SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30745 PyObject *resultobj = 0;
30746 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30747 wxListItem *arg2 = 0 ;
30748 long result;
30749 void *argp1 = 0 ;
30750 int res1 = 0 ;
30751 void *argp2 = 0 ;
30752 int res2 = 0 ;
30753 PyObject * obj0 = 0 ;
30754 PyObject * obj1 = 0 ;
30755 char * kwnames[] = {
30756 (char *) "self",(char *) "info", NULL
30757 };
30758
30759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30761 if (!SWIG_IsOK(res1)) {
30762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30763 }
30764 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30766 if (!SWIG_IsOK(res2)) {
30767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30768 }
30769 if (!argp2) {
30770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30771 }
30772 arg2 = reinterpret_cast< wxListItem * >(argp2);
30773 {
30774 PyThreadState* __tstate = wxPyBeginAllowThreads();
30775 result = (long)(arg1)->InsertItem(*arg2);
30776 wxPyEndAllowThreads(__tstate);
30777 if (PyErr_Occurred()) SWIG_fail;
30778 }
30779 resultobj = SWIG_From_long(static_cast< long >(result));
30780 return resultobj;
30781fail:
30782 return NULL;
30783}
30784
30785
30786SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30787 PyObject *resultobj = 0;
30788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30789 long arg2 ;
30790 wxString *arg3 = 0 ;
30791 int arg4 = (int) -1 ;
30792 long result;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 long val2 ;
30796 int ecode2 = 0 ;
30797 bool temp3 = false ;
30798 int val4 ;
30799 int ecode4 = 0 ;
30800 PyObject * obj0 = 0 ;
30801 PyObject * obj1 = 0 ;
30802 PyObject * obj2 = 0 ;
30803 PyObject * obj3 = 0 ;
30804 char * kwnames[] = {
30805 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30806 };
30807
30808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30810 if (!SWIG_IsOK(res1)) {
30811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30812 }
30813 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30814 ecode2 = SWIG_AsVal_long(obj1, &val2);
30815 if (!SWIG_IsOK(ecode2)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30817 }
30818 arg2 = static_cast< long >(val2);
30819 {
30820 arg3 = wxString_in_helper(obj2);
30821 if (arg3 == NULL) SWIG_fail;
30822 temp3 = true;
30823 }
30824 if (obj3) {
30825 ecode4 = SWIG_AsVal_int(obj3, &val4);
30826 if (!SWIG_IsOK(ecode4)) {
30827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30828 }
30829 arg4 = static_cast< int >(val4);
30830 }
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 resultobj = SWIG_From_long(static_cast< long >(result));
30838 {
30839 if (temp3)
30840 delete arg3;
30841 }
30842 return resultobj;
30843fail:
30844 {
30845 if (temp3)
30846 delete arg3;
30847 }
30848 return NULL;
30849}
30850
30851
30852SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30853 PyObject *resultobj = 0;
30854 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30855 long arg2 ;
30856 int arg3 ;
30857 long result;
30858 void *argp1 = 0 ;
30859 int res1 = 0 ;
30860 long val2 ;
30861 int ecode2 = 0 ;
30862 int val3 ;
30863 int ecode3 = 0 ;
30864 PyObject * obj0 = 0 ;
30865 PyObject * obj1 = 0 ;
30866 PyObject * obj2 = 0 ;
30867 char * kwnames[] = {
30868 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30869 };
30870
30871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30873 if (!SWIG_IsOK(res1)) {
30874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30875 }
30876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30877 ecode2 = SWIG_AsVal_long(obj1, &val2);
30878 if (!SWIG_IsOK(ecode2)) {
30879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30880 }
30881 arg2 = static_cast< long >(val2);
30882 ecode3 = SWIG_AsVal_int(obj2, &val3);
30883 if (!SWIG_IsOK(ecode3)) {
30884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30885 }
30886 arg3 = static_cast< int >(val3);
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (long)(arg1)->InsertItem(arg2,arg3);
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 resultobj = SWIG_From_long(static_cast< long >(result));
30894 return resultobj;
30895fail:
30896 return NULL;
30897}
30898
30899
30900SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = 0;
30902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30903 long arg2 ;
30904 wxString *arg3 = 0 ;
30905 int arg4 ;
30906 long result;
30907 void *argp1 = 0 ;
30908 int res1 = 0 ;
30909 long val2 ;
30910 int ecode2 = 0 ;
30911 bool temp3 = false ;
30912 int val4 ;
30913 int ecode4 = 0 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 PyObject * obj2 = 0 ;
30917 PyObject * obj3 = 0 ;
30918 char * kwnames[] = {
30919 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30920 };
30921
30922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30924 if (!SWIG_IsOK(res1)) {
30925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30926 }
30927 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30928 ecode2 = SWIG_AsVal_long(obj1, &val2);
30929 if (!SWIG_IsOK(ecode2)) {
30930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30931 }
30932 arg2 = static_cast< long >(val2);
30933 {
30934 arg3 = wxString_in_helper(obj2);
30935 if (arg3 == NULL) SWIG_fail;
30936 temp3 = true;
30937 }
30938 ecode4 = SWIG_AsVal_int(obj3, &val4);
30939 if (!SWIG_IsOK(ecode4)) {
30940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30941 }
30942 arg4 = static_cast< int >(val4);
30943 {
30944 PyThreadState* __tstate = wxPyBeginAllowThreads();
30945 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30946 wxPyEndAllowThreads(__tstate);
30947 if (PyErr_Occurred()) SWIG_fail;
30948 }
30949 resultobj = SWIG_From_long(static_cast< long >(result));
30950 {
30951 if (temp3)
30952 delete arg3;
30953 }
30954 return resultobj;
30955fail:
30956 {
30957 if (temp3)
30958 delete arg3;
30959 }
30960 return NULL;
30961}
30962
30963
30964SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30965 PyObject *resultobj = 0;
30966 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30967 long arg2 ;
30968 wxListItem *arg3 = 0 ;
30969 long result;
30970 void *argp1 = 0 ;
30971 int res1 = 0 ;
30972 long val2 ;
30973 int ecode2 = 0 ;
30974 void *argp3 = 0 ;
30975 int res3 = 0 ;
30976 PyObject * obj0 = 0 ;
30977 PyObject * obj1 = 0 ;
30978 PyObject * obj2 = 0 ;
30979 char * kwnames[] = {
30980 (char *) "self",(char *) "col",(char *) "info", NULL
30981 };
30982
30983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30985 if (!SWIG_IsOK(res1)) {
30986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30987 }
30988 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30989 ecode2 = SWIG_AsVal_long(obj1, &val2);
30990 if (!SWIG_IsOK(ecode2)) {
30991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30992 }
30993 arg2 = static_cast< long >(val2);
30994 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30995 if (!SWIG_IsOK(res3)) {
30996 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30997 }
30998 if (!argp3) {
30999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31000 }
31001 arg3 = reinterpret_cast< wxListItem * >(argp3);
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 resultobj = SWIG_From_long(static_cast< long >(result));
31009 return resultobj;
31010fail:
31011 return NULL;
31012}
31013
31014
31015SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31016 PyObject *resultobj = 0;
31017 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31018 long arg2 ;
31019 wxString *arg3 = 0 ;
31020 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31021 int arg5 = (int) -1 ;
31022 long result;
31023 void *argp1 = 0 ;
31024 int res1 = 0 ;
31025 long val2 ;
31026 int ecode2 = 0 ;
31027 bool temp3 = false ;
31028 int val4 ;
31029 int ecode4 = 0 ;
31030 int val5 ;
31031 int ecode5 = 0 ;
31032 PyObject * obj0 = 0 ;
31033 PyObject * obj1 = 0 ;
31034 PyObject * obj2 = 0 ;
31035 PyObject * obj3 = 0 ;
31036 PyObject * obj4 = 0 ;
31037 char * kwnames[] = {
31038 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31039 };
31040
31041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31043 if (!SWIG_IsOK(res1)) {
31044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31045 }
31046 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31047 ecode2 = SWIG_AsVal_long(obj1, &val2);
31048 if (!SWIG_IsOK(ecode2)) {
31049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31050 }
31051 arg2 = static_cast< long >(val2);
31052 {
31053 arg3 = wxString_in_helper(obj2);
31054 if (arg3 == NULL) SWIG_fail;
31055 temp3 = true;
31056 }
31057 if (obj3) {
31058 ecode4 = SWIG_AsVal_int(obj3, &val4);
31059 if (!SWIG_IsOK(ecode4)) {
31060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31061 }
31062 arg4 = static_cast< int >(val4);
31063 }
31064 if (obj4) {
31065 ecode5 = SWIG_AsVal_int(obj4, &val5);
31066 if (!SWIG_IsOK(ecode5)) {
31067 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31068 }
31069 arg5 = static_cast< int >(val5);
31070 }
31071 {
31072 PyThreadState* __tstate = wxPyBeginAllowThreads();
31073 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31074 wxPyEndAllowThreads(__tstate);
31075 if (PyErr_Occurred()) SWIG_fail;
31076 }
31077 resultobj = SWIG_From_long(static_cast< long >(result));
31078 {
31079 if (temp3)
31080 delete arg3;
31081 }
31082 return resultobj;
31083fail:
31084 {
31085 if (temp3)
31086 delete arg3;
31087 }
31088 return NULL;
31089}
31090
31091
31092SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31093 PyObject *resultobj = 0;
31094 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31095 long arg2 ;
31096 void *argp1 = 0 ;
31097 int res1 = 0 ;
31098 long val2 ;
31099 int ecode2 = 0 ;
31100 PyObject * obj0 = 0 ;
31101 PyObject * obj1 = 0 ;
31102 char * kwnames[] = {
31103 (char *) "self",(char *) "count", NULL
31104 };
31105
31106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31108 if (!SWIG_IsOK(res1)) {
31109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31110 }
31111 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31112 ecode2 = SWIG_AsVal_long(obj1, &val2);
31113 if (!SWIG_IsOK(ecode2)) {
31114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31115 }
31116 arg2 = static_cast< long >(val2);
31117 {
31118 PyThreadState* __tstate = wxPyBeginAllowThreads();
31119 (arg1)->SetItemCount(arg2);
31120 wxPyEndAllowThreads(__tstate);
31121 if (PyErr_Occurred()) SWIG_fail;
31122 }
31123 resultobj = SWIG_Py_Void();
31124 return resultobj;
31125fail:
31126 return NULL;
31127}
31128
31129
31130SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31133 int arg2 ;
31134 int arg3 ;
31135 bool result;
31136 void *argp1 = 0 ;
31137 int res1 = 0 ;
31138 int val2 ;
31139 int ecode2 = 0 ;
31140 int val3 ;
31141 int ecode3 = 0 ;
31142 PyObject * obj0 = 0 ;
31143 PyObject * obj1 = 0 ;
31144 PyObject * obj2 = 0 ;
31145 char * kwnames[] = {
31146 (char *) "self",(char *) "dx",(char *) "dy", NULL
31147 };
31148
31149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31151 if (!SWIG_IsOK(res1)) {
31152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31153 }
31154 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31155 ecode2 = SWIG_AsVal_int(obj1, &val2);
31156 if (!SWIG_IsOK(ecode2)) {
31157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31158 }
31159 arg2 = static_cast< int >(val2);
31160 ecode3 = SWIG_AsVal_int(obj2, &val3);
31161 if (!SWIG_IsOK(ecode3)) {
31162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31163 }
31164 arg3 = static_cast< int >(val3);
31165 {
31166 PyThreadState* __tstate = wxPyBeginAllowThreads();
31167 result = (bool)(arg1)->ScrollList(arg2,arg3);
31168 wxPyEndAllowThreads(__tstate);
31169 if (PyErr_Occurred()) SWIG_fail;
31170 }
31171 {
31172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31173 }
31174 return resultobj;
31175fail:
31176 return NULL;
31177}
31178
31179
31180SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj = 0;
31182 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31183 long arg2 ;
31184 wxColour *arg3 = 0 ;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 long val2 ;
31188 int ecode2 = 0 ;
31189 wxColour temp3 ;
31190 PyObject * obj0 = 0 ;
31191 PyObject * obj1 = 0 ;
31192 PyObject * obj2 = 0 ;
31193 char * kwnames[] = {
31194 (char *) "self",(char *) "item",(char *) "col", NULL
31195 };
31196
31197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31199 if (!SWIG_IsOK(res1)) {
31200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31201 }
31202 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31203 ecode2 = SWIG_AsVal_long(obj1, &val2);
31204 if (!SWIG_IsOK(ecode2)) {
31205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31206 }
31207 arg2 = static_cast< long >(val2);
31208 {
31209 arg3 = &temp3;
31210 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31211 }
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 resultobj = SWIG_Py_Void();
31219 return resultobj;
31220fail:
31221 return NULL;
31222}
31223
31224
31225SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31226 PyObject *resultobj = 0;
31227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31228 long arg2 ;
31229 wxColour result;
31230 void *argp1 = 0 ;
31231 int res1 = 0 ;
31232 long val2 ;
31233 int ecode2 = 0 ;
31234 PyObject * obj0 = 0 ;
31235 PyObject * obj1 = 0 ;
31236 char * kwnames[] = {
31237 (char *) "self",(char *) "item", NULL
31238 };
31239
31240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31242 if (!SWIG_IsOK(res1)) {
31243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31244 }
31245 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31246 ecode2 = SWIG_AsVal_long(obj1, &val2);
31247 if (!SWIG_IsOK(ecode2)) {
31248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31249 }
31250 arg2 = static_cast< long >(val2);
31251 {
31252 PyThreadState* __tstate = wxPyBeginAllowThreads();
31253 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31254 wxPyEndAllowThreads(__tstate);
31255 if (PyErr_Occurred()) SWIG_fail;
31256 }
31257 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31258 return resultobj;
31259fail:
31260 return NULL;
31261}
31262
31263
31264SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj = 0;
31266 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31267 long arg2 ;
31268 wxColour *arg3 = 0 ;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 long val2 ;
31272 int ecode2 = 0 ;
31273 wxColour temp3 ;
31274 PyObject * obj0 = 0 ;
31275 PyObject * obj1 = 0 ;
31276 PyObject * obj2 = 0 ;
31277 char * kwnames[] = {
31278 (char *) "self",(char *) "item",(char *) "col", NULL
31279 };
31280
31281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31283 if (!SWIG_IsOK(res1)) {
31284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31285 }
31286 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31287 ecode2 = SWIG_AsVal_long(obj1, &val2);
31288 if (!SWIG_IsOK(ecode2)) {
31289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31290 }
31291 arg2 = static_cast< long >(val2);
31292 {
31293 arg3 = &temp3;
31294 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31295 }
31296 {
31297 PyThreadState* __tstate = wxPyBeginAllowThreads();
31298 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31299 wxPyEndAllowThreads(__tstate);
31300 if (PyErr_Occurred()) SWIG_fail;
31301 }
31302 resultobj = SWIG_Py_Void();
31303 return resultobj;
31304fail:
31305 return NULL;
31306}
31307
31308
31309SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31310 PyObject *resultobj = 0;
31311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31312 long arg2 ;
31313 wxColour result;
31314 void *argp1 = 0 ;
31315 int res1 = 0 ;
31316 long val2 ;
31317 int ecode2 = 0 ;
31318 PyObject * obj0 = 0 ;
31319 PyObject * obj1 = 0 ;
31320 char * kwnames[] = {
31321 (char *) "self",(char *) "item", NULL
31322 };
31323
31324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31326 if (!SWIG_IsOK(res1)) {
31327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31328 }
31329 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31330 ecode2 = SWIG_AsVal_long(obj1, &val2);
31331 if (!SWIG_IsOK(ecode2)) {
31332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31333 }
31334 arg2 = static_cast< long >(val2);
31335 {
31336 PyThreadState* __tstate = wxPyBeginAllowThreads();
31337 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31338 wxPyEndAllowThreads(__tstate);
31339 if (PyErr_Occurred()) SWIG_fail;
31340 }
31341 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31342 return resultobj;
31343fail:
31344 return NULL;
31345}
31346
31347
31348SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31349 PyObject *resultobj = 0;
31350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31351 long arg2 ;
31352 wxFont *arg3 = 0 ;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 long val2 ;
31356 int ecode2 = 0 ;
31357 void *argp3 = 0 ;
31358 int res3 = 0 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 PyObject * obj2 = 0 ;
31362 char * kwnames[] = {
31363 (char *) "self",(char *) "item",(char *) "f", NULL
31364 };
31365
31366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31368 if (!SWIG_IsOK(res1)) {
31369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31370 }
31371 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31372 ecode2 = SWIG_AsVal_long(obj1, &val2);
31373 if (!SWIG_IsOK(ecode2)) {
31374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31375 }
31376 arg2 = static_cast< long >(val2);
31377 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31378 if (!SWIG_IsOK(res3)) {
31379 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31380 }
31381 if (!argp3) {
31382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31383 }
31384 arg3 = reinterpret_cast< wxFont * >(argp3);
31385 {
31386 PyThreadState* __tstate = wxPyBeginAllowThreads();
31387 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 resultobj = SWIG_Py_Void();
31392 return resultobj;
31393fail:
31394 return NULL;
31395}
31396
31397
31398SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31399 PyObject *resultobj = 0;
31400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31401 long arg2 ;
31402 wxFont result;
31403 void *argp1 = 0 ;
31404 int res1 = 0 ;
31405 long val2 ;
31406 int ecode2 = 0 ;
31407 PyObject * obj0 = 0 ;
31408 PyObject * obj1 = 0 ;
31409 char * kwnames[] = {
31410 (char *) "self",(char *) "item", NULL
31411 };
31412
31413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31415 if (!SWIG_IsOK(res1)) {
31416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31417 }
31418 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31419 ecode2 = SWIG_AsVal_long(obj1, &val2);
31420 if (!SWIG_IsOK(ecode2)) {
31421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31422 }
31423 arg2 = static_cast< long >(val2);
31424 {
31425 PyThreadState* __tstate = wxPyBeginAllowThreads();
31426 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31427 wxPyEndAllowThreads(__tstate);
31428 if (PyErr_Occurred()) SWIG_fail;
31429 }
31430 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31431 return resultobj;
31432fail:
31433 return NULL;
31434}
31435
31436
31437SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj = 0;
31439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31440 PyObject *arg2 = (PyObject *) 0 ;
31441 bool result;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 PyObject * obj0 = 0 ;
31445 PyObject * obj1 = 0 ;
31446 char * kwnames[] = {
31447 (char *) "self",(char *) "func", NULL
31448 };
31449
31450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31452 if (!SWIG_IsOK(res1)) {
31453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31454 }
31455 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31456 arg2 = obj1;
31457 {
31458 PyThreadState* __tstate = wxPyBeginAllowThreads();
31459 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31460 wxPyEndAllowThreads(__tstate);
31461 if (PyErr_Occurred()) SWIG_fail;
31462 }
31463 {
31464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31465 }
31466 return resultobj;
31467fail:
31468 return NULL;
1fbf26be
RD
31469}
31470
31471
554f62e9
RD
31472SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31473 PyObject *resultobj = 0;
31474 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31475 wxWindow *result = 0 ;
31476 void *argp1 = 0 ;
31477 int res1 = 0 ;
31478 PyObject *swig_obj[1] ;
31479
31480 if (!args) SWIG_fail;
31481 swig_obj[0] = args;
31482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31483 if (!SWIG_IsOK(res1)) {
31484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31485 }
31486 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31487 {
31488 PyThreadState* __tstate = wxPyBeginAllowThreads();
31489 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31490 wxPyEndAllowThreads(__tstate);
31491 if (PyErr_Occurred()) SWIG_fail;
31492 }
31493 {
31494 resultobj = wxPyMake_wxObject(result, 0);
31495 }
31496 return resultobj;
31497fail:
31498 return NULL;
31499}
31500
31501
31502SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31503 PyObject *resultobj = 0;
31504 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31505 SwigValueWrapper<wxVisualAttributes > result;
31506 int val1 ;
31507 int ecode1 = 0 ;
31508 PyObject * obj0 = 0 ;
31509 char * kwnames[] = {
31510 (char *) "variant", NULL
31511 };
31512
31513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31514 if (obj0) {
31515 ecode1 = SWIG_AsVal_int(obj0, &val1);
31516 if (!SWIG_IsOK(ecode1)) {
31517 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31518 }
31519 arg1 = static_cast< wxWindowVariant >(val1);
31520 }
31521 {
31522 if (!wxPyCheckForApp()) SWIG_fail;
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31529 return resultobj;
31530fail:
31531 return NULL;
31532}
31533
31534
31535SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31536 PyObject *obj;
31537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31538 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31539 return SWIG_Py_Void();
31540}
31541
31542SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31543 return SWIG_Python_InitShadowInstance(args);
31544}
31545
31546SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31547 PyObject *resultobj = 0;
31548 wxWindow *arg1 = (wxWindow *) 0 ;
31549 int arg2 = (int) -1 ;
31550 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31551 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31552 wxSize const &arg4_defvalue = wxDefaultSize ;
31553 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31554 long arg5 = (long) wxLC_REPORT ;
31555 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31556 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31557 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31558 wxString *arg7 = (wxString *) &arg7_defvalue ;
31559 wxListView *result = 0 ;
31560 void *argp1 = 0 ;
31561 int res1 = 0 ;
31562 int val2 ;
31563 int ecode2 = 0 ;
31564 wxPoint temp3 ;
31565 wxSize temp4 ;
31566 long val5 ;
31567 int ecode5 = 0 ;
31568 void *argp6 = 0 ;
31569 int res6 = 0 ;
31570 bool temp7 = false ;
31571 PyObject * obj0 = 0 ;
31572 PyObject * obj1 = 0 ;
31573 PyObject * obj2 = 0 ;
31574 PyObject * obj3 = 0 ;
31575 PyObject * obj4 = 0 ;
31576 PyObject * obj5 = 0 ;
31577 PyObject * obj6 = 0 ;
31578 char * kwnames[] = {
31579 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31580 };
31581
31582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31584 if (!SWIG_IsOK(res1)) {
31585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31586 }
31587 arg1 = reinterpret_cast< wxWindow * >(argp1);
31588 if (obj1) {
31589 ecode2 = SWIG_AsVal_int(obj1, &val2);
31590 if (!SWIG_IsOK(ecode2)) {
31591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31592 }
31593 arg2 = static_cast< int >(val2);
31594 }
31595 if (obj2) {
31596 {
31597 arg3 = &temp3;
31598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 31599 }
554f62e9
RD
31600 }
31601 if (obj3) {
31602 {
31603 arg4 = &temp4;
31604 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31605 }
554f62e9
RD
31606 }
31607 if (obj4) {
31608 ecode5 = SWIG_AsVal_long(obj4, &val5);
31609 if (!SWIG_IsOK(ecode5)) {
31610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31611 }
31612 arg5 = static_cast< long >(val5);
31613 }
31614 if (obj5) {
31615 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31616 if (!SWIG_IsOK(res6)) {
31617 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 31618 }
554f62e9
RD
31619 if (!argp6) {
31620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 31621 }
554f62e9
RD
31622 arg6 = reinterpret_cast< wxValidator * >(argp6);
31623 }
31624 if (obj6) {
d55e5bfc 31625 {
554f62e9
RD
31626 arg7 = wxString_in_helper(obj6);
31627 if (arg7 == NULL) SWIG_fail;
31628 temp7 = true;
d55e5bfc 31629 }
554f62e9
RD
31630 }
31631 {
31632 if (!wxPyCheckForApp()) SWIG_fail;
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31635 wxPyEndAllowThreads(__tstate);
31636 if (PyErr_Occurred()) SWIG_fail;
31637 }
31638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31639 {
31640 if (temp7)
31641 delete arg7;
31642 }
31643 return resultobj;
31644fail:
31645 {
31646 if (temp7)
31647 delete arg7;
31648 }
31649 return NULL;
d55e5bfc
RD
31650}
31651
31652
554f62e9
RD
31653SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31654 PyObject *resultobj = 0;
31655 wxListView *result = 0 ;
31656
31657 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31658 {
31659 if (!wxPyCheckForApp()) SWIG_fail;
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 result = (wxListView *)new wxListView();
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31666 return resultobj;
31667fail:
31668 return NULL;
31669}
31670
31671
31672SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxListView *arg1 = (wxListView *) 0 ;
31675 wxWindow *arg2 = (wxWindow *) 0 ;
31676 int arg3 = (int) -1 ;
31677 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31678 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31679 wxSize const &arg5_defvalue = wxDefaultSize ;
31680 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31681 long arg6 = (long) wxLC_REPORT ;
31682 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31683 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31684 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31685 wxString *arg8 = (wxString *) &arg8_defvalue ;
31686 bool result;
31687 void *argp1 = 0 ;
31688 int res1 = 0 ;
31689 void *argp2 = 0 ;
31690 int res2 = 0 ;
31691 int val3 ;
31692 int ecode3 = 0 ;
31693 wxPoint temp4 ;
31694 wxSize temp5 ;
31695 long val6 ;
31696 int ecode6 = 0 ;
31697 void *argp7 = 0 ;
31698 int res7 = 0 ;
31699 bool temp8 = false ;
31700 PyObject * obj0 = 0 ;
31701 PyObject * obj1 = 0 ;
31702 PyObject * obj2 = 0 ;
31703 PyObject * obj3 = 0 ;
31704 PyObject * obj4 = 0 ;
31705 PyObject * obj5 = 0 ;
31706 PyObject * obj6 = 0 ;
31707 PyObject * obj7 = 0 ;
31708 char * kwnames[] = {
31709 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31710 };
31711
31712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31714 if (!SWIG_IsOK(res1)) {
31715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31716 }
31717 arg1 = reinterpret_cast< wxListView * >(argp1);
31718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31719 if (!SWIG_IsOK(res2)) {
31720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31721 }
31722 arg2 = reinterpret_cast< wxWindow * >(argp2);
31723 if (obj2) {
31724 ecode3 = SWIG_AsVal_int(obj2, &val3);
31725 if (!SWIG_IsOK(ecode3)) {
31726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31727 }
31728 arg3 = static_cast< int >(val3);
31729 }
31730 if (obj3) {
093d3ff1 31731 {
554f62e9
RD
31732 arg4 = &temp4;
31733 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
ae8162c8 31734 }
554f62e9
RD
31735 }
31736 if (obj4) {
31737 {
31738 arg5 = &temp5;
31739 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
ae8162c8 31740 }
554f62e9
RD
31741 }
31742 if (obj5) {
31743 ecode6 = SWIG_AsVal_long(obj5, &val6);
31744 if (!SWIG_IsOK(ecode6)) {
31745 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31746 }
31747 arg6 = static_cast< long >(val6);
31748 }
31749 if (obj6) {
31750 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31751 if (!SWIG_IsOK(res7)) {
31752 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 31753 }
554f62e9
RD
31754 if (!argp7) {
31755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 31756 }
554f62e9
RD
31757 arg7 = reinterpret_cast< wxValidator * >(argp7);
31758 }
31759 if (obj7) {
ae8162c8 31760 {
554f62e9
RD
31761 arg8 = wxString_in_helper(obj7);
31762 if (arg8 == NULL) SWIG_fail;
31763 temp8 = true;
ae8162c8 31764 }
554f62e9
RD
31765 }
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31769 wxPyEndAllowThreads(__tstate);
31770 if (PyErr_Occurred()) SWIG_fail;
31771 }
31772 {
31773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31774 }
31775 {
31776 if (temp8)
31777 delete arg8;
31778 }
31779 return resultobj;
31780fail:
31781 {
31782 if (temp8)
31783 delete arg8;
31784 }
31785 return NULL;
31786}
31787
31788
31789SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31790 PyObject *resultobj = 0;
31791 wxListView *arg1 = (wxListView *) 0 ;
31792 long arg2 ;
31793 bool arg3 = (bool) true ;
31794 void *argp1 = 0 ;
31795 int res1 = 0 ;
31796 long val2 ;
31797 int ecode2 = 0 ;
31798 bool val3 ;
31799 int ecode3 = 0 ;
31800 PyObject * obj0 = 0 ;
31801 PyObject * obj1 = 0 ;
31802 PyObject * obj2 = 0 ;
31803 char * kwnames[] = {
31804 (char *) "self",(char *) "n",(char *) "on", NULL
31805 };
31806
31807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31809 if (!SWIG_IsOK(res1)) {
31810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31811 }
31812 arg1 = reinterpret_cast< wxListView * >(argp1);
31813 ecode2 = SWIG_AsVal_long(obj1, &val2);
31814 if (!SWIG_IsOK(ecode2)) {
31815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31816 }
31817 arg2 = static_cast< long >(val2);
31818 if (obj2) {
31819 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31820 if (!SWIG_IsOK(ecode3)) {
31821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31822 }
31823 arg3 = static_cast< bool >(val3);
31824 }
31825 {
31826 PyThreadState* __tstate = wxPyBeginAllowThreads();
31827 (arg1)->Select(arg2,arg3);
31828 wxPyEndAllowThreads(__tstate);
31829 if (PyErr_Occurred()) SWIG_fail;
31830 }
31831 resultobj = SWIG_Py_Void();
31832 return resultobj;
31833fail:
31834 return NULL;
31835}
31836
31837
31838SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31839 PyObject *resultobj = 0;
31840 wxListView *arg1 = (wxListView *) 0 ;
31841 long arg2 ;
31842 void *argp1 = 0 ;
31843 int res1 = 0 ;
31844 long val2 ;
31845 int ecode2 = 0 ;
31846 PyObject * obj0 = 0 ;
31847 PyObject * obj1 = 0 ;
31848 char * kwnames[] = {
31849 (char *) "self",(char *) "index", NULL
31850 };
31851
31852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31854 if (!SWIG_IsOK(res1)) {
31855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31856 }
31857 arg1 = reinterpret_cast< wxListView * >(argp1);
31858 ecode2 = SWIG_AsVal_long(obj1, &val2);
31859 if (!SWIG_IsOK(ecode2)) {
31860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31861 }
31862 arg2 = static_cast< long >(val2);
31863 {
31864 PyThreadState* __tstate = wxPyBeginAllowThreads();
31865 (arg1)->Focus(arg2);
31866 wxPyEndAllowThreads(__tstate);
31867 if (PyErr_Occurred()) SWIG_fail;
31868 }
31869 resultobj = SWIG_Py_Void();
31870 return resultobj;
31871fail:
31872 return NULL;
ae8162c8
RD
31873}
31874
31875
554f62e9
RD
31876SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31877 PyObject *resultobj = 0;
31878 wxListView *arg1 = (wxListView *) 0 ;
31879 long result;
31880 void *argp1 = 0 ;
31881 int res1 = 0 ;
31882 PyObject *swig_obj[1] ;
31883
31884 if (!args) SWIG_fail;
31885 swig_obj[0] = args;
31886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31887 if (!SWIG_IsOK(res1)) {
31888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31889 }
31890 arg1 = reinterpret_cast< wxListView * >(argp1);
31891 {
31892 PyThreadState* __tstate = wxPyBeginAllowThreads();
31893 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31894 wxPyEndAllowThreads(__tstate);
31895 if (PyErr_Occurred()) SWIG_fail;
31896 }
31897 resultobj = SWIG_From_long(static_cast< long >(result));
31898 return resultobj;
31899fail:
31900 return NULL;
31901}
31902
31903
31904SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31905 PyObject *resultobj = 0;
31906 wxListView *arg1 = (wxListView *) 0 ;
31907 long arg2 ;
31908 long result;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 long val2 ;
31912 int ecode2 = 0 ;
31913 PyObject * obj0 = 0 ;
31914 PyObject * obj1 = 0 ;
31915 char * kwnames[] = {
31916 (char *) "self",(char *) "item", NULL
31917 };
31918
31919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31921 if (!SWIG_IsOK(res1)) {
31922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31923 }
31924 arg1 = reinterpret_cast< wxListView * >(argp1);
31925 ecode2 = SWIG_AsVal_long(obj1, &val2);
31926 if (!SWIG_IsOK(ecode2)) {
31927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31928 }
31929 arg2 = static_cast< long >(val2);
31930 {
31931 PyThreadState* __tstate = wxPyBeginAllowThreads();
31932 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31933 wxPyEndAllowThreads(__tstate);
31934 if (PyErr_Occurred()) SWIG_fail;
31935 }
31936 resultobj = SWIG_From_long(static_cast< long >(result));
31937 return resultobj;
31938fail:
31939 return NULL;
ae8162c8
RD
31940}
31941
31942
554f62e9
RD
31943SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31944 PyObject *resultobj = 0;
31945 wxListView *arg1 = (wxListView *) 0 ;
31946 long result;
31947 void *argp1 = 0 ;
31948 int res1 = 0 ;
31949 PyObject *swig_obj[1] ;
31950
31951 if (!args) SWIG_fail;
31952 swig_obj[0] = args;
31953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31954 if (!SWIG_IsOK(res1)) {
31955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31956 }
31957 arg1 = reinterpret_cast< wxListView * >(argp1);
31958 {
31959 PyThreadState* __tstate = wxPyBeginAllowThreads();
31960 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31961 wxPyEndAllowThreads(__tstate);
31962 if (PyErr_Occurred()) SWIG_fail;
31963 }
31964 resultobj = SWIG_From_long(static_cast< long >(result));
31965 return resultobj;
31966fail:
31967 return NULL;
31968}
31969
31970
31971SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31972 PyObject *resultobj = 0;
31973 wxListView *arg1 = (wxListView *) 0 ;
31974 long arg2 ;
31975 bool result;
31976 void *argp1 = 0 ;
31977 int res1 = 0 ;
31978 long val2 ;
31979 int ecode2 = 0 ;
31980 PyObject * obj0 = 0 ;
31981 PyObject * obj1 = 0 ;
31982 char * kwnames[] = {
31983 (char *) "self",(char *) "index", NULL
31984 };
31985
31986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31988 if (!SWIG_IsOK(res1)) {
31989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31990 }
31991 arg1 = reinterpret_cast< wxListView * >(argp1);
31992 ecode2 = SWIG_AsVal_long(obj1, &val2);
31993 if (!SWIG_IsOK(ecode2)) {
31994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31995 }
31996 arg2 = static_cast< long >(val2);
31997 {
31998 PyThreadState* __tstate = wxPyBeginAllowThreads();
31999 result = (bool)(arg1)->IsSelected(arg2);
32000 wxPyEndAllowThreads(__tstate);
32001 if (PyErr_Occurred()) SWIG_fail;
32002 }
32003 {
32004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32005 }
32006 return resultobj;
32007fail:
32008 return NULL;
32009}
32010
32011
32012SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32013 PyObject *resultobj = 0;
32014 wxListView *arg1 = (wxListView *) 0 ;
32015 int arg2 ;
32016 int arg3 ;
32017 void *argp1 = 0 ;
32018 int res1 = 0 ;
32019 int val2 ;
32020 int ecode2 = 0 ;
32021 int val3 ;
32022 int ecode3 = 0 ;
32023 PyObject * obj0 = 0 ;
32024 PyObject * obj1 = 0 ;
32025 PyObject * obj2 = 0 ;
32026 char * kwnames[] = {
32027 (char *) "self",(char *) "col",(char *) "image", NULL
32028 };
32029
32030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32032 if (!SWIG_IsOK(res1)) {
32033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32034 }
32035 arg1 = reinterpret_cast< wxListView * >(argp1);
32036 ecode2 = SWIG_AsVal_int(obj1, &val2);
32037 if (!SWIG_IsOK(ecode2)) {
32038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32039 }
32040 arg2 = static_cast< int >(val2);
32041 ecode3 = SWIG_AsVal_int(obj2, &val3);
32042 if (!SWIG_IsOK(ecode3)) {
32043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32044 }
32045 arg3 = static_cast< int >(val3);
32046 {
32047 PyThreadState* __tstate = wxPyBeginAllowThreads();
32048 (arg1)->SetColumnImage(arg2,arg3);
32049 wxPyEndAllowThreads(__tstate);
32050 if (PyErr_Occurred()) SWIG_fail;
32051 }
32052 resultobj = SWIG_Py_Void();
32053 return resultobj;
32054fail:
32055 return NULL;
32056}
32057
32058
32059SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32060 PyObject *resultobj = 0;
32061 wxListView *arg1 = (wxListView *) 0 ;
32062 int arg2 ;
32063 void *argp1 = 0 ;
32064 int res1 = 0 ;
32065 int val2 ;
32066 int ecode2 = 0 ;
32067 PyObject * obj0 = 0 ;
32068 PyObject * obj1 = 0 ;
32069 char * kwnames[] = {
32070 (char *) "self",(char *) "col", NULL
32071 };
32072
32073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32075 if (!SWIG_IsOK(res1)) {
32076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32077 }
32078 arg1 = reinterpret_cast< wxListView * >(argp1);
32079 ecode2 = SWIG_AsVal_int(obj1, &val2);
32080 if (!SWIG_IsOK(ecode2)) {
32081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32082 }
32083 arg2 = static_cast< int >(val2);
32084 {
32085 PyThreadState* __tstate = wxPyBeginAllowThreads();
32086 (arg1)->ClearColumnImage(arg2);
32087 wxPyEndAllowThreads(__tstate);
32088 if (PyErr_Occurred()) SWIG_fail;
32089 }
32090 resultobj = SWIG_Py_Void();
32091 return resultobj;
32092fail:
32093 return NULL;
ae8162c8
RD
32094}
32095
32096
554f62e9
RD
32097SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32098 PyObject *obj;
32099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32100 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32101 return SWIG_Py_Void();
70b7a5fe
RD
32102}
32103
554f62e9
RD
32104SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32105 return SWIG_Python_InitShadowInstance(args);
ae8162c8
RD
32106}
32107
554f62e9
RD
32108SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32109 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32110 return 1;
ae8162c8
RD
32111}
32112
32113
554f62e9
RD
32114SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32115 PyObject *pyobj = 0;
32116
32117 {
32118#if wxUSE_UNICODE
32119 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32120#else
32121 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32122#endif
32123 }
32124 return pyobj;
d55e5bfc
RD
32125}
32126
32127
554f62e9
RD
32128SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32129 PyObject *resultobj = 0;
32130 wxTreeItemId *result = 0 ;
32131
32132 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32133 {
32134 PyThreadState* __tstate = wxPyBeginAllowThreads();
32135 result = (wxTreeItemId *)new wxTreeItemId();
32136 wxPyEndAllowThreads(__tstate);
32137 if (PyErr_Occurred()) SWIG_fail;
32138 }
32139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32140 return resultobj;
32141fail:
32142 return NULL;
d55e5bfc
RD
32143}
32144
32145
554f62e9
RD
32146SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32147 PyObject *resultobj = 0;
32148 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32149 void *argp1 = 0 ;
32150 int res1 = 0 ;
32151 PyObject *swig_obj[1] ;
32152
32153 if (!args) SWIG_fail;
32154 swig_obj[0] = args;
32155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32156 if (!SWIG_IsOK(res1)) {
32157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32158 }
32159 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32160 {
32161 PyThreadState* __tstate = wxPyBeginAllowThreads();
32162 delete arg1;
d55e5bfc 32163
554f62e9
RD
32164 wxPyEndAllowThreads(__tstate);
32165 if (PyErr_Occurred()) SWIG_fail;
32166 }
32167 resultobj = SWIG_Py_Void();
32168 return resultobj;
32169fail:
32170 return NULL;
d55e5bfc
RD
32171}
32172
32173
554f62e9
RD
32174SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32175 PyObject *resultobj = 0;
32176 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32177 bool result;
32178 void *argp1 = 0 ;
32179 int res1 = 0 ;
32180 PyObject *swig_obj[1] ;
32181
32182 if (!args) SWIG_fail;
32183 swig_obj[0] = args;
32184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32185 if (!SWIG_IsOK(res1)) {
32186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32187 }
32188 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32189 {
32190 PyThreadState* __tstate = wxPyBeginAllowThreads();
32191 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32192 wxPyEndAllowThreads(__tstate);
32193 if (PyErr_Occurred()) SWIG_fail;
32194 }
32195 {
32196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32197 }
32198 return resultobj;
32199fail:
32200 return NULL;
32201}
32202
32203
32204SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32205 PyObject *resultobj = 0;
32206 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32207 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32208 bool result;
32209 void *argp1 = 0 ;
32210 int res1 = 0 ;
32211 void *argp2 = 0 ;
32212 int res2 = 0 ;
32213 PyObject * obj0 = 0 ;
32214 PyObject * obj1 = 0 ;
32215 char * kwnames[] = {
32216 (char *) "self",(char *) "other", NULL
32217 };
32218
32219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32221 if (!SWIG_IsOK(res1)) {
32222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32223 }
32224 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32226 if (!SWIG_IsOK(res2)) {
32227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32228 }
32229 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32230 {
32231 PyThreadState* __tstate = wxPyBeginAllowThreads();
32232 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32233 wxPyEndAllowThreads(__tstate);
32234 if (PyErr_Occurred()) SWIG_fail;
32235 }
32236 {
32237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32238 }
32239 return resultobj;
32240fail:
32241 return NULL;
32242}
32243
32244
32245SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32246 PyObject *resultobj = 0;
32247 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32248 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32249 bool result;
32250 void *argp1 = 0 ;
32251 int res1 = 0 ;
32252 void *argp2 = 0 ;
32253 int res2 = 0 ;
32254 PyObject * obj0 = 0 ;
32255 PyObject * obj1 = 0 ;
32256 char * kwnames[] = {
32257 (char *) "self",(char *) "other", NULL
32258 };
32259
32260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32262 if (!SWIG_IsOK(res1)) {
32263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32264 }
32265 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32267 if (!SWIG_IsOK(res2)) {
32268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32269 }
32270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32271 {
32272 PyThreadState* __tstate = wxPyBeginAllowThreads();
32273 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32274 wxPyEndAllowThreads(__tstate);
32275 if (PyErr_Occurred()) SWIG_fail;
32276 }
32277 {
32278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32279 }
32280 return resultobj;
32281fail:
32282 return NULL;
d55e5bfc
RD
32283}
32284
32285
554f62e9
RD
32286SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32287 PyObject *resultobj = 0;
32288 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32289 void *arg2 = (void *) 0 ;
32290 void *argp1 = 0 ;
32291 int res1 = 0 ;
32292 int res2 ;
32293 PyObject *swig_obj[2] ;
32294
32295 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32297 if (!SWIG_IsOK(res1)) {
32298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32299 }
32300 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32301 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32302 if (!SWIG_IsOK(res2)) {
32303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32304 }
32305 if (arg1) (arg1)->m_pItem = arg2;
32306
32307 resultobj = SWIG_Py_Void();
32308 return resultobj;
32309fail:
32310 return NULL;
d55e5bfc
RD
32311}
32312
32313
554f62e9
RD
32314SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32315 PyObject *resultobj = 0;
32316 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32317 void *result = 0 ;
32318 void *argp1 = 0 ;
32319 int res1 = 0 ;
32320 PyObject *swig_obj[1] ;
32321
32322 if (!args) SWIG_fail;
32323 swig_obj[0] = args;
32324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32325 if (!SWIG_IsOK(res1)) {
32326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32327 }
32328 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32329 result = (void *) ((arg1)->m_pItem);
32330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32331 return resultobj;
32332fail:
32333 return NULL;
d55e5bfc
RD
32334}
32335
32336
554f62e9
RD
32337SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32338 PyObject *obj;
32339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32340 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32341 return SWIG_Py_Void();
d55e5bfc
RD
32342}
32343
554f62e9
RD
32344SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32345 return SWIG_Python_InitShadowInstance(args);
32346}
d55e5bfc 32347
554f62e9
RD
32348SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32349 PyObject *resultobj = 0;
32350 PyObject *arg1 = (PyObject *) NULL ;
32351 wxPyTreeItemData *result = 0 ;
32352 PyObject * obj0 = 0 ;
32353 char * kwnames[] = {
32354 (char *) "obj", NULL
32355 };
32356
32357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32358 if (obj0) {
32359 arg1 = obj0;
32360 }
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32368 return resultobj;
32369fail:
32370 return NULL;
d55e5bfc
RD
32371}
32372
32373
554f62e9
RD
32374SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32375 PyObject *resultobj = 0;
32376 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32377 void *argp1 = 0 ;
32378 int res1 = 0 ;
32379 PyObject *swig_obj[1] ;
32380
32381 if (!args) SWIG_fail;
32382 swig_obj[0] = args;
32383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32384 if (!SWIG_IsOK(res1)) {
32385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32386 }
32387 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32388 {
32389 PyThreadState* __tstate = wxPyBeginAllowThreads();
32390 delete arg1;
d55e5bfc 32391
554f62e9
RD
32392 wxPyEndAllowThreads(__tstate);
32393 if (PyErr_Occurred()) SWIG_fail;
32394 }
32395 resultobj = SWIG_Py_Void();
32396 return resultobj;
32397fail:
32398 return NULL;
d55e5bfc
RD
32399}
32400
32401
554f62e9
RD
32402SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32403 PyObject *resultobj = 0;
32404 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32405 PyObject *result = 0 ;
32406 void *argp1 = 0 ;
32407 int res1 = 0 ;
32408 PyObject *swig_obj[1] ;
32409
32410 if (!args) SWIG_fail;
32411 swig_obj[0] = args;
32412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32413 if (!SWIG_IsOK(res1)) {
32414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32415 }
32416 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32417 {
32418 PyThreadState* __tstate = wxPyBeginAllowThreads();
32419 result = (PyObject *)(arg1)->GetData();
32420 wxPyEndAllowThreads(__tstate);
32421 if (PyErr_Occurred()) SWIG_fail;
32422 }
32423 resultobj = result;
32424 return resultobj;
32425fail:
32426 return NULL;
32427}
32428
32429
32430SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32431 PyObject *resultobj = 0;
32432 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32433 PyObject *arg2 = (PyObject *) 0 ;
32434 void *argp1 = 0 ;
32435 int res1 = 0 ;
32436 PyObject * obj0 = 0 ;
32437 PyObject * obj1 = 0 ;
32438 char * kwnames[] = {
32439 (char *) "self",(char *) "obj", NULL
32440 };
32441
32442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32444 if (!SWIG_IsOK(res1)) {
32445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32446 }
32447 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32448 arg2 = obj1;
32449 {
32450 PyThreadState* __tstate = wxPyBeginAllowThreads();
32451 (arg1)->SetData(arg2);
32452 wxPyEndAllowThreads(__tstate);
32453 if (PyErr_Occurred()) SWIG_fail;
32454 }
32455 resultobj = SWIG_Py_Void();
32456 return resultobj;
32457fail:
32458 return NULL;
d55e5bfc
RD
32459}
32460
32461
554f62e9
RD
32462SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32463 PyObject *resultobj = 0;
32464 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32465 wxTreeItemId *result = 0 ;
32466 void *argp1 = 0 ;
32467 int res1 = 0 ;
32468 PyObject *swig_obj[1] ;
32469
32470 if (!args) SWIG_fail;
32471 swig_obj[0] = args;
32472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32473 if (!SWIG_IsOK(res1)) {
32474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32475 }
32476 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32479 {
554f62e9
RD
32480 wxTreeItemId const &_result_ref = (arg1)->GetId();
32481 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32482 }
554f62e9
RD
32483 wxPyEndAllowThreads(__tstate);
32484 if (PyErr_Occurred()) SWIG_fail;
32485 }
32486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32487 return resultobj;
32488fail:
32489 return NULL;
32490}
32491
32492
32493SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32494 PyObject *resultobj = 0;
32495 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32496 wxTreeItemId *arg2 = 0 ;
32497 void *argp1 = 0 ;
32498 int res1 = 0 ;
32499 void *argp2 = 0 ;
32500 int res2 = 0 ;
32501 PyObject * obj0 = 0 ;
32502 PyObject * obj1 = 0 ;
32503 char * kwnames[] = {
32504 (char *) "self",(char *) "id", NULL
32505 };
32506
32507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32509 if (!SWIG_IsOK(res1)) {
32510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32511 }
32512 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32514 if (!SWIG_IsOK(res2)) {
32515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32516 }
32517 if (!argp2) {
32518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32519 }
32520 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32521 {
32522 PyThreadState* __tstate = wxPyBeginAllowThreads();
32523 (arg1)->SetId((wxTreeItemId const &)*arg2);
32524 wxPyEndAllowThreads(__tstate);
32525 if (PyErr_Occurred()) SWIG_fail;
32526 }
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
d55e5bfc
RD
32531}
32532
32533
554f62e9
RD
32534SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *resultobj = 0;
32536 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32537 void *argp1 = 0 ;
32538 int res1 = 0 ;
32539 PyObject *swig_obj[1] ;
32540
32541 if (!args) SWIG_fail;
32542 swig_obj[0] = args;
32543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32546 }
32547 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32548 {
32549 PyThreadState* __tstate = wxPyBeginAllowThreads();
32550 wxPyTreeItemData_Destroy(arg1);
32551 wxPyEndAllowThreads(__tstate);
32552 if (PyErr_Occurred()) SWIG_fail;
32553 }
32554 resultobj = SWIG_Py_Void();
32555 return resultobj;
32556fail:
32557 return NULL;
d55e5bfc
RD
32558}
32559
32560
554f62e9
RD
32561SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32562 PyObject *obj;
32563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32564 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32565 return SWIG_Py_Void();
d55e5bfc
RD
32566}
32567
554f62e9
RD
32568SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32569 return SWIG_Python_InitShadowInstance(args);
32570}
d55e5bfc 32571
554f62e9
RD
32572SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32573 PyObject *resultobj = 0;
32574 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32575 int arg2 = (int) 0 ;
32576 wxTreeEvent *result = 0 ;
32577 int val1 ;
32578 int ecode1 = 0 ;
32579 int val2 ;
32580 int ecode2 = 0 ;
32581 PyObject * obj0 = 0 ;
32582 PyObject * obj1 = 0 ;
32583 char * kwnames[] = {
32584 (char *) "commandType",(char *) "id", NULL
32585 };
32586
32587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32588 if (obj0) {
32589 ecode1 = SWIG_AsVal_int(obj0, &val1);
32590 if (!SWIG_IsOK(ecode1)) {
32591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32592 }
32593 arg1 = static_cast< wxEventType >(val1);
32594 }
32595 if (obj1) {
32596 ecode2 = SWIG_AsVal_int(obj1, &val2);
32597 if (!SWIG_IsOK(ecode2)) {
32598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32599 }
32600 arg2 = static_cast< int >(val2);
32601 }
32602 {
32603 PyThreadState* __tstate = wxPyBeginAllowThreads();
32604 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32605 wxPyEndAllowThreads(__tstate);
32606 if (PyErr_Occurred()) SWIG_fail;
32607 }
32608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32609 return resultobj;
32610fail:
32611 return NULL;
d55e5bfc
RD
32612}
32613
32614
554f62e9
RD
32615SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32616 PyObject *resultobj = 0;
32617 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32618 wxTreeItemId result;
32619 void *argp1 = 0 ;
32620 int res1 = 0 ;
32621 PyObject *swig_obj[1] ;
32622
32623 if (!args) SWIG_fail;
32624 swig_obj[0] = args;
32625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32626 if (!SWIG_IsOK(res1)) {
32627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32628 }
32629 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32630 {
32631 PyThreadState* __tstate = wxPyBeginAllowThreads();
32632 result = ((wxTreeEvent const *)arg1)->GetItem();
32633 wxPyEndAllowThreads(__tstate);
32634 if (PyErr_Occurred()) SWIG_fail;
32635 }
32636 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32637 return resultobj;
32638fail:
32639 return NULL;
32640}
32641
32642
32643SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32644 PyObject *resultobj = 0;
32645 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32646 wxTreeItemId *arg2 = 0 ;
32647 void *argp1 = 0 ;
32648 int res1 = 0 ;
32649 void *argp2 = 0 ;
32650 int res2 = 0 ;
32651 PyObject * obj0 = 0 ;
32652 PyObject * obj1 = 0 ;
32653 char * kwnames[] = {
32654 (char *) "self",(char *) "item", NULL
32655 };
32656
32657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32659 if (!SWIG_IsOK(res1)) {
32660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32661 }
32662 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32664 if (!SWIG_IsOK(res2)) {
32665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32666 }
32667 if (!argp2) {
32668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32669 }
32670 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_Py_Void();
32678 return resultobj;
32679fail:
32680 return NULL;
d55e5bfc
RD
32681}
32682
32683
554f62e9
RD
32684SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32685 PyObject *resultobj = 0;
32686 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32687 wxTreeItemId result;
32688 void *argp1 = 0 ;
32689 int res1 = 0 ;
32690 PyObject *swig_obj[1] ;
32691
32692 if (!args) SWIG_fail;
32693 swig_obj[0] = args;
32694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32695 if (!SWIG_IsOK(res1)) {
32696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32697 }
32698 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32699 {
32700 PyThreadState* __tstate = wxPyBeginAllowThreads();
32701 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32702 wxPyEndAllowThreads(__tstate);
32703 if (PyErr_Occurred()) SWIG_fail;
32704 }
32705 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32706 return resultobj;
32707fail:
32708 return NULL;
32709}
32710
32711
32712SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32713 PyObject *resultobj = 0;
32714 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32715 wxTreeItemId *arg2 = 0 ;
32716 void *argp1 = 0 ;
32717 int res1 = 0 ;
32718 void *argp2 = 0 ;
32719 int res2 = 0 ;
32720 PyObject * obj0 = 0 ;
32721 PyObject * obj1 = 0 ;
32722 char * kwnames[] = {
32723 (char *) "self",(char *) "item", NULL
32724 };
32725
32726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32730 }
32731 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32733 if (!SWIG_IsOK(res2)) {
32734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32735 }
32736 if (!argp2) {
32737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32738 }
32739 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32740 {
32741 PyThreadState* __tstate = wxPyBeginAllowThreads();
32742 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32743 wxPyEndAllowThreads(__tstate);
32744 if (PyErr_Occurred()) SWIG_fail;
32745 }
32746 resultobj = SWIG_Py_Void();
32747 return resultobj;
32748fail:
32749 return NULL;
d55e5bfc
RD
32750}
32751
32752
554f62e9
RD
32753SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32756 wxPoint result;
32757 void *argp1 = 0 ;
32758 int res1 = 0 ;
32759 PyObject *swig_obj[1] ;
32760
32761 if (!args) SWIG_fail;
32762 swig_obj[0] = args;
32763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32764 if (!SWIG_IsOK(res1)) {
32765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32766 }
32767 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 result = ((wxTreeEvent const *)arg1)->GetPoint();
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32775 return resultobj;
32776fail:
32777 return NULL;
32778}
32779
32780
32781SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32782 PyObject *resultobj = 0;
32783 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32784 wxPoint *arg2 = 0 ;
32785 void *argp1 = 0 ;
32786 int res1 = 0 ;
32787 wxPoint temp2 ;
32788 PyObject * obj0 = 0 ;
32789 PyObject * obj1 = 0 ;
32790 char * kwnames[] = {
32791 (char *) "self",(char *) "pt", NULL
32792 };
32793
32794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32796 if (!SWIG_IsOK(res1)) {
32797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32798 }
32799 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32800 {
32801 arg2 = &temp2;
32802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32803 }
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 (arg1)->SetPoint((wxPoint const &)*arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_Py_Void();
32811 return resultobj;
32812fail:
32813 return NULL;
d55e5bfc
RD
32814}
32815
32816
554f62e9
RD
32817SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32818 PyObject *resultobj = 0;
32819 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32820 wxKeyEvent *result = 0 ;
32821 void *argp1 = 0 ;
32822 int res1 = 0 ;
32823 PyObject *swig_obj[1] ;
32824
32825 if (!args) SWIG_fail;
32826 swig_obj[0] = args;
32827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32828 if (!SWIG_IsOK(res1)) {
32829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32830 }
32831 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32832 {
32833 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32834 {
554f62e9
RD
32835 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32836 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 32837 }
554f62e9
RD
32838 wxPyEndAllowThreads(__tstate);
32839 if (PyErr_Occurred()) SWIG_fail;
32840 }
32841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32842 return resultobj;
32843fail:
32844 return NULL;
d55e5bfc
RD
32845}
32846
32847
554f62e9
RD
32848SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32849 PyObject *resultobj = 0;
32850 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32851 int result;
32852 void *argp1 = 0 ;
32853 int res1 = 0 ;
32854 PyObject *swig_obj[1] ;
32855
32856 if (!args) SWIG_fail;
32857 swig_obj[0] = args;
32858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32859 if (!SWIG_IsOK(res1)) {
32860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32861 }
32862 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32863 {
32864 PyThreadState* __tstate = wxPyBeginAllowThreads();
32865 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32866 wxPyEndAllowThreads(__tstate);
32867 if (PyErr_Occurred()) SWIG_fail;
32868 }
32869 resultobj = SWIG_From_int(static_cast< int >(result));
32870 return resultobj;
32871fail:
32872 return NULL;
32873}
32874
32875
32876SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32877 PyObject *resultobj = 0;
32878 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32879 wxKeyEvent *arg2 = 0 ;
32880 void *argp1 = 0 ;
32881 int res1 = 0 ;
32882 void *argp2 = 0 ;
32883 int res2 = 0 ;
32884 PyObject * obj0 = 0 ;
32885 PyObject * obj1 = 0 ;
32886 char * kwnames[] = {
32887 (char *) "self",(char *) "evt", NULL
32888 };
32889
32890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32892 if (!SWIG_IsOK(res1)) {
32893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32894 }
32895 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32897 if (!SWIG_IsOK(res2)) {
32898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32899 }
32900 if (!argp2) {
32901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32902 }
32903 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32904 {
32905 PyThreadState* __tstate = wxPyBeginAllowThreads();
32906 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32907 wxPyEndAllowThreads(__tstate);
32908 if (PyErr_Occurred()) SWIG_fail;
32909 }
32910 resultobj = SWIG_Py_Void();
32911 return resultobj;
32912fail:
32913 return NULL;
d55e5bfc
RD
32914}
32915
32916
554f62e9
RD
32917SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32918 PyObject *resultobj = 0;
32919 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32920 wxString *result = 0 ;
32921 void *argp1 = 0 ;
32922 int res1 = 0 ;
32923 PyObject *swig_obj[1] ;
32924
32925 if (!args) SWIG_fail;
32926 swig_obj[0] = args;
32927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32928 if (!SWIG_IsOK(res1)) {
32929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32930 }
32931 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32932 {
32933 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32934 {
554f62e9
RD
32935 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32936 result = (wxString *) &_result_ref;
d55e5bfc 32937 }
554f62e9
RD
32938 wxPyEndAllowThreads(__tstate);
32939 if (PyErr_Occurred()) SWIG_fail;
32940 }
32941 {
32942#if wxUSE_UNICODE
32943 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32944#else
32945 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32946#endif
32947 }
32948 return resultobj;
32949fail:
32950 return NULL;
32951}
32952
32953
32954SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32955 PyObject *resultobj = 0;
32956 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32957 wxString *arg2 = 0 ;
32958 void *argp1 = 0 ;
32959 int res1 = 0 ;
32960 bool temp2 = false ;
32961 PyObject * obj0 = 0 ;
32962 PyObject * obj1 = 0 ;
32963 char * kwnames[] = {
32964 (char *) "self",(char *) "label", NULL
32965 };
32966
32967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32969 if (!SWIG_IsOK(res1)) {
32970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32971 }
32972 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32973 {
32974 arg2 = wxString_in_helper(obj1);
32975 if (arg2 == NULL) SWIG_fail;
32976 temp2 = true;
32977 }
32978 {
32979 PyThreadState* __tstate = wxPyBeginAllowThreads();
32980 (arg1)->SetLabel((wxString const &)*arg2);
32981 wxPyEndAllowThreads(__tstate);
32982 if (PyErr_Occurred()) SWIG_fail;
32983 }
32984 resultobj = SWIG_Py_Void();
32985 {
32986 if (temp2)
32987 delete arg2;
32988 }
32989 return resultobj;
32990fail:
32991 {
32992 if (temp2)
32993 delete arg2;
32994 }
32995 return NULL;
d55e5bfc
RD
32996}
32997
32998
554f62e9
RD
32999SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33000 PyObject *resultobj = 0;
33001 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33002 bool result;
33003 void *argp1 = 0 ;
33004 int res1 = 0 ;
33005 PyObject *swig_obj[1] ;
33006
33007 if (!args) SWIG_fail;
33008 swig_obj[0] = args;
33009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33010 if (!SWIG_IsOK(res1)) {
33011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33012 }
33013 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33014 {
33015 PyThreadState* __tstate = wxPyBeginAllowThreads();
33016 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33017 wxPyEndAllowThreads(__tstate);
33018 if (PyErr_Occurred()) SWIG_fail;
33019 }
33020 {
33021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33022 }
33023 return resultobj;
33024fail:
33025 return NULL;
33026}
33027
33028
33029SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33030 PyObject *resultobj = 0;
33031 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33032 bool arg2 ;
33033 void *argp1 = 0 ;
33034 int res1 = 0 ;
33035 bool val2 ;
33036 int ecode2 = 0 ;
33037 PyObject * obj0 = 0 ;
33038 PyObject * obj1 = 0 ;
33039 char * kwnames[] = {
33040 (char *) "self",(char *) "editCancelled", NULL
33041 };
33042
33043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33045 if (!SWIG_IsOK(res1)) {
33046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33047 }
33048 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33049 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33050 if (!SWIG_IsOK(ecode2)) {
33051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33052 }
33053 arg2 = static_cast< bool >(val2);
33054 {
33055 PyThreadState* __tstate = wxPyBeginAllowThreads();
33056 (arg1)->SetEditCanceled(arg2);
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_Py_Void();
33061 return resultobj;
33062fail:
33063 return NULL;
33064}
33065
33066
33067SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33068 PyObject *resultobj = 0;
33069 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33070 wxString *arg2 = 0 ;
33071 void *argp1 = 0 ;
33072 int res1 = 0 ;
33073 bool temp2 = false ;
33074 PyObject * obj0 = 0 ;
33075 PyObject * obj1 = 0 ;
33076 char * kwnames[] = {
33077 (char *) "self",(char *) "toolTip", NULL
33078 };
33079
33080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33082 if (!SWIG_IsOK(res1)) {
33083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33084 }
33085 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33086 {
33087 arg2 = wxString_in_helper(obj1);
33088 if (arg2 == NULL) SWIG_fail;
33089 temp2 = true;
33090 }
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 (arg1)->SetToolTip((wxString const &)*arg2);
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_Py_Void();
33098 {
33099 if (temp2)
33100 delete arg2;
33101 }
33102 return resultobj;
33103fail:
33104 {
33105 if (temp2)
33106 delete arg2;
33107 }
33108 return NULL;
33109}
33110
33111
33112SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33113 PyObject *resultobj = 0;
33114 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33115 wxString result;
33116 void *argp1 = 0 ;
33117 int res1 = 0 ;
33118 PyObject *swig_obj[1] ;
33119
33120 if (!args) SWIG_fail;
33121 swig_obj[0] = args;
33122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33123 if (!SWIG_IsOK(res1)) {
33124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33125 }
33126 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 result = (arg1)->GetToolTip();
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 {
33134#if wxUSE_UNICODE
33135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33136#else
33137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33138#endif
33139 }
33140 return resultobj;
33141fail:
33142 return NULL;
33143}
33144
33145
33146SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33147 PyObject *obj;
33148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33149 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33150 return SWIG_Py_Void();
33151}
33152
33153SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33154 return SWIG_Python_InitShadowInstance(args);
33155}
33156
33157SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33158 PyObject *resultobj = 0;
33159 wxWindow *arg1 = (wxWindow *) 0 ;
33160 int arg2 = (int) -1 ;
33161 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33162 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33163 wxSize const &arg4_defvalue = wxDefaultSize ;
33164 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33165 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33166 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33167 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33168 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33169 wxString *arg7 = (wxString *) &arg7_defvalue ;
33170 wxPyTreeCtrl *result = 0 ;
33171 void *argp1 = 0 ;
33172 int res1 = 0 ;
33173 int val2 ;
33174 int ecode2 = 0 ;
33175 wxPoint temp3 ;
33176 wxSize temp4 ;
33177 long val5 ;
33178 int ecode5 = 0 ;
33179 void *argp6 = 0 ;
33180 int res6 = 0 ;
33181 bool temp7 = false ;
33182 PyObject * obj0 = 0 ;
33183 PyObject * obj1 = 0 ;
33184 PyObject * obj2 = 0 ;
33185 PyObject * obj3 = 0 ;
33186 PyObject * obj4 = 0 ;
33187 PyObject * obj5 = 0 ;
33188 PyObject * obj6 = 0 ;
33189 char * kwnames[] = {
33190 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33191 };
33192
33193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33197 }
33198 arg1 = reinterpret_cast< wxWindow * >(argp1);
33199 if (obj1) {
33200 ecode2 = SWIG_AsVal_int(obj1, &val2);
33201 if (!SWIG_IsOK(ecode2)) {
33202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33203 }
33204 arg2 = static_cast< int >(val2);
33205 }
33206 if (obj2) {
d55e5bfc 33207 {
554f62e9
RD
33208 arg3 = &temp3;
33209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33210 }
554f62e9
RD
33211 }
33212 if (obj3) {
d55e5bfc 33213 {
554f62e9
RD
33214 arg4 = &temp4;
33215 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33216 }
554f62e9
RD
33217 }
33218 if (obj4) {
33219 ecode5 = SWIG_AsVal_long(obj4, &val5);
33220 if (!SWIG_IsOK(ecode5)) {
33221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33222 }
33223 arg5 = static_cast< long >(val5);
33224 }
33225 if (obj5) {
33226 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33227 if (!SWIG_IsOK(res6)) {
33228 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33229 }
554f62e9
RD
33230 if (!argp6) {
33231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33232 }
554f62e9
RD
33233 arg6 = reinterpret_cast< wxValidator * >(argp6);
33234 }
33235 if (obj6) {
d55e5bfc 33236 {
554f62e9
RD
33237 arg7 = wxString_in_helper(obj6);
33238 if (arg7 == NULL) SWIG_fail;
33239 temp7 = true;
d55e5bfc 33240 }
554f62e9
RD
33241 }
33242 {
33243 if (!wxPyCheckForApp()) SWIG_fail;
33244 PyThreadState* __tstate = wxPyBeginAllowThreads();
33245 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33246 wxPyEndAllowThreads(__tstate);
33247 if (PyErr_Occurred()) SWIG_fail;
33248 }
33249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33250 {
33251 if (temp7)
33252 delete arg7;
33253 }
33254 return resultobj;
33255fail:
33256 {
33257 if (temp7)
33258 delete arg7;
33259 }
33260 return NULL;
d55e5bfc
RD
33261}
33262
33263
554f62e9
RD
33264SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33265 PyObject *resultobj = 0;
33266 wxPyTreeCtrl *result = 0 ;
33267
33268 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33269 {
33270 if (!wxPyCheckForApp()) SWIG_fail;
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33273 wxPyEndAllowThreads(__tstate);
33274 if (PyErr_Occurred()) SWIG_fail;
33275 }
33276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33277 return resultobj;
33278fail:
33279 return NULL;
33280}
33281
33282
33283SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33284 PyObject *resultobj = 0;
33285 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33286 wxWindow *arg2 = (wxWindow *) 0 ;
33287 int arg3 = (int) -1 ;
33288 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33289 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33290 wxSize const &arg5_defvalue = wxDefaultSize ;
33291 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33292 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33293 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33294 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33295 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33296 wxString *arg8 = (wxString *) &arg8_defvalue ;
33297 bool result;
33298 void *argp1 = 0 ;
33299 int res1 = 0 ;
33300 void *argp2 = 0 ;
33301 int res2 = 0 ;
33302 int val3 ;
33303 int ecode3 = 0 ;
33304 wxPoint temp4 ;
33305 wxSize temp5 ;
33306 long val6 ;
33307 int ecode6 = 0 ;
33308 void *argp7 = 0 ;
33309 int res7 = 0 ;
33310 bool temp8 = false ;
33311 PyObject * obj0 = 0 ;
33312 PyObject * obj1 = 0 ;
33313 PyObject * obj2 = 0 ;
33314 PyObject * obj3 = 0 ;
33315 PyObject * obj4 = 0 ;
33316 PyObject * obj5 = 0 ;
33317 PyObject * obj6 = 0 ;
33318 PyObject * obj7 = 0 ;
33319 char * kwnames[] = {
33320 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33321 };
33322
33323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33325 if (!SWIG_IsOK(res1)) {
33326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33327 }
33328 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33330 if (!SWIG_IsOK(res2)) {
33331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33332 }
33333 arg2 = reinterpret_cast< wxWindow * >(argp2);
33334 if (obj2) {
33335 ecode3 = SWIG_AsVal_int(obj2, &val3);
33336 if (!SWIG_IsOK(ecode3)) {
33337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33338 }
33339 arg3 = static_cast< int >(val3);
33340 }
33341 if (obj3) {
d55e5bfc 33342 {
554f62e9
RD
33343 arg4 = &temp4;
33344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33345 }
554f62e9
RD
33346 }
33347 if (obj4) {
d55e5bfc 33348 {
554f62e9
RD
33349 arg5 = &temp5;
33350 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33351 }
554f62e9
RD
33352 }
33353 if (obj5) {
33354 ecode6 = SWIG_AsVal_long(obj5, &val6);
33355 if (!SWIG_IsOK(ecode6)) {
33356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33357 }
33358 arg6 = static_cast< long >(val6);
33359 }
33360 if (obj6) {
33361 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33362 if (!SWIG_IsOK(res7)) {
33363 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33364 }
554f62e9
RD
33365 if (!argp7) {
33366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33367 }
554f62e9
RD
33368 arg7 = reinterpret_cast< wxValidator * >(argp7);
33369 }
33370 if (obj7) {
d55e5bfc 33371 {
554f62e9
RD
33372 arg8 = wxString_in_helper(obj7);
33373 if (arg8 == NULL) SWIG_fail;
33374 temp8 = true;
d55e5bfc 33375 }
554f62e9
RD
33376 }
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 {
33384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33385 }
33386 {
33387 if (temp8)
33388 delete arg8;
33389 }
33390 return resultobj;
33391fail:
33392 {
33393 if (temp8)
33394 delete arg8;
33395 }
33396 return NULL;
33397}
33398
33399
33400SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33401 PyObject *resultobj = 0;
33402 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33403 PyObject *arg2 = (PyObject *) 0 ;
33404 PyObject *arg3 = (PyObject *) 0 ;
33405 void *argp1 = 0 ;
33406 int res1 = 0 ;
33407 PyObject * obj0 = 0 ;
33408 PyObject * obj1 = 0 ;
33409 PyObject * obj2 = 0 ;
33410 char * kwnames[] = {
33411 (char *) "self",(char *) "self",(char *) "_class", NULL
33412 };
33413
33414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33416 if (!SWIG_IsOK(res1)) {
33417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33418 }
33419 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33420 arg2 = obj1;
33421 arg3 = obj2;
33422 {
33423 PyThreadState* __tstate = wxPyBeginAllowThreads();
33424 (arg1)->_setCallbackInfo(arg2,arg3);
33425 wxPyEndAllowThreads(__tstate);
33426 if (PyErr_Occurred()) SWIG_fail;
33427 }
33428 resultobj = SWIG_Py_Void();
33429 return resultobj;
33430fail:
33431 return NULL;
d55e5bfc
RD
33432}
33433
33434
554f62e9
RD
33435SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33436 PyObject *resultobj = 0;
33437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33438 unsigned int result;
554f62e9
RD
33439 void *argp1 = 0 ;
33440 int res1 = 0 ;
33441 PyObject *swig_obj[1] ;
33442
33443 if (!args) SWIG_fail;
33444 swig_obj[0] = args;
33445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33446 if (!SWIG_IsOK(res1)) {
33447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33448 }
33449 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33452 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
554f62e9
RD
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
e9d6f3a4 33456 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
33457 return resultobj;
33458fail:
33459 return NULL;
d55e5bfc
RD
33460}
33461
33462
554f62e9
RD
33463SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33464 PyObject *resultobj = 0;
33465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33466 unsigned int result;
33467 void *argp1 = 0 ;
33468 int res1 = 0 ;
33469 PyObject *swig_obj[1] ;
33470
33471 if (!args) SWIG_fail;
33472 swig_obj[0] = args;
33473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33474 if (!SWIG_IsOK(res1)) {
33475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33476 }
33477 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33478 {
33479 PyThreadState* __tstate = wxPyBeginAllowThreads();
33480 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33481 wxPyEndAllowThreads(__tstate);
33482 if (PyErr_Occurred()) SWIG_fail;
33483 }
33484 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33485 return resultobj;
33486fail:
33487 return NULL;
33488}
33489
33490
33491SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33492 PyObject *resultobj = 0;
33493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33494 unsigned int arg2 ;
33495 void *argp1 = 0 ;
33496 int res1 = 0 ;
33497 unsigned int val2 ;
33498 int ecode2 = 0 ;
33499 PyObject * obj0 = 0 ;
33500 PyObject * obj1 = 0 ;
33501 char * kwnames[] = {
33502 (char *) "self",(char *) "indent", NULL
33503 };
33504
33505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33507 if (!SWIG_IsOK(res1)) {
33508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33509 }
33510 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33511 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33512 if (!SWIG_IsOK(ecode2)) {
33513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33514 }
33515 arg2 = static_cast< unsigned int >(val2);
33516 {
33517 PyThreadState* __tstate = wxPyBeginAllowThreads();
33518 (arg1)->SetIndent(arg2);
33519 wxPyEndAllowThreads(__tstate);
33520 if (PyErr_Occurred()) SWIG_fail;
33521 }
33522 resultobj = SWIG_Py_Void();
33523 return resultobj;
33524fail:
33525 return NULL;
d55e5bfc
RD
33526}
33527
33528
554f62e9
RD
33529SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33530 PyObject *resultobj = 0;
33531 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33532 unsigned int result;
33533 void *argp1 = 0 ;
33534 int res1 = 0 ;
33535 PyObject *swig_obj[1] ;
33536
33537 if (!args) SWIG_fail;
33538 swig_obj[0] = args;
33539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33540 if (!SWIG_IsOK(res1)) {
33541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33542 }
33543 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33544 {
33545 PyThreadState* __tstate = wxPyBeginAllowThreads();
33546 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33547 wxPyEndAllowThreads(__tstate);
33548 if (PyErr_Occurred()) SWIG_fail;
33549 }
33550 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33551 return resultobj;
33552fail:
33553 return NULL;
33554}
33555
33556
33557SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33558 PyObject *resultobj = 0;
33559 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33560 unsigned int arg2 ;
33561 void *argp1 = 0 ;
33562 int res1 = 0 ;
33563 unsigned int val2 ;
33564 int ecode2 = 0 ;
33565 PyObject * obj0 = 0 ;
33566 PyObject * obj1 = 0 ;
33567 char * kwnames[] = {
33568 (char *) "self",(char *) "spacing", NULL
33569 };
33570
33571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33575 }
33576 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33577 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33578 if (!SWIG_IsOK(ecode2)) {
33579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33580 }
33581 arg2 = static_cast< unsigned int >(val2);
33582 {
33583 PyThreadState* __tstate = wxPyBeginAllowThreads();
33584 (arg1)->SetSpacing(arg2);
33585 wxPyEndAllowThreads(__tstate);
33586 if (PyErr_Occurred()) SWIG_fail;
33587 }
33588 resultobj = SWIG_Py_Void();
33589 return resultobj;
33590fail:
33591 return NULL;
d55e5bfc
RD
33592}
33593
33594
554f62e9
RD
33595SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33596 PyObject *resultobj = 0;
33597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33598 wxImageList *result = 0 ;
33599 void *argp1 = 0 ;
33600 int res1 = 0 ;
33601 PyObject *swig_obj[1] ;
33602
33603 if (!args) SWIG_fail;
33604 swig_obj[0] = args;
33605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33606 if (!SWIG_IsOK(res1)) {
33607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33608 }
33609 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33610 {
33611 PyThreadState* __tstate = wxPyBeginAllowThreads();
33612 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33613 wxPyEndAllowThreads(__tstate);
33614 if (PyErr_Occurred()) SWIG_fail;
33615 }
33616 {
33617 resultobj = wxPyMake_wxObject(result, (bool)0);
33618 }
33619 return resultobj;
33620fail:
33621 return NULL;
d55e5bfc
RD
33622}
33623
33624
554f62e9
RD
33625SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33626 PyObject *resultobj = 0;
33627 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33628 wxImageList *result = 0 ;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 PyObject *swig_obj[1] ;
33632
33633 if (!args) SWIG_fail;
33634 swig_obj[0] = args;
33635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33636 if (!SWIG_IsOK(res1)) {
33637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33638 }
33639 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 {
33647 resultobj = wxPyMake_wxObject(result, (bool)0);
33648 }
33649 return resultobj;
33650fail:
33651 return NULL;
33652}
33653
33654
33655SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33656 PyObject *resultobj = 0;
33657 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33658 wxImageList *arg2 = (wxImageList *) 0 ;
33659 void *argp1 = 0 ;
33660 int res1 = 0 ;
33661 void *argp2 = 0 ;
33662 int res2 = 0 ;
33663 PyObject * obj0 = 0 ;
33664 PyObject * obj1 = 0 ;
33665 char * kwnames[] = {
33666 (char *) "self",(char *) "imageList", NULL
33667 };
33668
33669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33671 if (!SWIG_IsOK(res1)) {
33672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33673 }
33674 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33675 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33676 if (!SWIG_IsOK(res2)) {
33677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33678 }
33679 arg2 = reinterpret_cast< wxImageList * >(argp2);
33680 {
33681 PyThreadState* __tstate = wxPyBeginAllowThreads();
33682 (arg1)->SetImageList(arg2);
33683 wxPyEndAllowThreads(__tstate);
33684 if (PyErr_Occurred()) SWIG_fail;
33685 }
33686 resultobj = SWIG_Py_Void();
33687 return resultobj;
33688fail:
33689 return NULL;
33690}
33691
33692
33693SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33694 PyObject *resultobj = 0;
33695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33696 wxImageList *arg2 = (wxImageList *) 0 ;
33697 void *argp1 = 0 ;
33698 int res1 = 0 ;
33699 void *argp2 = 0 ;
33700 int res2 = 0 ;
33701 PyObject * obj0 = 0 ;
33702 PyObject * obj1 = 0 ;
33703 char * kwnames[] = {
33704 (char *) "self",(char *) "imageList", NULL
33705 };
33706
33707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33711 }
33712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33714 if (!SWIG_IsOK(res2)) {
33715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33716 }
33717 arg2 = reinterpret_cast< wxImageList * >(argp2);
33718 {
33719 PyThreadState* __tstate = wxPyBeginAllowThreads();
33720 (arg1)->SetStateImageList(arg2);
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 resultobj = SWIG_Py_Void();
33725 return resultobj;
33726fail:
33727 return NULL;
33728}
33729
33730
33731SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33732 PyObject *resultobj = 0;
33733 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33734 wxImageList *arg2 = (wxImageList *) 0 ;
33735 void *argp1 = 0 ;
33736 int res1 = 0 ;
33737 int res2 = 0 ;
33738 PyObject * obj0 = 0 ;
33739 PyObject * obj1 = 0 ;
33740 char * kwnames[] = {
33741 (char *) "self",(char *) "imageList", NULL
33742 };
33743
33744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33746 if (!SWIG_IsOK(res1)) {
33747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33748 }
33749 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33750 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33751 if (!SWIG_IsOK(res2)) {
33752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33753 }
33754 {
33755 PyThreadState* __tstate = wxPyBeginAllowThreads();
33756 (arg1)->AssignImageList(arg2);
33757 wxPyEndAllowThreads(__tstate);
33758 if (PyErr_Occurred()) SWIG_fail;
33759 }
33760 resultobj = SWIG_Py_Void();
33761 return resultobj;
33762fail:
33763 return NULL;
33764}
33765
33766
33767SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33768 PyObject *resultobj = 0;
33769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33770 wxImageList *arg2 = (wxImageList *) 0 ;
33771 void *argp1 = 0 ;
33772 int res1 = 0 ;
33773 int res2 = 0 ;
33774 PyObject * obj0 = 0 ;
33775 PyObject * obj1 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "self",(char *) "imageList", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33784 }
33785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33786 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33787 if (!SWIG_IsOK(res2)) {
33788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33789 }
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 (arg1)->AssignStateImageList(arg2);
33793 wxPyEndAllowThreads(__tstate);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 }
33796 resultobj = SWIG_Py_Void();
33797 return resultobj;
33798fail:
33799 return NULL;
33800}
33801
33802
33803SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33804 PyObject *resultobj = 0;
33805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33806 wxTreeItemId *arg2 = 0 ;
33807 wxString result;
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_GetItemText",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_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33827 }
33828 if (!argp2) {
33829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33830 }
33831 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33832 {
33833 PyThreadState* __tstate = wxPyBeginAllowThreads();
33834 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33835 wxPyEndAllowThreads(__tstate);
33836 if (PyErr_Occurred()) SWIG_fail;
33837 }
33838 {
33839#if wxUSE_UNICODE
33840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33841#else
33842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33843#endif
33844 }
33845 return resultobj;
33846fail:
33847 return NULL;
33848}
33849
33850
33851SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33852 PyObject *resultobj = 0;
33853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33854 wxTreeItemId *arg2 = 0 ;
33855 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33856 int result;
33857 void *argp1 = 0 ;
33858 int res1 = 0 ;
33859 void *argp2 = 0 ;
33860 int res2 = 0 ;
33861 int val3 ;
33862 int ecode3 = 0 ;
33863 PyObject * obj0 = 0 ;
33864 PyObject * obj1 = 0 ;
33865 PyObject * obj2 = 0 ;
33866 char * kwnames[] = {
33867 (char *) "self",(char *) "item",(char *) "which", NULL
33868 };
33869
33870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33874 }
33875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33877 if (!SWIG_IsOK(res2)) {
33878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33879 }
33880 if (!argp2) {
33881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33882 }
33883 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33884 if (obj2) {
33885 ecode3 = SWIG_AsVal_int(obj2, &val3);
33886 if (!SWIG_IsOK(ecode3)) {
33887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33888 }
33889 arg3 = static_cast< wxTreeItemIcon >(val3);
33890 }
33891 {
33892 PyThreadState* __tstate = wxPyBeginAllowThreads();
33893 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33894 wxPyEndAllowThreads(__tstate);
33895 if (PyErr_Occurred()) SWIG_fail;
33896 }
33897 resultobj = SWIG_From_int(static_cast< int >(result));
33898 return resultobj;
33899fail:
33900 return NULL;
33901}
33902
33903
33904SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33905 PyObject *resultobj = 0;
33906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33907 wxTreeItemId *arg2 = 0 ;
33908 wxPyTreeItemData *result = 0 ;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 void *argp2 = 0 ;
33912 int res2 = 0 ;
33913 PyObject * obj0 = 0 ;
33914 PyObject * obj1 = 0 ;
33915 char * kwnames[] = {
33916 (char *) "self",(char *) "item", NULL
33917 };
33918
33919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33921 if (!SWIG_IsOK(res1)) {
33922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33923 }
33924 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33926 if (!SWIG_IsOK(res2)) {
33927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33928 }
33929 if (!argp2) {
33930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33931 }
33932 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33933 {
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33940 return resultobj;
33941fail:
33942 return NULL;
33943}
33944
33945
33946SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33947 PyObject *resultobj = 0;
33948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33949 wxTreeItemId *arg2 = 0 ;
33950 PyObject *result = 0 ;
33951 void *argp1 = 0 ;
33952 int res1 = 0 ;
33953 void *argp2 = 0 ;
33954 int res2 = 0 ;
33955 PyObject * obj0 = 0 ;
33956 PyObject * obj1 = 0 ;
33957 char * kwnames[] = {
33958 (char *) "self",(char *) "item", NULL
33959 };
33960
33961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33963 if (!SWIG_IsOK(res1)) {
33964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33965 }
33966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33968 if (!SWIG_IsOK(res2)) {
33969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33970 }
33971 if (!argp2) {
33972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33973 }
33974 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33975 {
33976 PyThreadState* __tstate = wxPyBeginAllowThreads();
33977 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33978 wxPyEndAllowThreads(__tstate);
33979 if (PyErr_Occurred()) SWIG_fail;
33980 }
33981 resultobj = result;
33982 return resultobj;
33983fail:
33984 return NULL;
33985}
33986
33987
33988SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33989 PyObject *resultobj = 0;
33990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33991 wxTreeItemId *arg2 = 0 ;
33992 wxColour result;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 void *argp2 = 0 ;
33996 int res2 = 0 ;
33997 PyObject * obj0 = 0 ;
33998 PyObject * obj1 = 0 ;
33999 char * kwnames[] = {
34000 (char *) "self",(char *) "item", NULL
34001 };
34002
34003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34007 }
34008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34010 if (!SWIG_IsOK(res2)) {
34011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34012 }
34013 if (!argp2) {
34014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34015 }
34016 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34017 {
34018 PyThreadState* __tstate = wxPyBeginAllowThreads();
34019 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34020 wxPyEndAllowThreads(__tstate);
34021 if (PyErr_Occurred()) SWIG_fail;
34022 }
34023 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34024 return resultobj;
34025fail:
34026 return NULL;
34027}
34028
34029
34030SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34031 PyObject *resultobj = 0;
34032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34033 wxTreeItemId *arg2 = 0 ;
34034 wxColour result;
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 void *argp2 = 0 ;
34038 int res2 = 0 ;
34039 PyObject * obj0 = 0 ;
34040 PyObject * obj1 = 0 ;
34041 char * kwnames[] = {
34042 (char *) "self",(char *) "item", NULL
34043 };
34044
34045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34047 if (!SWIG_IsOK(res1)) {
34048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34049 }
34050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34052 if (!SWIG_IsOK(res2)) {
34053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34054 }
34055 if (!argp2) {
34056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34057 }
34058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34059 {
34060 PyThreadState* __tstate = wxPyBeginAllowThreads();
34061 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34062 wxPyEndAllowThreads(__tstate);
34063 if (PyErr_Occurred()) SWIG_fail;
34064 }
34065 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34066 return resultobj;
34067fail:
34068 return NULL;
34069}
34070
34071
34072SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34073 PyObject *resultobj = 0;
34074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34075 wxTreeItemId *arg2 = 0 ;
34076 wxFont result;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 void *argp2 = 0 ;
34080 int res2 = 0 ;
34081 PyObject * obj0 = 0 ;
34082 PyObject * obj1 = 0 ;
34083 char * kwnames[] = {
34084 (char *) "self",(char *) "item", NULL
34085 };
34086
34087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34089 if (!SWIG_IsOK(res1)) {
34090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34091 }
34092 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34094 if (!SWIG_IsOK(res2)) {
34095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34096 }
34097 if (!argp2) {
34098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34099 }
34100 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34101 {
34102 PyThreadState* __tstate = wxPyBeginAllowThreads();
34103 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34104 wxPyEndAllowThreads(__tstate);
34105 if (PyErr_Occurred()) SWIG_fail;
34106 }
34107 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34108 return resultobj;
34109fail:
34110 return NULL;
34111}
34112
34113
34114SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34115 PyObject *resultobj = 0;
34116 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34117 wxTreeItemId *arg2 = 0 ;
34118 wxString *arg3 = 0 ;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 void *argp2 = 0 ;
34122 int res2 = 0 ;
34123 bool temp3 = false ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 PyObject * obj2 = 0 ;
34127 char * kwnames[] = {
34128 (char *) "self",(char *) "item",(char *) "text", NULL
34129 };
34130
34131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34135 }
34136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34138 if (!SWIG_IsOK(res2)) {
34139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34140 }
34141 if (!argp2) {
34142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34143 }
34144 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34145 {
34146 arg3 = wxString_in_helper(obj2);
34147 if (arg3 == NULL) SWIG_fail;
34148 temp3 = true;
34149 }
34150 {
34151 PyThreadState* __tstate = wxPyBeginAllowThreads();
34152 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34153 wxPyEndAllowThreads(__tstate);
34154 if (PyErr_Occurred()) SWIG_fail;
34155 }
34156 resultobj = SWIG_Py_Void();
34157 {
34158 if (temp3)
34159 delete arg3;
34160 }
34161 return resultobj;
34162fail:
34163 {
34164 if (temp3)
34165 delete arg3;
34166 }
34167 return NULL;
34168}
34169
34170
34171SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34172 PyObject *resultobj = 0;
34173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34174 wxTreeItemId *arg2 = 0 ;
34175 int arg3 ;
34176 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34177 void *argp1 = 0 ;
34178 int res1 = 0 ;
34179 void *argp2 = 0 ;
34180 int res2 = 0 ;
34181 int val3 ;
34182 int ecode3 = 0 ;
34183 int val4 ;
34184 int ecode4 = 0 ;
34185 PyObject * obj0 = 0 ;
34186 PyObject * obj1 = 0 ;
34187 PyObject * obj2 = 0 ;
34188 PyObject * obj3 = 0 ;
34189 char * kwnames[] = {
34190 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34191 };
34192
34193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34195 if (!SWIG_IsOK(res1)) {
34196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34197 }
34198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34200 if (!SWIG_IsOK(res2)) {
34201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34202 }
34203 if (!argp2) {
34204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34205 }
34206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34207 ecode3 = SWIG_AsVal_int(obj2, &val3);
34208 if (!SWIG_IsOK(ecode3)) {
34209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34210 }
34211 arg3 = static_cast< int >(val3);
34212 if (obj3) {
34213 ecode4 = SWIG_AsVal_int(obj3, &val4);
34214 if (!SWIG_IsOK(ecode4)) {
34215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34216 }
34217 arg4 = static_cast< wxTreeItemIcon >(val4);
34218 }
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34222 wxPyEndAllowThreads(__tstate);
34223 if (PyErr_Occurred()) SWIG_fail;
34224 }
34225 resultobj = SWIG_Py_Void();
34226 return resultobj;
34227fail:
34228 return NULL;
34229}
34230
34231
34232SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34233 PyObject *resultobj = 0;
34234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34235 wxTreeItemId *arg2 = 0 ;
34236 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34237 void *argp1 = 0 ;
34238 int res1 = 0 ;
34239 void *argp2 = 0 ;
34240 int res2 = 0 ;
34241 int res3 = 0 ;
34242 PyObject * obj0 = 0 ;
34243 PyObject * obj1 = 0 ;
34244 PyObject * obj2 = 0 ;
34245 char * kwnames[] = {
34246 (char *) "self",(char *) "item",(char *) "data", NULL
34247 };
34248
34249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34251 if (!SWIG_IsOK(res1)) {
34252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34253 }
34254 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34256 if (!SWIG_IsOK(res2)) {
34257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34258 }
34259 if (!argp2) {
34260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34261 }
34262 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34263 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34264 if (!SWIG_IsOK(res3)) {
34265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34266 }
34267 {
34268 PyThreadState* __tstate = wxPyBeginAllowThreads();
34269 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34270 wxPyEndAllowThreads(__tstate);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 }
34273 resultobj = SWIG_Py_Void();
34274 return resultobj;
34275fail:
34276 return NULL;
34277}
34278
34279
34280SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34281 PyObject *resultobj = 0;
34282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34283 wxTreeItemId *arg2 = 0 ;
34284 PyObject *arg3 = (PyObject *) 0 ;
34285 void *argp1 = 0 ;
34286 int res1 = 0 ;
34287 void *argp2 = 0 ;
34288 int res2 = 0 ;
34289 PyObject * obj0 = 0 ;
34290 PyObject * obj1 = 0 ;
34291 PyObject * obj2 = 0 ;
34292 char * kwnames[] = {
34293 (char *) "self",(char *) "item",(char *) "obj", NULL
34294 };
34295
34296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34298 if (!SWIG_IsOK(res1)) {
34299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34300 }
34301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34303 if (!SWIG_IsOK(res2)) {
34304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34305 }
34306 if (!argp2) {
34307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34308 }
34309 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34310 arg3 = obj2;
34311 {
34312 PyThreadState* __tstate = wxPyBeginAllowThreads();
34313 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34314 wxPyEndAllowThreads(__tstate);
34315 if (PyErr_Occurred()) SWIG_fail;
34316 }
34317 resultobj = SWIG_Py_Void();
34318 return resultobj;
34319fail:
34320 return NULL;
34321}
34322
34323
34324SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34325 PyObject *resultobj = 0;
34326 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34327 wxTreeItemId *arg2 = 0 ;
34328 bool arg3 = (bool) true ;
34329 void *argp1 = 0 ;
34330 int res1 = 0 ;
34331 void *argp2 = 0 ;
34332 int res2 = 0 ;
34333 bool val3 ;
34334 int ecode3 = 0 ;
34335 PyObject * obj0 = 0 ;
34336 PyObject * obj1 = 0 ;
34337 PyObject * obj2 = 0 ;
34338 char * kwnames[] = {
34339 (char *) "self",(char *) "item",(char *) "has", NULL
34340 };
34341
34342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34344 if (!SWIG_IsOK(res1)) {
34345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34346 }
34347 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34348 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34349 if (!SWIG_IsOK(res2)) {
34350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34351 }
34352 if (!argp2) {
34353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34354 }
34355 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34356 if (obj2) {
34357 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34358 if (!SWIG_IsOK(ecode3)) {
34359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34360 }
34361 arg3 = static_cast< bool >(val3);
34362 }
34363 {
34364 PyThreadState* __tstate = wxPyBeginAllowThreads();
34365 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34366 wxPyEndAllowThreads(__tstate);
34367 if (PyErr_Occurred()) SWIG_fail;
34368 }
34369 resultobj = SWIG_Py_Void();
34370 return resultobj;
34371fail:
34372 return NULL;
34373}
34374
34375
34376SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34377 PyObject *resultobj = 0;
34378 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34379 wxTreeItemId *arg2 = 0 ;
34380 bool arg3 = (bool) true ;
34381 void *argp1 = 0 ;
34382 int res1 = 0 ;
34383 void *argp2 = 0 ;
34384 int res2 = 0 ;
34385 bool val3 ;
34386 int ecode3 = 0 ;
34387 PyObject * obj0 = 0 ;
34388 PyObject * obj1 = 0 ;
34389 PyObject * obj2 = 0 ;
34390 char * kwnames[] = {
34391 (char *) "self",(char *) "item",(char *) "bold", NULL
34392 };
34393
34394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34396 if (!SWIG_IsOK(res1)) {
34397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34398 }
34399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34401 if (!SWIG_IsOK(res2)) {
34402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34403 }
34404 if (!argp2) {
34405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34406 }
34407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34408 if (obj2) {
34409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34410 if (!SWIG_IsOK(ecode3)) {
34411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34412 }
34413 arg3 = static_cast< bool >(val3);
34414 }
34415 {
34416 PyThreadState* __tstate = wxPyBeginAllowThreads();
34417 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34418 wxPyEndAllowThreads(__tstate);
34419 if (PyErr_Occurred()) SWIG_fail;
34420 }
34421 resultobj = SWIG_Py_Void();
34422 return resultobj;
34423fail:
34424 return NULL;
34425}
34426
34427
34428SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34429 PyObject *resultobj = 0;
34430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34431 wxTreeItemId *arg2 = 0 ;
34432 bool arg3 = (bool) true ;
34433 void *argp1 = 0 ;
34434 int res1 = 0 ;
34435 void *argp2 = 0 ;
34436 int res2 = 0 ;
34437 bool val3 ;
34438 int ecode3 = 0 ;
34439 PyObject * obj0 = 0 ;
34440 PyObject * obj1 = 0 ;
34441 PyObject * obj2 = 0 ;
34442 char * kwnames[] = {
34443 (char *) "self",(char *) "item",(char *) "highlight", NULL
34444 };
34445
34446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34448 if (!SWIG_IsOK(res1)) {
34449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34450 }
34451 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34453 if (!SWIG_IsOK(res2)) {
34454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34455 }
34456 if (!argp2) {
34457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34458 }
34459 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34460 if (obj2) {
34461 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34462 if (!SWIG_IsOK(ecode3)) {
34463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34464 }
34465 arg3 = static_cast< bool >(val3);
34466 }
34467 {
34468 PyThreadState* __tstate = wxPyBeginAllowThreads();
34469 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34470 wxPyEndAllowThreads(__tstate);
34471 if (PyErr_Occurred()) SWIG_fail;
34472 }
34473 resultobj = SWIG_Py_Void();
34474 return resultobj;
34475fail:
34476 return NULL;
34477}
34478
34479
34480SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34481 PyObject *resultobj = 0;
34482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34483 wxTreeItemId *arg2 = 0 ;
34484 wxColour *arg3 = 0 ;
34485 void *argp1 = 0 ;
34486 int res1 = 0 ;
34487 void *argp2 = 0 ;
34488 int res2 = 0 ;
34489 wxColour temp3 ;
34490 PyObject * obj0 = 0 ;
34491 PyObject * obj1 = 0 ;
34492 PyObject * obj2 = 0 ;
34493 char * kwnames[] = {
34494 (char *) "self",(char *) "item",(char *) "col", NULL
34495 };
34496
34497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34499 if (!SWIG_IsOK(res1)) {
34500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34501 }
34502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34504 if (!SWIG_IsOK(res2)) {
34505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34506 }
34507 if (!argp2) {
34508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34509 }
34510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34511 {
34512 arg3 = &temp3;
34513 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34514 }
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34518 wxPyEndAllowThreads(__tstate);
34519 if (PyErr_Occurred()) SWIG_fail;
34520 }
34521 resultobj = SWIG_Py_Void();
34522 return resultobj;
34523fail:
34524 return NULL;
34525}
34526
34527
34528SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34529 PyObject *resultobj = 0;
34530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34531 wxTreeItemId *arg2 = 0 ;
34532 wxColour *arg3 = 0 ;
34533 void *argp1 = 0 ;
34534 int res1 = 0 ;
34535 void *argp2 = 0 ;
34536 int res2 = 0 ;
34537 wxColour temp3 ;
34538 PyObject * obj0 = 0 ;
34539 PyObject * obj1 = 0 ;
34540 PyObject * obj2 = 0 ;
34541 char * kwnames[] = {
34542 (char *) "self",(char *) "item",(char *) "col", NULL
34543 };
34544
34545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) 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_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34554 }
34555 if (!argp2) {
34556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34559 {
34560 arg3 = &temp3;
34561 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34562 }
34563 {
34564 PyThreadState* __tstate = wxPyBeginAllowThreads();
34565 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34566 wxPyEndAllowThreads(__tstate);
34567 if (PyErr_Occurred()) SWIG_fail;
34568 }
34569 resultobj = SWIG_Py_Void();
34570 return resultobj;
34571fail:
34572 return NULL;
34573}
34574
34575
34576SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34577 PyObject *resultobj = 0;
34578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34579 wxTreeItemId *arg2 = 0 ;
34580 wxFont *arg3 = 0 ;
34581 void *argp1 = 0 ;
34582 int res1 = 0 ;
34583 void *argp2 = 0 ;
34584 int res2 = 0 ;
34585 void *argp3 = 0 ;
34586 int res3 = 0 ;
34587 PyObject * obj0 = 0 ;
34588 PyObject * obj1 = 0 ;
34589 PyObject * obj2 = 0 ;
34590 char * kwnames[] = {
34591 (char *) "self",(char *) "item",(char *) "font", NULL
34592 };
34593
34594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34596 if (!SWIG_IsOK(res1)) {
34597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34598 }
34599 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34601 if (!SWIG_IsOK(res2)) {
34602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34603 }
34604 if (!argp2) {
34605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34606 }
34607 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34609 if (!SWIG_IsOK(res3)) {
34610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34611 }
34612 if (!argp3) {
34613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34614 }
34615 arg3 = reinterpret_cast< wxFont * >(argp3);
34616 {
34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
34618 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 resultobj = SWIG_Py_Void();
34623 return resultobj;
34624fail:
34625 return NULL;
34626}
34627
34628
34629SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34630 PyObject *resultobj = 0;
34631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34632 wxTreeItemId *arg2 = 0 ;
34633 bool result;
34634 void *argp1 = 0 ;
34635 int res1 = 0 ;
34636 void *argp2 = 0 ;
34637 int res2 = 0 ;
34638 PyObject * obj0 = 0 ;
34639 PyObject * obj1 = 0 ;
34640 char * kwnames[] = {
34641 (char *) "self",(char *) "item", NULL
34642 };
34643
34644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34646 if (!SWIG_IsOK(res1)) {
34647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34648 }
34649 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34651 if (!SWIG_IsOK(res2)) {
34652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34653 }
34654 if (!argp2) {
34655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34656 }
34657 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34658 {
34659 PyThreadState* __tstate = wxPyBeginAllowThreads();
34660 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34661 wxPyEndAllowThreads(__tstate);
34662 if (PyErr_Occurred()) SWIG_fail;
34663 }
34664 {
34665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34666 }
34667 return resultobj;
34668fail:
34669 return NULL;
34670}
34671
34672
34673SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34674 PyObject *resultobj = 0;
34675 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34676 wxTreeItemId *arg2 = 0 ;
34677 bool result;
34678 void *argp1 = 0 ;
34679 int res1 = 0 ;
34680 void *argp2 = 0 ;
34681 int res2 = 0 ;
34682 PyObject * obj0 = 0 ;
34683 PyObject * obj1 = 0 ;
34684 char * kwnames[] = {
34685 (char *) "self",(char *) "item", NULL
34686 };
34687
34688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34690 if (!SWIG_IsOK(res1)) {
34691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34692 }
34693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34695 if (!SWIG_IsOK(res2)) {
34696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34697 }
34698 if (!argp2) {
34699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34700 }
34701 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34702 {
34703 PyThreadState* __tstate = wxPyBeginAllowThreads();
34704 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34705 wxPyEndAllowThreads(__tstate);
34706 if (PyErr_Occurred()) SWIG_fail;
34707 }
34708 {
34709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34710 }
34711 return resultobj;
34712fail:
34713 return NULL;
34714}
34715
34716
34717SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34720 wxTreeItemId *arg2 = 0 ;
34721 bool result;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 void *argp2 = 0 ;
34725 int res2 = 0 ;
34726 PyObject * obj0 = 0 ;
34727 PyObject * obj1 = 0 ;
34728 char * kwnames[] = {
34729 (char *) "self",(char *) "item", NULL
34730 };
34731
34732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34734 if (!SWIG_IsOK(res1)) {
34735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34736 }
34737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34739 if (!SWIG_IsOK(res2)) {
34740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34741 }
34742 if (!argp2) {
34743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34744 }
34745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 {
34753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34754 }
34755 return resultobj;
34756fail:
34757 return NULL;
34758}
34759
34760
34761SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34762 PyObject *resultobj = 0;
34763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34764 wxTreeItemId *arg2 = 0 ;
34765 bool result;
34766 void *argp1 = 0 ;
34767 int res1 = 0 ;
34768 void *argp2 = 0 ;
34769 int res2 = 0 ;
34770 PyObject * obj0 = 0 ;
34771 PyObject * obj1 = 0 ;
34772 char * kwnames[] = {
34773 (char *) "self",(char *) "item", NULL
34774 };
34775
34776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34778 if (!SWIG_IsOK(res1)) {
34779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34780 }
34781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34783 if (!SWIG_IsOK(res2)) {
34784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34785 }
34786 if (!argp2) {
34787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34788 }
34789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34790 {
34791 PyThreadState* __tstate = wxPyBeginAllowThreads();
34792 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 {
34797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34798 }
34799 return resultobj;
34800fail:
34801 return NULL;
34802}
34803
34804
34805SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34806 PyObject *resultobj = 0;
34807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34808 wxTreeItemId *arg2 = 0 ;
34809 bool result;
34810 void *argp1 = 0 ;
34811 int res1 = 0 ;
34812 void *argp2 = 0 ;
34813 int res2 = 0 ;
34814 PyObject * obj0 = 0 ;
34815 PyObject * obj1 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34824 }
34825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34827 if (!SWIG_IsOK(res2)) {
34828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 {
34835 PyThreadState* __tstate = wxPyBeginAllowThreads();
34836 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34837 wxPyEndAllowThreads(__tstate);
34838 if (PyErr_Occurred()) SWIG_fail;
34839 }
34840 {
34841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34842 }
34843 return resultobj;
34844fail:
34845 return NULL;
34846}
34847
34848
34849SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34850 PyObject *resultobj = 0;
34851 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34852 wxTreeItemId *arg2 = 0 ;
34853 bool arg3 = (bool) true ;
34854 size_t result;
34855 void *argp1 = 0 ;
34856 int res1 = 0 ;
34857 void *argp2 = 0 ;
34858 int res2 = 0 ;
34859 bool val3 ;
34860 int ecode3 = 0 ;
34861 PyObject * obj0 = 0 ;
34862 PyObject * obj1 = 0 ;
34863 PyObject * obj2 = 0 ;
34864 char * kwnames[] = {
34865 (char *) "self",(char *) "item",(char *) "recursively", NULL
34866 };
34867
34868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34870 if (!SWIG_IsOK(res1)) {
34871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34872 }
34873 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34875 if (!SWIG_IsOK(res2)) {
34876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34877 }
34878 if (!argp2) {
34879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34880 }
34881 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34882 if (obj2) {
34883 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34884 if (!SWIG_IsOK(ecode3)) {
34885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34886 }
34887 arg3 = static_cast< bool >(val3);
34888 }
34889 {
34890 PyThreadState* __tstate = wxPyBeginAllowThreads();
34891 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34892 wxPyEndAllowThreads(__tstate);
34893 if (PyErr_Occurred()) SWIG_fail;
34894 }
34895 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34896 return resultobj;
34897fail:
34898 return NULL;
d55e5bfc
RD
34899}
34900
34901
554f62e9
RD
34902SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34903 PyObject *resultobj = 0;
34904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34905 wxTreeItemId result;
34906 void *argp1 = 0 ;
34907 int res1 = 0 ;
34908 PyObject *swig_obj[1] ;
34909
34910 if (!args) SWIG_fail;
34911 swig_obj[0] = args;
34912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34913 if (!SWIG_IsOK(res1)) {
34914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34915 }
34916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34917 {
34918 PyThreadState* __tstate = wxPyBeginAllowThreads();
34919 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34920 wxPyEndAllowThreads(__tstate);
34921 if (PyErr_Occurred()) SWIG_fail;
34922 }
34923 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34924 return resultobj;
34925fail:
34926 return NULL;
d55e5bfc
RD
34927}
34928
34929
554f62e9
RD
34930SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34931 PyObject *resultobj = 0;
34932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34933 wxTreeItemId result;
34934 void *argp1 = 0 ;
34935 int res1 = 0 ;
34936 PyObject *swig_obj[1] ;
34937
34938 if (!args) SWIG_fail;
34939 swig_obj[0] = args;
34940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34941 if (!SWIG_IsOK(res1)) {
34942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34943 }
34944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34945 {
34946 PyThreadState* __tstate = wxPyBeginAllowThreads();
34947 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34948 wxPyEndAllowThreads(__tstate);
34949 if (PyErr_Occurred()) SWIG_fail;
34950 }
34951 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34952 return resultobj;
34953fail:
34954 return NULL;
d55e5bfc
RD
34955}
34956
34957
554f62e9
RD
34958SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34959 PyObject *resultobj = 0;
34960 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34961 PyObject *result = 0 ;
34962 void *argp1 = 0 ;
34963 int res1 = 0 ;
34964 PyObject *swig_obj[1] ;
34965
34966 if (!args) SWIG_fail;
34967 swig_obj[0] = args;
34968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34969 if (!SWIG_IsOK(res1)) {
34970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34971 }
34972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34973 {
34974 PyThreadState* __tstate = wxPyBeginAllowThreads();
34975 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34976 wxPyEndAllowThreads(__tstate);
34977 if (PyErr_Occurred()) SWIG_fail;
34978 }
34979 resultobj = result;
34980 return resultobj;
34981fail:
34982 return NULL;
34983}
34984
34985
34986SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34987 PyObject *resultobj = 0;
34988 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34989 wxTreeItemId *arg2 = 0 ;
34990 wxTreeItemId result;
34991 void *argp1 = 0 ;
34992 int res1 = 0 ;
34993 void *argp2 = 0 ;
34994 int res2 = 0 ;
34995 PyObject * obj0 = 0 ;
34996 PyObject * obj1 = 0 ;
34997 char * kwnames[] = {
34998 (char *) "self",(char *) "item", NULL
34999 };
35000
35001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35003 if (!SWIG_IsOK(res1)) {
35004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35005 }
35006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35008 if (!SWIG_IsOK(res2)) {
35009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 if (!argp2) {
35012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35013 }
35014 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35018 wxPyEndAllowThreads(__tstate);
35019 if (PyErr_Occurred()) SWIG_fail;
35020 }
35021 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35022 return resultobj;
35023fail:
35024 return NULL;
35025}
35026
35027
35028SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35029 PyObject *resultobj = 0;
35030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35031 wxTreeItemId *arg2 = 0 ;
35032 PyObject *result = 0 ;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 void *argp2 = 0 ;
35036 int res2 = 0 ;
35037 PyObject * obj0 = 0 ;
35038 PyObject * obj1 = 0 ;
35039 char * kwnames[] = {
35040 (char *) "self",(char *) "item", NULL
35041 };
35042
35043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35045 if (!SWIG_IsOK(res1)) {
35046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35047 }
35048 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35050 if (!SWIG_IsOK(res2)) {
35051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35052 }
35053 if (!argp2) {
35054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35055 }
35056 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35057 {
35058 PyThreadState* __tstate = wxPyBeginAllowThreads();
35059 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35060 wxPyEndAllowThreads(__tstate);
35061 if (PyErr_Occurred()) SWIG_fail;
35062 }
35063 resultobj = result;
35064 return resultobj;
35065fail:
35066 return NULL;
35067}
35068
35069
35070SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35071 PyObject *resultobj = 0;
35072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35073 wxTreeItemId *arg2 = 0 ;
35074 void *arg3 = (void *) 0 ;
35075 PyObject *result = 0 ;
35076 void *argp1 = 0 ;
35077 int res1 = 0 ;
35078 void *argp2 = 0 ;
35079 int res2 = 0 ;
35080 int res3 ;
35081 PyObject * obj0 = 0 ;
35082 PyObject * obj1 = 0 ;
35083 PyObject * obj2 = 0 ;
35084 char * kwnames[] = {
35085 (char *) "self",(char *) "item",(char *) "cookie", NULL
35086 };
35087
35088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35092 }
35093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35095 if (!SWIG_IsOK(res2)) {
35096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35097 }
35098 if (!argp2) {
35099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35100 }
35101 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35102 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35103 if (!SWIG_IsOK(res3)) {
35104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35105 }
35106 {
35107 PyThreadState* __tstate = wxPyBeginAllowThreads();
35108 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35109 wxPyEndAllowThreads(__tstate);
35110 if (PyErr_Occurred()) SWIG_fail;
35111 }
35112 resultobj = result;
35113 return resultobj;
35114fail:
35115 return NULL;
35116}
35117
35118
35119SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35120 PyObject *resultobj = 0;
35121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35122 wxTreeItemId *arg2 = 0 ;
35123 wxTreeItemId result;
35124 void *argp1 = 0 ;
35125 int res1 = 0 ;
35126 void *argp2 = 0 ;
35127 int res2 = 0 ;
35128 PyObject * obj0 = 0 ;
35129 PyObject * obj1 = 0 ;
35130 char * kwnames[] = {
35131 (char *) "self",(char *) "item", NULL
35132 };
35133
35134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35136 if (!SWIG_IsOK(res1)) {
35137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35138 }
35139 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35141 if (!SWIG_IsOK(res2)) {
35142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35143 }
35144 if (!argp2) {
35145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35146 }
35147 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
35154 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35155 return resultobj;
35156fail:
35157 return NULL;
35158}
35159
35160
35161SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35162 PyObject *resultobj = 0;
35163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35164 wxTreeItemId *arg2 = 0 ;
35165 wxTreeItemId result;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 void *argp2 = 0 ;
35169 int res2 = 0 ;
35170 PyObject * obj0 = 0 ;
35171 PyObject * obj1 = 0 ;
35172 char * kwnames[] = {
35173 (char *) "self",(char *) "item", NULL
35174 };
35175
35176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35178 if (!SWIG_IsOK(res1)) {
35179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35180 }
35181 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35183 if (!SWIG_IsOK(res2)) {
35184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35185 }
35186 if (!argp2) {
35187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35188 }
35189 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35190 {
35191 PyThreadState* __tstate = wxPyBeginAllowThreads();
35192 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35193 wxPyEndAllowThreads(__tstate);
35194 if (PyErr_Occurred()) SWIG_fail;
35195 }
35196 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35197 return resultobj;
35198fail:
35199 return NULL;
35200}
35201
35202
35203SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35204 PyObject *resultobj = 0;
35205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35206 wxTreeItemId *arg2 = 0 ;
35207 wxTreeItemId result;
35208 void *argp1 = 0 ;
35209 int res1 = 0 ;
35210 void *argp2 = 0 ;
35211 int res2 = 0 ;
35212 PyObject * obj0 = 0 ;
35213 PyObject * obj1 = 0 ;
35214 char * kwnames[] = {
35215 (char *) "self",(char *) "item", NULL
35216 };
35217
35218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35220 if (!SWIG_IsOK(res1)) {
35221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35222 }
35223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35225 if (!SWIG_IsOK(res2)) {
35226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35227 }
35228 if (!argp2) {
35229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35230 }
35231 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35232 {
35233 PyThreadState* __tstate = wxPyBeginAllowThreads();
35234 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35235 wxPyEndAllowThreads(__tstate);
35236 if (PyErr_Occurred()) SWIG_fail;
35237 }
35238 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35239 return resultobj;
35240fail:
35241 return NULL;
d55e5bfc
RD
35242}
35243
35244
554f62e9
RD
35245SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35246 PyObject *resultobj = 0;
35247 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35248 wxTreeItemId result;
35249 void *argp1 = 0 ;
35250 int res1 = 0 ;
35251 PyObject *swig_obj[1] ;
35252
35253 if (!args) SWIG_fail;
35254 swig_obj[0] = args;
35255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35258 }
35259 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35260 {
35261 PyThreadState* __tstate = wxPyBeginAllowThreads();
35262 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35263 wxPyEndAllowThreads(__tstate);
35264 if (PyErr_Occurred()) SWIG_fail;
35265 }
35266 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35267 return resultobj;
35268fail:
35269 return NULL;
35270}
35271
35272
35273SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35274 PyObject *resultobj = 0;
35275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35276 wxTreeItemId *arg2 = 0 ;
35277 wxTreeItemId result;
35278 void *argp1 = 0 ;
35279 int res1 = 0 ;
35280 void *argp2 = 0 ;
35281 int res2 = 0 ;
35282 PyObject * obj0 = 0 ;
35283 PyObject * obj1 = 0 ;
35284 char * kwnames[] = {
35285 (char *) "self",(char *) "item", NULL
35286 };
35287
35288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35290 if (!SWIG_IsOK(res1)) {
35291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35292 }
35293 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35295 if (!SWIG_IsOK(res2)) {
35296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35297 }
35298 if (!argp2) {
35299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35300 }
35301 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35302 {
35303 PyThreadState* __tstate = wxPyBeginAllowThreads();
35304 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35305 wxPyEndAllowThreads(__tstate);
35306 if (PyErr_Occurred()) SWIG_fail;
35307 }
35308 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35309 return resultobj;
35310fail:
35311 return NULL;
35312}
35313
35314
35315SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35316 PyObject *resultobj = 0;
35317 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35318 wxTreeItemId *arg2 = 0 ;
35319 wxTreeItemId result;
35320 void *argp1 = 0 ;
35321 int res1 = 0 ;
35322 void *argp2 = 0 ;
35323 int res2 = 0 ;
35324 PyObject * obj0 = 0 ;
35325 PyObject * obj1 = 0 ;
35326 char * kwnames[] = {
35327 (char *) "self",(char *) "item", NULL
35328 };
35329
35330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35332 if (!SWIG_IsOK(res1)) {
35333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35334 }
35335 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35337 if (!SWIG_IsOK(res2)) {
35338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35339 }
35340 if (!argp2) {
35341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35342 }
35343 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35344 {
35345 PyThreadState* __tstate = wxPyBeginAllowThreads();
35346 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35347 wxPyEndAllowThreads(__tstate);
35348 if (PyErr_Occurred()) SWIG_fail;
35349 }
35350 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35351 return resultobj;
35352fail:
35353 return NULL;
35354}
35355
35356
35357SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35358 PyObject *resultobj = 0;
35359 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35360 wxString *arg2 = 0 ;
35361 int arg3 = (int) -1 ;
35362 int arg4 = (int) -1 ;
35363 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35364 wxTreeItemId result;
35365 void *argp1 = 0 ;
35366 int res1 = 0 ;
35367 bool temp2 = false ;
35368 int val3 ;
35369 int ecode3 = 0 ;
35370 int val4 ;
35371 int ecode4 = 0 ;
35372 int res5 = 0 ;
35373 PyObject * obj0 = 0 ;
35374 PyObject * obj1 = 0 ;
35375 PyObject * obj2 = 0 ;
35376 PyObject * obj3 = 0 ;
35377 PyObject * obj4 = 0 ;
35378 char * kwnames[] = {
35379 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35380 };
35381
35382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35384 if (!SWIG_IsOK(res1)) {
35385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35386 }
35387 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35388 {
35389 arg2 = wxString_in_helper(obj1);
35390 if (arg2 == NULL) SWIG_fail;
35391 temp2 = true;
35392 }
35393 if (obj2) {
35394 ecode3 = SWIG_AsVal_int(obj2, &val3);
35395 if (!SWIG_IsOK(ecode3)) {
35396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35397 }
35398 arg3 = static_cast< int >(val3);
35399 }
35400 if (obj3) {
35401 ecode4 = SWIG_AsVal_int(obj3, &val4);
35402 if (!SWIG_IsOK(ecode4)) {
35403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35404 }
35405 arg4 = static_cast< int >(val4);
35406 }
35407 if (obj4) {
35408 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35409 if (!SWIG_IsOK(res5)) {
35410 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35411 }
554f62e9
RD
35412 }
35413 {
35414 PyThreadState* __tstate = wxPyBeginAllowThreads();
35415 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35416 wxPyEndAllowThreads(__tstate);
35417 if (PyErr_Occurred()) SWIG_fail;
35418 }
35419 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35420 {
35421 if (temp2)
35422 delete arg2;
35423 }
35424 return resultobj;
35425fail:
35426 {
35427 if (temp2)
35428 delete arg2;
35429 }
35430 return NULL;
35431}
35432
35433
35434SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35435 PyObject *resultobj = 0;
35436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35437 wxTreeItemId *arg2 = 0 ;
35438 wxString *arg3 = 0 ;
35439 int arg4 = (int) -1 ;
35440 int arg5 = (int) -1 ;
35441 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35442 wxTreeItemId result;
35443 void *argp1 = 0 ;
35444 int res1 = 0 ;
35445 void *argp2 = 0 ;
35446 int res2 = 0 ;
35447 bool temp3 = false ;
35448 int val4 ;
35449 int ecode4 = 0 ;
35450 int val5 ;
35451 int ecode5 = 0 ;
35452 int res6 = 0 ;
35453 PyObject * obj0 = 0 ;
35454 PyObject * obj1 = 0 ;
35455 PyObject * obj2 = 0 ;
35456 PyObject * obj3 = 0 ;
35457 PyObject * obj4 = 0 ;
35458 PyObject * obj5 = 0 ;
35459 char * kwnames[] = {
35460 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35461 };
35462
35463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35465 if (!SWIG_IsOK(res1)) {
35466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35467 }
35468 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35470 if (!SWIG_IsOK(res2)) {
35471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35472 }
35473 if (!argp2) {
35474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35475 }
35476 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35477 {
35478 arg3 = wxString_in_helper(obj2);
35479 if (arg3 == NULL) SWIG_fail;
35480 temp3 = true;
35481 }
35482 if (obj3) {
35483 ecode4 = SWIG_AsVal_int(obj3, &val4);
35484 if (!SWIG_IsOK(ecode4)) {
35485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35486 }
35487 arg4 = static_cast< int >(val4);
35488 }
35489 if (obj4) {
35490 ecode5 = SWIG_AsVal_int(obj4, &val5);
35491 if (!SWIG_IsOK(ecode5)) {
35492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35493 }
35494 arg5 = static_cast< int >(val5);
35495 }
35496 if (obj5) {
35497 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35498 if (!SWIG_IsOK(res6)) {
35499 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35500 }
554f62e9
RD
35501 }
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35509 {
35510 if (temp3)
35511 delete arg3;
35512 }
35513 return resultobj;
35514fail:
35515 {
35516 if (temp3)
35517 delete arg3;
35518 }
35519 return NULL;
35520}
35521
35522
35523SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35524 PyObject *resultobj = 0;
35525 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35526 wxTreeItemId *arg2 = 0 ;
35527 wxTreeItemId *arg3 = 0 ;
35528 wxString *arg4 = 0 ;
35529 int arg5 = (int) -1 ;
35530 int arg6 = (int) -1 ;
35531 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35532 wxTreeItemId result;
35533 void *argp1 = 0 ;
35534 int res1 = 0 ;
35535 void *argp2 = 0 ;
35536 int res2 = 0 ;
35537 void *argp3 = 0 ;
35538 int res3 = 0 ;
35539 bool temp4 = false ;
35540 int val5 ;
35541 int ecode5 = 0 ;
35542 int val6 ;
35543 int ecode6 = 0 ;
35544 int res7 = 0 ;
35545 PyObject * obj0 = 0 ;
35546 PyObject * obj1 = 0 ;
35547 PyObject * obj2 = 0 ;
35548 PyObject * obj3 = 0 ;
35549 PyObject * obj4 = 0 ;
35550 PyObject * obj5 = 0 ;
35551 PyObject * obj6 = 0 ;
35552 char * kwnames[] = {
35553 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35554 };
35555
35556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35558 if (!SWIG_IsOK(res1)) {
35559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35560 }
35561 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35563 if (!SWIG_IsOK(res2)) {
35564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35565 }
35566 if (!argp2) {
35567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35568 }
35569 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35570 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35571 if (!SWIG_IsOK(res3)) {
35572 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35573 }
35574 if (!argp3) {
35575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35576 }
35577 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35578 {
35579 arg4 = wxString_in_helper(obj3);
35580 if (arg4 == NULL) SWIG_fail;
35581 temp4 = true;
35582 }
35583 if (obj4) {
35584 ecode5 = SWIG_AsVal_int(obj4, &val5);
35585 if (!SWIG_IsOK(ecode5)) {
35586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35587 }
35588 arg5 = static_cast< int >(val5);
35589 }
35590 if (obj5) {
35591 ecode6 = SWIG_AsVal_int(obj5, &val6);
35592 if (!SWIG_IsOK(ecode6)) {
35593 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35594 }
35595 arg6 = static_cast< int >(val6);
35596 }
35597 if (obj6) {
35598 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35599 if (!SWIG_IsOK(res7)) {
35600 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35601 }
554f62e9
RD
35602 }
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35606 wxPyEndAllowThreads(__tstate);
35607 if (PyErr_Occurred()) SWIG_fail;
35608 }
35609 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35610 {
35611 if (temp4)
35612 delete arg4;
35613 }
35614 return resultobj;
35615fail:
35616 {
35617 if (temp4)
35618 delete arg4;
35619 }
35620 return NULL;
35621}
35622
35623
35624SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35625 PyObject *resultobj = 0;
35626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35627 wxTreeItemId *arg2 = 0 ;
35628 size_t arg3 ;
35629 wxString *arg4 = 0 ;
35630 int arg5 = (int) -1 ;
35631 int arg6 = (int) -1 ;
35632 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35633 wxTreeItemId result;
35634 void *argp1 = 0 ;
35635 int res1 = 0 ;
35636 void *argp2 = 0 ;
35637 int res2 = 0 ;
35638 size_t val3 ;
35639 int ecode3 = 0 ;
35640 bool temp4 = false ;
35641 int val5 ;
35642 int ecode5 = 0 ;
35643 int val6 ;
35644 int ecode6 = 0 ;
35645 int res7 = 0 ;
35646 PyObject * obj0 = 0 ;
35647 PyObject * obj1 = 0 ;
35648 PyObject * obj2 = 0 ;
35649 PyObject * obj3 = 0 ;
35650 PyObject * obj4 = 0 ;
35651 PyObject * obj5 = 0 ;
35652 PyObject * obj6 = 0 ;
35653 char * kwnames[] = {
35654 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35655 };
35656
35657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35659 if (!SWIG_IsOK(res1)) {
35660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35661 }
35662 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35664 if (!SWIG_IsOK(res2)) {
35665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35666 }
35667 if (!argp2) {
35668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35669 }
35670 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35671 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35672 if (!SWIG_IsOK(ecode3)) {
35673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35674 }
35675 arg3 = static_cast< size_t >(val3);
35676 {
35677 arg4 = wxString_in_helper(obj3);
35678 if (arg4 == NULL) SWIG_fail;
35679 temp4 = true;
35680 }
35681 if (obj4) {
35682 ecode5 = SWIG_AsVal_int(obj4, &val5);
35683 if (!SWIG_IsOK(ecode5)) {
35684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35685 }
35686 arg5 = static_cast< int >(val5);
35687 }
35688 if (obj5) {
35689 ecode6 = SWIG_AsVal_int(obj5, &val6);
35690 if (!SWIG_IsOK(ecode6)) {
35691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35692 }
35693 arg6 = static_cast< int >(val6);
35694 }
35695 if (obj6) {
35696 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35697 if (!SWIG_IsOK(res7)) {
35698 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35699 }
554f62e9
RD
35700 }
35701 {
35702 PyThreadState* __tstate = wxPyBeginAllowThreads();
35703 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35704 wxPyEndAllowThreads(__tstate);
35705 if (PyErr_Occurred()) SWIG_fail;
35706 }
35707 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35708 {
35709 if (temp4)
35710 delete arg4;
35711 }
35712 return resultobj;
35713fail:
35714 {
35715 if (temp4)
35716 delete arg4;
35717 }
35718 return NULL;
35719}
35720
35721
35722SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35723 PyObject *resultobj = 0;
35724 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35725 wxTreeItemId *arg2 = 0 ;
35726 wxString *arg3 = 0 ;
35727 int arg4 = (int) -1 ;
35728 int arg5 = (int) -1 ;
35729 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35730 wxTreeItemId result;
35731 void *argp1 = 0 ;
35732 int res1 = 0 ;
35733 void *argp2 = 0 ;
35734 int res2 = 0 ;
35735 bool temp3 = false ;
35736 int val4 ;
35737 int ecode4 = 0 ;
35738 int val5 ;
35739 int ecode5 = 0 ;
35740 int res6 = 0 ;
35741 PyObject * obj0 = 0 ;
35742 PyObject * obj1 = 0 ;
35743 PyObject * obj2 = 0 ;
35744 PyObject * obj3 = 0 ;
35745 PyObject * obj4 = 0 ;
35746 PyObject * obj5 = 0 ;
35747 char * kwnames[] = {
35748 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35749 };
35750
35751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35753 if (!SWIG_IsOK(res1)) {
35754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35755 }
35756 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35758 if (!SWIG_IsOK(res2)) {
35759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35760 }
35761 if (!argp2) {
35762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35763 }
35764 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35765 {
35766 arg3 = wxString_in_helper(obj2);
35767 if (arg3 == NULL) SWIG_fail;
35768 temp3 = true;
35769 }
35770 if (obj3) {
35771 ecode4 = SWIG_AsVal_int(obj3, &val4);
35772 if (!SWIG_IsOK(ecode4)) {
35773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35774 }
35775 arg4 = static_cast< int >(val4);
35776 }
35777 if (obj4) {
35778 ecode5 = SWIG_AsVal_int(obj4, &val5);
35779 if (!SWIG_IsOK(ecode5)) {
35780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35781 }
35782 arg5 = static_cast< int >(val5);
35783 }
35784 if (obj5) {
35785 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35786 if (!SWIG_IsOK(res6)) {
35787 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35788 }
554f62e9
RD
35789 }
35790 {
35791 PyThreadState* __tstate = wxPyBeginAllowThreads();
35792 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35793 wxPyEndAllowThreads(__tstate);
35794 if (PyErr_Occurred()) SWIG_fail;
35795 }
35796 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35797 {
35798 if (temp3)
35799 delete arg3;
35800 }
35801 return resultobj;
35802fail:
35803 {
35804 if (temp3)
35805 delete arg3;
35806 }
35807 return NULL;
35808}
35809
35810
35811SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35812 PyObject *resultobj = 0;
35813 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35814 wxTreeItemId *arg2 = 0 ;
35815 void *argp1 = 0 ;
35816 int res1 = 0 ;
35817 void *argp2 = 0 ;
35818 int res2 = 0 ;
35819 PyObject * obj0 = 0 ;
35820 PyObject * obj1 = 0 ;
35821 char * kwnames[] = {
35822 (char *) "self",(char *) "item", NULL
35823 };
35824
35825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35827 if (!SWIG_IsOK(res1)) {
35828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35829 }
35830 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35832 if (!SWIG_IsOK(res2)) {
35833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35834 }
35835 if (!argp2) {
35836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35837 }
35838 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35839 {
35840 PyThreadState* __tstate = wxPyBeginAllowThreads();
35841 (arg1)->Delete((wxTreeItemId const &)*arg2);
35842 wxPyEndAllowThreads(__tstate);
35843 if (PyErr_Occurred()) SWIG_fail;
35844 }
35845 resultobj = SWIG_Py_Void();
35846 return resultobj;
35847fail:
35848 return NULL;
35849}
35850
35851
35852SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35853 PyObject *resultobj = 0;
35854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35855 wxTreeItemId *arg2 = 0 ;
35856 void *argp1 = 0 ;
35857 int res1 = 0 ;
35858 void *argp2 = 0 ;
35859 int res2 = 0 ;
35860 PyObject * obj0 = 0 ;
35861 PyObject * obj1 = 0 ;
35862 char * kwnames[] = {
35863 (char *) "self",(char *) "item", NULL
35864 };
35865
35866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35868 if (!SWIG_IsOK(res1)) {
35869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35870 }
35871 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35873 if (!SWIG_IsOK(res2)) {
35874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35875 }
35876 if (!argp2) {
35877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35878 }
35879 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35880 {
35881 PyThreadState* __tstate = wxPyBeginAllowThreads();
35882 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35883 wxPyEndAllowThreads(__tstate);
35884 if (PyErr_Occurred()) SWIG_fail;
35885 }
35886 resultobj = SWIG_Py_Void();
35887 return resultobj;
35888fail:
35889 return NULL;
d55e5bfc
RD
35890}
35891
35892
554f62e9
RD
35893SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35894 PyObject *resultobj = 0;
35895 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35896 void *argp1 = 0 ;
35897 int res1 = 0 ;
35898 PyObject *swig_obj[1] ;
35899
35900 if (!args) SWIG_fail;
35901 swig_obj[0] = args;
35902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35903 if (!SWIG_IsOK(res1)) {
35904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35905 }
35906 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35907 {
35908 PyThreadState* __tstate = wxPyBeginAllowThreads();
35909 (arg1)->DeleteAllItems();
35910 wxPyEndAllowThreads(__tstate);
35911 if (PyErr_Occurred()) SWIG_fail;
35912 }
35913 resultobj = SWIG_Py_Void();
35914 return resultobj;
35915fail:
35916 return NULL;
35917}
35918
35919
35920SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35921 PyObject *resultobj = 0;
35922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35923 wxTreeItemId *arg2 = 0 ;
35924 void *argp1 = 0 ;
35925 int res1 = 0 ;
35926 void *argp2 = 0 ;
35927 int res2 = 0 ;
35928 PyObject * obj0 = 0 ;
35929 PyObject * obj1 = 0 ;
35930 char * kwnames[] = {
35931 (char *) "self",(char *) "item", NULL
35932 };
35933
35934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35936 if (!SWIG_IsOK(res1)) {
35937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35938 }
35939 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35941 if (!SWIG_IsOK(res2)) {
35942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35943 }
35944 if (!argp2) {
35945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35946 }
35947 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35948 {
35949 PyThreadState* __tstate = wxPyBeginAllowThreads();
35950 (arg1)->Expand((wxTreeItemId const &)*arg2);
35951 wxPyEndAllowThreads(__tstate);
35952 if (PyErr_Occurred()) SWIG_fail;
35953 }
35954 resultobj = SWIG_Py_Void();
35955 return resultobj;
35956fail:
35957 return NULL;
35958}
35959
35960
35961SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35962 PyObject *resultobj = 0;
35963 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35964 wxTreeItemId *arg2 = 0 ;
35965 void *argp1 = 0 ;
35966 int res1 = 0 ;
35967 void *argp2 = 0 ;
35968 int res2 = 0 ;
35969 PyObject * obj0 = 0 ;
35970 PyObject * obj1 = 0 ;
35971 char * kwnames[] = {
35972 (char *) "self",(char *) "item", NULL
35973 };
35974
35975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35977 if (!SWIG_IsOK(res1)) {
35978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35979 }
35980 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35982 if (!SWIG_IsOK(res2)) {
35983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35984 }
35985 if (!argp2) {
35986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35987 }
35988 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35992 wxPyEndAllowThreads(__tstate);
35993 if (PyErr_Occurred()) SWIG_fail;
35994 }
35995 resultobj = SWIG_Py_Void();
35996 return resultobj;
35997fail:
35998 return NULL;
35999}
36000
36001
36002SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36003 PyObject *resultobj = 0;
36004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36005 wxTreeItemId *arg2 = 0 ;
36006 void *argp1 = 0 ;
36007 int res1 = 0 ;
36008 void *argp2 = 0 ;
36009 int res2 = 0 ;
36010 PyObject * obj0 = 0 ;
36011 PyObject * obj1 = 0 ;
36012 char * kwnames[] = {
36013 (char *) "self",(char *) "item", NULL
36014 };
36015
36016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36018 if (!SWIG_IsOK(res1)) {
36019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36020 }
36021 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36023 if (!SWIG_IsOK(res2)) {
36024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36025 }
36026 if (!argp2) {
36027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36028 }
36029 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36033 wxPyEndAllowThreads(__tstate);
36034 if (PyErr_Occurred()) SWIG_fail;
36035 }
36036 resultobj = SWIG_Py_Void();
36037 return resultobj;
36038fail:
36039 return NULL;
36040}
36041
36042
36043SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36044 PyObject *resultobj = 0;
36045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36046 wxTreeItemId *arg2 = 0 ;
36047 void *argp1 = 0 ;
36048 int res1 = 0 ;
36049 void *argp2 = 0 ;
36050 int res2 = 0 ;
36051 PyObject * obj0 = 0 ;
36052 PyObject * obj1 = 0 ;
36053 char * kwnames[] = {
36054 (char *) "self",(char *) "item", NULL
36055 };
36056
36057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36059 if (!SWIG_IsOK(res1)) {
36060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36061 }
36062 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36064 if (!SWIG_IsOK(res2)) {
36065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36066 }
36067 if (!argp2) {
36068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36069 }
36070 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36071 {
36072 PyThreadState* __tstate = wxPyBeginAllowThreads();
36073 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36074 wxPyEndAllowThreads(__tstate);
36075 if (PyErr_Occurred()) SWIG_fail;
36076 }
36077 resultobj = SWIG_Py_Void();
36078 return resultobj;
36079fail:
36080 return NULL;
d55e5bfc
RD
36081}
36082
36083
554f62e9
RD
36084SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36085 PyObject *resultobj = 0;
36086 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36087 void *argp1 = 0 ;
36088 int res1 = 0 ;
36089 PyObject *swig_obj[1] ;
36090
36091 if (!args) SWIG_fail;
36092 swig_obj[0] = args;
36093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36094 if (!SWIG_IsOK(res1)) {
36095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36096 }
36097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 (arg1)->Unselect();
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_Py_Void();
36105 return resultobj;
36106fail:
36107 return NULL;
36108}
36109
36110
36111SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36112 PyObject *resultobj = 0;
36113 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36114 wxTreeItemId *arg2 = 0 ;
36115 void *argp1 = 0 ;
36116 int res1 = 0 ;
36117 void *argp2 = 0 ;
36118 int res2 = 0 ;
36119 PyObject * obj0 = 0 ;
36120 PyObject * obj1 = 0 ;
36121 char * kwnames[] = {
36122 (char *) "self",(char *) "item", NULL
36123 };
36124
36125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36127 if (!SWIG_IsOK(res1)) {
36128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36129 }
36130 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36132 if (!SWIG_IsOK(res2)) {
36133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36134 }
36135 if (!argp2) {
36136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36137 }
36138 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36139 {
36140 PyThreadState* __tstate = wxPyBeginAllowThreads();
36141 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36142 wxPyEndAllowThreads(__tstate);
36143 if (PyErr_Occurred()) SWIG_fail;
36144 }
36145 resultobj = SWIG_Py_Void();
36146 return resultobj;
36147fail:
36148 return NULL;
d55e5bfc
RD
36149}
36150
36151
554f62e9
RD
36152SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36153 PyObject *resultobj = 0;
36154 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36155 void *argp1 = 0 ;
36156 int res1 = 0 ;
36157 PyObject *swig_obj[1] ;
36158
36159 if (!args) SWIG_fail;
36160 swig_obj[0] = args;
36161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36162 if (!SWIG_IsOK(res1)) {
36163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36164 }
36165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36166 {
36167 PyThreadState* __tstate = wxPyBeginAllowThreads();
36168 (arg1)->UnselectAll();
36169 wxPyEndAllowThreads(__tstate);
36170 if (PyErr_Occurred()) SWIG_fail;
36171 }
36172 resultobj = SWIG_Py_Void();
36173 return resultobj;
36174fail:
36175 return NULL;
36176}
36177
36178
36179SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36180 PyObject *resultobj = 0;
36181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36182 wxTreeItemId *arg2 = 0 ;
36183 bool arg3 = (bool) true ;
36184 void *argp1 = 0 ;
36185 int res1 = 0 ;
36186 void *argp2 = 0 ;
36187 int res2 = 0 ;
36188 bool val3 ;
36189 int ecode3 = 0 ;
36190 PyObject * obj0 = 0 ;
36191 PyObject * obj1 = 0 ;
36192 PyObject * obj2 = 0 ;
36193 char * kwnames[] = {
36194 (char *) "self",(char *) "item",(char *) "select", NULL
36195 };
36196
36197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36199 if (!SWIG_IsOK(res1)) {
36200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36201 }
36202 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36204 if (!SWIG_IsOK(res2)) {
36205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36206 }
36207 if (!argp2) {
36208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36209 }
36210 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36211 if (obj2) {
36212 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36213 if (!SWIG_IsOK(ecode3)) {
36214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36215 }
36216 arg3 = static_cast< bool >(val3);
36217 }
36218 {
36219 PyThreadState* __tstate = wxPyBeginAllowThreads();
36220 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36221 wxPyEndAllowThreads(__tstate);
36222 if (PyErr_Occurred()) SWIG_fail;
36223 }
36224 resultobj = SWIG_Py_Void();
36225 return resultobj;
36226fail:
36227 return NULL;
36228}
36229
36230
36231SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36232 PyObject *resultobj = 0;
36233 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36234 wxTreeItemId *arg2 = 0 ;
36235 void *argp1 = 0 ;
36236 int res1 = 0 ;
36237 void *argp2 = 0 ;
36238 int res2 = 0 ;
36239 PyObject * obj0 = 0 ;
36240 PyObject * obj1 = 0 ;
36241 char * kwnames[] = {
36242 (char *) "self",(char *) "item", NULL
36243 };
36244
36245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36247 if (!SWIG_IsOK(res1)) {
36248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36249 }
36250 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36252 if (!SWIG_IsOK(res2)) {
36253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36254 }
36255 if (!argp2) {
36256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36257 }
36258 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36259 {
36260 PyThreadState* __tstate = wxPyBeginAllowThreads();
36261 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36262 wxPyEndAllowThreads(__tstate);
36263 if (PyErr_Occurred()) SWIG_fail;
36264 }
36265 resultobj = SWIG_Py_Void();
36266 return resultobj;
36267fail:
36268 return NULL;
36269}
36270
36271
36272SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36275 wxTreeItemId *arg2 = 0 ;
36276 void *argp1 = 0 ;
36277 int res1 = 0 ;
36278 void *argp2 = 0 ;
36279 int res2 = 0 ;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 char * kwnames[] = {
36283 (char *) "self",(char *) "item", NULL
36284 };
36285
36286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36288 if (!SWIG_IsOK(res1)) {
36289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36290 }
36291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36293 if (!SWIG_IsOK(res2)) {
36294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36295 }
36296 if (!argp2) {
36297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36298 }
36299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36300 {
36301 PyThreadState* __tstate = wxPyBeginAllowThreads();
36302 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36303 wxPyEndAllowThreads(__tstate);
36304 if (PyErr_Occurred()) SWIG_fail;
36305 }
36306 resultobj = SWIG_Py_Void();
36307 return resultobj;
36308fail:
36309 return NULL;
36310}
36311
36312
36313SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36314 PyObject *resultobj = 0;
36315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36316 wxTreeItemId *arg2 = 0 ;
36317 void *argp1 = 0 ;
36318 int res1 = 0 ;
36319 void *argp2 = 0 ;
36320 int res2 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 PyObject * obj1 = 0 ;
36323 char * kwnames[] = {
36324 (char *) "self",(char *) "item", NULL
36325 };
36326
36327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36334 if (!SWIG_IsOK(res2)) {
36335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36336 }
36337 if (!argp2) {
36338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36339 }
36340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36341 {
36342 PyThreadState* __tstate = wxPyBeginAllowThreads();
36343 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36344 wxPyEndAllowThreads(__tstate);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 resultobj = SWIG_Py_Void();
36348 return resultobj;
36349fail:
36350 return NULL;
36351}
36352
36353
36354SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36355 PyObject *resultobj = 0;
36356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36357 wxTreeItemId *arg2 = 0 ;
36358 void *argp1 = 0 ;
36359 int res1 = 0 ;
36360 void *argp2 = 0 ;
36361 int res2 = 0 ;
36362 PyObject * obj0 = 0 ;
36363 PyObject * obj1 = 0 ;
36364 char * kwnames[] = {
36365 (char *) "self",(char *) "item", NULL
36366 };
36367
36368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36370 if (!SWIG_IsOK(res1)) {
36371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36372 }
36373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36375 if (!SWIG_IsOK(res2)) {
36376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36377 }
36378 if (!argp2) {
36379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36380 }
36381 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36382 {
36383 PyThreadState* __tstate = wxPyBeginAllowThreads();
36384 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36385 wxPyEndAllowThreads(__tstate);
36386 if (PyErr_Occurred()) SWIG_fail;
36387 }
36388 resultobj = SWIG_Py_Void();
36389 return resultobj;
36390fail:
36391 return NULL;
d55e5bfc
RD
36392}
36393
36394
554f62e9
RD
36395SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36396 PyObject *resultobj = 0;
36397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36398 wxTextCtrl *result = 0 ;
36399 void *argp1 = 0 ;
36400 int res1 = 0 ;
36401 PyObject *swig_obj[1] ;
36402
36403 if (!args) SWIG_fail;
36404 swig_obj[0] = args;
36405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36406 if (!SWIG_IsOK(res1)) {
36407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36408 }
36409 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36410 {
36411 PyThreadState* __tstate = wxPyBeginAllowThreads();
36412 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36413 wxPyEndAllowThreads(__tstate);
36414 if (PyErr_Occurred()) SWIG_fail;
36415 }
36416 {
36417 resultobj = wxPyMake_wxObject(result, 0);
36418 }
36419 return resultobj;
36420fail:
36421 return NULL;
36422}
36423
36424
36425SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36426 PyObject *resultobj = 0;
36427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36428 wxTreeItemId *arg2 = 0 ;
36429 bool arg3 = (bool) false ;
36430 void *argp1 = 0 ;
36431 int res1 = 0 ;
36432 void *argp2 = 0 ;
36433 int res2 = 0 ;
36434 bool val3 ;
36435 int ecode3 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 PyObject * obj1 = 0 ;
36438 PyObject * obj2 = 0 ;
36439 char * kwnames[] = {
36440 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36441 };
36442
36443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36445 if (!SWIG_IsOK(res1)) {
36446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36447 }
36448 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36450 if (!SWIG_IsOK(res2)) {
36451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36452 }
36453 if (!argp2) {
36454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36455 }
36456 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36457 if (obj2) {
36458 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36459 if (!SWIG_IsOK(ecode3)) {
36460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36461 }
36462 arg3 = static_cast< bool >(val3);
36463 }
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 resultobj = SWIG_Py_Void();
36471 return resultobj;
36472fail:
36473 return NULL;
36474}
36475
36476
36477SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36478 PyObject *resultobj = 0;
36479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36480 wxTreeItemId *arg2 = 0 ;
36481 void *argp1 = 0 ;
36482 int res1 = 0 ;
36483 void *argp2 = 0 ;
36484 int res2 = 0 ;
36485 PyObject * obj0 = 0 ;
36486 PyObject * obj1 = 0 ;
36487 char * kwnames[] = {
36488 (char *) "self",(char *) "item", NULL
36489 };
36490
36491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36493 if (!SWIG_IsOK(res1)) {
36494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36495 }
36496 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36498 if (!SWIG_IsOK(res2)) {
36499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36500 }
36501 if (!argp2) {
36502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36503 }
36504 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36505 {
36506 PyThreadState* __tstate = wxPyBeginAllowThreads();
36507 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36508 wxPyEndAllowThreads(__tstate);
36509 if (PyErr_Occurred()) SWIG_fail;
36510 }
36511 resultobj = SWIG_Py_Void();
36512 return resultobj;
36513fail:
36514 return NULL;
36515}
36516
36517
36518SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36519 PyObject *resultobj = 0;
36520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36521 wxPoint *arg2 = 0 ;
36522 int *arg3 = 0 ;
36523 wxTreeItemId result;
36524 void *argp1 = 0 ;
36525 int res1 = 0 ;
36526 wxPoint temp2 ;
36527 int temp3 ;
36528 int res3 = SWIG_TMPOBJ ;
36529 PyObject * obj0 = 0 ;
36530 PyObject * obj1 = 0 ;
36531 char * kwnames[] = {
36532 (char *) "self",(char *) "point", NULL
36533 };
36534
36535 arg3 = &temp3;
36536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36538 if (!SWIG_IsOK(res1)) {
36539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36540 }
36541 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36542 {
36543 arg2 = &temp2;
36544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36545 }
36546 {
36547 PyThreadState* __tstate = wxPyBeginAllowThreads();
36548 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36549 wxPyEndAllowThreads(__tstate);
36550 if (PyErr_Occurred()) SWIG_fail;
36551 }
36552 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36553 if (SWIG_IsTmpObj(res3)) {
36554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36555 } else {
36556 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36558 }
36559 return resultobj;
36560fail:
36561 return NULL;
36562}
36563
36564
36565SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36566 PyObject *resultobj = 0;
36567 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36568 wxTreeItemId *arg2 = 0 ;
36569 bool arg3 = (bool) false ;
36570 PyObject *result = 0 ;
36571 void *argp1 = 0 ;
36572 int res1 = 0 ;
36573 void *argp2 = 0 ;
36574 int res2 = 0 ;
36575 bool val3 ;
36576 int ecode3 = 0 ;
36577 PyObject * obj0 = 0 ;
36578 PyObject * obj1 = 0 ;
36579 PyObject * obj2 = 0 ;
36580 char * kwnames[] = {
36581 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36582 };
36583
36584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36586 if (!SWIG_IsOK(res1)) {
36587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36588 }
36589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36591 if (!SWIG_IsOK(res2)) {
36592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36593 }
36594 if (!argp2) {
36595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36596 }
36597 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36598 if (obj2) {
36599 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36600 if (!SWIG_IsOK(ecode3)) {
36601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36602 }
36603 arg3 = static_cast< bool >(val3);
36604 }
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = result;
36612 return resultobj;
36613fail:
36614 return NULL;
36615}
36616
36617
36618SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36619 PyObject *resultobj = 0;
36620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36621 wxTreeItemId *arg2 = 0 ;
36622 int arg3 ;
36623 void *argp1 = 0 ;
36624 int res1 = 0 ;
36625 void *argp2 = 0 ;
36626 int res2 = 0 ;
36627 int val3 ;
36628 int ecode3 = 0 ;
36629 PyObject * obj0 = 0 ;
36630 PyObject * obj1 = 0 ;
36631 PyObject * obj2 = 0 ;
36632 char * kwnames[] = {
36633 (char *) "self",(char *) "node",(char *) "state", NULL
36634 };
36635
36636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36638 if (!SWIG_IsOK(res1)) {
36639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36640 }
36641 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36643 if (!SWIG_IsOK(res2)) {
36644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36645 }
36646 if (!argp2) {
36647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36648 }
36649 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36650 ecode3 = SWIG_AsVal_int(obj2, &val3);
36651 if (!SWIG_IsOK(ecode3)) {
36652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36653 }
36654 arg3 = static_cast< int >(val3);
36655 {
36656 PyThreadState* __tstate = wxPyBeginAllowThreads();
36657 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36658 wxPyEndAllowThreads(__tstate);
36659 if (PyErr_Occurred()) SWIG_fail;
36660 }
36661 resultobj = SWIG_Py_Void();
36662 return resultobj;
36663fail:
36664 return NULL;
36665}
36666
36667
36668SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36669 PyObject *resultobj = 0;
36670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36671 wxTreeItemId *arg2 = 0 ;
36672 int result;
36673 void *argp1 = 0 ;
36674 int res1 = 0 ;
36675 void *argp2 = 0 ;
36676 int res2 = 0 ;
36677 PyObject * obj0 = 0 ;
36678 PyObject * obj1 = 0 ;
36679 char * kwnames[] = {
36680 (char *) "self",(char *) "node", NULL
36681 };
36682
36683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36685 if (!SWIG_IsOK(res1)) {
36686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36687 }
36688 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36690 if (!SWIG_IsOK(res2)) {
36691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36692 }
36693 if (!argp2) {
36694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36695 }
36696 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36697 {
36698 PyThreadState* __tstate = wxPyBeginAllowThreads();
36699 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36700 wxPyEndAllowThreads(__tstate);
36701 if (PyErr_Occurred()) SWIG_fail;
36702 }
36703 resultobj = SWIG_From_int(static_cast< int >(result));
36704 return resultobj;
36705fail:
36706 return NULL;
36707}
36708
36709
36710SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36711 PyObject *resultobj = 0;
36712 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36713 SwigValueWrapper<wxVisualAttributes > result;
36714 int val1 ;
36715 int ecode1 = 0 ;
36716 PyObject * obj0 = 0 ;
36717 char * kwnames[] = {
36718 (char *) "variant", NULL
36719 };
36720
36721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36722 if (obj0) {
36723 ecode1 = SWIG_AsVal_int(obj0, &val1);
36724 if (!SWIG_IsOK(ecode1)) {
36725 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36726 }
36727 arg1 = static_cast< wxWindowVariant >(val1);
36728 }
36729 {
36730 if (!wxPyCheckForApp()) SWIG_fail;
36731 PyThreadState* __tstate = wxPyBeginAllowThreads();
36732 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36733 wxPyEndAllowThreads(__tstate);
36734 if (PyErr_Occurred()) SWIG_fail;
36735 }
36736 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36737 return resultobj;
36738fail:
36739 return NULL;
d55e5bfc
RD
36740}
36741
36742
554f62e9
RD
36743SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36744 PyObject *obj;
36745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36746 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36747 return SWIG_Py_Void();
d55e5bfc
RD
36748}
36749
554f62e9
RD
36750SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36751 return SWIG_Python_InitShadowInstance(args);
36752}
d55e5bfc 36753
554f62e9
RD
36754SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36755 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36756 return 1;
d55e5bfc
RD
36757}
36758
36759
554f62e9
RD
36760SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36761 PyObject *pyobj = 0;
36762
36763 {
d55e5bfc 36764#if wxUSE_UNICODE
554f62e9 36765 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 36766#else
554f62e9 36767 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 36768#endif
554f62e9
RD
36769 }
36770 return pyobj;
36771}
36772
36773
36774SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36775 PyObject *resultobj = 0;
36776 wxWindow *arg1 = (wxWindow *) 0 ;
36777 int arg2 = (int) (int)-1 ;
36778 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36779 wxString *arg3 = (wxString *) &arg3_defvalue ;
36780 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36781 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36782 wxSize const &arg5_defvalue = wxDefaultSize ;
36783 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36784 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36785 wxString const &arg7_defvalue = wxPyEmptyString ;
36786 wxString *arg7 = (wxString *) &arg7_defvalue ;
36787 int arg8 = (int) 0 ;
36788 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36789 wxString *arg9 = (wxString *) &arg9_defvalue ;
36790 wxGenericDirCtrl *result = 0 ;
36791 void *argp1 = 0 ;
36792 int res1 = 0 ;
36793 int val2 ;
36794 int ecode2 = 0 ;
36795 bool temp3 = false ;
36796 wxPoint temp4 ;
36797 wxSize temp5 ;
36798 long val6 ;
36799 int ecode6 = 0 ;
36800 bool temp7 = false ;
36801 int val8 ;
36802 int ecode8 = 0 ;
36803 bool temp9 = false ;
36804 PyObject * obj0 = 0 ;
36805 PyObject * obj1 = 0 ;
36806 PyObject * obj2 = 0 ;
36807 PyObject * obj3 = 0 ;
36808 PyObject * obj4 = 0 ;
36809 PyObject * obj5 = 0 ;
36810 PyObject * obj6 = 0 ;
36811 PyObject * obj7 = 0 ;
36812 PyObject * obj8 = 0 ;
36813 char * kwnames[] = {
36814 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36815 };
36816
36817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36819 if (!SWIG_IsOK(res1)) {
36820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36821 }
36822 arg1 = reinterpret_cast< wxWindow * >(argp1);
36823 if (obj1) {
36824 ecode2 = SWIG_AsVal_int(obj1, &val2);
36825 if (!SWIG_IsOK(ecode2)) {
36826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36827 }
36828 arg2 = static_cast< int >(val2);
36829 }
36830 if (obj2) {
093d3ff1 36831 {
554f62e9
RD
36832 arg3 = wxString_in_helper(obj2);
36833 if (arg3 == NULL) SWIG_fail;
36834 temp3 = true;
093d3ff1 36835 }
554f62e9
RD
36836 }
36837 if (obj3) {
093d3ff1 36838 {
554f62e9
RD
36839 arg4 = &temp4;
36840 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 36841 }
554f62e9
RD
36842 }
36843 if (obj4) {
d55e5bfc 36844 {
554f62e9
RD
36845 arg5 = &temp5;
36846 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 36847 }
554f62e9
RD
36848 }
36849 if (obj5) {
36850 ecode6 = SWIG_AsVal_long(obj5, &val6);
36851 if (!SWIG_IsOK(ecode6)) {
36852 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36853 }
36854 arg6 = static_cast< long >(val6);
36855 }
36856 if (obj6) {
d55e5bfc 36857 {
554f62e9
RD
36858 arg7 = wxString_in_helper(obj6);
36859 if (arg7 == NULL) SWIG_fail;
36860 temp7 = true;
d55e5bfc 36861 }
554f62e9
RD
36862 }
36863 if (obj7) {
36864 ecode8 = SWIG_AsVal_int(obj7, &val8);
36865 if (!SWIG_IsOK(ecode8)) {
36866 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36867 }
36868 arg8 = static_cast< int >(val8);
36869 }
36870 if (obj8) {
d55e5bfc 36871 {
554f62e9
RD
36872 arg9 = wxString_in_helper(obj8);
36873 if (arg9 == NULL) SWIG_fail;
36874 temp9 = true;
d55e5bfc 36875 }
554f62e9
RD
36876 }
36877 {
36878 if (!wxPyCheckForApp()) SWIG_fail;
36879 PyThreadState* __tstate = wxPyBeginAllowThreads();
36880 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36881 wxPyEndAllowThreads(__tstate);
36882 if (PyErr_Occurred()) SWIG_fail;
36883 }
36884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36885 {
36886 if (temp3)
36887 delete arg3;
36888 }
36889 {
36890 if (temp7)
36891 delete arg7;
36892 }
36893 {
36894 if (temp9)
36895 delete arg9;
36896 }
36897 return resultobj;
36898fail:
36899 {
36900 if (temp3)
36901 delete arg3;
36902 }
36903 {
36904 if (temp7)
36905 delete arg7;
36906 }
36907 {
36908 if (temp9)
36909 delete arg9;
36910 }
36911 return NULL;
d55e5bfc
RD
36912}
36913
36914
554f62e9
RD
36915SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36916 PyObject *resultobj = 0;
36917 wxGenericDirCtrl *result = 0 ;
36918
36919 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36920 {
36921 if (!wxPyCheckForApp()) SWIG_fail;
36922 PyThreadState* __tstate = wxPyBeginAllowThreads();
36923 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36924 wxPyEndAllowThreads(__tstate);
36925 if (PyErr_Occurred()) SWIG_fail;
36926 }
36927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36928 return resultobj;
36929fail:
36930 return NULL;
36931}
36932
36933
36934SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36935 PyObject *resultobj = 0;
36936 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36937 wxWindow *arg2 = (wxWindow *) 0 ;
36938 int arg3 = (int) (int)-1 ;
36939 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36940 wxString *arg4 = (wxString *) &arg4_defvalue ;
36941 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36942 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36943 wxSize const &arg6_defvalue = wxDefaultSize ;
36944 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36945 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36946 wxString const &arg8_defvalue = wxPyEmptyString ;
36947 wxString *arg8 = (wxString *) &arg8_defvalue ;
36948 int arg9 = (int) 0 ;
36949 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36950 wxString *arg10 = (wxString *) &arg10_defvalue ;
36951 bool result;
36952 void *argp1 = 0 ;
36953 int res1 = 0 ;
36954 void *argp2 = 0 ;
36955 int res2 = 0 ;
36956 int val3 ;
36957 int ecode3 = 0 ;
36958 bool temp4 = false ;
36959 wxPoint temp5 ;
36960 wxSize temp6 ;
36961 long val7 ;
36962 int ecode7 = 0 ;
36963 bool temp8 = false ;
36964 int val9 ;
36965 int ecode9 = 0 ;
36966 bool temp10 = false ;
36967 PyObject * obj0 = 0 ;
36968 PyObject * obj1 = 0 ;
36969 PyObject * obj2 = 0 ;
36970 PyObject * obj3 = 0 ;
36971 PyObject * obj4 = 0 ;
36972 PyObject * obj5 = 0 ;
36973 PyObject * obj6 = 0 ;
36974 PyObject * obj7 = 0 ;
36975 PyObject * obj8 = 0 ;
36976 PyObject * obj9 = 0 ;
36977 char * kwnames[] = {
36978 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36979 };
36980
36981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36983 if (!SWIG_IsOK(res1)) {
36984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36985 }
36986 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36987 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36988 if (!SWIG_IsOK(res2)) {
36989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36990 }
36991 arg2 = reinterpret_cast< wxWindow * >(argp2);
36992 if (obj2) {
36993 ecode3 = SWIG_AsVal_int(obj2, &val3);
36994 if (!SWIG_IsOK(ecode3)) {
36995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36996 }
36997 arg3 = static_cast< int >(val3);
36998 }
36999 if (obj3) {
d55e5bfc 37000 {
554f62e9
RD
37001 arg4 = wxString_in_helper(obj3);
37002 if (arg4 == NULL) SWIG_fail;
37003 temp4 = true;
d55e5bfc 37004 }
554f62e9
RD
37005 }
37006 if (obj4) {
093d3ff1 37007 {
554f62e9
RD
37008 arg5 = &temp5;
37009 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37010 }
554f62e9
RD
37011 }
37012 if (obj5) {
d55e5bfc 37013 {
554f62e9
RD
37014 arg6 = &temp6;
37015 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37016 }
554f62e9
RD
37017 }
37018 if (obj6) {
37019 ecode7 = SWIG_AsVal_long(obj6, &val7);
37020 if (!SWIG_IsOK(ecode7)) {
37021 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37022 }
37023 arg7 = static_cast< long >(val7);
37024 }
37025 if (obj7) {
d55e5bfc 37026 {
554f62e9
RD
37027 arg8 = wxString_in_helper(obj7);
37028 if (arg8 == NULL) SWIG_fail;
37029 temp8 = true;
d55e5bfc 37030 }
554f62e9
RD
37031 }
37032 if (obj8) {
37033 ecode9 = SWIG_AsVal_int(obj8, &val9);
37034 if (!SWIG_IsOK(ecode9)) {
37035 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37036 }
37037 arg9 = static_cast< int >(val9);
37038 }
37039 if (obj9) {
d55e5bfc 37040 {
554f62e9
RD
37041 arg10 = wxString_in_helper(obj9);
37042 if (arg10 == NULL) SWIG_fail;
37043 temp10 = true;
d55e5bfc 37044 }
554f62e9
RD
37045 }
37046 {
37047 PyThreadState* __tstate = wxPyBeginAllowThreads();
37048 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37049 wxPyEndAllowThreads(__tstate);
37050 if (PyErr_Occurred()) SWIG_fail;
37051 }
37052 {
37053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37054 }
37055 {
37056 if (temp4)
37057 delete arg4;
37058 }
37059 {
37060 if (temp8)
37061 delete arg8;
37062 }
37063 {
37064 if (temp10)
37065 delete arg10;
37066 }
37067 return resultobj;
37068fail:
37069 {
37070 if (temp4)
37071 delete arg4;
37072 }
37073 {
37074 if (temp8)
37075 delete arg8;
37076 }
37077 {
37078 if (temp10)
37079 delete arg10;
37080 }
37081 return NULL;
37082}
37083
37084
37085SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37086 PyObject *resultobj = 0;
37087 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37088 wxString *arg2 = 0 ;
37089 bool result;
37090 void *argp1 = 0 ;
37091 int res1 = 0 ;
37092 bool temp2 = false ;
37093 PyObject * obj0 = 0 ;
37094 PyObject * obj1 = 0 ;
37095 char * kwnames[] = {
37096 (char *) "self",(char *) "path", NULL
37097 };
37098
37099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37101 if (!SWIG_IsOK(res1)) {
37102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37103 }
37104 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37105 {
37106 arg2 = wxString_in_helper(obj1);
37107 if (arg2 == NULL) SWIG_fail;
37108 temp2 = true;
37109 }
37110 {
37111 PyThreadState* __tstate = wxPyBeginAllowThreads();
37112 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37113 wxPyEndAllowThreads(__tstate);
37114 if (PyErr_Occurred()) SWIG_fail;
37115 }
37116 {
37117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37118 }
37119 {
37120 if (temp2)
37121 delete arg2;
37122 }
37123 return resultobj;
37124fail:
37125 {
37126 if (temp2)
37127 delete arg2;
37128 }
37129 return NULL;
d55e5bfc
RD
37130}
37131
37132
554f62e9
RD
37133SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37134 PyObject *resultobj = 0;
37135 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37136 wxString result;
37137 void *argp1 = 0 ;
37138 int res1 = 0 ;
37139 PyObject *swig_obj[1] ;
37140
37141 if (!args) SWIG_fail;
37142 swig_obj[0] = args;
37143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37144 if (!SWIG_IsOK(res1)) {
37145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37146 }
37147 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37148 {
37149 PyThreadState* __tstate = wxPyBeginAllowThreads();
37150 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37151 wxPyEndAllowThreads(__tstate);
37152 if (PyErr_Occurred()) SWIG_fail;
37153 }
37154 {
37155#if wxUSE_UNICODE
37156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37157#else
37158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37159#endif
37160 }
37161 return resultobj;
37162fail:
37163 return NULL;
37164}
37165
37166
37167SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37168 PyObject *resultobj = 0;
37169 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37170 wxString *arg2 = 0 ;
37171 void *argp1 = 0 ;
37172 int res1 = 0 ;
37173 bool temp2 = false ;
37174 PyObject * obj0 = 0 ;
37175 PyObject * obj1 = 0 ;
37176 char * kwnames[] = {
37177 (char *) "self",(char *) "path", NULL
37178 };
37179
37180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37182 if (!SWIG_IsOK(res1)) {
37183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37184 }
37185 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37186 {
37187 arg2 = wxString_in_helper(obj1);
37188 if (arg2 == NULL) SWIG_fail;
37189 temp2 = true;
37190 }
37191 {
37192 PyThreadState* __tstate = wxPyBeginAllowThreads();
37193 (arg1)->SetDefaultPath((wxString const &)*arg2);
37194 wxPyEndAllowThreads(__tstate);
37195 if (PyErr_Occurred()) SWIG_fail;
37196 }
37197 resultobj = SWIG_Py_Void();
37198 {
37199 if (temp2)
37200 delete arg2;
37201 }
37202 return resultobj;
37203fail:
37204 {
37205 if (temp2)
37206 delete arg2;
37207 }
37208 return NULL;
d55e5bfc
RD
37209}
37210
37211
554f62e9
RD
37212SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37213 PyObject *resultobj = 0;
37214 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37215 wxString result;
37216 void *argp1 = 0 ;
37217 int res1 = 0 ;
37218 PyObject *swig_obj[1] ;
37219
37220 if (!args) SWIG_fail;
37221 swig_obj[0] = args;
37222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37223 if (!SWIG_IsOK(res1)) {
37224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37225 }
37226 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37227 {
37228 PyThreadState* __tstate = wxPyBeginAllowThreads();
37229 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37230 wxPyEndAllowThreads(__tstate);
37231 if (PyErr_Occurred()) SWIG_fail;
37232 }
37233 {
37234#if wxUSE_UNICODE
37235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37236#else
37237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37238#endif
37239 }
37240 return resultobj;
37241fail:
37242 return NULL;
d55e5bfc
RD
37243}
37244
37245
554f62e9
RD
37246SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37247 PyObject *resultobj = 0;
37248 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37249 wxString result;
37250 void *argp1 = 0 ;
37251 int res1 = 0 ;
37252 PyObject *swig_obj[1] ;
37253
37254 if (!args) SWIG_fail;
37255 swig_obj[0] = args;
37256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37257 if (!SWIG_IsOK(res1)) {
37258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37259 }
37260 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37261 {
37262 PyThreadState* __tstate = wxPyBeginAllowThreads();
37263 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37264 wxPyEndAllowThreads(__tstate);
37265 if (PyErr_Occurred()) SWIG_fail;
37266 }
37267 {
37268#if wxUSE_UNICODE
37269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37270#else
37271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37272#endif
37273 }
37274 return resultobj;
37275fail:
37276 return NULL;
37277}
37278
37279
37280SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37281 PyObject *resultobj = 0;
37282 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37283 wxString *arg2 = 0 ;
37284 void *argp1 = 0 ;
37285 int res1 = 0 ;
37286 bool temp2 = false ;
37287 PyObject * obj0 = 0 ;
37288 PyObject * obj1 = 0 ;
37289 char * kwnames[] = {
37290 (char *) "self",(char *) "path", NULL
37291 };
37292
37293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37295 if (!SWIG_IsOK(res1)) {
37296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37297 }
37298 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37299 {
37300 arg2 = wxString_in_helper(obj1);
37301 if (arg2 == NULL) SWIG_fail;
37302 temp2 = true;
37303 }
37304 {
37305 PyThreadState* __tstate = wxPyBeginAllowThreads();
37306 (arg1)->SetPath((wxString const &)*arg2);
37307 wxPyEndAllowThreads(__tstate);
37308 if (PyErr_Occurred()) SWIG_fail;
37309 }
37310 resultobj = SWIG_Py_Void();
37311 {
37312 if (temp2)
37313 delete arg2;
37314 }
37315 return resultobj;
37316fail:
37317 {
37318 if (temp2)
37319 delete arg2;
37320 }
37321 return NULL;
37322}
37323
37324
37325SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37326 PyObject *resultobj = 0;
37327 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37328 bool arg2 ;
37329 void *argp1 = 0 ;
37330 int res1 = 0 ;
37331 bool val2 ;
37332 int ecode2 = 0 ;
37333 PyObject * obj0 = 0 ;
37334 PyObject * obj1 = 0 ;
37335 char * kwnames[] = {
37336 (char *) "self",(char *) "show", NULL
37337 };
37338
37339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37341 if (!SWIG_IsOK(res1)) {
37342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37343 }
37344 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37345 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37346 if (!SWIG_IsOK(ecode2)) {
37347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37348 }
37349 arg2 = static_cast< bool >(val2);
37350 {
37351 PyThreadState* __tstate = wxPyBeginAllowThreads();
37352 (arg1)->ShowHidden(arg2);
37353 wxPyEndAllowThreads(__tstate);
37354 if (PyErr_Occurred()) SWIG_fail;
37355 }
37356 resultobj = SWIG_Py_Void();
37357 return resultobj;
37358fail:
37359 return NULL;
d55e5bfc
RD
37360}
37361
37362
554f62e9
RD
37363SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37364 PyObject *resultobj = 0;
37365 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37366 bool result;
37367 void *argp1 = 0 ;
37368 int res1 = 0 ;
37369 PyObject *swig_obj[1] ;
37370
37371 if (!args) SWIG_fail;
37372 swig_obj[0] = args;
37373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37374 if (!SWIG_IsOK(res1)) {
37375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37376 }
37377 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37378 {
37379 PyThreadState* __tstate = wxPyBeginAllowThreads();
37380 result = (bool)(arg1)->GetShowHidden();
37381 wxPyEndAllowThreads(__tstate);
37382 if (PyErr_Occurred()) SWIG_fail;
37383 }
37384 {
37385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37386 }
37387 return resultobj;
37388fail:
37389 return NULL;
d55e5bfc
RD
37390}
37391
37392
554f62e9
RD
37393SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37394 PyObject *resultobj = 0;
37395 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37396 wxString result;
37397 void *argp1 = 0 ;
37398 int res1 = 0 ;
37399 PyObject *swig_obj[1] ;
37400
37401 if (!args) SWIG_fail;
37402 swig_obj[0] = args;
37403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37404 if (!SWIG_IsOK(res1)) {
37405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37406 }
37407 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37408 {
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 {
37415#if wxUSE_UNICODE
37416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37417#else
37418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37419#endif
37420 }
37421 return resultobj;
37422fail:
37423 return NULL;
37424}
37425
37426
37427SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37428 PyObject *resultobj = 0;
37429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37430 wxString *arg2 = 0 ;
37431 void *argp1 = 0 ;
37432 int res1 = 0 ;
37433 bool temp2 = false ;
37434 PyObject * obj0 = 0 ;
37435 PyObject * obj1 = 0 ;
37436 char * kwnames[] = {
37437 (char *) "self",(char *) "filter", NULL
37438 };
37439
37440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37442 if (!SWIG_IsOK(res1)) {
37443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37444 }
37445 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37446 {
37447 arg2 = wxString_in_helper(obj1);
37448 if (arg2 == NULL) SWIG_fail;
37449 temp2 = true;
37450 }
37451 {
37452 PyThreadState* __tstate = wxPyBeginAllowThreads();
37453 (arg1)->SetFilter((wxString const &)*arg2);
37454 wxPyEndAllowThreads(__tstate);
37455 if (PyErr_Occurred()) SWIG_fail;
37456 }
37457 resultobj = SWIG_Py_Void();
37458 {
37459 if (temp2)
37460 delete arg2;
37461 }
37462 return resultobj;
37463fail:
37464 {
37465 if (temp2)
37466 delete arg2;
37467 }
37468 return NULL;
d55e5bfc
RD
37469}
37470
37471
554f62e9
RD
37472SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37473 PyObject *resultobj = 0;
37474 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37475 int result;
37476 void *argp1 = 0 ;
37477 int res1 = 0 ;
37478 PyObject *swig_obj[1] ;
37479
37480 if (!args) SWIG_fail;
37481 swig_obj[0] = args;
37482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37483 if (!SWIG_IsOK(res1)) {
37484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37485 }
37486 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37487 {
37488 PyThreadState* __tstate = wxPyBeginAllowThreads();
37489 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37490 wxPyEndAllowThreads(__tstate);
37491 if (PyErr_Occurred()) SWIG_fail;
37492 }
37493 resultobj = SWIG_From_int(static_cast< int >(result));
37494 return resultobj;
37495fail:
37496 return NULL;
37497}
37498
37499
37500SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37501 PyObject *resultobj = 0;
37502 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37503 int arg2 ;
37504 void *argp1 = 0 ;
37505 int res1 = 0 ;
37506 int val2 ;
37507 int ecode2 = 0 ;
37508 PyObject * obj0 = 0 ;
37509 PyObject * obj1 = 0 ;
37510 char * kwnames[] = {
37511 (char *) "self",(char *) "n", NULL
37512 };
37513
37514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37516 if (!SWIG_IsOK(res1)) {
37517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37518 }
37519 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37520 ecode2 = SWIG_AsVal_int(obj1, &val2);
37521 if (!SWIG_IsOK(ecode2)) {
37522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37523 }
37524 arg2 = static_cast< int >(val2);
37525 {
37526 PyThreadState* __tstate = wxPyBeginAllowThreads();
37527 (arg1)->SetFilterIndex(arg2);
37528 wxPyEndAllowThreads(__tstate);
37529 if (PyErr_Occurred()) SWIG_fail;
37530 }
37531 resultobj = SWIG_Py_Void();
37532 return resultobj;
37533fail:
37534 return NULL;
d55e5bfc
RD
37535}
37536
37537
554f62e9
RD
37538SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37539 PyObject *resultobj = 0;
37540 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37541 wxTreeItemId result;
37542 void *argp1 = 0 ;
37543 int res1 = 0 ;
37544 PyObject *swig_obj[1] ;
37545
37546 if (!args) SWIG_fail;
37547 swig_obj[0] = args;
37548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37549 if (!SWIG_IsOK(res1)) {
37550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37551 }
37552 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37553 {
37554 PyThreadState* __tstate = wxPyBeginAllowThreads();
37555 result = (arg1)->GetRootId();
37556 wxPyEndAllowThreads(__tstate);
37557 if (PyErr_Occurred()) SWIG_fail;
37558 }
37559 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37560 return resultobj;
37561fail:
37562 return NULL;
d55e5bfc
RD
37563}
37564
37565
554f62e9
RD
37566SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37567 PyObject *resultobj = 0;
37568 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37569 wxPyTreeCtrl *result = 0 ;
37570 void *argp1 = 0 ;
37571 int res1 = 0 ;
37572 PyObject *swig_obj[1] ;
37573
37574 if (!args) SWIG_fail;
37575 swig_obj[0] = args;
37576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37577 if (!SWIG_IsOK(res1)) {
37578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37579 }
37580 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37581 {
37582 PyThreadState* __tstate = wxPyBeginAllowThreads();
37583 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37584 wxPyEndAllowThreads(__tstate);
37585 if (PyErr_Occurred()) SWIG_fail;
37586 }
37587 {
37588 resultobj = wxPyMake_wxObject(result, 0);
37589 }
37590 return resultobj;
37591fail:
37592 return NULL;
d55e5bfc
RD
37593}
37594
37595
554f62e9
RD
37596SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37597 PyObject *resultobj = 0;
37598 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37599 wxDirFilterListCtrl *result = 0 ;
37600 void *argp1 = 0 ;
37601 int res1 = 0 ;
37602 PyObject *swig_obj[1] ;
37603
37604 if (!args) SWIG_fail;
37605 swig_obj[0] = args;
37606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37607 if (!SWIG_IsOK(res1)) {
37608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37609 }
37610 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37611 {
37612 PyThreadState* __tstate = wxPyBeginAllowThreads();
37613 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37614 wxPyEndAllowThreads(__tstate);
37615 if (PyErr_Occurred()) SWIG_fail;
37616 }
37617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37618 return resultobj;
37619fail:
37620 return NULL;
37621}
37622
37623
37624SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37625 PyObject *resultobj = 0;
37626 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37627 wxTreeItemId arg2 ;
37628 wxString *arg3 = 0 ;
37629 bool *arg4 = 0 ;
37630 wxTreeItemId result;
37631 void *argp1 = 0 ;
37632 int res1 = 0 ;
37633 void *argp2 ;
37634 int res2 = 0 ;
37635 bool temp3 = false ;
37636 bool temp4 ;
37637 int res4 = SWIG_TMPOBJ ;
37638 PyObject * obj0 = 0 ;
37639 PyObject * obj1 = 0 ;
37640 PyObject * obj2 = 0 ;
37641 char * kwnames[] = {
37642 (char *) "self",(char *) "parentId",(char *) "path", NULL
37643 };
37644
37645 arg4 = &temp4;
37646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37650 }
37651 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37652 {
37653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37654 if (!SWIG_IsOK(res2)) {
37655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37656 }
37657 if (!argp2) {
37658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37659 } else {
37660 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37661 arg2 = *temp;
37662 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 37663 }
554f62e9
RD
37664 }
37665 {
37666 arg3 = wxString_in_helper(obj2);
37667 if (arg3 == NULL) SWIG_fail;
37668 temp3 = true;
37669 }
37670 {
37671 PyThreadState* __tstate = wxPyBeginAllowThreads();
37672 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37673 wxPyEndAllowThreads(__tstate);
37674 if (PyErr_Occurred()) SWIG_fail;
37675 }
37676 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37677 if (SWIG_IsTmpObj(res4)) {
37678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37679 } else {
37680 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37682 }
37683 {
37684 if (temp3)
37685 delete arg3;
37686 }
37687 return resultobj;
37688fail:
37689 {
37690 if (temp3)
37691 delete arg3;
37692 }
37693 return NULL;
d55e5bfc
RD
37694}
37695
37696
554f62e9
RD
37697SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37698 PyObject *resultobj = 0;
37699 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37700 void *argp1 = 0 ;
37701 int res1 = 0 ;
37702 PyObject *swig_obj[1] ;
37703
37704 if (!args) SWIG_fail;
37705 swig_obj[0] = args;
37706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37707 if (!SWIG_IsOK(res1)) {
37708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37709 }
37710 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37711 {
37712 PyThreadState* __tstate = wxPyBeginAllowThreads();
37713 (arg1)->DoResize();
37714 wxPyEndAllowThreads(__tstate);
37715 if (PyErr_Occurred()) SWIG_fail;
37716 }
37717 resultobj = SWIG_Py_Void();
37718 return resultobj;
37719fail:
37720 return NULL;
37721}
37722
37723
37724SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37725 PyObject *resultobj = 0;
37726 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37727 void *argp1 = 0 ;
37728 int res1 = 0 ;
37729 PyObject *swig_obj[1] ;
37730
37731 if (!args) SWIG_fail;
37732 swig_obj[0] = args;
37733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37734 if (!SWIG_IsOK(res1)) {
37735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37736 }
37737 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37738 {
37739 PyThreadState* __tstate = wxPyBeginAllowThreads();
37740 (arg1)->ReCreateTree();
37741 wxPyEndAllowThreads(__tstate);
37742 if (PyErr_Occurred()) SWIG_fail;
37743 }
37744 resultobj = SWIG_Py_Void();
37745 return resultobj;
37746fail:
37747 return NULL;
37748}
37749
37750
37751SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37752 PyObject *obj;
37753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37754 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37755 return SWIG_Py_Void();
37756}
37757
37758SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37759 return SWIG_Python_InitShadowInstance(args);
37760}
37761
37762SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37763 PyObject *resultobj = 0;
37764 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37765 int arg2 = (int) (int)-1 ;
37766 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37767 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37768 wxSize const &arg4_defvalue = wxDefaultSize ;
37769 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37770 long arg5 = (long) 0 ;
37771 wxDirFilterListCtrl *result = 0 ;
37772 void *argp1 = 0 ;
37773 int res1 = 0 ;
37774 int val2 ;
37775 int ecode2 = 0 ;
37776 wxPoint temp3 ;
37777 wxSize temp4 ;
37778 long val5 ;
37779 int ecode5 = 0 ;
37780 PyObject * obj0 = 0 ;
37781 PyObject * obj1 = 0 ;
37782 PyObject * obj2 = 0 ;
37783 PyObject * obj3 = 0 ;
37784 PyObject * obj4 = 0 ;
37785 char * kwnames[] = {
37786 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37787 };
37788
37789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37791 if (!SWIG_IsOK(res1)) {
37792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37793 }
37794 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37795 if (obj1) {
37796 ecode2 = SWIG_AsVal_int(obj1, &val2);
37797 if (!SWIG_IsOK(ecode2)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37799 }
37800 arg2 = static_cast< int >(val2);
37801 }
37802 if (obj2) {
d55e5bfc 37803 {
554f62e9
RD
37804 arg3 = &temp3;
37805 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 37806 }
554f62e9
RD
37807 }
37808 if (obj3) {
d55e5bfc 37809 {
554f62e9
RD
37810 arg4 = &temp4;
37811 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37812 }
554f62e9
RD
37813 }
37814 if (obj4) {
37815 ecode5 = SWIG_AsVal_long(obj4, &val5);
37816 if (!SWIG_IsOK(ecode5)) {
37817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37818 }
37819 arg5 = static_cast< long >(val5);
37820 }
37821 {
37822 if (!wxPyCheckForApp()) SWIG_fail;
37823 PyThreadState* __tstate = wxPyBeginAllowThreads();
37824 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37825 wxPyEndAllowThreads(__tstate);
37826 if (PyErr_Occurred()) SWIG_fail;
37827 }
37828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37829 return resultobj;
37830fail:
37831 return NULL;
d55e5bfc
RD
37832}
37833
37834
554f62e9
RD
37835SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37836 PyObject *resultobj = 0;
37837 wxDirFilterListCtrl *result = 0 ;
37838
37839 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37840 {
37841 if (!wxPyCheckForApp()) SWIG_fail;
37842 PyThreadState* __tstate = wxPyBeginAllowThreads();
37843 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37844 wxPyEndAllowThreads(__tstate);
37845 if (PyErr_Occurred()) SWIG_fail;
37846 }
37847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37848 return resultobj;
37849fail:
37850 return NULL;
37851}
37852
37853
37854SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37855 PyObject *resultobj = 0;
37856 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37857 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37858 int arg3 = (int) (int)-1 ;
37859 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37860 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37861 wxSize const &arg5_defvalue = wxDefaultSize ;
37862 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37863 long arg6 = (long) 0 ;
37864 bool result;
37865 void *argp1 = 0 ;
37866 int res1 = 0 ;
37867 void *argp2 = 0 ;
37868 int res2 = 0 ;
37869 int val3 ;
37870 int ecode3 = 0 ;
37871 wxPoint temp4 ;
37872 wxSize temp5 ;
37873 long val6 ;
37874 int ecode6 = 0 ;
37875 PyObject * obj0 = 0 ;
37876 PyObject * obj1 = 0 ;
37877 PyObject * obj2 = 0 ;
37878 PyObject * obj3 = 0 ;
37879 PyObject * obj4 = 0 ;
37880 PyObject * obj5 = 0 ;
37881 char * kwnames[] = {
37882 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37883 };
37884
37885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37887 if (!SWIG_IsOK(res1)) {
37888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37889 }
37890 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37892 if (!SWIG_IsOK(res2)) {
37893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37894 }
37895 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37896 if (obj2) {
37897 ecode3 = SWIG_AsVal_int(obj2, &val3);
37898 if (!SWIG_IsOK(ecode3)) {
37899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37900 }
37901 arg3 = static_cast< int >(val3);
37902 }
37903 if (obj3) {
093d3ff1 37904 {
554f62e9
RD
37905 arg4 = &temp4;
37906 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37907 }
554f62e9
RD
37908 }
37909 if (obj4) {
093d3ff1 37910 {
554f62e9
RD
37911 arg5 = &temp5;
37912 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37913 }
554f62e9
RD
37914 }
37915 if (obj5) {
37916 ecode6 = SWIG_AsVal_long(obj5, &val6);
37917 if (!SWIG_IsOK(ecode6)) {
37918 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37919 }
37920 arg6 = static_cast< long >(val6);
37921 }
37922 {
37923 PyThreadState* __tstate = wxPyBeginAllowThreads();
37924 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37925 wxPyEndAllowThreads(__tstate);
37926 if (PyErr_Occurred()) SWIG_fail;
37927 }
37928 {
37929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37930 }
37931 return resultobj;
37932fail:
37933 return NULL;
37934}
37935
37936
37937SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37938 PyObject *resultobj = 0;
37939 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37940 wxString *arg2 = 0 ;
37941 int arg3 ;
37942 void *argp1 = 0 ;
37943 int res1 = 0 ;
37944 bool temp2 = false ;
37945 int val3 ;
37946 int ecode3 = 0 ;
37947 PyObject * obj0 = 0 ;
37948 PyObject * obj1 = 0 ;
37949 PyObject * obj2 = 0 ;
37950 char * kwnames[] = {
37951 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37952 };
37953
37954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37956 if (!SWIG_IsOK(res1)) {
37957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37958 }
37959 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37960 {
37961 arg2 = wxString_in_helper(obj1);
37962 if (arg2 == NULL) SWIG_fail;
37963 temp2 = true;
37964 }
37965 ecode3 = SWIG_AsVal_int(obj2, &val3);
37966 if (!SWIG_IsOK(ecode3)) {
37967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37968 }
37969 arg3 = static_cast< int >(val3);
37970 {
37971 PyThreadState* __tstate = wxPyBeginAllowThreads();
37972 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37973 wxPyEndAllowThreads(__tstate);
37974 if (PyErr_Occurred()) SWIG_fail;
37975 }
37976 resultobj = SWIG_Py_Void();
37977 {
37978 if (temp2)
37979 delete arg2;
37980 }
37981 return resultobj;
37982fail:
37983 {
37984 if (temp2)
37985 delete arg2;
37986 }
37987 return NULL;
37988}
37989
37990
37991SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37992 PyObject *obj;
37993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37994 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37995 return SWIG_Py_Void();
37996}
37997
37998SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37999 return SWIG_Python_InitShadowInstance(args);
38000}
38001
38002SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38003 PyObject *resultobj = 0;
38004 wxWindow *arg1 = (wxWindow *) 0 ;
38005 int arg2 = (int) (int)-1 ;
38006 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38007 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38008 wxSize const &arg4_defvalue = wxDefaultSize ;
38009 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38010 long arg5 = (long) 0 ;
38011 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38012 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38013 wxString const &arg7_defvalue = wxPyControlNameStr ;
38014 wxString *arg7 = (wxString *) &arg7_defvalue ;
38015 wxPyControl *result = 0 ;
38016 void *argp1 = 0 ;
38017 int res1 = 0 ;
38018 int val2 ;
38019 int ecode2 = 0 ;
38020 wxPoint temp3 ;
38021 wxSize temp4 ;
38022 long val5 ;
38023 int ecode5 = 0 ;
38024 void *argp6 = 0 ;
38025 int res6 = 0 ;
38026 bool temp7 = false ;
38027 PyObject * obj0 = 0 ;
38028 PyObject * obj1 = 0 ;
38029 PyObject * obj2 = 0 ;
38030 PyObject * obj3 = 0 ;
38031 PyObject * obj4 = 0 ;
38032 PyObject * obj5 = 0 ;
38033 PyObject * obj6 = 0 ;
38034 char * kwnames[] = {
38035 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38036 };
38037
38038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38040 if (!SWIG_IsOK(res1)) {
38041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38042 }
38043 arg1 = reinterpret_cast< wxWindow * >(argp1);
38044 if (obj1) {
38045 ecode2 = SWIG_AsVal_int(obj1, &val2);
38046 if (!SWIG_IsOK(ecode2)) {
38047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38048 }
38049 arg2 = static_cast< int >(val2);
38050 }
38051 if (obj2) {
d55e5bfc 38052 {
554f62e9
RD
38053 arg3 = &temp3;
38054 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38055 }
554f62e9
RD
38056 }
38057 if (obj3) {
d55e5bfc 38058 {
554f62e9
RD
38059 arg4 = &temp4;
38060 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38061 }
554f62e9
RD
38062 }
38063 if (obj4) {
38064 ecode5 = SWIG_AsVal_long(obj4, &val5);
38065 if (!SWIG_IsOK(ecode5)) {
38066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38067 }
38068 arg5 = static_cast< long >(val5);
38069 }
38070 if (obj5) {
38071 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38072 if (!SWIG_IsOK(res6)) {
38073 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
093d3ff1 38074 }
554f62e9
RD
38075 if (!argp6) {
38076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 38077 }
554f62e9
RD
38078 arg6 = reinterpret_cast< wxValidator * >(argp6);
38079 }
38080 if (obj6) {
d55e5bfc 38081 {
554f62e9
RD
38082 arg7 = wxString_in_helper(obj6);
38083 if (arg7 == NULL) SWIG_fail;
38084 temp7 = true;
d55e5bfc 38085 }
554f62e9
RD
38086 }
38087 {
38088 if (!wxPyCheckForApp()) SWIG_fail;
38089 PyThreadState* __tstate = wxPyBeginAllowThreads();
38090 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38091 wxPyEndAllowThreads(__tstate);
38092 if (PyErr_Occurred()) SWIG_fail;
38093 }
38094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38095 {
38096 if (temp7)
38097 delete arg7;
38098 }
38099 return resultobj;
38100fail:
38101 {
38102 if (temp7)
38103 delete arg7;
38104 }
38105 return NULL;
d55e5bfc
RD
38106}
38107
38108
554f62e9
RD
38109SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38110 PyObject *resultobj = 0;
38111 wxPyControl *result = 0 ;
38112
38113 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38114 {
38115 if (!wxPyCheckForApp()) SWIG_fail;
38116 PyThreadState* __tstate = wxPyBeginAllowThreads();
38117 result = (wxPyControl *)new wxPyControl();
38118 wxPyEndAllowThreads(__tstate);
38119 if (PyErr_Occurred()) SWIG_fail;
38120 }
38121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38122 return resultobj;
38123fail:
38124 return NULL;
38125}
38126
38127
38128SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38129 PyObject *resultobj = 0;
38130 wxPyControl *arg1 = (wxPyControl *) 0 ;
38131 PyObject *arg2 = (PyObject *) 0 ;
38132 PyObject *arg3 = (PyObject *) 0 ;
38133 void *argp1 = 0 ;
38134 int res1 = 0 ;
38135 PyObject * obj0 = 0 ;
38136 PyObject * obj1 = 0 ;
38137 PyObject * obj2 = 0 ;
38138 char * kwnames[] = {
38139 (char *) "self",(char *) "self",(char *) "_class", NULL
38140 };
38141
38142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38144 if (!SWIG_IsOK(res1)) {
38145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38146 }
38147 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38148 arg2 = obj1;
38149 arg3 = obj2;
38150 {
38151 PyThreadState* __tstate = wxPyBeginAllowThreads();
38152 (arg1)->_setCallbackInfo(arg2,arg3);
38153 wxPyEndAllowThreads(__tstate);
38154 if (PyErr_Occurred()) SWIG_fail;
38155 }
38156 resultobj = SWIG_Py_Void();
38157 return resultobj;
38158fail:
38159 return NULL;
38160}
38161
38162
38163SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38164 PyObject *resultobj = 0;
38165 wxPyControl *arg1 = (wxPyControl *) 0 ;
38166 wxSize *arg2 = 0 ;
38167 void *argp1 = 0 ;
38168 int res1 = 0 ;
38169 wxSize temp2 ;
38170 PyObject * obj0 = 0 ;
38171 PyObject * obj1 = 0 ;
38172 char * kwnames[] = {
38173 (char *) "self",(char *) "size", NULL
38174 };
38175
38176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38178 if (!SWIG_IsOK(res1)) {
38179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38180 }
38181 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38182 {
38183 arg2 = &temp2;
38184 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38185 }
38186 {
38187 PyThreadState* __tstate = wxPyBeginAllowThreads();
38188 (arg1)->SetBestSize((wxSize const &)*arg2);
38189 wxPyEndAllowThreads(__tstate);
38190 if (PyErr_Occurred()) SWIG_fail;
38191 }
38192 resultobj = SWIG_Py_Void();
38193 return resultobj;
38194fail:
38195 return NULL;
38196}
38197
38198
38199SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38200 PyObject *resultobj = 0;
38201 wxPyControl *arg1 = (wxPyControl *) 0 ;
38202 wxDC *arg2 = (wxDC *) 0 ;
38203 bool result;
38204 void *argp1 = 0 ;
38205 int res1 = 0 ;
38206 void *argp2 = 0 ;
38207 int res2 = 0 ;
38208 PyObject * obj0 = 0 ;
38209 PyObject * obj1 = 0 ;
38210 char * kwnames[] = {
38211 (char *) "self",(char *) "dc", NULL
38212 };
38213
38214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38216 if (!SWIG_IsOK(res1)) {
38217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38218 }
38219 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38220 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38221 if (!SWIG_IsOK(res2)) {
38222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38223 }
38224 arg2 = reinterpret_cast< wxDC * >(argp2);
38225 {
38226 PyThreadState* __tstate = wxPyBeginAllowThreads();
38227 result = (bool)(arg1)->DoEraseBackground(arg2);
38228 wxPyEndAllowThreads(__tstate);
38229 if (PyErr_Occurred()) SWIG_fail;
38230 }
38231 {
38232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38233 }
38234 return resultobj;
38235fail:
38236 return NULL;
38237}
38238
38239
38240SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38241 PyObject *resultobj = 0;
38242 wxPyControl *arg1 = (wxPyControl *) 0 ;
38243 int arg2 ;
38244 int arg3 ;
38245 int arg4 ;
38246 int arg5 ;
38247 void *argp1 = 0 ;
38248 int res1 = 0 ;
38249 int val2 ;
38250 int ecode2 = 0 ;
38251 int val3 ;
38252 int ecode3 = 0 ;
38253 int val4 ;
38254 int ecode4 = 0 ;
38255 int val5 ;
38256 int ecode5 = 0 ;
38257 PyObject * obj0 = 0 ;
38258 PyObject * obj1 = 0 ;
38259 PyObject * obj2 = 0 ;
38260 PyObject * obj3 = 0 ;
38261 PyObject * obj4 = 0 ;
38262 char * kwnames[] = {
38263 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38264 };
38265
38266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38268 if (!SWIG_IsOK(res1)) {
38269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38270 }
38271 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38272 ecode2 = SWIG_AsVal_int(obj1, &val2);
38273 if (!SWIG_IsOK(ecode2)) {
38274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38275 }
38276 arg2 = static_cast< int >(val2);
38277 ecode3 = SWIG_AsVal_int(obj2, &val3);
38278 if (!SWIG_IsOK(ecode3)) {
38279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38280 }
38281 arg3 = static_cast< int >(val3);
38282 ecode4 = SWIG_AsVal_int(obj3, &val4);
38283 if (!SWIG_IsOK(ecode4)) {
38284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38285 }
38286 arg4 = static_cast< int >(val4);
38287 ecode5 = SWIG_AsVal_int(obj4, &val5);
38288 if (!SWIG_IsOK(ecode5)) {
38289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38290 }
38291 arg5 = static_cast< int >(val5);
38292 {
38293 PyThreadState* __tstate = wxPyBeginAllowThreads();
38294 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38295 wxPyEndAllowThreads(__tstate);
38296 if (PyErr_Occurred()) SWIG_fail;
38297 }
38298 resultobj = SWIG_Py_Void();
38299 return resultobj;
38300fail:
38301 return NULL;
38302}
38303
38304
38305SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38306 PyObject *resultobj = 0;
38307 wxPyControl *arg1 = (wxPyControl *) 0 ;
38308 int arg2 ;
38309 int arg3 ;
38310 int arg4 ;
38311 int arg5 ;
38312 int arg6 = (int) wxSIZE_AUTO ;
38313 void *argp1 = 0 ;
38314 int res1 = 0 ;
38315 int val2 ;
38316 int ecode2 = 0 ;
38317 int val3 ;
38318 int ecode3 = 0 ;
38319 int val4 ;
38320 int ecode4 = 0 ;
38321 int val5 ;
38322 int ecode5 = 0 ;
38323 int val6 ;
38324 int ecode6 = 0 ;
38325 PyObject * obj0 = 0 ;
38326 PyObject * obj1 = 0 ;
38327 PyObject * obj2 = 0 ;
38328 PyObject * obj3 = 0 ;
38329 PyObject * obj4 = 0 ;
38330 PyObject * obj5 = 0 ;
38331 char * kwnames[] = {
38332 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38333 };
38334
38335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38337 if (!SWIG_IsOK(res1)) {
38338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38339 }
38340 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38341 ecode2 = SWIG_AsVal_int(obj1, &val2);
38342 if (!SWIG_IsOK(ecode2)) {
38343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38344 }
38345 arg2 = static_cast< int >(val2);
38346 ecode3 = SWIG_AsVal_int(obj2, &val3);
38347 if (!SWIG_IsOK(ecode3)) {
38348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38349 }
38350 arg3 = static_cast< int >(val3);
38351 ecode4 = SWIG_AsVal_int(obj3, &val4);
38352 if (!SWIG_IsOK(ecode4)) {
38353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38354 }
38355 arg4 = static_cast< int >(val4);
38356 ecode5 = SWIG_AsVal_int(obj4, &val5);
38357 if (!SWIG_IsOK(ecode5)) {
38358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38359 }
38360 arg5 = static_cast< int >(val5);
38361 if (obj5) {
38362 ecode6 = SWIG_AsVal_int(obj5, &val6);
38363 if (!SWIG_IsOK(ecode6)) {
38364 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38365 }
38366 arg6 = static_cast< int >(val6);
38367 }
38368 {
38369 PyThreadState* __tstate = wxPyBeginAllowThreads();
38370 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38371 wxPyEndAllowThreads(__tstate);
38372 if (PyErr_Occurred()) SWIG_fail;
38373 }
38374 resultobj = SWIG_Py_Void();
38375 return resultobj;
38376fail:
38377 return NULL;
38378}
38379
38380
38381SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38382 PyObject *resultobj = 0;
38383 wxPyControl *arg1 = (wxPyControl *) 0 ;
38384 int arg2 ;
38385 int arg3 ;
38386 void *argp1 = 0 ;
38387 int res1 = 0 ;
38388 int val2 ;
38389 int ecode2 = 0 ;
38390 int val3 ;
38391 int ecode3 = 0 ;
38392 PyObject * obj0 = 0 ;
38393 PyObject * obj1 = 0 ;
38394 PyObject * obj2 = 0 ;
38395 char * kwnames[] = {
38396 (char *) "self",(char *) "width",(char *) "height", NULL
38397 };
38398
38399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38401 if (!SWIG_IsOK(res1)) {
38402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38403 }
38404 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38405 ecode2 = SWIG_AsVal_int(obj1, &val2);
38406 if (!SWIG_IsOK(ecode2)) {
38407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38408 }
38409 arg2 = static_cast< int >(val2);
38410 ecode3 = SWIG_AsVal_int(obj2, &val3);
38411 if (!SWIG_IsOK(ecode3)) {
38412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38413 }
38414 arg3 = static_cast< int >(val3);
38415 {
38416 PyThreadState* __tstate = wxPyBeginAllowThreads();
38417 (arg1)->DoSetClientSize(arg2,arg3);
38418 wxPyEndAllowThreads(__tstate);
38419 if (PyErr_Occurred()) SWIG_fail;
38420 }
38421 resultobj = SWIG_Py_Void();
38422 return resultobj;
38423fail:
38424 return NULL;
38425}
38426
38427
38428SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38429 PyObject *resultobj = 0;
38430 wxPyControl *arg1 = (wxPyControl *) 0 ;
38431 int arg2 ;
38432 int arg3 ;
38433 void *argp1 = 0 ;
38434 int res1 = 0 ;
38435 int val2 ;
38436 int ecode2 = 0 ;
38437 int val3 ;
38438 int ecode3 = 0 ;
38439 PyObject * obj0 = 0 ;
38440 PyObject * obj1 = 0 ;
38441 PyObject * obj2 = 0 ;
38442 char * kwnames[] = {
38443 (char *) "self",(char *) "x",(char *) "y", NULL
38444 };
38445
38446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38448 if (!SWIG_IsOK(res1)) {
38449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38450 }
38451 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38452 ecode2 = SWIG_AsVal_int(obj1, &val2);
38453 if (!SWIG_IsOK(ecode2)) {
38454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38455 }
38456 arg2 = static_cast< int >(val2);
38457 ecode3 = SWIG_AsVal_int(obj2, &val3);
38458 if (!SWIG_IsOK(ecode3)) {
38459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38460 }
38461 arg3 = static_cast< int >(val3);
38462 {
38463 PyThreadState* __tstate = wxPyBeginAllowThreads();
38464 (arg1)->DoSetVirtualSize(arg2,arg3);
38465 wxPyEndAllowThreads(__tstate);
38466 if (PyErr_Occurred()) SWIG_fail;
38467 }
38468 resultobj = SWIG_Py_Void();
38469 return resultobj;
38470fail:
38471 return NULL;
38472}
38473
38474
38475SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38476 PyObject *resultobj = 0;
38477 wxPyControl *arg1 = (wxPyControl *) 0 ;
38478 int *arg2 = (int *) 0 ;
38479 int *arg3 = (int *) 0 ;
38480 void *argp1 = 0 ;
38481 int res1 = 0 ;
38482 int temp2 ;
38483 int res2 = SWIG_TMPOBJ ;
38484 int temp3 ;
38485 int res3 = SWIG_TMPOBJ ;
38486 PyObject *swig_obj[1] ;
38487
38488 arg2 = &temp2;
38489 arg3 = &temp3;
38490 if (!args) SWIG_fail;
38491 swig_obj[0] = args;
38492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38493 if (!SWIG_IsOK(res1)) {
38494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38495 }
38496 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38497 {
38498 PyThreadState* __tstate = wxPyBeginAllowThreads();
38499 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38500 wxPyEndAllowThreads(__tstate);
38501 if (PyErr_Occurred()) SWIG_fail;
38502 }
38503 resultobj = SWIG_Py_Void();
38504 if (SWIG_IsTmpObj(res2)) {
38505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38506 } else {
38507 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38509 }
38510 if (SWIG_IsTmpObj(res3)) {
38511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38512 } else {
38513 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38515 }
38516 return resultobj;
38517fail:
38518 return NULL;
38519}
38520
38521
38522SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38523 PyObject *resultobj = 0;
38524 wxPyControl *arg1 = (wxPyControl *) 0 ;
38525 int *arg2 = (int *) 0 ;
38526 int *arg3 = (int *) 0 ;
38527 void *argp1 = 0 ;
38528 int res1 = 0 ;
38529 int temp2 ;
38530 int res2 = SWIG_TMPOBJ ;
38531 int temp3 ;
38532 int res3 = SWIG_TMPOBJ ;
38533 PyObject *swig_obj[1] ;
38534
38535 arg2 = &temp2;
38536 arg3 = &temp3;
38537 if (!args) SWIG_fail;
38538 swig_obj[0] = args;
38539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38540 if (!SWIG_IsOK(res1)) {
38541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38542 }
38543 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38544 {
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_Py_Void();
38551 if (SWIG_IsTmpObj(res2)) {
38552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38553 } else {
38554 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38556 }
38557 if (SWIG_IsTmpObj(res3)) {
38558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38559 } else {
38560 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38561 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38562 }
38563 return resultobj;
38564fail:
38565 return NULL;
38566}
38567
38568
38569SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38570 PyObject *resultobj = 0;
38571 wxPyControl *arg1 = (wxPyControl *) 0 ;
38572 int *arg2 = (int *) 0 ;
38573 int *arg3 = (int *) 0 ;
38574 void *argp1 = 0 ;
38575 int res1 = 0 ;
38576 int temp2 ;
38577 int res2 = SWIG_TMPOBJ ;
38578 int temp3 ;
38579 int res3 = SWIG_TMPOBJ ;
38580 PyObject *swig_obj[1] ;
38581
38582 arg2 = &temp2;
38583 arg3 = &temp3;
38584 if (!args) SWIG_fail;
38585 swig_obj[0] = args;
38586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38587 if (!SWIG_IsOK(res1)) {
38588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38589 }
38590 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38591 {
38592 PyThreadState* __tstate = wxPyBeginAllowThreads();
38593 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38594 wxPyEndAllowThreads(__tstate);
38595 if (PyErr_Occurred()) SWIG_fail;
38596 }
38597 resultobj = SWIG_Py_Void();
38598 if (SWIG_IsTmpObj(res2)) {
38599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38600 } else {
38601 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38603 }
38604 if (SWIG_IsTmpObj(res3)) {
38605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38606 } else {
38607 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38609 }
38610 return resultobj;
38611fail:
38612 return NULL;
d55e5bfc
RD
38613}
38614
38615
554f62e9
RD
38616SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38617 PyObject *resultobj = 0;
38618 wxPyControl *arg1 = (wxPyControl *) 0 ;
38619 wxSize result;
38620 void *argp1 = 0 ;
38621 int res1 = 0 ;
38622 PyObject *swig_obj[1] ;
38623
38624 if (!args) SWIG_fail;
38625 swig_obj[0] = args;
38626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38627 if (!SWIG_IsOK(res1)) {
38628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38629 }
38630 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38631 {
38632 PyThreadState* __tstate = wxPyBeginAllowThreads();
38633 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38634 wxPyEndAllowThreads(__tstate);
38635 if (PyErr_Occurred()) SWIG_fail;
38636 }
38637 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38638 return resultobj;
38639fail:
38640 return NULL;
d55e5bfc
RD
38641}
38642
38643
554f62e9
RD
38644SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38645 PyObject *resultobj = 0;
38646 wxPyControl *arg1 = (wxPyControl *) 0 ;
38647 wxSize result;
38648 void *argp1 = 0 ;
38649 int res1 = 0 ;
38650 PyObject *swig_obj[1] ;
38651
38652 if (!args) SWIG_fail;
38653 swig_obj[0] = args;
38654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38655 if (!SWIG_IsOK(res1)) {
38656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38657 }
38658 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38659 {
38660 PyThreadState* __tstate = wxPyBeginAllowThreads();
38661 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38662 wxPyEndAllowThreads(__tstate);
38663 if (PyErr_Occurred()) SWIG_fail;
38664 }
38665 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38666 return resultobj;
38667fail:
38668 return NULL;
d55e5bfc
RD
38669}
38670
38671
554f62e9
RD
38672SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38673 PyObject *resultobj = 0;
38674 wxPyControl *arg1 = (wxPyControl *) 0 ;
38675 SwigValueWrapper<wxVisualAttributes > result;
38676 void *argp1 = 0 ;
38677 int res1 = 0 ;
38678 PyObject *swig_obj[1] ;
38679
38680 if (!args) SWIG_fail;
38681 swig_obj[0] = args;
38682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38683 if (!SWIG_IsOK(res1)) {
38684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38685 }
38686 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38687 {
38688 PyThreadState* __tstate = wxPyBeginAllowThreads();
38689 result = (arg1)->GetDefaultAttributes();
38690 wxPyEndAllowThreads(__tstate);
38691 if (PyErr_Occurred()) SWIG_fail;
38692 }
38693 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38694 return resultobj;
38695fail:
38696 return NULL;
d55e5bfc
RD
38697}
38698
38699
554f62e9
RD
38700SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38701 PyObject *resultobj = 0;
38702 wxPyControl *arg1 = (wxPyControl *) 0 ;
38703 void *argp1 = 0 ;
38704 int res1 = 0 ;
38705 PyObject *swig_obj[1] ;
38706
38707 if (!args) SWIG_fail;
38708 swig_obj[0] = args;
38709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38710 if (!SWIG_IsOK(res1)) {
38711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38712 }
38713 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38714 {
38715 PyThreadState* __tstate = wxPyBeginAllowThreads();
38716 (arg1)->OnInternalIdle();
38717 wxPyEndAllowThreads(__tstate);
38718 if (PyErr_Occurred()) SWIG_fail;
38719 }
38720 resultobj = SWIG_Py_Void();
38721 return resultobj;
38722fail:
38723 return NULL;
38724}
38725
38726
38727SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38728 PyObject *obj;
38729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38730 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38731 return SWIG_Py_Void();
38732}
38733
38734SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38735 return SWIG_Python_InitShadowInstance(args);
38736}
38737
38738SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38739 PyObject *resultobj = 0;
38740 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38741 int arg2 = (int) 0 ;
38742 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38743 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38744 wxHelpEvent *result = 0 ;
38745 int val1 ;
38746 int ecode1 = 0 ;
38747 int val2 ;
38748 int ecode2 = 0 ;
38749 wxPoint temp3 ;
38750 PyObject * obj0 = 0 ;
38751 PyObject * obj1 = 0 ;
38752 PyObject * obj2 = 0 ;
38753 char * kwnames[] = {
38754 (char *) "type",(char *) "winid",(char *) "pt", NULL
38755 };
38756
38757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38758 if (obj0) {
38759 ecode1 = SWIG_AsVal_int(obj0, &val1);
38760 if (!SWIG_IsOK(ecode1)) {
38761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38762 }
38763 arg1 = static_cast< wxEventType >(val1);
38764 }
38765 if (obj1) {
38766 ecode2 = SWIG_AsVal_int(obj1, &val2);
38767 if (!SWIG_IsOK(ecode2)) {
38768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38769 }
38770 arg2 = static_cast< int >(val2);
38771 }
38772 if (obj2) {
d55e5bfc 38773 {
554f62e9
RD
38774 arg3 = &temp3;
38775 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38776 }
554f62e9
RD
38777 }
38778 {
38779 PyThreadState* __tstate = wxPyBeginAllowThreads();
38780 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38781 wxPyEndAllowThreads(__tstate);
38782 if (PyErr_Occurred()) SWIG_fail;
38783 }
38784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38785 return resultobj;
38786fail:
38787 return NULL;
d55e5bfc
RD
38788}
38789
38790
554f62e9
RD
38791SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38792 PyObject *resultobj = 0;
38793 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38794 wxPoint result;
38795 void *argp1 = 0 ;
38796 int res1 = 0 ;
38797 PyObject *swig_obj[1] ;
38798
38799 if (!args) SWIG_fail;
38800 swig_obj[0] = args;
38801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38802 if (!SWIG_IsOK(res1)) {
38803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38804 }
38805 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38806 {
38807 PyThreadState* __tstate = wxPyBeginAllowThreads();
38808 result = ((wxHelpEvent const *)arg1)->GetPosition();
38809 wxPyEndAllowThreads(__tstate);
38810 if (PyErr_Occurred()) SWIG_fail;
38811 }
38812 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38813 return resultobj;
38814fail:
38815 return NULL;
38816}
38817
38818
38819SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38820 PyObject *resultobj = 0;
38821 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38822 wxPoint *arg2 = 0 ;
38823 void *argp1 = 0 ;
38824 int res1 = 0 ;
38825 wxPoint temp2 ;
38826 PyObject * obj0 = 0 ;
38827 PyObject * obj1 = 0 ;
38828 char * kwnames[] = {
38829 (char *) "self",(char *) "pos", NULL
38830 };
38831
38832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38834 if (!SWIG_IsOK(res1)) {
38835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38836 }
38837 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38838 {
38839 arg2 = &temp2;
38840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38841 }
38842 {
38843 PyThreadState* __tstate = wxPyBeginAllowThreads();
38844 (arg1)->SetPosition((wxPoint const &)*arg2);
38845 wxPyEndAllowThreads(__tstate);
38846 if (PyErr_Occurred()) SWIG_fail;
38847 }
38848 resultobj = SWIG_Py_Void();
38849 return resultobj;
38850fail:
38851 return NULL;
f20a2e1f
RD
38852}
38853
38854
554f62e9
RD
38855SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38856 PyObject *resultobj = 0;
38857 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38858 wxString *result = 0 ;
38859 void *argp1 = 0 ;
38860 int res1 = 0 ;
38861 PyObject *swig_obj[1] ;
38862
38863 if (!args) SWIG_fail;
38864 swig_obj[0] = args;
38865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38866 if (!SWIG_IsOK(res1)) {
38867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38868 }
38869 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38870 {
38871 PyThreadState* __tstate = wxPyBeginAllowThreads();
38872 {
38873 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38874 result = (wxString *) &_result_ref;
38875 }
38876 wxPyEndAllowThreads(__tstate);
38877 if (PyErr_Occurred()) SWIG_fail;
38878 }
38879 {
38880#if wxUSE_UNICODE
38881 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38882#else
38883 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38884#endif
38885 }
38886 return resultobj;
38887fail:
38888 return NULL;
38889}
38890
38891
38892SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38893 PyObject *resultobj = 0;
38894 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38895 wxString *arg2 = 0 ;
38896 void *argp1 = 0 ;
38897 int res1 = 0 ;
38898 bool temp2 = false ;
38899 PyObject * obj0 = 0 ;
38900 PyObject * obj1 = 0 ;
38901 char * kwnames[] = {
38902 (char *) "self",(char *) "link", NULL
38903 };
38904
38905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38907 if (!SWIG_IsOK(res1)) {
38908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38909 }
38910 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38911 {
38912 arg2 = wxString_in_helper(obj1);
38913 if (arg2 == NULL) SWIG_fail;
38914 temp2 = true;
38915 }
38916 {
38917 PyThreadState* __tstate = wxPyBeginAllowThreads();
38918 (arg1)->SetLink((wxString const &)*arg2);
38919 wxPyEndAllowThreads(__tstate);
38920 if (PyErr_Occurred()) SWIG_fail;
38921 }
38922 resultobj = SWIG_Py_Void();
38923 {
38924 if (temp2)
38925 delete arg2;
38926 }
38927 return resultobj;
38928fail:
38929 {
38930 if (temp2)
38931 delete arg2;
38932 }
38933 return NULL;
d55e5bfc
RD
38934}
38935
38936
554f62e9
RD
38937SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38938 PyObject *resultobj = 0;
38939 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38940 wxString *result = 0 ;
38941 void *argp1 = 0 ;
38942 int res1 = 0 ;
38943 PyObject *swig_obj[1] ;
38944
38945 if (!args) SWIG_fail;
38946 swig_obj[0] = args;
38947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38948 if (!SWIG_IsOK(res1)) {
38949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38950 }
38951 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38952 {
38953 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 38954 {
554f62e9
RD
38955 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38956 result = (wxString *) &_result_ref;
38957 }
38958 wxPyEndAllowThreads(__tstate);
38959 if (PyErr_Occurred()) SWIG_fail;
38960 }
38961 {
d55e5bfc 38962#if wxUSE_UNICODE
554f62e9 38963 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 38964#else
554f62e9 38965 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 38966#endif
554f62e9
RD
38967 }
38968 return resultobj;
38969fail:
38970 return NULL;
38971}
38972
38973
38974SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38975 PyObject *resultobj = 0;
38976 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38977 wxString *arg2 = 0 ;
38978 void *argp1 = 0 ;
38979 int res1 = 0 ;
38980 bool temp2 = false ;
38981 PyObject * obj0 = 0 ;
38982 PyObject * obj1 = 0 ;
38983 char * kwnames[] = {
38984 (char *) "self",(char *) "target", NULL
38985 };
38986
38987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38989 if (!SWIG_IsOK(res1)) {
38990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38991 }
38992 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38993 {
38994 arg2 = wxString_in_helper(obj1);
38995 if (arg2 == NULL) SWIG_fail;
38996 temp2 = true;
38997 }
38998 {
38999 PyThreadState* __tstate = wxPyBeginAllowThreads();
39000 (arg1)->SetTarget((wxString const &)*arg2);
39001 wxPyEndAllowThreads(__tstate);
39002 if (PyErr_Occurred()) SWIG_fail;
39003 }
39004 resultobj = SWIG_Py_Void();
39005 {
39006 if (temp2)
39007 delete arg2;
39008 }
39009 return resultobj;
39010fail:
39011 {
39012 if (temp2)
39013 delete arg2;
39014 }
39015 return NULL;
d55e5bfc
RD
39016}
39017
39018
554f62e9
RD
39019SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39020 PyObject *obj;
39021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39022 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39023 return SWIG_Py_Void();
7e08d4ef
RD
39024}
39025
554f62e9
RD
39026SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39027 return SWIG_Python_InitShadowInstance(args);
39028}
7e08d4ef 39029
554f62e9
RD
39030SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39031 PyObject *resultobj = 0;
39032 wxWindow *arg1 = (wxWindow *) NULL ;
39033 bool arg2 = (bool) true ;
39034 wxContextHelp *result = 0 ;
39035 void *argp1 = 0 ;
39036 int res1 = 0 ;
39037 bool val2 ;
39038 int ecode2 = 0 ;
39039 PyObject * obj0 = 0 ;
39040 PyObject * obj1 = 0 ;
39041 char * kwnames[] = {
39042 (char *) "window",(char *) "doNow", NULL
39043 };
39044
39045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39046 if (obj0) {
39047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39048 if (!SWIG_IsOK(res1)) {
39049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39050 }
554f62e9
RD
39051 arg1 = reinterpret_cast< wxWindow * >(argp1);
39052 }
39053 if (obj1) {
39054 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39055 if (!SWIG_IsOK(ecode2)) {
39056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39057 }
39058 arg2 = static_cast< bool >(val2);
39059 }
39060 {
39061 if (!wxPyCheckForApp()) SWIG_fail;
39062 PyThreadState* __tstate = wxPyBeginAllowThreads();
39063 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39064 wxPyEndAllowThreads(__tstate);
39065 if (PyErr_Occurred()) SWIG_fail;
39066 }
39067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39068 return resultobj;
39069fail:
39070 return NULL;
d55e5bfc
RD
39071}
39072
39073
554f62e9
RD
39074SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39075 PyObject *resultobj = 0;
39076 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39077 void *argp1 = 0 ;
39078 int res1 = 0 ;
39079 PyObject *swig_obj[1] ;
39080
39081 if (!args) SWIG_fail;
39082 swig_obj[0] = args;
39083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39084 if (!SWIG_IsOK(res1)) {
39085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39086 }
39087 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39088 {
39089 PyThreadState* __tstate = wxPyBeginAllowThreads();
39090 delete arg1;
d55e5bfc 39091
554f62e9
RD
39092 wxPyEndAllowThreads(__tstate);
39093 if (PyErr_Occurred()) SWIG_fail;
39094 }
39095 resultobj = SWIG_Py_Void();
39096 return resultobj;
39097fail:
39098 return NULL;
39099}
39100
39101
39102SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39103 PyObject *resultobj = 0;
39104 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39105 wxWindow *arg2 = (wxWindow *) NULL ;
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 *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39119 if (!SWIG_IsOK(res1)) {
39120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39121 }
39122 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39123 if (obj1) {
39124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39125 if (!SWIG_IsOK(res2)) {
39126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39127 }
554f62e9
RD
39128 arg2 = reinterpret_cast< wxWindow * >(argp2);
39129 }
39130 {
39131 PyThreadState* __tstate = wxPyBeginAllowThreads();
39132 result = (bool)(arg1)->BeginContextHelp(arg2);
39133 wxPyEndAllowThreads(__tstate);
39134 if (PyErr_Occurred()) SWIG_fail;
39135 }
39136 {
39137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39138 }
39139 return resultobj;
39140fail:
39141 return NULL;
d55e5bfc
RD
39142}
39143
39144
554f62e9
RD
39145SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39146 PyObject *resultobj = 0;
39147 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39148 bool result;
39149 void *argp1 = 0 ;
39150 int res1 = 0 ;
39151 PyObject *swig_obj[1] ;
39152
39153 if (!args) SWIG_fail;
39154 swig_obj[0] = args;
39155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39156 if (!SWIG_IsOK(res1)) {
39157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39158 }
39159 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39160 {
39161 PyThreadState* __tstate = wxPyBeginAllowThreads();
39162 result = (bool)(arg1)->EndContextHelp();
39163 wxPyEndAllowThreads(__tstate);
39164 if (PyErr_Occurred()) SWIG_fail;
39165 }
39166 {
39167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39168 }
39169 return resultobj;
39170fail:
39171 return NULL;
39172}
39173
39174
39175SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39176 PyObject *obj;
39177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39178 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39179 return SWIG_Py_Void();
39180}
39181
39182SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39183 return SWIG_Python_InitShadowInstance(args);
39184}
39185
39186SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39187 PyObject *resultobj = 0;
39188 wxWindow *arg1 = (wxWindow *) 0 ;
39189 int arg2 = (int) wxID_CONTEXT_HELP ;
39190 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39191 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39192 wxSize const &arg4_defvalue = wxDefaultSize ;
39193 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39194 long arg5 = (long) wxBU_AUTODRAW ;
39195 wxContextHelpButton *result = 0 ;
39196 void *argp1 = 0 ;
39197 int res1 = 0 ;
39198 int val2 ;
39199 int ecode2 = 0 ;
39200 wxPoint temp3 ;
39201 wxSize temp4 ;
39202 long val5 ;
39203 int ecode5 = 0 ;
39204 PyObject * obj0 = 0 ;
39205 PyObject * obj1 = 0 ;
39206 PyObject * obj2 = 0 ;
39207 PyObject * obj3 = 0 ;
39208 PyObject * obj4 = 0 ;
39209 char * kwnames[] = {
39210 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39211 };
39212
39213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39215 if (!SWIG_IsOK(res1)) {
39216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39217 }
39218 arg1 = reinterpret_cast< wxWindow * >(argp1);
39219 if (obj1) {
39220 ecode2 = SWIG_AsVal_int(obj1, &val2);
39221 if (!SWIG_IsOK(ecode2)) {
39222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39223 }
39224 arg2 = static_cast< int >(val2);
39225 }
39226 if (obj2) {
d55e5bfc 39227 {
554f62e9
RD
39228 arg3 = &temp3;
39229 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39230 }
554f62e9
RD
39231 }
39232 if (obj3) {
d55e5bfc 39233 {
554f62e9
RD
39234 arg4 = &temp4;
39235 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39236 }
554f62e9
RD
39237 }
39238 if (obj4) {
39239 ecode5 = SWIG_AsVal_long(obj4, &val5);
39240 if (!SWIG_IsOK(ecode5)) {
39241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39242 }
39243 arg5 = static_cast< long >(val5);
39244 }
39245 {
39246 if (!wxPyCheckForApp()) SWIG_fail;
39247 PyThreadState* __tstate = wxPyBeginAllowThreads();
39248 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39249 wxPyEndAllowThreads(__tstate);
39250 if (PyErr_Occurred()) SWIG_fail;
39251 }
39252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39253 return resultobj;
39254fail:
39255 return NULL;
d55e5bfc
RD
39256}
39257
39258
554f62e9
RD
39259SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39260 PyObject *obj;
39261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39262 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39263 return SWIG_Py_Void();
d55e5bfc
RD
39264}
39265
554f62e9
RD
39266SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39267 return SWIG_Python_InitShadowInstance(args);
39268}
d55e5bfc 39269
f52cbe90
RD
39270SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39271 PyObject *resultobj = 0;
39272 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39273 void *argp1 = 0 ;
39274 int res1 = 0 ;
39275 PyObject *swig_obj[1] ;
39276
39277 if (!args) SWIG_fail;
39278 swig_obj[0] = args;
39279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39280 if (!SWIG_IsOK(res1)) {
39281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39282 }
39283 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39284 {
39285 PyThreadState* __tstate = wxPyBeginAllowThreads();
39286 delete arg1;
39287
39288 wxPyEndAllowThreads(__tstate);
39289 if (PyErr_Occurred()) SWIG_fail;
39290 }
39291 resultobj = SWIG_Py_Void();
39292 return resultobj;
39293fail:
39294 return NULL;
39295}
39296
39297
554f62e9
RD
39298SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39299 PyObject *resultobj = 0;
39300 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39301 wxHelpProvider *result = 0 ;
39302 int res1 = 0 ;
39303 PyObject * obj0 = 0 ;
39304 char * kwnames[] = {
39305 (char *) "helpProvider", NULL
39306 };
39307
39308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39309 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39310 if (!SWIG_IsOK(res1)) {
39311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39312 }
39313 {
39314 PyThreadState* __tstate = wxPyBeginAllowThreads();
39315 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39316 wxPyEndAllowThreads(__tstate);
39317 if (PyErr_Occurred()) SWIG_fail;
39318 }
39319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39320 return resultobj;
39321fail:
39322 return NULL;
d55e5bfc
RD
39323}
39324
39325
554f62e9
RD
39326SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39327 PyObject *resultobj = 0;
39328 wxHelpProvider *result = 0 ;
39329
39330 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39331 {
39332 PyThreadState* __tstate = wxPyBeginAllowThreads();
39333 result = (wxHelpProvider *)wxHelpProvider::Get();
39334 wxPyEndAllowThreads(__tstate);
39335 if (PyErr_Occurred()) SWIG_fail;
39336 }
39337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39338 return resultobj;
39339fail:
39340 return NULL;
39341}
39342
39343
39344SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39345 PyObject *resultobj = 0;
39346 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39347 wxWindow *arg2 = (wxWindow *) 0 ;
39348 wxString result;
39349 void *argp1 = 0 ;
39350 int res1 = 0 ;
39351 void *argp2 = 0 ;
39352 int res2 = 0 ;
39353 PyObject * obj0 = 0 ;
39354 PyObject * obj1 = 0 ;
39355 char * kwnames[] = {
39356 (char *) "self",(char *) "window", NULL
39357 };
39358
39359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39361 if (!SWIG_IsOK(res1)) {
39362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39363 }
39364 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39366 if (!SWIG_IsOK(res2)) {
39367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39368 }
39369 arg2 = reinterpret_cast< wxWindow * >(argp2);
39370 {
39371 PyThreadState* __tstate = wxPyBeginAllowThreads();
39372 result = (arg1)->GetHelp((wxWindow const *)arg2);
39373 wxPyEndAllowThreads(__tstate);
39374 if (PyErr_Occurred()) SWIG_fail;
39375 }
39376 {
39377#if wxUSE_UNICODE
39378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39379#else
39380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39381#endif
39382 }
39383 return resultobj;
39384fail:
39385 return NULL;
39386}
39387
39388
39389SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39390 PyObject *resultobj = 0;
39391 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39392 wxWindow *arg2 = (wxWindow *) 0 ;
39393 bool result;
39394 void *argp1 = 0 ;
39395 int res1 = 0 ;
39396 void *argp2 = 0 ;
39397 int res2 = 0 ;
39398 PyObject * obj0 = 0 ;
39399 PyObject * obj1 = 0 ;
39400 char * kwnames[] = {
39401 (char *) "self",(char *) "window", NULL
39402 };
39403
39404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39406 if (!SWIG_IsOK(res1)) {
39407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39408 }
39409 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39410 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39411 if (!SWIG_IsOK(res2)) {
39412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39413 }
39414 arg2 = reinterpret_cast< wxWindow * >(argp2);
39415 {
39416 PyThreadState* __tstate = wxPyBeginAllowThreads();
39417 result = (bool)(arg1)->ShowHelp(arg2);
39418 wxPyEndAllowThreads(__tstate);
39419 if (PyErr_Occurred()) SWIG_fail;
39420 }
39421 {
39422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39423 }
39424 return resultobj;
39425fail:
39426 return NULL;
39427}
39428
39429
39430SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39431 PyObject *resultobj = 0;
39432 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39433 wxWindow *arg2 = (wxWindow *) 0 ;
39434 wxString *arg3 = 0 ;
39435 void *argp1 = 0 ;
39436 int res1 = 0 ;
39437 void *argp2 = 0 ;
39438 int res2 = 0 ;
39439 bool temp3 = false ;
39440 PyObject * obj0 = 0 ;
39441 PyObject * obj1 = 0 ;
39442 PyObject * obj2 = 0 ;
39443 char * kwnames[] = {
39444 (char *) "self",(char *) "window",(char *) "text", NULL
39445 };
39446
39447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39449 if (!SWIG_IsOK(res1)) {
39450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39451 }
39452 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39454 if (!SWIG_IsOK(res2)) {
39455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39456 }
39457 arg2 = reinterpret_cast< wxWindow * >(argp2);
39458 {
39459 arg3 = wxString_in_helper(obj2);
39460 if (arg3 == NULL) SWIG_fail;
39461 temp3 = true;
39462 }
39463 {
39464 PyThreadState* __tstate = wxPyBeginAllowThreads();
39465 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39466 wxPyEndAllowThreads(__tstate);
39467 if (PyErr_Occurred()) SWIG_fail;
39468 }
39469 resultobj = SWIG_Py_Void();
39470 {
39471 if (temp3)
39472 delete arg3;
39473 }
39474 return resultobj;
39475fail:
39476 {
39477 if (temp3)
39478 delete arg3;
39479 }
39480 return NULL;
39481}
39482
39483
39484SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39485 PyObject *resultobj = 0;
39486 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39487 int arg2 ;
39488 wxString *arg3 = 0 ;
39489 void *argp1 = 0 ;
39490 int res1 = 0 ;
39491 int val2 ;
39492 int ecode2 = 0 ;
39493 bool temp3 = false ;
39494 PyObject * obj0 = 0 ;
39495 PyObject * obj1 = 0 ;
39496 PyObject * obj2 = 0 ;
39497 char * kwnames[] = {
39498 (char *) "self",(char *) "id",(char *) "text", NULL
39499 };
39500
39501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39503 if (!SWIG_IsOK(res1)) {
39504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39505 }
39506 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39507 ecode2 = SWIG_AsVal_int(obj1, &val2);
39508 if (!SWIG_IsOK(ecode2)) {
39509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39510 }
39511 arg2 = static_cast< int >(val2);
39512 {
39513 arg3 = wxString_in_helper(obj2);
39514 if (arg3 == NULL) SWIG_fail;
39515 temp3 = true;
39516 }
39517 {
39518 PyThreadState* __tstate = wxPyBeginAllowThreads();
39519 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39520 wxPyEndAllowThreads(__tstate);
39521 if (PyErr_Occurred()) SWIG_fail;
39522 }
39523 resultobj = SWIG_Py_Void();
39524 {
39525 if (temp3)
39526 delete arg3;
39527 }
39528 return resultobj;
39529fail:
39530 {
39531 if (temp3)
39532 delete arg3;
39533 }
39534 return NULL;
39535}
39536
39537
39538SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39539 PyObject *resultobj = 0;
39540 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39541 wxWindow *arg2 = (wxWindow *) 0 ;
39542 void *argp1 = 0 ;
39543 int res1 = 0 ;
39544 void *argp2 = 0 ;
39545 int res2 = 0 ;
39546 PyObject * obj0 = 0 ;
39547 PyObject * obj1 = 0 ;
39548 char * kwnames[] = {
39549 (char *) "self",(char *) "window", NULL
39550 };
39551
39552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39554 if (!SWIG_IsOK(res1)) {
39555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39556 }
39557 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39558 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39559 if (!SWIG_IsOK(res2)) {
39560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39561 }
39562 arg2 = reinterpret_cast< wxWindow * >(argp2);
39563 {
39564 PyThreadState* __tstate = wxPyBeginAllowThreads();
39565 (arg1)->RemoveHelp(arg2);
39566 wxPyEndAllowThreads(__tstate);
39567 if (PyErr_Occurred()) SWIG_fail;
39568 }
39569 resultobj = SWIG_Py_Void();
39570 return resultobj;
39571fail:
39572 return NULL;
d55e5bfc
RD
39573}
39574
39575
554f62e9
RD
39576SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39577 PyObject *resultobj = 0;
39578 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39579 void *argp1 = 0 ;
39580 int res1 = 0 ;
39581 PyObject *swig_obj[1] ;
39582
39583 if (!args) SWIG_fail;
39584 swig_obj[0] = args;
39585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39586 if (!SWIG_IsOK(res1)) {
39587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39588 }
39589 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39590 {
39591 PyThreadState* __tstate = wxPyBeginAllowThreads();
39592 wxHelpProvider_Destroy(arg1);
39593 wxPyEndAllowThreads(__tstate);
39594 if (PyErr_Occurred()) SWIG_fail;
39595 }
39596 resultobj = SWIG_Py_Void();
39597 return resultobj;
39598fail:
39599 return NULL;
d55e5bfc
RD
39600}
39601
39602
554f62e9
RD
39603SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39604 PyObject *obj;
39605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39606 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39607 return SWIG_Py_Void();
d55e5bfc
RD
39608}
39609
554f62e9
RD
39610SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39611 PyObject *resultobj = 0;
39612 wxSimpleHelpProvider *result = 0 ;
39613
39614 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39615 {
39616 PyThreadState* __tstate = wxPyBeginAllowThreads();
39617 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39618 wxPyEndAllowThreads(__tstate);
39619 if (PyErr_Occurred()) SWIG_fail;
39620 }
39621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39622 return resultobj;
39623fail:
39624 return NULL;
39625}
39626
39627
39628SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39629 PyObject *obj;
39630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39631 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39632 return SWIG_Py_Void();
39633}
39634
39635SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39636 return SWIG_Python_InitShadowInstance(args);
39637}
39638
39639SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39640 PyObject *resultobj = 0;
39641 wxBitmap *arg1 = 0 ;
39642 wxCursor const &arg2_defvalue = wxNullCursor ;
39643 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39644 wxGenericDragImage *result = 0 ;
39645 void *argp1 = 0 ;
39646 int res1 = 0 ;
39647 void *argp2 = 0 ;
39648 int res2 = 0 ;
39649 PyObject * obj0 = 0 ;
39650 PyObject * obj1 = 0 ;
39651 char * kwnames[] = {
39652 (char *) "image",(char *) "cursor", NULL
39653 };
39654
39655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39656 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39657 if (!SWIG_IsOK(res1)) {
39658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39659 }
39660 if (!argp1) {
39661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39662 }
39663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39664 if (obj1) {
39665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39666 if (!SWIG_IsOK(res2)) {
39667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 39668 }
554f62e9
RD
39669 if (!argp2) {
39670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 39671 }
554f62e9
RD
39672 arg2 = reinterpret_cast< wxCursor * >(argp2);
39673 }
39674 {
39675 if (!wxPyCheckForApp()) SWIG_fail;
39676 PyThreadState* __tstate = wxPyBeginAllowThreads();
39677 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39678 wxPyEndAllowThreads(__tstate);
39679 if (PyErr_Occurred()) SWIG_fail;
39680 }
39681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39682 return resultobj;
39683fail:
39684 return NULL;
39685}
39686
39687
39688SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39689 PyObject *resultobj = 0;
39690 wxIcon *arg1 = 0 ;
39691 wxCursor const &arg2_defvalue = wxNullCursor ;
39692 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39693 wxGenericDragImage *result = 0 ;
39694 void *argp1 = 0 ;
39695 int res1 = 0 ;
39696 void *argp2 = 0 ;
39697 int res2 = 0 ;
39698 PyObject * obj0 = 0 ;
39699 PyObject * obj1 = 0 ;
39700 char * kwnames[] = {
39701 (char *) "image",(char *) "cursor", NULL
39702 };
39703
39704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39705 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39706 if (!SWIG_IsOK(res1)) {
39707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39708 }
39709 if (!argp1) {
39710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39711 }
39712 arg1 = reinterpret_cast< wxIcon * >(argp1);
39713 if (obj1) {
39714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39715 if (!SWIG_IsOK(res2)) {
39716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39717 }
554f62e9
RD
39718 if (!argp2) {
39719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39720 }
554f62e9
RD
39721 arg2 = reinterpret_cast< wxCursor * >(argp2);
39722 }
39723 {
39724 if (!wxPyCheckForApp()) SWIG_fail;
39725 PyThreadState* __tstate = wxPyBeginAllowThreads();
39726 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39727 wxPyEndAllowThreads(__tstate);
39728 if (PyErr_Occurred()) SWIG_fail;
39729 }
39730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39731 return resultobj;
39732fail:
39733 return NULL;
39734}
39735
39736
39737SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39738 PyObject *resultobj = 0;
39739 wxString *arg1 = 0 ;
39740 wxCursor const &arg2_defvalue = wxNullCursor ;
39741 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39742 wxGenericDragImage *result = 0 ;
39743 bool temp1 = false ;
39744 void *argp2 = 0 ;
39745 int res2 = 0 ;
39746 PyObject * obj0 = 0 ;
39747 PyObject * obj1 = 0 ;
39748 char * kwnames[] = {
39749 (char *) "str",(char *) "cursor", NULL
39750 };
39751
39752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39753 {
39754 arg1 = wxString_in_helper(obj0);
39755 if (arg1 == NULL) SWIG_fail;
39756 temp1 = true;
39757 }
39758 if (obj1) {
39759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39760 if (!SWIG_IsOK(res2)) {
39761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39762 }
554f62e9
RD
39763 if (!argp2) {
39764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39765 }
554f62e9
RD
39766 arg2 = reinterpret_cast< wxCursor * >(argp2);
39767 }
39768 {
39769 if (!wxPyCheckForApp()) SWIG_fail;
39770 PyThreadState* __tstate = wxPyBeginAllowThreads();
39771 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39772 wxPyEndAllowThreads(__tstate);
39773 if (PyErr_Occurred()) SWIG_fail;
39774 }
39775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39776 {
39777 if (temp1)
39778 delete arg1;
39779 }
39780 return resultobj;
39781fail:
39782 {
39783 if (temp1)
39784 delete arg1;
39785 }
39786 return NULL;
39787}
39788
39789
39790SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39791 PyObject *resultobj = 0;
39792 wxPyTreeCtrl *arg1 = 0 ;
39793 wxTreeItemId *arg2 = 0 ;
39794 wxGenericDragImage *result = 0 ;
39795 void *argp1 = 0 ;
39796 int res1 = 0 ;
39797 void *argp2 = 0 ;
39798 int res2 = 0 ;
39799 PyObject * obj0 = 0 ;
39800 PyObject * obj1 = 0 ;
39801 char * kwnames[] = {
39802 (char *) "treeCtrl",(char *) "id", NULL
39803 };
39804
39805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39806 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39807 if (!SWIG_IsOK(res1)) {
39808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39809 }
39810 if (!argp1) {
39811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39812 }
39813 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39815 if (!SWIG_IsOK(res2)) {
39816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39817 }
39818 if (!argp2) {
39819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39820 }
39821 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39822 {
39823 if (!wxPyCheckForApp()) SWIG_fail;
39824 PyThreadState* __tstate = wxPyBeginAllowThreads();
39825 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39826 wxPyEndAllowThreads(__tstate);
39827 if (PyErr_Occurred()) SWIG_fail;
39828 }
39829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39830 return resultobj;
39831fail:
39832 return NULL;
39833}
39834
39835
39836SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39837 PyObject *resultobj = 0;
39838 wxPyListCtrl *arg1 = 0 ;
39839 long arg2 ;
39840 wxGenericDragImage *result = 0 ;
39841 void *argp1 = 0 ;
39842 int res1 = 0 ;
39843 long val2 ;
39844 int ecode2 = 0 ;
39845 PyObject * obj0 = 0 ;
39846 PyObject * obj1 = 0 ;
39847 char * kwnames[] = {
39848 (char *) "listCtrl",(char *) "id", NULL
39849 };
39850
39851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39853 if (!SWIG_IsOK(res1)) {
39854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39855 }
39856 if (!argp1) {
39857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39858 }
39859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39860 ecode2 = SWIG_AsVal_long(obj1, &val2);
39861 if (!SWIG_IsOK(ecode2)) {
39862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39863 }
39864 arg2 = static_cast< long >(val2);
39865 {
39866 if (!wxPyCheckForApp()) SWIG_fail;
39867 PyThreadState* __tstate = wxPyBeginAllowThreads();
39868 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39869 wxPyEndAllowThreads(__tstate);
39870 if (PyErr_Occurred()) SWIG_fail;
39871 }
39872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39873 return resultobj;
39874fail:
39875 return NULL;
d55e5bfc
RD
39876}
39877
39878
554f62e9
RD
39879SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39880 PyObject *resultobj = 0;
39881 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39882 void *argp1 = 0 ;
39883 int res1 = 0 ;
39884 PyObject *swig_obj[1] ;
39885
39886 if (!args) SWIG_fail;
39887 swig_obj[0] = args;
39888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39889 if (!SWIG_IsOK(res1)) {
39890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39891 }
39892 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39893 {
39894 PyThreadState* __tstate = wxPyBeginAllowThreads();
39895 delete arg1;
d55e5bfc 39896
554f62e9
RD
39897 wxPyEndAllowThreads(__tstate);
39898 if (PyErr_Occurred()) SWIG_fail;
39899 }
39900 resultobj = SWIG_Py_Void();
39901 return resultobj;
39902fail:
39903 return NULL;
39904}
39905
39906
39907SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39908 PyObject *resultobj = 0;
39909 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39910 wxBitmap *arg2 = (wxBitmap *) 0 ;
39911 void *argp1 = 0 ;
39912 int res1 = 0 ;
39913 void *argp2 = 0 ;
39914 int res2 = 0 ;
39915 PyObject * obj0 = 0 ;
39916 PyObject * obj1 = 0 ;
39917 char * kwnames[] = {
39918 (char *) "self",(char *) "bitmap", NULL
39919 };
39920
39921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39923 if (!SWIG_IsOK(res1)) {
39924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39925 }
39926 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39928 if (!SWIG_IsOK(res2)) {
39929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39930 }
39931 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39932 {
39933 PyThreadState* __tstate = wxPyBeginAllowThreads();
39934 (arg1)->SetBackingBitmap(arg2);
39935 wxPyEndAllowThreads(__tstate);
39936 if (PyErr_Occurred()) SWIG_fail;
39937 }
39938 resultobj = SWIG_Py_Void();
39939 return resultobj;
39940fail:
39941 return NULL;
39942}
39943
39944
39945SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39946 PyObject *resultobj = 0;
39947 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39948 wxPoint *arg2 = 0 ;
39949 wxWindow *arg3 = (wxWindow *) 0 ;
39950 bool arg4 = (bool) false ;
39951 wxRect *arg5 = (wxRect *) NULL ;
39952 bool result;
39953 void *argp1 = 0 ;
39954 int res1 = 0 ;
39955 wxPoint temp2 ;
39956 void *argp3 = 0 ;
39957 int res3 = 0 ;
39958 bool val4 ;
39959 int ecode4 = 0 ;
39960 void *argp5 = 0 ;
39961 int res5 = 0 ;
39962 PyObject * obj0 = 0 ;
39963 PyObject * obj1 = 0 ;
39964 PyObject * obj2 = 0 ;
39965 PyObject * obj3 = 0 ;
39966 PyObject * obj4 = 0 ;
39967 char * kwnames[] = {
39968 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39969 };
39970
39971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39973 if (!SWIG_IsOK(res1)) {
39974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39975 }
39976 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39977 {
39978 arg2 = &temp2;
39979 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39980 }
39981 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39982 if (!SWIG_IsOK(res3)) {
39983 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39984 }
39985 arg3 = reinterpret_cast< wxWindow * >(argp3);
39986 if (obj3) {
39987 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39988 if (!SWIG_IsOK(ecode4)) {
39989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39990 }
39991 arg4 = static_cast< bool >(val4);
39992 }
39993 if (obj4) {
39994 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39995 if (!SWIG_IsOK(res5)) {
39996 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 39997 }
554f62e9
RD
39998 arg5 = reinterpret_cast< wxRect * >(argp5);
39999 }
40000 {
40001 PyThreadState* __tstate = wxPyBeginAllowThreads();
40002 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40003 wxPyEndAllowThreads(__tstate);
40004 if (PyErr_Occurred()) SWIG_fail;
40005 }
40006 {
40007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40008 }
40009 return resultobj;
40010fail:
40011 return NULL;
40012}
40013
40014
40015SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40016 PyObject *resultobj = 0;
40017 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40018 wxPoint *arg2 = 0 ;
40019 wxWindow *arg3 = (wxWindow *) 0 ;
40020 wxWindow *arg4 = (wxWindow *) 0 ;
40021 bool result;
40022 void *argp1 = 0 ;
40023 int res1 = 0 ;
40024 wxPoint temp2 ;
40025 void *argp3 = 0 ;
40026 int res3 = 0 ;
40027 void *argp4 = 0 ;
40028 int res4 = 0 ;
40029 PyObject * obj0 = 0 ;
40030 PyObject * obj1 = 0 ;
40031 PyObject * obj2 = 0 ;
40032 PyObject * obj3 = 0 ;
40033 char * kwnames[] = {
40034 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40035 };
40036
40037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40039 if (!SWIG_IsOK(res1)) {
40040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40041 }
40042 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40043 {
40044 arg2 = &temp2;
40045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40046 }
40047 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40048 if (!SWIG_IsOK(res3)) {
40049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40050 }
40051 arg3 = reinterpret_cast< wxWindow * >(argp3);
40052 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40053 if (!SWIG_IsOK(res4)) {
40054 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40055 }
40056 arg4 = reinterpret_cast< wxWindow * >(argp4);
40057 {
40058 PyThreadState* __tstate = wxPyBeginAllowThreads();
40059 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
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;
d55e5bfc
RD
40069}
40070
40071
554f62e9
RD
40072SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40073 PyObject *resultobj = 0;
40074 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40075 bool result;
40076 void *argp1 = 0 ;
40077 int res1 = 0 ;
40078 PyObject *swig_obj[1] ;
40079
40080 if (!args) SWIG_fail;
40081 swig_obj[0] = args;
40082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40083 if (!SWIG_IsOK(res1)) {
40084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40085 }
40086 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40087 {
40088 PyThreadState* __tstate = wxPyBeginAllowThreads();
40089 result = (bool)(arg1)->EndDrag();
40090 wxPyEndAllowThreads(__tstate);
40091 if (PyErr_Occurred()) SWIG_fail;
40092 }
40093 {
40094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40095 }
40096 return resultobj;
40097fail:
40098 return NULL;
40099}
40100
40101
40102SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40103 PyObject *resultobj = 0;
40104 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40105 wxPoint *arg2 = 0 ;
40106 bool result;
40107 void *argp1 = 0 ;
40108 int res1 = 0 ;
40109 wxPoint temp2 ;
40110 PyObject * obj0 = 0 ;
40111 PyObject * obj1 = 0 ;
40112 char * kwnames[] = {
40113 (char *) "self",(char *) "pt", NULL
40114 };
40115
40116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40118 if (!SWIG_IsOK(res1)) {
40119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40120 }
40121 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40122 {
40123 arg2 = &temp2;
40124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40125 }
40126 {
40127 PyThreadState* __tstate = wxPyBeginAllowThreads();
40128 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40129 wxPyEndAllowThreads(__tstate);
40130 if (PyErr_Occurred()) SWIG_fail;
40131 }
40132 {
40133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40134 }
40135 return resultobj;
40136fail:
40137 return NULL;
d55e5bfc
RD
40138}
40139
40140
554f62e9
RD
40141SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40142 PyObject *resultobj = 0;
40143 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40144 bool result;
40145 void *argp1 = 0 ;
40146 int res1 = 0 ;
40147 PyObject *swig_obj[1] ;
40148
40149 if (!args) SWIG_fail;
40150 swig_obj[0] = args;
40151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40152 if (!SWIG_IsOK(res1)) {
40153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40154 }
40155 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40156 {
40157 PyThreadState* __tstate = wxPyBeginAllowThreads();
40158 result = (bool)(arg1)->Show();
40159 wxPyEndAllowThreads(__tstate);
40160 if (PyErr_Occurred()) SWIG_fail;
40161 }
40162 {
40163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40164 }
40165 return resultobj;
40166fail:
40167 return NULL;
d55e5bfc
RD
40168}
40169
40170
554f62e9
RD
40171SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40172 PyObject *resultobj = 0;
40173 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40174 bool result;
40175 void *argp1 = 0 ;
40176 int res1 = 0 ;
40177 PyObject *swig_obj[1] ;
40178
40179 if (!args) SWIG_fail;
40180 swig_obj[0] = args;
40181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40182 if (!SWIG_IsOK(res1)) {
40183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40184 }
40185 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40186 {
40187 PyThreadState* __tstate = wxPyBeginAllowThreads();
40188 result = (bool)(arg1)->Hide();
40189 wxPyEndAllowThreads(__tstate);
40190 if (PyErr_Occurred()) SWIG_fail;
40191 }
40192 {
40193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40194 }
40195 return resultobj;
40196fail:
40197 return NULL;
40198}
40199
40200
40201SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40202 PyObject *resultobj = 0;
40203 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40204 wxPoint *arg2 = 0 ;
40205 wxRect result;
40206 void *argp1 = 0 ;
40207 int res1 = 0 ;
40208 wxPoint temp2 ;
40209 PyObject * obj0 = 0 ;
40210 PyObject * obj1 = 0 ;
40211 char * kwnames[] = {
40212 (char *) "self",(char *) "pos", NULL
40213 };
40214
40215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40217 if (!SWIG_IsOK(res1)) {
40218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40219 }
40220 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40221 {
40222 arg2 = &temp2;
40223 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40224 }
40225 {
40226 PyThreadState* __tstate = wxPyBeginAllowThreads();
40227 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40228 wxPyEndAllowThreads(__tstate);
40229 if (PyErr_Occurred()) SWIG_fail;
40230 }
40231 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40232 return resultobj;
40233fail:
40234 return NULL;
40235}
40236
40237
40238SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40239 PyObject *resultobj = 0;
40240 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40241 wxDC *arg2 = 0 ;
40242 wxPoint *arg3 = 0 ;
40243 bool result;
40244 void *argp1 = 0 ;
40245 int res1 = 0 ;
40246 void *argp2 = 0 ;
40247 int res2 = 0 ;
40248 wxPoint temp3 ;
40249 PyObject * obj0 = 0 ;
40250 PyObject * obj1 = 0 ;
40251 PyObject * obj2 = 0 ;
40252 char * kwnames[] = {
40253 (char *) "self",(char *) "dc",(char *) "pos", NULL
40254 };
40255
40256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40258 if (!SWIG_IsOK(res1)) {
40259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40260 }
40261 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40263 if (!SWIG_IsOK(res2)) {
40264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40265 }
40266 if (!argp2) {
40267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40268 }
40269 arg2 = reinterpret_cast< wxDC * >(argp2);
40270 {
40271 arg3 = &temp3;
40272 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40273 }
40274 {
40275 PyThreadState* __tstate = wxPyBeginAllowThreads();
40276 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40277 wxPyEndAllowThreads(__tstate);
40278 if (PyErr_Occurred()) SWIG_fail;
40279 }
40280 {
40281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40282 }
40283 return resultobj;
40284fail:
40285 return NULL;
40286}
40287
40288
40289SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40290 PyObject *resultobj = 0;
40291 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40292 wxDC *arg2 = 0 ;
40293 wxMemoryDC *arg3 = 0 ;
40294 wxRect *arg4 = 0 ;
40295 wxRect *arg5 = 0 ;
40296 bool result;
40297 void *argp1 = 0 ;
40298 int res1 = 0 ;
40299 void *argp2 = 0 ;
40300 int res2 = 0 ;
40301 void *argp3 = 0 ;
40302 int res3 = 0 ;
40303 wxRect temp4 ;
40304 wxRect temp5 ;
40305 PyObject * obj0 = 0 ;
40306 PyObject * obj1 = 0 ;
40307 PyObject * obj2 = 0 ;
40308 PyObject * obj3 = 0 ;
40309 PyObject * obj4 = 0 ;
40310 char * kwnames[] = {
40311 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40312 };
40313
40314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40316 if (!SWIG_IsOK(res1)) {
40317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40318 }
40319 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40321 if (!SWIG_IsOK(res2)) {
40322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40323 }
40324 if (!argp2) {
40325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40326 }
40327 arg2 = reinterpret_cast< wxDC * >(argp2);
40328 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40329 if (!SWIG_IsOK(res3)) {
40330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40331 }
40332 if (!argp3) {
40333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40334 }
40335 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40336 {
40337 arg4 = &temp4;
40338 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40339 }
40340 {
40341 arg5 = &temp5;
40342 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40343 }
40344 {
40345 PyThreadState* __tstate = wxPyBeginAllowThreads();
40346 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40347 wxPyEndAllowThreads(__tstate);
40348 if (PyErr_Occurred()) SWIG_fail;
40349 }
40350 {
40351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40352 }
40353 return resultobj;
40354fail:
40355 return NULL;
40356}
40357
40358
40359SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40360 PyObject *resultobj = 0;
40361 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40362 wxPoint *arg2 = 0 ;
40363 wxPoint *arg3 = 0 ;
40364 bool arg4 ;
40365 bool arg5 ;
40366 bool result;
40367 void *argp1 = 0 ;
40368 int res1 = 0 ;
40369 wxPoint temp2 ;
40370 wxPoint temp3 ;
40371 bool val4 ;
40372 int ecode4 = 0 ;
40373 bool val5 ;
40374 int ecode5 = 0 ;
40375 PyObject * obj0 = 0 ;
40376 PyObject * obj1 = 0 ;
40377 PyObject * obj2 = 0 ;
40378 PyObject * obj3 = 0 ;
40379 PyObject * obj4 = 0 ;
40380 char * kwnames[] = {
40381 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40382 };
40383
40384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40386 if (!SWIG_IsOK(res1)) {
40387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40388 }
40389 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40390 {
40391 arg2 = &temp2;
40392 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40393 }
40394 {
40395 arg3 = &temp3;
40396 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40397 }
40398 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40399 if (!SWIG_IsOK(ecode4)) {
40400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40401 }
40402 arg4 = static_cast< bool >(val4);
40403 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40404 if (!SWIG_IsOK(ecode5)) {
40405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40406 }
40407 arg5 = static_cast< bool >(val5);
40408 {
40409 PyThreadState* __tstate = wxPyBeginAllowThreads();
40410 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40411 wxPyEndAllowThreads(__tstate);
40412 if (PyErr_Occurred()) SWIG_fail;
40413 }
40414 {
40415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40416 }
40417 return resultobj;
40418fail:
40419 return NULL;
d55e5bfc
RD
40420}
40421
40422
554f62e9
RD
40423SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40424 PyObject *obj;
40425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40426 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40427 return SWIG_Py_Void();
d55e5bfc
RD
40428}
40429
554f62e9
RD
40430SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40431 return SWIG_Python_InitShadowInstance(args);
40432}
d55e5bfc 40433
554f62e9
RD
40434SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40435 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40436 return 1;
d55e5bfc
RD
40437}
40438
40439
554f62e9
RD
40440SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40441 PyObject *pyobj = 0;
40442
40443 {
40444#if wxUSE_UNICODE
40445 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40446#else
40447 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40448#endif
40449 }
40450 return pyobj;
40451}
40452
40453
40454SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40455 PyObject *resultobj = 0;
40456 wxWindow *arg1 = (wxWindow *) 0 ;
40457 int arg2 = (int) -1 ;
40458 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40459 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40460 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40461 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40462 wxSize const &arg5_defvalue = wxDefaultSize ;
40463 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40464 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40465 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40466 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40467 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40468 wxString *arg8 = (wxString *) &arg8_defvalue ;
40469 wxDatePickerCtrl *result = 0 ;
40470 void *argp1 = 0 ;
40471 int res1 = 0 ;
40472 int val2 ;
40473 int ecode2 = 0 ;
40474 void *argp3 = 0 ;
40475 int res3 = 0 ;
40476 wxPoint temp4 ;
40477 wxSize temp5 ;
40478 long val6 ;
40479 int ecode6 = 0 ;
40480 void *argp7 = 0 ;
40481 int res7 = 0 ;
40482 bool temp8 = false ;
40483 PyObject * obj0 = 0 ;
40484 PyObject * obj1 = 0 ;
40485 PyObject * obj2 = 0 ;
40486 PyObject * obj3 = 0 ;
40487 PyObject * obj4 = 0 ;
40488 PyObject * obj5 = 0 ;
40489 PyObject * obj6 = 0 ;
40490 PyObject * obj7 = 0 ;
40491 char * kwnames[] = {
40492 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40493 };
40494
40495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40497 if (!SWIG_IsOK(res1)) {
40498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40499 }
40500 arg1 = reinterpret_cast< wxWindow * >(argp1);
40501 if (obj1) {
40502 ecode2 = SWIG_AsVal_int(obj1, &val2);
40503 if (!SWIG_IsOK(ecode2)) {
40504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40505 }
40506 arg2 = static_cast< int >(val2);
40507 }
40508 if (obj2) {
40509 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40510 if (!SWIG_IsOK(res3)) {
40511 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 40512 }
554f62e9
RD
40513 if (!argp3) {
40514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 40515 }
554f62e9
RD
40516 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40517 }
40518 if (obj3) {
d55e5bfc 40519 {
554f62e9
RD
40520 arg4 = &temp4;
40521 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 40522 }
554f62e9
RD
40523 }
40524 if (obj4) {
093d3ff1 40525 {
554f62e9
RD
40526 arg5 = &temp5;
40527 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 40528 }
554f62e9
RD
40529 }
40530 if (obj5) {
40531 ecode6 = SWIG_AsVal_long(obj5, &val6);
40532 if (!SWIG_IsOK(ecode6)) {
40533 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40534 }
40535 arg6 = static_cast< long >(val6);
40536 }
40537 if (obj6) {
40538 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40539 if (!SWIG_IsOK(res7)) {
40540 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 40541 }
554f62e9
RD
40542 if (!argp7) {
40543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 40544 }
554f62e9
RD
40545 arg7 = reinterpret_cast< wxValidator * >(argp7);
40546 }
40547 if (obj7) {
d55e5bfc 40548 {
554f62e9
RD
40549 arg8 = wxString_in_helper(obj7);
40550 if (arg8 == NULL) SWIG_fail;
40551 temp8 = true;
d55e5bfc 40552 }
554f62e9
RD
40553 }
40554 {
40555 if (!wxPyCheckForApp()) SWIG_fail;
40556 PyThreadState* __tstate = wxPyBeginAllowThreads();
40557 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40558 wxPyEndAllowThreads(__tstate);
40559 if (PyErr_Occurred()) SWIG_fail;
40560 }
40561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40562 {
40563 if (temp8)
40564 delete arg8;
40565 }
40566 return resultobj;
40567fail:
40568 {
40569 if (temp8)
40570 delete arg8;
40571 }
40572 return NULL;
d55e5bfc
RD
40573}
40574
40575
554f62e9
RD
40576SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40577 PyObject *resultobj = 0;
40578 wxDatePickerCtrl *result = 0 ;
40579
40580 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40581 {
40582 if (!wxPyCheckForApp()) SWIG_fail;
40583 PyThreadState* __tstate = wxPyBeginAllowThreads();
40584 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40585 wxPyEndAllowThreads(__tstate);
40586 if (PyErr_Occurred()) SWIG_fail;
40587 }
40588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40589 return resultobj;
40590fail:
40591 return NULL;
40592}
40593
40594
40595SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40596 PyObject *resultobj = 0;
40597 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40598 wxWindow *arg2 = (wxWindow *) 0 ;
40599 int arg3 = (int) -1 ;
40600 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40601 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40602 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40603 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40604 wxSize const &arg6_defvalue = wxDefaultSize ;
40605 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40606 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40607 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40608 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40609 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40610 wxString *arg9 = (wxString *) &arg9_defvalue ;
40611 bool result;
40612 void *argp1 = 0 ;
40613 int res1 = 0 ;
40614 void *argp2 = 0 ;
40615 int res2 = 0 ;
40616 int val3 ;
40617 int ecode3 = 0 ;
40618 void *argp4 = 0 ;
40619 int res4 = 0 ;
40620 wxPoint temp5 ;
40621 wxSize temp6 ;
40622 long val7 ;
40623 int ecode7 = 0 ;
40624 void *argp8 = 0 ;
40625 int res8 = 0 ;
40626 bool temp9 = false ;
40627 PyObject * obj0 = 0 ;
40628 PyObject * obj1 = 0 ;
40629 PyObject * obj2 = 0 ;
40630 PyObject * obj3 = 0 ;
40631 PyObject * obj4 = 0 ;
40632 PyObject * obj5 = 0 ;
40633 PyObject * obj6 = 0 ;
40634 PyObject * obj7 = 0 ;
40635 PyObject * obj8 = 0 ;
40636 char * kwnames[] = {
40637 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40638 };
40639
40640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40642 if (!SWIG_IsOK(res1)) {
40643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40644 }
40645 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40647 if (!SWIG_IsOK(res2)) {
40648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40649 }
40650 arg2 = reinterpret_cast< wxWindow * >(argp2);
40651 if (obj2) {
40652 ecode3 = SWIG_AsVal_int(obj2, &val3);
40653 if (!SWIG_IsOK(ecode3)) {
40654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40655 }
40656 arg3 = static_cast< int >(val3);
40657 }
40658 if (obj3) {
40659 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40660 if (!SWIG_IsOK(res4)) {
40661 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
093d3ff1 40662 }
554f62e9
RD
40663 if (!argp4) {
40664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 40665 }
554f62e9
RD
40666 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40667 }
40668 if (obj4) {
093d3ff1 40669 {
554f62e9
RD
40670 arg5 = &temp5;
40671 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 40672 }
554f62e9
RD
40673 }
40674 if (obj5) {
d55e5bfc 40675 {
554f62e9
RD
40676 arg6 = &temp6;
40677 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 40678 }
554f62e9
RD
40679 }
40680 if (obj6) {
40681 ecode7 = SWIG_AsVal_long(obj6, &val7);
40682 if (!SWIG_IsOK(ecode7)) {
40683 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40684 }
40685 arg7 = static_cast< long >(val7);
40686 }
40687 if (obj7) {
40688 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40689 if (!SWIG_IsOK(res8)) {
40690 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40691 }
40692 if (!argp8) {
40693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 40694 }
554f62e9
RD
40695 arg8 = reinterpret_cast< wxValidator * >(argp8);
40696 }
40697 if (obj8) {
d55e5bfc 40698 {
554f62e9
RD
40699 arg9 = wxString_in_helper(obj8);
40700 if (arg9 == NULL) SWIG_fail;
40701 temp9 = true;
d55e5bfc 40702 }
554f62e9
RD
40703 }
40704 {
40705 PyThreadState* __tstate = wxPyBeginAllowThreads();
40706 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40707 wxPyEndAllowThreads(__tstate);
40708 if (PyErr_Occurred()) SWIG_fail;
40709 }
40710 {
40711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40712 }
40713 {
40714 if (temp9)
40715 delete arg9;
40716 }
40717 return resultobj;
40718fail:
40719 {
40720 if (temp9)
40721 delete arg9;
40722 }
40723 return NULL;
40724}
40725
40726
40727SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40728 PyObject *resultobj = 0;
40729 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40730 wxDateTime *arg2 = 0 ;
40731 void *argp1 = 0 ;
40732 int res1 = 0 ;
40733 void *argp2 = 0 ;
40734 int res2 = 0 ;
40735 PyObject * obj0 = 0 ;
40736 PyObject * obj1 = 0 ;
40737 char * kwnames[] = {
40738 (char *) "self",(char *) "dt", NULL
40739 };
40740
40741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40743 if (!SWIG_IsOK(res1)) {
40744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40745 }
40746 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40748 if (!SWIG_IsOK(res2)) {
40749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40750 }
40751 if (!argp2) {
40752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40753 }
40754 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40755 {
40756 PyThreadState* __tstate = wxPyBeginAllowThreads();
40757 (arg1)->SetValue((wxDateTime const &)*arg2);
40758 wxPyEndAllowThreads(__tstate);
40759 if (PyErr_Occurred()) SWIG_fail;
40760 }
40761 resultobj = SWIG_Py_Void();
40762 return resultobj;
40763fail:
40764 return NULL;
d55e5bfc
RD
40765}
40766
40767
554f62e9
RD
40768SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40769 PyObject *resultobj = 0;
40770 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40771 wxDateTime result;
40772 void *argp1 = 0 ;
40773 int res1 = 0 ;
40774 PyObject *swig_obj[1] ;
40775
40776 if (!args) SWIG_fail;
40777 swig_obj[0] = args;
40778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40779 if (!SWIG_IsOK(res1)) {
40780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40781 }
40782 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40783 {
40784 PyThreadState* __tstate = wxPyBeginAllowThreads();
40785 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40786 wxPyEndAllowThreads(__tstate);
40787 if (PyErr_Occurred()) SWIG_fail;
40788 }
40789 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40790 return resultobj;
40791fail:
40792 return NULL;
40793}
40794
40795
40796SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40797 PyObject *resultobj = 0;
40798 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40799 wxDateTime *arg2 = 0 ;
40800 wxDateTime *arg3 = 0 ;
40801 void *argp1 = 0 ;
40802 int res1 = 0 ;
40803 void *argp2 = 0 ;
40804 int res2 = 0 ;
40805 void *argp3 = 0 ;
40806 int res3 = 0 ;
40807 PyObject * obj0 = 0 ;
40808 PyObject * obj1 = 0 ;
40809 PyObject * obj2 = 0 ;
40810 char * kwnames[] = {
40811 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40812 };
40813
40814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40816 if (!SWIG_IsOK(res1)) {
40817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40818 }
40819 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40821 if (!SWIG_IsOK(res2)) {
40822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40823 }
40824 if (!argp2) {
40825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40826 }
40827 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40828 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40829 if (!SWIG_IsOK(res3)) {
40830 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40831 }
40832 if (!argp3) {
40833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40834 }
40835 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40836 {
40837 PyThreadState* __tstate = wxPyBeginAllowThreads();
40838 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40839 wxPyEndAllowThreads(__tstate);
40840 if (PyErr_Occurred()) SWIG_fail;
40841 }
40842 resultobj = SWIG_Py_Void();
40843 return resultobj;
40844fail:
40845 return NULL;
d55e5bfc
RD
40846}
40847
40848
554f62e9
RD
40849SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40850 PyObject *resultobj = 0;
40851 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40852 wxDateTime result;
40853 void *argp1 = 0 ;
40854 int res1 = 0 ;
40855 PyObject *swig_obj[1] ;
40856
40857 if (!args) SWIG_fail;
40858 swig_obj[0] = args;
40859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40860 if (!SWIG_IsOK(res1)) {
40861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40862 }
40863 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40864 {
40865 PyThreadState* __tstate = wxPyBeginAllowThreads();
40866 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40867 wxPyEndAllowThreads(__tstate);
40868 if (PyErr_Occurred()) SWIG_fail;
40869 }
40870 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40871 return resultobj;
40872fail:
40873 return NULL;
d55e5bfc
RD
40874}
40875
40876
554f62e9
RD
40877SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40878 PyObject *resultobj = 0;
40879 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40880 wxDateTime result;
40881 void *argp1 = 0 ;
40882 int res1 = 0 ;
40883 PyObject *swig_obj[1] ;
40884
40885 if (!args) SWIG_fail;
40886 swig_obj[0] = args;
40887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40888 if (!SWIG_IsOK(res1)) {
40889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40890 }
40891 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40892 {
40893 PyThreadState* __tstate = wxPyBeginAllowThreads();
40894 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40895 wxPyEndAllowThreads(__tstate);
40896 if (PyErr_Occurred()) SWIG_fail;
40897 }
40898 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40899 return resultobj;
40900fail:
40901 return NULL;
d55e5bfc
RD
40902}
40903
40904
554f62e9
RD
40905SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40906 PyObject *obj;
40907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40908 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40909 return SWIG_Py_Void();
d55e5bfc
RD
40910}
40911
554f62e9
RD
40912SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40913 return SWIG_Python_InitShadowInstance(args);
40914}
d55e5bfc 40915
554f62e9
RD
40916static PyMethodDef SwigMethods[] = {
40917 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40918 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40919 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40920 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40921 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40922 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40923 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40924 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40925 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40926 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40927 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40928 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40929 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40930 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40931 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40932 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40933 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40935 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40936 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40937 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40938 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40939 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40940 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40941 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40942 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40943 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40944 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40945 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40947 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40948 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40949 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40950 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40951 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40952 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40953 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40954 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40955 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40956 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40957 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40958 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40959 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40960 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40962 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40963 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40965 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40966 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40967 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40968 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40969 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40970 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40971 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40973 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40974 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40977 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40978 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7 40979 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40980 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40981 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40982 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40983 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40984 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40985 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40986 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40987 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40988 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40989 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40990 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40991 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40992 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40993 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40994 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40995 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40997 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41000 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41001 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41002 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41003 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41004 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41005 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41007 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41008 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41009 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41010 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41011 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41012 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41014 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41015 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41016 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41017 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41018 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41019 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41020 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41021 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41022 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41023 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41024 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41025 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41026 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41028 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41030 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41031 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41032 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41033 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41034 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41035 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41036 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41037 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41038 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41039 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41040 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41041 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41042 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41043 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41044 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41045 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41047 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41048 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41049 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41050 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41052 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41053 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41055 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41056 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41058 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41061 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41062 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41064 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41065 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41066 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41067 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41068 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41069 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41070 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
41071 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41072 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41073 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41075 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41076 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41077 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41082 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41083 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41085 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41086 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41087 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41088 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41089 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41090 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41091 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41092 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41093 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41094 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41095 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41096 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41097 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41098 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41099 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41100 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41101 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41102 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41103 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41104 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41105 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41106 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41107 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41109 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41111 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41113 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41114 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41115 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41116 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41117 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41118 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41119 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41120 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41121 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41122 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41124 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41125 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41126 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41127 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41131 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41135 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41141 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41142 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41143 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41144 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41145 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41146 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41147 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41148 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41149 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41150 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41152 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41153 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41154 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41156 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
41159 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41160 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41163 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41164 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41166 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41167 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41168 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41169 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41170 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41171 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41172 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41174 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41175 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41176 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41177 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41178 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41180 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41181 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41182 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41184 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41186 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41187 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41188 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41193 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41195 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41196 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41198 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41199 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41200 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41201 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41204 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41205 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41206 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41207 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41208 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41209 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41211 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41212 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41213 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41214 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41215 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41216 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41219 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41220 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41222 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41223 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41226 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7
RD
41227 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41228 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
41229 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41230 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41231 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41232 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41233 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41234 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41235 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41237 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41239 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41240 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41241 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41242 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41243 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41244 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41245 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41246 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41247 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41248 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41249 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41250 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41251 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41252 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41254 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41255 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41256 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41257 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41259 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41261 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41262 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41264 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41265 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41266 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41267 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41268 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41269 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41270 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41272 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41273 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41275 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41276 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41277 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41278 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41279 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41280 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41281 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41282 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41285 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41287 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41290 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41292 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41293 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
41294 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41295 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
554f62e9
RD
41296 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41297 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 41298 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
554f62e9
RD
41299 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41300 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41302 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41304 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41305 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41306 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41307 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41308 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41309 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41310 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41311 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41312 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41313 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41314 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41315 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41317 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41319 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41323 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41324 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41325 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41326 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41327 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41328 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41329 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41331 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41333 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41334 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41335 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41336 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41337 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41338 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41340 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41342 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41343 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41344 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41345 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41346 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41347 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41349 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41357 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41358 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41359 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41360 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41361 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41362 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41363 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41364 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41366 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41367 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41368 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41369 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41371 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41372 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41373 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41374 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41375 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41376 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41377 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41378 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41379 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41380 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41381 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41382 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41383 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41384 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41385 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41386 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41387 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41388 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41389 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41391 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41392 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41394 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41398 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41400 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41402 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41408 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41410 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41415 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41416 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41417 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41418 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41420 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41421 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41424 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41429 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41433 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41434 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41435 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41436 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41437 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41439 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41440 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41441 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41442 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41443 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41444 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41445 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41446 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41447 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41448 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41450 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
41451 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41452 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41453 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41454 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41455 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41456 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41457 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41458 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41459 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41460 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41461 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41462 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41463 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41464 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41465 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41466 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41467 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41468 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41469 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41470 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41471 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41472 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41473 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41474 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41476 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41478 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41481 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41487 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41488 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41489 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41490 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41491 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41492 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41493 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41494 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41495 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41496 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41497 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41498 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41499 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41500 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41501 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41502 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41503 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41504 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41505 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41506 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41507 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41508 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41509 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41510 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41511 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41512 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41513 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41514 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41515 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41516 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41517 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41518 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41519 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41520 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41521 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41522 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41524 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41525 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41526 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41527 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41528 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41529 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41530 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41531 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41532 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41533 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41534 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41535 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41536 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41537 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41538 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41539 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41540 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41541 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41542 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41543 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41544 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41545 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41546 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41547 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41549 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41550 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41552 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41558 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41559 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41560 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41561 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41571 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41573 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41574 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41576 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41577 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41578 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41579 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41580 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41581 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41582 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41583 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41584 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41585 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41586 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41587 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41588 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41589 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41590 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41591 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41592 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41593 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41594 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41595 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41596 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41597 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41598 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41599 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41600 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41601 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41603 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41604 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41606 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41607 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41608 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41610 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41611 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41612 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41620 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41622 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41623 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41625 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41628 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41629 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41631 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41633 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41634 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41635 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41636 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41637 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41638 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41639 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41640 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41641 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41642 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41643 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41644 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41645 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41646 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41647 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41648 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41649 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41650 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41651 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41652 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41653 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41654 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41655 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41656 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41658 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41659 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41660 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41661 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41662 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41663 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41664 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41665 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41666 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41667 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41668 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41669 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41670 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41671 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41672 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41673 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41674 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41675 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41676 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41677 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41678 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41679 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41680 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41681 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41682 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41683 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41684 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41685 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41686 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41688 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41689 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41690 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41692 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41693 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41694 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41695 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41699 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41700 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41701 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41702 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41703 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41704 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41705 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41706 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41707 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41708 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41709 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41710 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41711 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41712 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41713 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41714 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41715 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41716 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41717 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41718 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41719 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41720 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41721 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41722 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41723 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41724 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41725 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41727 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41728 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41729 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41730 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41731 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41732 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41733 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41734 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41735 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41736 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41737 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41738 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41739 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41740 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41741 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41742 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41743 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41744 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41745 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41746 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41747 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41748 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
41749 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41750 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41751 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41752 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41753 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41754 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41755 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41756 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41757 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41758 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41759 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41760 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41761 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41762 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41763 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41764 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41765 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41766 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41768 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41769 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41770 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41771 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41772 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41773 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41774 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41775 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41776 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41777 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41778 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41779 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41780 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41781 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41782 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41783 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41784 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41785 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41786 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41787 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41788 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41789 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41790 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41791 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41792 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41793 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41794 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41795 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41796 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41797 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41798 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41799 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41800 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41801 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41802 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41803 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41804 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41805 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41806 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41807 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41808 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41809 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41810 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41811 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41812 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41813 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41814 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41815 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41816 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 41817 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
554f62e9
RD
41818 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41819 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41820 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41821 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41822 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41823 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41824 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41825 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41826 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41827 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41828 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41829 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41830 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41831 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41832 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41833 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41834 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41835 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41836 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41837 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41838 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41839 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41840 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41841 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41842 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41843 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41844 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41845 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41846 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41847 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41848 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41849 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41850 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41851 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41852 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41853 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41854 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41855 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41856 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41857 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41858 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41859 { NULL, NULL, 0, NULL }
41860};
41861
41862
41863/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41864
41865static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41866 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41867}
41868static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41869 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41870}
41871static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41872 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41873}
41874static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41875 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41876}
41877static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41878 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41879}
41880static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41881 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41882}
41883static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41884 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41885}
41886static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41887 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41888}
41889static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41890 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41891}
41892static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41893 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41894}
41895static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41896 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41897}
41898static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41899 return (void *)((wxEvent *) ((wxPyEvent *) x));
41900}
41901static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41902 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41903}
41904static void *_p_wxListEventTo_p_wxEvent(void *x) {
41905 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41906}
41907static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41908 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41909}
41910static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41911 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41912}
41913static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41914 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41915}
41916static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41917 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41918}
41919static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41920 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41921}
41922static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41923 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41924}
41925static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41926 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41927}
41928static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41929 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41930}
41931static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41932 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41933}
41934static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41935 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41936}
41937static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41938 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41939}
41940static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41941 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41942}
41943static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41944 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41945}
41946static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41947 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41948}
41949static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41950 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41951}
41952static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41953 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41954}
41955static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41956 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41957}
41958static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41959 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41960}
41961static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41962 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41963}
41964static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41965 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41966}
41967static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41968 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41969}
41970static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41971 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41972}
41973static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41974 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41975}
41976static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41977 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41978}
41979static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41980 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41981}
41982static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41983 return (void *)((wxEvent *) ((wxShowEvent *) x));
41984}
41985static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41986 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41987}
41988static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41989 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41990}
41991static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41992 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41993}
41994static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41995 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41996}
41997static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41998 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41999}
42000static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42001 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42002}
42003static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42004 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42005}
42006static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42007 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42008}
42009static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42010 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42011}
42012static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42013 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42014}
42015static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42016 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42017}
42018static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42019 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42020}
42021static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42022 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42023}
42024static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42025 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42026}
42027static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42028 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42029}
42030static void *_p_wxToolBarTo_p_wxControl(void *x) {
42031 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42032}
42033static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42034 return (void *)((wxControl *) ((wxToggleButton *) x));
42035}
42036static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42037 return (void *)((wxControl *) ((wxRadioButton *) x));
42038}
42039static void *_p_wxToolbookTo_p_wxControl(void *x) {
42040 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42041}
42042static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42043 return (void *)((wxControl *) ((wxToolBarBase *) x));
42044}
42045static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42046 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42047}
42048static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42049 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42050}
42051static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42052 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42053}
42054static void *_p_wxPyControlTo_p_wxControl(void *x) {
42055 return (void *)((wxControl *) ((wxPyControl *) x));
42056}
42057static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42058 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42059}
42060static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42061 return (void *)((wxControl *) ((wxScrollBar *) x));
42062}
42063static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42064 return (void *)((wxControl *) ((wxControlWithItems *) x));
42065}
42066static void *_p_wxGaugeTo_p_wxControl(void *x) {
42067 return (void *)((wxControl *) ((wxGauge *) x));
42068}
42069static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42070 return (void *)((wxControl *) ((wxStaticLine *) x));
42071}
42072static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42073 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42074}
42075static void *_p_wxListbookTo_p_wxControl(void *x) {
42076 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42077}
42078static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42079 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42080}
42081static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42082 return (void *)((wxControl *) ((wxCheckBox *) x));
42083}
42084static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42085 return (void *)((wxControl *) ((wxRadioBox *) x));
42086}
42087static void *_p_wxChoiceTo_p_wxControl(void *x) {
42088 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42089}
42090static void *_p_wxListBoxTo_p_wxControl(void *x) {
42091 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42092}
42093static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42094 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42095}
42096static void *_p_wxListViewTo_p_wxControl(void *x) {
42097 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42098}
42099static void *_p_wxNotebookTo_p_wxControl(void *x) {
42100 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42101}
42102static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42103 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42104}
42105static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42106 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42107}
42108static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42109 return (void *)((wxControl *) ((wxStaticText *) x));
42110}
42111static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42112 return (void *)((wxControl *) ((wxStaticBox *) x));
42113}
42114static void *_p_wxSliderTo_p_wxControl(void *x) {
42115 return (void *)((wxControl *) ((wxSlider *) x));
42116}
42117static void *_p_wxTreebookTo_p_wxControl(void *x) {
42118 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42119}
42120static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42121 return (void *)((wxControl *) ((wxSpinButton *) x));
42122}
42123static void *_p_wxButtonTo_p_wxControl(void *x) {
42124 return (void *)((wxControl *) ((wxButton *) x));
42125}
42126static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42127 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42128}
42129static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42130 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42131}
42132static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42133 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42134}
42135static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42136 return (void *)((wxControl *) ((wxTextCtrl *) x));
42137}
42138static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42139 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42140}
42141static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
42142 return (void *)((wxChoice *) ((wxComboBox *) x));
42143}
42144static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42145 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42146}
42147static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42148 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42149}
42150static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42151 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42152}
42153static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42154 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42155}
42156static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42157 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42158}
42159static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42160 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42161}
42162static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42163 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42164}
42165static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42166 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42167}
42168static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42169 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42170}
42171static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42172 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42173}
42174static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42175 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42176}
42177static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42178 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42179}
42180static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42181 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42182}
42183static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42184 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42185}
42186static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42187 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42188}
42189static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42190 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42191}
42192static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42194}
42195static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42196 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42197}
42198static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42199 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42200}
42201static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42203}
42204static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42205 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42206}
42207static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42209}
42210static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42212}
42213static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42215}
42216static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42217 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42218}
42219static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42220 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42221}
42222static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42224}
42225static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42227}
42228static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42230}
42231static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42233}
42234static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42236}
42237static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42238 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42239}
42240static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42242}
42243static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42245}
42246static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42248}
42249static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42251}
42252static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42254}
42255static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42257}
42258static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42260}
42261static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42263}
42264static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42266}
42267static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42269}
42270static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42272}
42273static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42275}
42276static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42278}
42279static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42280 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42281}
42282static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42284}
42285static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42286 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42287}
42288static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42289 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42290}
42291static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42292 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42293}
42294static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42295 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42296}
42297static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42298 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42299}
42300static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42301 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42302}
42303static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42304 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42305}
42306static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42307 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42308}
42309static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42310 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42311}
42312static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42313 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42314}
42315static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42316 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42317}
42318static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42319 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42320}
42321static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42322 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42323}
42324static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42325 return (void *)((wxButton *) ((wxBitmapButton *) x));
42326}
42327static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42328 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42329}
42330static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42331 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42332}
42333static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42334 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42335}
42336static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42337 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42338}
42339static void *_p_wxToolbookTo_p_wxObject(void *x) {
42340 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42341}
42342static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42343 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42344}
42345static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42346 return (void *)((wxObject *) ((wxSizerItem *) x));
42347}
42348static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42349 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42350}
42351static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42352 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42353}
42354static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42355 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42356}
42357static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42358 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42359}
42360static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42361 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42362}
42363static void *_p_wxSizerTo_p_wxObject(void *x) {
42364 return (void *)((wxObject *) ((wxSizer *) x));
42365}
42366static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42367 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42368}
42369static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42371}
42372static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42374}
42375static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42376 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42377}
42378static void *_p_wxEventTo_p_wxObject(void *x) {
42379 return (void *)((wxObject *) ((wxEvent *) x));
42380}
42381static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42382 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42383}
42384static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42385 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42386}
42387static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42388 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42389}
42390static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42392}
42393static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42395}
42396static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42398}
42399static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42400 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42401}
42402static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42403 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42404}
42405static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42406 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42407}
42408static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42409 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42410}
42411static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42412 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42413}
42414static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42415 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42416}
42417static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42419}
42420static void *_p_wxControlTo_p_wxObject(void *x) {
42421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42422}
42423static void *_p_wxPyControlTo_p_wxObject(void *x) {
42424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42425}
42426static void *_p_wxGaugeTo_p_wxObject(void *x) {
42427 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42428}
42429static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42431}
42432static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42434}
42435static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42437}
42438static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42439 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42440}
42441static void *_p_wxChoiceTo_p_wxObject(void *x) {
42442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42443}
42444static void *_p_wxFSFileTo_p_wxObject(void *x) {
42445 return (void *)((wxObject *) ((wxFSFile *) x));
42446}
42447static void *_p_wxPySizerTo_p_wxObject(void *x) {
42448 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42449}
42450static void *_p_wxTreebookTo_p_wxObject(void *x) {
42451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42452}
42453static void *_p_wxListViewTo_p_wxObject(void *x) {
42454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42455}
42456static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42458}
42459static void *_p_wxNotebookTo_p_wxObject(void *x) {
42460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42461}
42462static void *_p_wxPyEventTo_p_wxObject(void *x) {
42463 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42464}
42465static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42467}
42468static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42470}
42471static void *_p_wxListbookTo_p_wxObject(void *x) {
42472 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42473}
42474static void *_p_wxShowEventTo_p_wxObject(void *x) {
42475 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42476}
42477static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42479}
42480static void *_p_wxSliderTo_p_wxObject(void *x) {
42481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42482}
42483static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42484 return (void *)((wxObject *) ((wxMenuItem *) x));
42485}
42486static void *_p_wxDateEventTo_p_wxObject(void *x) {
42487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42488}
42489static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42490 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42491}
42492static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42493 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42494}
42495static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42496 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42497}
42498static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42499 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42500}
42501static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42502 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42503}
42504static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42505 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42506}
42507static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42508 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42509}
42510static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42511 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42512}
42513static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42514 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42515}
42516static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42517 return (void *)((wxObject *) ((wxContextHelp *) x));
42518}
42519static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42521}
42522static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42523 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42524}
42525static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42526 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42527}
42528static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42529 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42530}
42531static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42532 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42533}
42534static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42535 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42536}
42537static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42538 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42539}
42540static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42541 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42542}
42543static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42544 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42545}
42546static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42547 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42548}
42549static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42550 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42551}
42552static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42553 return (void *)((wxObject *) ((wxImageHandler *) x));
42554}
42555static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42556 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42557}
42558static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42559 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42560}
42561static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42562 return (void *)((wxObject *) ((wxEvtHandler *) x));
42563}
42564static void *_p_wxListEventTo_p_wxObject(void *x) {
42565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42566}
42567static void *_p_wxListBoxTo_p_wxObject(void *x) {
42568 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42569}
42570static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42572}
42573static void *_p_wxButtonTo_p_wxObject(void *x) {
42574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42575}
42576static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42578}
42579static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42581}
42582static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42584}
42585static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42586 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42587}
42588static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42589 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42590}
42591static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42592 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42593}
42594static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42596}
42597static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42599}
42600static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42602}
42603static void *_p_wxListItemTo_p_wxObject(void *x) {
42604 return (void *)((wxObject *) ((wxListItem *) x));
42605}
42606static void *_p_wxImageTo_p_wxObject(void *x) {
42607 return (void *)((wxObject *) ((wxImage *) x));
42608}
42609static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42610 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42611}
42612static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42614}
42615static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42616 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42617}
42618static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42620}
42621static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42622 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42623}
42624static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42625 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42626}
42627static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42629}
42630static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42631 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42632}
42633static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42635}
42636static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42638}
42639static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42640 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42641}
42642static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42643 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42644}
42645static void *_p_wxWindowTo_p_wxObject(void *x) {
42646 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42647}
42648static void *_p_wxMenuTo_p_wxObject(void *x) {
42649 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42650}
42651static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42653}
42654static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42655 return (void *)((wxObject *) ((wxFileSystem *) x));
42656}
42657static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42659}
42660static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42661 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42662}
42663static void *_p_wxPyAppTo_p_wxObject(void *x) {
42664 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42665}
42666static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42667 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42668}
42669static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42670 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42671}
42672static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42673 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42674}
42675static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42677}
42678static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42679 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42680}
42681static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42683}
42684static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42685 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42686}
42687static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42689}
42690static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42691 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42692}
42693static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42694 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42695}
42696static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42697 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42698}
42699static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42701}
42702static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42704}
42705static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42706 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42707}
42708static void *_p_wxToolBarTo_p_wxObject(void *x) {
42709 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42710}
42711static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42712 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42713}
42714static void *_p_wxValidatorTo_p_wxObject(void *x) {
42715 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42716}
42717static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42718 return (void *)((wxWindow *) ((wxMenuBar *) x));
42719}
42720static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42721 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42722}
42723static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42724 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42725}
42726static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42727 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42728}
42729static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42730 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42731}
42732static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42733 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42734}
42735static void *_p_wxControlTo_p_wxWindow(void *x) {
42736 return (void *)((wxWindow *) ((wxControl *) x));
42737}
42738static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42739 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42740}
42741static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42742 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42743}
42744static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42745 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42746}
42747static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42748 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42749}
42750static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42751 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42752}
42753static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42754 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42755}
42756static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42757 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42758}
42759static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42760 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42761}
42762static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42763 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42764}
42765static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42766 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42767}
42768static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42769 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42770}
42771static void *_p_wxListbookTo_p_wxWindow(void *x) {
42772 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42773}
42774static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42775 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42776}
42777static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42778 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42779}
42780static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42781 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42782}
42783static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42784 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42785}
42786static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42787 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42788}
42789static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42790 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42791}
42792static void *_p_wxListViewTo_p_wxWindow(void *x) {
42793 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42794}
42795static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42796 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42797}
42798static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42799 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42800}
42801static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42802 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42803}
42804static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42805 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42806}
42807static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42808 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42809}
42810static void *_p_wxSliderTo_p_wxWindow(void *x) {
42811 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42812}
42813static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42814 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42815}
42816static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42817 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42818}
42819static void *_p_wxButtonTo_p_wxWindow(void *x) {
42820 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42821}
42822static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42823 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42824}
42825static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42826 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42827}
42828static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42829 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42830}
42831static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42832 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42833}
42834static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42835 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42836}
42837static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42838 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42839}
42840static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42841 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42842}
42843static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42844 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42845}
42846static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42847 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42848}
42849static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42850 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42851}
42852static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42853 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42854}
42855static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42856 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42857}
42858static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42859 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42860}
42861static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42862 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42863}
42864static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42865 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42866}
42867static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42868 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42869}
42870static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42871 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42872}
42873static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42874 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42875}
42876static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42877 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42878}
42879static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42880 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42881}
42882static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42883 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42884}
42885static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42886 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42887}
42888static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42889 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42890}
42891static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42892 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42893}
42894static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42895 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42896}
42897static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42898 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42899}
42900static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42901 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42902}
42903static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42904 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42905}
42906static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42907 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42908}
42909static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
42910 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
42911}
42912static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42913 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42914}
42915static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42916 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42917}
42918static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42919 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42920}
42921static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42922 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42923}
42924static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42925 return (void *)((wxValidator *) ((wxPyValidator *) x));
42926}
42927static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42928static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42929static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
42930static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42931static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42932static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42933static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42934static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42935static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42936static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42937static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42938static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42939static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42940static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42941static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42942static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42943static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42944static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42945static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42946static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42947static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42948static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42949static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42950static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42951static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42952static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42953static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42954static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42955static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42956static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42957static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42958static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42959static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42960static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42961static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42962static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42963static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42964static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42965static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42966static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42967static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42968static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42969static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42970static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42971static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42972static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42973static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42974static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42975static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42976static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42977static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42978static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42979static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42980static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42981static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42982static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42983static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42984static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42985static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42986static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42987static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42988static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42989static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42990static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42991static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42992static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42993static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42994static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42995static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42996static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42997static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42998static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42999static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43000static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43001static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43002static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43003static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43004static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43005static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43006static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43007static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43008static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43009static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43010static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43011static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43012static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43013static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43014static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43015static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43016static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43017static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43018static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43019static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43020static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43021static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43022static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43023static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43024static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43025static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43026static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43027static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43028static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43029static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43030static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43031static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43032static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43033static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43034static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43035static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43036static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43037static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43038static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43039static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43040static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43041static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43042static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43043static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43044static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43045static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43046static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43047static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43048static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43049static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43050static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
43051static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43052static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43053static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
43054static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
43055static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
43056static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
43057static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
43058static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
43059static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
43060static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
43061static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
43062static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
43063static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
43064static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
43065static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
43066static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
43067static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
43068static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
43069static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
43070static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
43071static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
43072static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
43073static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
43074static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
43075static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43076static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43077static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43078static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43079static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43080static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43081static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43082static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43083static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43084static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43085static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43086static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43087static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43088static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43089static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43090
43091static swig_type_info *swig_type_initial[] = {
43092 &_swigt__p_bool,
43093 &_swigt__p_char,
43094 &_swigt__p_form_ops_t,
43095 &_swigt__p_int,
43096 &_swigt__p_long,
43097 &_swigt__p_unsigned_char,
43098 &_swigt__p_unsigned_int,
43099 &_swigt__p_unsigned_long,
43100 &_swigt__p_void,
43101 &_swigt__p_wxANIHandler,
43102 &_swigt__p_wxAcceleratorTable,
43103 &_swigt__p_wxActivateEvent,
43104 &_swigt__p_wxArrayInt,
43105 &_swigt__p_wxArrayString,
43106 &_swigt__p_wxBMPHandler,
43107 &_swigt__p_wxBitmap,
43108 &_swigt__p_wxBitmapButton,
43109 &_swigt__p_wxBookCtrlBase,
43110 &_swigt__p_wxBookCtrlBaseEvent,
43111 &_swigt__p_wxBoxSizer,
43112 &_swigt__p_wxButton,
43113 &_swigt__p_wxCURHandler,
43114 &_swigt__p_wxCheckBox,
43115 &_swigt__p_wxCheckListBox,
43116 &_swigt__p_wxChildFocusEvent,
43117 &_swigt__p_wxChoice,
43118 &_swigt__p_wxChoicebook,
43119 &_swigt__p_wxChoicebookEvent,
43120 &_swigt__p_wxCloseEvent,
43121 &_swigt__p_wxColour,
43122 &_swigt__p_wxComboBox,
43123 &_swigt__p_wxCommandEvent,
43124 &_swigt__p_wxContextHelp,
43125 &_swigt__p_wxContextHelpButton,
43126 &_swigt__p_wxContextMenuEvent,
43127 &_swigt__p_wxControl,
43128 &_swigt__p_wxControlWithItems,
43129 &_swigt__p_wxCursor,
43130 &_swigt__p_wxDC,
43131 &_swigt__p_wxDateEvent,
43132 &_swigt__p_wxDatePickerCtrl,
43133 &_swigt__p_wxDateTime,
43134 &_swigt__p_wxDirFilterListCtrl,
43135 &_swigt__p_wxDisplayChangedEvent,
43136 &_swigt__p_wxDropFilesEvent,
43137 &_swigt__p_wxDuplexMode,
43138 &_swigt__p_wxEraseEvent,
43139 &_swigt__p_wxEvent,
43140 &_swigt__p_wxEvtHandler,
43141 &_swigt__p_wxFSFile,
43142 &_swigt__p_wxFileSystem,
43143 &_swigt__p_wxFlexGridSizer,
43144 &_swigt__p_wxFocusEvent,
43145 &_swigt__p_wxFont,
43146 &_swigt__p_wxGBSizerItem,
43147 &_swigt__p_wxGIFHandler,
43148 &_swigt__p_wxGauge,
43149 &_swigt__p_wxGenericDirCtrl,
43150 &_swigt__p_wxGenericDragImage,
43151 &_swigt__p_wxGridBagSizer,
43152 &_swigt__p_wxGridSizer,
43153 &_swigt__p_wxHelpEvent,
43154 &_swigt__p_wxHelpProvider,
43155 &_swigt__p_wxICOHandler,
43156 &_swigt__p_wxIcon,
43157 &_swigt__p_wxIconizeEvent,
43158 &_swigt__p_wxIdleEvent,
43159 &_swigt__p_wxImage,
43160 &_swigt__p_wxImageHandler,
43161 &_swigt__p_wxImageList,
43162 &_swigt__p_wxIndividualLayoutConstraint,
43163 &_swigt__p_wxInitDialogEvent,
43164 &_swigt__p_wxItemContainer,
43165 &_swigt__p_wxJPEGHandler,
43166 &_swigt__p_wxKeyEvent,
43167 &_swigt__p_wxLayoutConstraints,
43168 &_swigt__p_wxListBox,
43169 &_swigt__p_wxListEvent,
43170 &_swigt__p_wxListItem,
43171 &_swigt__p_wxListItemAttr,
43172 &_swigt__p_wxListView,
43173 &_swigt__p_wxListbook,
43174 &_swigt__p_wxListbookEvent,
43175 &_swigt__p_wxMaximizeEvent,
43176 &_swigt__p_wxMemoryDC,
43177 &_swigt__p_wxMenu,
43178 &_swigt__p_wxMenuBar,
43179 &_swigt__p_wxMenuEvent,
43180 &_swigt__p_wxMenuItem,
43181 &_swigt__p_wxMouseCaptureChangedEvent,
43182 &_swigt__p_wxMouseEvent,
43183 &_swigt__p_wxMoveEvent,
43184 &_swigt__p_wxNavigationKeyEvent,
43185 &_swigt__p_wxNcPaintEvent,
43186 &_swigt__p_wxNotebook,
43187 &_swigt__p_wxNotebookEvent,
43188 &_swigt__p_wxNotifyEvent,
43189 &_swigt__p_wxObject,
43190 &_swigt__p_wxPCXHandler,
43191 &_swigt__p_wxPNGHandler,
43192 &_swigt__p_wxPNMHandler,
43193 &_swigt__p_wxPaintEvent,
43194 &_swigt__p_wxPaletteChangedEvent,
43195 &_swigt__p_wxPaperSize,
43196 &_swigt__p_wxPoint,
43197 &_swigt__p_wxPyApp,
43198 &_swigt__p_wxPyCommandEvent,
43199 &_swigt__p_wxPyControl,
43200 &_swigt__p_wxPyEvent,
43201 &_swigt__p_wxPyImageHandler,
43202 &_swigt__p_wxPyListCtrl,
43203 &_swigt__p_wxPySizer,
43204 &_swigt__p_wxPyTreeCtrl,
43205 &_swigt__p_wxPyTreeItemData,
43206 &_swigt__p_wxPyValidator,
43207 &_swigt__p_wxQueryNewPaletteEvent,
43208 &_swigt__p_wxRadioBox,
43209 &_swigt__p_wxRadioButton,
43210 &_swigt__p_wxRect,
43211 &_swigt__p_wxScrollBar,
43212 &_swigt__p_wxScrollEvent,
43213 &_swigt__p_wxScrollWinEvent,
43214 &_swigt__p_wxSetCursorEvent,
43215 &_swigt__p_wxShowEvent,
43216 &_swigt__p_wxSimpleHelpProvider,
43217 &_swigt__p_wxSize,
43218 &_swigt__p_wxSizeEvent,
43219 &_swigt__p_wxSizer,
43220 &_swigt__p_wxSizerItem,
43221 &_swigt__p_wxSlider,
43222 &_swigt__p_wxSpinButton,
43223 &_swigt__p_wxSpinCtrl,
43224 &_swigt__p_wxSpinEvent,
43225 &_swigt__p_wxStaticBitmap,
43226 &_swigt__p_wxStaticBox,
43227 &_swigt__p_wxStaticBoxSizer,
43228 &_swigt__p_wxStaticLine,
43229 &_swigt__p_wxStaticText,
43230 &_swigt__p_wxStdDialogButtonSizer,
43231 &_swigt__p_wxString,
43232 &_swigt__p_wxSysColourChangedEvent,
43233 &_swigt__p_wxTIFFHandler,
43234 &_swigt__p_wxTextAttr,
43235 &_swigt__p_wxTextCtrl,
43236 &_swigt__p_wxTextUrlEvent,
43237 &_swigt__p_wxToggleButton,
43238 &_swigt__p_wxToolBar,
43239 &_swigt__p_wxToolBarBase,
43240 &_swigt__p_wxToolBarToolBase,
43241 &_swigt__p_wxToolbook,
43242 &_swigt__p_wxToolbookEvent,
43243 &_swigt__p_wxTreeCtrl,
43244 &_swigt__p_wxTreeEvent,
43245 &_swigt__p_wxTreeItemId,
43246 &_swigt__p_wxTreebook,
43247 &_swigt__p_wxTreebookEvent,
43248 &_swigt__p_wxUpdateUIEvent,
43249 &_swigt__p_wxValidator,
43250 &_swigt__p_wxVisualAttributes,
43251 &_swigt__p_wxWindow,
43252 &_swigt__p_wxWindowCreateEvent,
43253 &_swigt__p_wxWindowDestroyEvent,
43254 &_swigt__p_wxXPMHandler,
43255};
43256
43257static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43258static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43259static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43260static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43261static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43262static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43263static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43264static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43265static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43266static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43267static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43268static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43269static 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}};
43270static 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}};
43271static 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}};
43272static 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}};
43273static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43274static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43275static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
43276static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43277static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43278static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43279static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43280static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43281static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43282static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43283static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43284static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43285static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43286static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43287static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43288static 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}};
43289static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43290static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43291static 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}};
43292static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_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}};
43293static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43294static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43295static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43296static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43297static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43298static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43299static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43300static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43301static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43302static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43303static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43304static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43305static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43306static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43307static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43308static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43309static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43310static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43311static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43312static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43313static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43314static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43315static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43316static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43317static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43318static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43319static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43320static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43321static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43322static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43323static 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}};
43324static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43325static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43326static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43327static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43328static 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}};
43329static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43330static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43331static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43332static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43333static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43334static 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}};
43335static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43336static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43337static 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}};
43338static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43339static 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}};
43340static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43341static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43342static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43343static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43344static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43345static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43346static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43347static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43348static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43349static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43350static 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}};
43351static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43352static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43353static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43354static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43355static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43356static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43357static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43358static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43359static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43360static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43361static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43362static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43363static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43364static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43365static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43366static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43367static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43368static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43369static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43370static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43371static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43372static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43373static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43374static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43375static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43376static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43377static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43378static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43379static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43380static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43381static 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}};
43382static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43383static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43384static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43385static 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}};
43386static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43387static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43388static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43389static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43390static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43391static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43392static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43393static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43394static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43395static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43396static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43397static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43398static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43399static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43400static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43401static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43402static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43403static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43404static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43405static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43406static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43407static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43408static 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}};
43409static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43410static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43411static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43412static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43413static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43414static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43415static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43416static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43417static 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}};
43418static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43419static 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}};
43420
43421static swig_cast_info *swig_cast_initial[] = {
43422 _swigc__p_bool,
43423 _swigc__p_char,
43424 _swigc__p_form_ops_t,
43425 _swigc__p_int,
43426 _swigc__p_long,
43427 _swigc__p_unsigned_char,
43428 _swigc__p_unsigned_int,
43429 _swigc__p_unsigned_long,
43430 _swigc__p_void,
43431 _swigc__p_wxANIHandler,
43432 _swigc__p_wxAcceleratorTable,
43433 _swigc__p_wxActivateEvent,
43434 _swigc__p_wxArrayInt,
43435 _swigc__p_wxArrayString,
43436 _swigc__p_wxBMPHandler,
43437 _swigc__p_wxBitmap,
43438 _swigc__p_wxBitmapButton,
43439 _swigc__p_wxBookCtrlBase,
43440 _swigc__p_wxBookCtrlBaseEvent,
43441 _swigc__p_wxBoxSizer,
43442 _swigc__p_wxButton,
43443 _swigc__p_wxCURHandler,
43444 _swigc__p_wxCheckBox,
43445 _swigc__p_wxCheckListBox,
43446 _swigc__p_wxChildFocusEvent,
43447 _swigc__p_wxChoice,
43448 _swigc__p_wxChoicebook,
43449 _swigc__p_wxChoicebookEvent,
43450 _swigc__p_wxCloseEvent,
43451 _swigc__p_wxColour,
43452 _swigc__p_wxComboBox,
43453 _swigc__p_wxCommandEvent,
43454 _swigc__p_wxContextHelp,
43455 _swigc__p_wxContextHelpButton,
43456 _swigc__p_wxContextMenuEvent,
43457 _swigc__p_wxControl,
43458 _swigc__p_wxControlWithItems,
43459 _swigc__p_wxCursor,
43460 _swigc__p_wxDC,
43461 _swigc__p_wxDateEvent,
43462 _swigc__p_wxDatePickerCtrl,
43463 _swigc__p_wxDateTime,
43464 _swigc__p_wxDirFilterListCtrl,
43465 _swigc__p_wxDisplayChangedEvent,
43466 _swigc__p_wxDropFilesEvent,
43467 _swigc__p_wxDuplexMode,
43468 _swigc__p_wxEraseEvent,
43469 _swigc__p_wxEvent,
43470 _swigc__p_wxEvtHandler,
43471 _swigc__p_wxFSFile,
43472 _swigc__p_wxFileSystem,
43473 _swigc__p_wxFlexGridSizer,
43474 _swigc__p_wxFocusEvent,
43475 _swigc__p_wxFont,
43476 _swigc__p_wxGBSizerItem,
43477 _swigc__p_wxGIFHandler,
43478 _swigc__p_wxGauge,
43479 _swigc__p_wxGenericDirCtrl,
43480 _swigc__p_wxGenericDragImage,
43481 _swigc__p_wxGridBagSizer,
43482 _swigc__p_wxGridSizer,
43483 _swigc__p_wxHelpEvent,
43484 _swigc__p_wxHelpProvider,
43485 _swigc__p_wxICOHandler,
43486 _swigc__p_wxIcon,
43487 _swigc__p_wxIconizeEvent,
43488 _swigc__p_wxIdleEvent,
43489 _swigc__p_wxImage,
43490 _swigc__p_wxImageHandler,
43491 _swigc__p_wxImageList,
43492 _swigc__p_wxIndividualLayoutConstraint,
43493 _swigc__p_wxInitDialogEvent,
43494 _swigc__p_wxItemContainer,
43495 _swigc__p_wxJPEGHandler,
43496 _swigc__p_wxKeyEvent,
43497 _swigc__p_wxLayoutConstraints,
43498 _swigc__p_wxListBox,
43499 _swigc__p_wxListEvent,
43500 _swigc__p_wxListItem,
43501 _swigc__p_wxListItemAttr,
43502 _swigc__p_wxListView,
43503 _swigc__p_wxListbook,
43504 _swigc__p_wxListbookEvent,
43505 _swigc__p_wxMaximizeEvent,
43506 _swigc__p_wxMemoryDC,
43507 _swigc__p_wxMenu,
43508 _swigc__p_wxMenuBar,
43509 _swigc__p_wxMenuEvent,
43510 _swigc__p_wxMenuItem,
43511 _swigc__p_wxMouseCaptureChangedEvent,
43512 _swigc__p_wxMouseEvent,
43513 _swigc__p_wxMoveEvent,
43514 _swigc__p_wxNavigationKeyEvent,
43515 _swigc__p_wxNcPaintEvent,
43516 _swigc__p_wxNotebook,
43517 _swigc__p_wxNotebookEvent,
43518 _swigc__p_wxNotifyEvent,
43519 _swigc__p_wxObject,
43520 _swigc__p_wxPCXHandler,
43521 _swigc__p_wxPNGHandler,
43522 _swigc__p_wxPNMHandler,
43523 _swigc__p_wxPaintEvent,
43524 _swigc__p_wxPaletteChangedEvent,
43525 _swigc__p_wxPaperSize,
43526 _swigc__p_wxPoint,
43527 _swigc__p_wxPyApp,
43528 _swigc__p_wxPyCommandEvent,
43529 _swigc__p_wxPyControl,
43530 _swigc__p_wxPyEvent,
43531 _swigc__p_wxPyImageHandler,
43532 _swigc__p_wxPyListCtrl,
43533 _swigc__p_wxPySizer,
43534 _swigc__p_wxPyTreeCtrl,
43535 _swigc__p_wxPyTreeItemData,
43536 _swigc__p_wxPyValidator,
43537 _swigc__p_wxQueryNewPaletteEvent,
43538 _swigc__p_wxRadioBox,
43539 _swigc__p_wxRadioButton,
43540 _swigc__p_wxRect,
43541 _swigc__p_wxScrollBar,
43542 _swigc__p_wxScrollEvent,
43543 _swigc__p_wxScrollWinEvent,
43544 _swigc__p_wxSetCursorEvent,
43545 _swigc__p_wxShowEvent,
43546 _swigc__p_wxSimpleHelpProvider,
43547 _swigc__p_wxSize,
43548 _swigc__p_wxSizeEvent,
43549 _swigc__p_wxSizer,
43550 _swigc__p_wxSizerItem,
43551 _swigc__p_wxSlider,
43552 _swigc__p_wxSpinButton,
43553 _swigc__p_wxSpinCtrl,
43554 _swigc__p_wxSpinEvent,
43555 _swigc__p_wxStaticBitmap,
43556 _swigc__p_wxStaticBox,
43557 _swigc__p_wxStaticBoxSizer,
43558 _swigc__p_wxStaticLine,
43559 _swigc__p_wxStaticText,
43560 _swigc__p_wxStdDialogButtonSizer,
43561 _swigc__p_wxString,
43562 _swigc__p_wxSysColourChangedEvent,
43563 _swigc__p_wxTIFFHandler,
43564 _swigc__p_wxTextAttr,
43565 _swigc__p_wxTextCtrl,
43566 _swigc__p_wxTextUrlEvent,
43567 _swigc__p_wxToggleButton,
43568 _swigc__p_wxToolBar,
43569 _swigc__p_wxToolBarBase,
43570 _swigc__p_wxToolBarToolBase,
43571 _swigc__p_wxToolbook,
43572 _swigc__p_wxToolbookEvent,
43573 _swigc__p_wxTreeCtrl,
43574 _swigc__p_wxTreeEvent,
43575 _swigc__p_wxTreeItemId,
43576 _swigc__p_wxTreebook,
43577 _swigc__p_wxTreebookEvent,
43578 _swigc__p_wxUpdateUIEvent,
43579 _swigc__p_wxValidator,
43580 _swigc__p_wxVisualAttributes,
43581 _swigc__p_wxWindow,
43582 _swigc__p_wxWindowCreateEvent,
43583 _swigc__p_wxWindowDestroyEvent,
43584 _swigc__p_wxXPMHandler,
43585};
43586
43587
43588/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43589
43590static swig_const_info swig_const_table[] = {
43591{0, 0, 0, 0.0, 0, 0}};
43592
43593#ifdef __cplusplus
43594}
43595#endif
43596/* -----------------------------------------------------------------------------
43597 * Type initialization:
43598 * This problem is tough by the requirement that no dynamic
43599 * memory is used. Also, since swig_type_info structures store pointers to
43600 * swig_cast_info structures and swig_cast_info structures store pointers back
43601 * to swig_type_info structures, we need some lookup code at initialization.
43602 * The idea is that swig generates all the structures that are needed.
43603 * The runtime then collects these partially filled structures.
43604 * The SWIG_InitializeModule function takes these initial arrays out of
43605 * swig_module, and does all the lookup, filling in the swig_module.types
43606 * array with the correct data and linking the correct swig_cast_info
43607 * structures together.
43608 *
43609 * The generated swig_type_info structures are assigned staticly to an initial
43610 * array. We just loop though that array, and handle each type individually.
43611 * First we lookup if this type has been already loaded, and if so, use the
43612 * loaded structure instead of the generated one. Then we have to fill in the
43613 * cast linked list. The cast data is initially stored in something like a
43614 * two-dimensional array. Each row corresponds to a type (there are the same
43615 * number of rows as there are in the swig_type_initial array). Each entry in
43616 * a column is one of the swig_cast_info structures for that type.
43617 * The cast_initial array is actually an array of arrays, because each row has
43618 * a variable number of columns. So to actually build the cast linked list,
43619 * we find the array of casts associated with the type, and loop through it
43620 * adding the casts to the list. The one last trick we need to do is making
43621 * sure the type pointer in the swig_cast_info struct is correct.
43622 *
43623 * First off, we lookup the cast->type name to see if it is already loaded.
43624 * There are three cases to handle:
43625 * 1) If the cast->type has already been loaded AND the type we are adding
43626 * casting info to has not been loaded (it is in this module), THEN we
43627 * replace the cast->type pointer with the type pointer that has already
43628 * been loaded.
43629 * 2) If BOTH types (the one we are adding casting info to, and the
43630 * cast->type) are loaded, THEN the cast info has already been loaded by
43631 * the previous module so we just ignore it.
43632 * 3) Finally, if cast->type has not already been loaded, then we add that
43633 * swig_cast_info to the linked list (because the cast->type) pointer will
43634 * be correct.
43635 * ----------------------------------------------------------------------------- */
43636
43637#ifdef __cplusplus
43638extern "C" {
43639#if 0
43640} /* c-mode */
43641#endif
43642#endif
43643
43644#if 0
43645#define SWIGRUNTIME_DEBUG
43646#endif
43647
43648SWIGRUNTIME void
43649SWIG_InitializeModule(void *clientdata) {
43650 size_t i;
43651 swig_module_info *module_head;
43652 static int init_run = 0;
43653
43654 clientdata = clientdata;
43655
43656 if (init_run) return;
43657 init_run = 1;
43658
43659 /* Initialize the swig_module */
43660 swig_module.type_initial = swig_type_initial;
43661 swig_module.cast_initial = swig_cast_initial;
43662
43663 /* Try and load any already created modules */
43664 module_head = SWIG_GetModule(clientdata);
43665 if (module_head) {
43666 swig_module.next = module_head->next;
43667 module_head->next = &swig_module;
43668 } else {
43669 /* This is the first module loaded */
43670 swig_module.next = &swig_module;
43671 SWIG_SetModule(clientdata, &swig_module);
43672 }
43673
43674 /* Now work on filling in swig_module.types */
43675#ifdef SWIGRUNTIME_DEBUG
43676 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43677#endif
43678 for (i = 0; i < swig_module.size; ++i) {
43679 swig_type_info *type = 0;
43680 swig_type_info *ret;
43681 swig_cast_info *cast;
d55e5bfc 43682
554f62e9
RD
43683#ifdef SWIGRUNTIME_DEBUG
43684 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43685#endif
d55e5bfc 43686
554f62e9
RD
43687 /* if there is another module already loaded */
43688 if (swig_module.next != &swig_module) {
43689 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 43690 }
554f62e9
RD
43691 if (type) {
43692 /* Overwrite clientdata field */
43693#ifdef SWIGRUNTIME_DEBUG
43694 printf("SWIG_InitializeModule: found type %s\n", type->name);
43695#endif
43696 if (swig_module.type_initial[i]->clientdata) {
43697 type->clientdata = swig_module.type_initial[i]->clientdata;
43698#ifdef SWIGRUNTIME_DEBUG
43699 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43700#endif
43701 }
43702 } else {
43703 type = swig_module.type_initial[i];
093d3ff1 43704 }
d55e5bfc 43705
554f62e9
RD
43706 /* Insert casting types */
43707 cast = swig_module.cast_initial[i];
43708 while (cast->type) {
43709 /* Don't need to add information already in the list */
43710 ret = 0;
43711#ifdef SWIGRUNTIME_DEBUG
43712 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43713#endif
43714 if (swig_module.next != &swig_module) {
43715 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43716#ifdef SWIGRUNTIME_DEBUG
43717 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43718#endif
43719 }
43720 if (ret) {
43721 if (type == swig_module.type_initial[i]) {
43722#ifdef SWIGRUNTIME_DEBUG
43723 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43724#endif
43725 cast->type = ret;
43726 ret = 0;
43727 } else {
43728 /* Check for casting already in the list */
43729 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43730#ifdef SWIGRUNTIME_DEBUG
43731 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43732#endif
43733 if (!ocast) ret = 0;
43734 }
43735 }
43736
43737 if (!ret) {
43738#ifdef SWIGRUNTIME_DEBUG
43739 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43740#endif
43741 if (type->cast) {
43742 type->cast->prev = cast;
43743 cast->next = type->cast;
43744 }
43745 type->cast = cast;
43746 }
43747 cast++;
093d3ff1 43748 }
554f62e9
RD
43749 /* Set entry in modules->types array equal to the type */
43750 swig_module.types[i] = type;
43751 }
43752 swig_module.types[i] = 0;
43753
43754#ifdef SWIGRUNTIME_DEBUG
43755 printf("**** SWIG_InitializeModule: Cast List ******\n");
43756 for (i = 0; i < swig_module.size; ++i) {
43757 int j = 0;
43758 swig_cast_info *cast = swig_module.cast_initial[i];
43759 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43760 while (cast->type) {
43761 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43762 cast++;
43763 ++j;
43764 }
43765 printf("---- Total casts: %d\n",j);
43766 }
43767 printf("**** SWIG_InitializeModule: Cast List ******\n");
43768#endif
43769}
43770
43771/* This function will propagate the clientdata field of type to
43772* any new swig_type_info structures that have been added into the list
43773* of equivalent types. It is like calling
43774* SWIG_TypeClientData(type, clientdata) a second time.
43775*/
43776SWIGRUNTIME void
43777SWIG_PropagateClientData(void) {
43778 size_t i;
43779 swig_cast_info *equiv;
43780 static int init_run = 0;
43781
43782 if (init_run) return;
43783 init_run = 1;
43784
43785 for (i = 0; i < swig_module.size; i++) {
43786 if (swig_module.types[i]->clientdata) {
43787 equiv = swig_module.types[i]->cast;
43788 while (equiv) {
43789 if (!equiv->converter) {
43790 if (equiv->type && !equiv->type->clientdata)
43791 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43792 }
43793 equiv = equiv->next;
43794 }
093d3ff1 43795 }
554f62e9
RD
43796 }
43797}
43798
43799#ifdef __cplusplus
43800#if 0
43801{
43802 /* c-mode */
43803#endif
43804}
43805#endif
43806
43807
43808
43809#ifdef __cplusplus
43810extern "C" {
43811#endif
43812
43813 /* Python-specific SWIG API */
43814#define SWIG_newvarlink() SWIG_Python_newvarlink()
43815#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43816#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43817
43818 /* -----------------------------------------------------------------------------
43819 * global variable support code.
43820 * ----------------------------------------------------------------------------- */
43821
43822 typedef struct swig_globalvar {
43823 char *name; /* Name of global variable */
43824 PyObject *(*get_attr)(void); /* Return the current value */
43825 int (*set_attr)(PyObject *); /* Set the value */
43826 struct swig_globalvar *next;
43827 } swig_globalvar;
43828
43829 typedef struct swig_varlinkobject {
43830 PyObject_HEAD
43831 swig_globalvar *vars;
43832 } swig_varlinkobject;
43833
43834 SWIGINTERN PyObject *
43835 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43836 return PyString_FromString("<Swig global variables>");
43837 }
43838
43839 SWIGINTERN PyObject *
43840 swig_varlink_str(swig_varlinkobject *v) {
43841 PyObject *str = PyString_FromString("(");
43842 swig_globalvar *var;
43843 for (var = v->vars; var; var=var->next) {
43844 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43845 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43846 }
43847 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43848 return str;
43849 }
43850
43851 SWIGINTERN int
43852 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43853 PyObject *str = swig_varlink_str(v);
43854 fprintf(fp,"Swig global variables ");
43855 fprintf(fp,"%s\n", PyString_AsString(str));
43856 Py_DECREF(str);
43857 return 0;
43858 }
43859
43860 SWIGINTERN void
43861 swig_varlink_dealloc(swig_varlinkobject *v) {
43862 swig_globalvar *var = v->vars;
43863 while (var) {
43864 swig_globalvar *n = var->next;
43865 free(var->name);
43866 free(var);
43867 var = n;
093d3ff1 43868 }
554f62e9
RD
43869 }
43870
43871 SWIGINTERN PyObject *
43872 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43873 PyObject *res = NULL;
43874 swig_globalvar *var = v->vars;
43875 while (var) {
43876 if (strcmp(var->name,n) == 0) {
43877 res = (*var->get_attr)();
43878 break;
43879 }
43880 var = var->next;
093d3ff1 43881 }
554f62e9
RD
43882 if (res == NULL && !PyErr_Occurred()) {
43883 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 43884 }
554f62e9
RD
43885 return res;
43886 }
43887
43888 SWIGINTERN int
43889 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43890 int res = 1;
43891 swig_globalvar *var = v->vars;
43892 while (var) {
43893 if (strcmp(var->name,n) == 0) {
43894 res = (*var->set_attr)(p);
43895 break;
43896 }
43897 var = var->next;
093d3ff1 43898 }
554f62e9
RD
43899 if (res == 1 && !PyErr_Occurred()) {
43900 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 43901 }
554f62e9
RD
43902 return res;
43903 }
43904
43905 SWIGINTERN PyTypeObject*
43906 swig_varlink_type(void) {
43907 static char varlink__doc__[] = "Swig var link object";
43908 static PyTypeObject varlink_type;
43909 static int type_init = 0;
43910 if (!type_init) {
43911 const PyTypeObject tmp
43912 = {
43913 PyObject_HEAD_INIT(NULL)
43914 0, /* Number of items in variable part (ob_size) */
43915 (char *)"swigvarlink", /* Type name (tp_name) */
43916 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43917 0, /* Itemsize (tp_itemsize) */
43918 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43919 (printfunc) swig_varlink_print, /* Print (tp_print) */
43920 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43921 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43922 0, /* tp_compare */
43923 (reprfunc) swig_varlink_repr, /* tp_repr */
43924 0, /* tp_as_number */
43925 0, /* tp_as_sequence */
43926 0, /* tp_as_mapping */
43927 0, /* tp_hash */
43928 0, /* tp_call */
43929 (reprfunc)swig_varlink_str, /* tp_str */
43930 0, /* tp_getattro */
43931 0, /* tp_setattro */
43932 0, /* tp_as_buffer */
43933 0, /* tp_flags */
43934 varlink__doc__, /* tp_doc */
43935 0, /* tp_traverse */
43936 0, /* tp_clear */
43937 0, /* tp_richcompare */
43938 0, /* tp_weaklistoffset */
43939#if PY_VERSION_HEX >= 0x02020000
43940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43941#endif
43942#if PY_VERSION_HEX >= 0x02030000
43943 0, /* tp_del */
43944#endif
43945#ifdef COUNT_ALLOCS
43946 0,0,0,0 /* tp_alloc -> tp_next */
43947#endif
43948 };
43949 varlink_type = tmp;
43950 varlink_type.ob_type = &PyType_Type;
43951 type_init = 1;
53aa7709 43952 }
554f62e9
RD
43953 return &varlink_type;
43954 }
43955
43956 /* Create a variable linking object for use later */
43957 SWIGINTERN PyObject *
43958 SWIG_Python_newvarlink(void) {
43959 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43960 if (result) {
43961 result->vars = 0;
43962 }
43963 return ((PyObject*) result);
43964 }
43965
43966 SWIGINTERN void
43967 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43968 swig_varlinkobject *v = (swig_varlinkobject *) p;
43969 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43970 if (gv) {
43971 size_t size = strlen(name)+1;
43972 gv->name = (char *)malloc(size);
43973 if (gv->name) {
43974 strncpy(gv->name,name,size);
43975 gv->get_attr = get_attr;
43976 gv->set_attr = set_attr;
43977 gv->next = v->vars;
43978 }
53aa7709 43979 }
554f62e9
RD
43980 v->vars = gv;
43981 }
43982
43983 SWIGINTERN PyObject *
43984 SWIG_globals() {
43985 static PyObject *_SWIG_globals = 0;
43986 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43987 return _SWIG_globals;
43988 }
43989
43990 /* -----------------------------------------------------------------------------
43991 * constants/methods manipulation
43992 * ----------------------------------------------------------------------------- */
43993
43994 /* Install Constants */
43995 SWIGINTERN void
43996 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43997 PyObject *obj = 0;
43998 size_t i;
43999 for (i = 0; constants[i].type; ++i) {
44000 switch(constants[i].type) {
44001 case SWIG_PY_POINTER:
44002 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44003 break;
44004 case SWIG_PY_BINARY:
44005 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44006 break;
44007 default:
44008 obj = 0;
44009 break;
44010 }
44011 if (obj) {
44012 PyDict_SetItemString(d, constants[i].name, obj);
44013 Py_DECREF(obj);
44014 }
53aa7709 44015 }
554f62e9
RD
44016 }
44017
44018 /* -----------------------------------------------------------------------------*/
44019 /* Fix SwigMethods to carry the callback ptrs when needed */
44020 /* -----------------------------------------------------------------------------*/
44021
44022 SWIGINTERN void
44023 SWIG_Python_FixMethods(PyMethodDef *methods,
44024 swig_const_info *const_table,
44025 swig_type_info **types,
44026 swig_type_info **types_initial) {
44027 size_t i;
44028 for (i = 0; methods[i].ml_name; ++i) {
44029 char *c = methods[i].ml_doc;
44030 if (c && (c = strstr(c, "swig_ptr: "))) {
44031 int j;
44032 swig_const_info *ci = 0;
44033 char *name = c + 10;
44034 for (j = 0; const_table[j].type; ++j) {
44035 if (strncmp(const_table[j].name, name,
44036 strlen(const_table[j].name)) == 0) {
44037 ci = &(const_table[j]);
44038 break;
44039 }
44040 }
44041 if (ci) {
44042 size_t shift = (ci->ptype) - types;
44043 swig_type_info *ty = types_initial[shift];
44044 size_t ldoc = (c - methods[i].ml_doc);
44045 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
44046 char *ndoc = (char*)malloc(ldoc + lptr + 10);
44047 if (ndoc) {
44048 char *buff = ndoc;
44049 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
44050 if (ptr) {
44051 strncpy(buff, methods[i].ml_doc, ldoc);
44052 buff += ldoc;
44053 strncpy(buff, "swig_ptr: ", 10);
44054 buff += 10;
44055 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
44056 methods[i].ml_doc = ndoc;
44057 }
44058 }
44059 }
44060 }
53aa7709 44061 }
554f62e9
RD
44062 }
44063
44064#ifdef __cplusplus
44065}
44066#endif
44067
44068/* -----------------------------------------------------------------------------*
44069 * Partial Init method
44070 * -----------------------------------------------------------------------------*/
44071
44072#ifdef __cplusplus
44073extern "C"
44074#endif
44075SWIGEXPORT void SWIG_init(void) {
44076 PyObject *m, *d;
44077
44078 /* Fix SwigMethods to carry the callback ptrs when needed */
44079 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44080
44081 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44082 d = PyModule_GetDict(m);
44083
44084 SWIG_InitializeModule(0);
44085 SWIG_InstallConstants(d,swig_const_table);
44086
44087
44088 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44089 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44090 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44091 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44092 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44093 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44094 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44095 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44096 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44097 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44098 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44099 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44100 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44101 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44102 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44103 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44104 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44105 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44106 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44107 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44108 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44109 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
554f62e9
RD
44110 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44111 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44112 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44113 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44114 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44115 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44116 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44117 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44118 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44119 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44120 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44121 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44122 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44123 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44124 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44125 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44126 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44127 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44128 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44129 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44130 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44131 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44132 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
554f62e9
RD
44133 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44134 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44135 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44136 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44137 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44138 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44139 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44140 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44141 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44142 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44143 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44144 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44145 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44146 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44147 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44148 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44149 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44150 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44151 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44152 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44153 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44154 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44155 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44156 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44157 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44158 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44159 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44160 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44161 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44162 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44163 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44164 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44165 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44166 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44167 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44168 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44169 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44170 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44171 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44172 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44173 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44174 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44175 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44176 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44177 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44178 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44179 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44180 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44181 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44182 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44183 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44184 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44185 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44186 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44187 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44188 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44189 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44190 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44191 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44192 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44193 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44194 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44195 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 44196 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
554f62e9
RD
44197 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44198 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44199 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44200 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44201 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44202 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44203 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44204 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44205 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44206 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44207 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44208 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44209 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44210 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44211 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44212 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44213 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44214 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44215 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44216 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44217 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44218 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44219 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44220 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44221 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44222 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44223 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44224 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44225 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44226 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44227 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44228 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44229 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44230 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44231 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44232 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44233 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44234 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44235 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44236 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44237 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44238 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44239 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44240 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44241 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44242 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44243 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44244 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44245 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44246 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44247 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44248 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44249 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44250 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44251 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44252 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44253 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44254 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44255 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44256 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44257 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44258 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44259 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44260 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44261 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44262 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44263 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44264 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44265 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44266 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44267 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44268 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44269 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44270 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44271 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44272 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44273 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44274 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44275 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44276 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44277 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44278 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44279 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44280 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44281 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44282 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44283 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44284 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44285 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44286 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44287 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44288 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44289 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44290 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44291 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44292 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44293 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44294 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44295 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44296 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44297 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44298 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44299 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44300 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44301 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44302 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44303 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44304 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44305 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44306 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44307 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44308 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44309 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44310 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44311 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44312 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44313 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44314 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44315 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44316 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44317 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44318 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44319 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44320 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44321 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44322 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44323 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44324 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44325 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44326 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44327 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44328 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44329 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44330 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44331 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44332 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44333 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44334 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44335
44336 // Map renamed classes back to their common name for OOR
44337 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44338
44339 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44340 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44341 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44342 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44343 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44344 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44345 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44346 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44347 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44348 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44349 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44350 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44351 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44352 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44353 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
554f62e9
RD
44354 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44355 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44356 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44357 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44358 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44359 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44360 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44361 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44362 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44363 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44364 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44365 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44366 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44367 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44368 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44369 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44370 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44371 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44372 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44373 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44374 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44375 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44376 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44377 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44378 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44379 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44380 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44381 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44382 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44383 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44384 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44385 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44386 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44387 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44388 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44389 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44390 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44391 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44392 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44393 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44394
44395 // Map renamed classes back to their common name for OOR
44396 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44397 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44398
44399 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44400 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44401 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44402 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44403 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44404 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44405 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44406 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44407 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44408 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44409
44410 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44411
44412 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44413 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44414 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44415 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44416 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44417 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
d55e5bfc
RD
44418}
44419