]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
d55e5bfc 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
36ed4f51 1032
1bd55598 1033/* Error manipulation */
36ed4f51 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1041}
1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
36ed4f51 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c370783e 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c370783e 1100 }
1bd55598
RD
1101 return result;
1102#endif
d55e5bfc 1103}
36ed4f51 1104
1bd55598 1105/* Unpack the argument tuple */
36ed4f51 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
d55e5bfc 1672#endif
36ed4f51 1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
36ed4f51
RD
1685}
1686
1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
36ed4f51
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
36ed4f51 1865 }
1bd55598 1866 return (PyObject *) sobj;
36ed4f51
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51
RD
1880}
1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51
RD
1884 * ----------------------------------------------------------------------------- */
1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
36ed4f51 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
36ed4f51 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
36ed4f51
RD
1947 }
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51
RD
1963}
1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
36ed4f51
RD
2042 }
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51
RD
2069 }
2070}
2071
1bd55598 2072/* Convert a packed value value */
36ed4f51 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
36ed4f51 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
36ed4f51 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
36ed4f51 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51
RD
2158}
2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
36ed4f51 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
36ed4f51 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
36ed4f51
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
36ed4f51 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
36ed4f51 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
36ed4f51 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
36ed4f51 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
34e0a3bb
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
580080c5
RD
2619#define SWIGTYPE_p_wxTGAHandler swig_types[153]
2620#define SWIGTYPE_p_wxTIFFHandler swig_types[154]
2621#define SWIGTYPE_p_wxTextAttr swig_types[155]
2622#define SWIGTYPE_p_wxTextCtrl swig_types[156]
2623#define SWIGTYPE_p_wxTextUrlEvent swig_types[157]
2624#define SWIGTYPE_p_wxToggleButton swig_types[158]
2625#define SWIGTYPE_p_wxToolBar swig_types[159]
2626#define SWIGTYPE_p_wxToolBarBase swig_types[160]
2627#define SWIGTYPE_p_wxToolBarToolBase swig_types[161]
2628#define SWIGTYPE_p_wxToolbook swig_types[162]
2629#define SWIGTYPE_p_wxToolbookEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeEvent swig_types[164]
2631#define SWIGTYPE_p_wxTreeItemId swig_types[165]
2632#define SWIGTYPE_p_wxTreebook swig_types[166]
2633#define SWIGTYPE_p_wxTreebookEvent swig_types[167]
2634#define SWIGTYPE_p_wxUpdateUIEvent swig_types[168]
2635#define SWIGTYPE_p_wxValidator swig_types[169]
2636#define SWIGTYPE_p_wxVisualAttributes swig_types[170]
2637#define SWIGTYPE_p_wxWindow swig_types[171]
2638#define SWIGTYPE_p_wxWindowBase swig_types[172]
2639#define SWIGTYPE_p_wxWindowCreateEvent swig_types[173]
2640#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[174]
2641#define SWIGTYPE_p_wxXPMHandler swig_types[175]
2642static swig_type_info *swig_types[177];
2643static swig_module_info swig_module = {swig_types, 176, 0, 0, 0, 0};
32fe5131
RD
2644#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2645#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2646
2647/* -------- TYPES TABLE (END) -------- */
2648
1bd55598
RD
2649#if (PY_VERSION_HEX <= 0x02000000)
2650# if !defined(SWIG_PYTHON_CLASSIC)
2651# error "This python version requires to use swig with the '-classic' option"
2652# endif
2653#endif
2654#if (PY_VERSION_HEX <= 0x02020000)
2655# error "This python version requires to use swig with the '-nomodern' option"
2656#endif
2657#if (PY_VERSION_HEX <= 0x02020000)
2658# error "This python version requires to use swig with the '-nomodernargs' option"
2659#endif
2660#ifndef METH_O
2661# error "This python version requires to use swig with the '-nofastunpack' option"
2662#endif
36ed4f51
RD
2663
2664/*-----------------------------------------------
2665 @(target):= _controls_.so
2666 ------------------------------------------------*/
2667#define SWIG_init init_controls_
2668
2669#define SWIG_name "_controls_"
2670
1bd55598
RD
2671#define SWIGVERSION 0x010329
2672
2673
2674#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2675#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2676
2677
2678#include <stdexcept>
2679
2680
2681namespace swig {
2682 class PyObject_ptr {
2683 protected:
2684 PyObject *_obj;
2685
2686 public:
2687 PyObject_ptr() :_obj(0)
2688 {
2689 }
2690
2691 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2692 {
2693 Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2697 {
2698 if (initial_ref) Py_XINCREF(_obj);
2699 }
2700
2701 PyObject_ptr & operator=(const PyObject_ptr& item)
2702 {
2703 Py_XINCREF(item._obj);
2704 Py_XDECREF(_obj);
2705 _obj = item._obj;
2706 return *this;
2707 }
2708
2709 ~PyObject_ptr()
2710 {
2711 Py_XDECREF(_obj);
2712 }
2713
2714 operator PyObject *() const
2715 {
2716 return _obj;
2717 }
2718
2719 PyObject *operator->() const
2720 {
2721 return _obj;
2722 }
2723 };
2724}
2725
2726
2727namespace swig {
2728 struct PyObject_var : PyObject_ptr {
2729 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2730
2731 PyObject_var & operator = (PyObject* obj)
2732 {
2733 Py_XDECREF(_obj);
2734 _obj = obj;
2735 return *this;
2736 }
2737 };
2738}
2739
2740
36ed4f51
RD
2741#include "wx/wxPython/wxPython.h"
2742#include "wx/wxPython/pyclasses.h"
2743
2744 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2745 static const wxString wxPyEmptyString(wxEmptyString);
2746 static const wxString wxPyControlNameStr(wxControlNameStr);
2747
2748 const wxArrayString wxPyEmptyStringArray;
2749
2750 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2751
1bd55598 2752 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2753
2754
1bd55598
RD
2755SWIGINTERNINLINE PyObject *
2756SWIG_From_int (int value)
2757{
2758 return SWIG_From_long (value);
2759}
36ed4f51
RD
2760
2761
1bd55598
RD
2762#include <limits.h>
2763#ifndef LLONG_MIN
2764# define LLONG_MIN LONG_LONG_MIN
2765#endif
2766#ifndef LLONG_MAX
2767# define LLONG_MAX LONG_LONG_MAX
2768#endif
2769#ifndef ULLONG_MAX
2770# define ULLONG_MAX ULONG_LONG_MAX
2771#endif
36ed4f51
RD
2772
2773
2774SWIGINTERN int
1bd55598 2775SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2776{
2777 if (PyNumber_Check(obj)) {
2778 if (val) *val = PyInt_AsLong(obj);
1bd55598 2779 return SWIG_OK;
36ed4f51 2780 }
1bd55598 2781 return SWIG_TypeError;
36ed4f51
RD
2782}
2783
2784
36ed4f51 2785SWIGINTERN int
1bd55598
RD
2786SWIG_AsVal_int (PyObject * obj, int *val)
2787{
36ed4f51 2788 long v;
1bd55598
RD
2789 int res = SWIG_AsVal_long (obj, &v);
2790 if (SWIG_IsOK(res)) {
2791 if ((v < INT_MIN || v > INT_MAX)) {
2792 return SWIG_OverflowError;
36ed4f51 2793 } else {
1bd55598 2794 if (val) *val = static_cast< int >(v);
36ed4f51 2795 }
1bd55598
RD
2796 }
2797 return res;
d55e5bfc
RD
2798}
2799
c370783e 2800 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2801
36ed4f51 2802SWIGINTERN int
1bd55598 2803SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2804{
c370783e
RD
2805 if (obj == Py_True) {
2806 if (val) *val = true;
1bd55598
RD
2807 return SWIG_OK;
2808 } else if (obj == Py_False) {
c370783e 2809 if (val) *val = false;
1bd55598 2810 return SWIG_OK;
36ed4f51 2811 } else {
1bd55598
RD
2812 long v = 0;
2813 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2814 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2815 return res;
c370783e 2816 }
d55e5bfc
RD
2817}
2818
2819 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2820 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2821 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2822 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2823 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2824 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2825
2826#include <wx/checklst.h>
d55e5bfc
RD
2827
2828 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2829SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2830 if (clientData)
2831 {
d55e5bfc
RD
2832 wxPyClientData* data = new wxPyClientData(clientData);
2833 self->Insert(item, pos, data);
e9d6f3a4
RD
2834 }
2835 else
d55e5bfc
RD
2836 self->Insert(item, pos);
2837 }
50f151d7
RD
2838
2839SWIGINTERN int
2840SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2841{
2842 long v = 0;
2843 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2844 return SWIG_TypeError;
2845 }
2846 else if (val)
2847 *val = (unsigned long)v;
2848 return SWIG_OK;
2849}
2850
2851
2852SWIGINTERN int
2853SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2854{
2855 unsigned long v;
2856 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2857 if (SWIG_IsOK(res)) {
2858 if ((v > UINT_MAX)) {
2859 return SWIG_OverflowError;
2860 } else {
2861 if (val) *val = static_cast< unsigned int >(v);
2862 }
2863 }
2864 return res;
2865}
2866
1bd55598 2867SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2868 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2869 wxArrayInt lst;
2870 self->GetSelections(lst);
2871 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2872 for (size_t i=0; i<lst.GetCount(); i++)
2873 {
7e08d4ef
RD
2874 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2875 }
e9d6f3a4 2876 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2877 return tup;
2878 }
1bd55598 2879SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2880 #ifdef __WXMSW__
2881 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2882 self->GetItem(item)->SetTextColour(c);
2883 #endif
2884 }
1bd55598 2885SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2886 #ifdef __WXMSW__
2887 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2888 self->GetItem(item)->SetBackgroundColour(c);
2889 #endif
2890 }
1bd55598 2891SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2892 #ifdef __WXMSW__
2893 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2894 self->GetItem(item)->SetFont(f);
2895 #endif
2896 }
2897 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2898SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2899 self->AppendText(text);
2900 }
1bd55598 2901SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2902 return self->GetValue().Mid(from, to - from);
2903 }
2904 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2905 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2906 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2907 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2908 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2909
1c71765a
RD
2910SWIGINTERNINLINE PyObject*
2911SWIG_From_unsigned_SS_long (unsigned long value)
2912{
2913 return (value > LONG_MAX) ?
2914 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2915}
2916
2917
2918SWIGINTERNINLINE PyObject *
2919SWIG_From_size_t (size_t value)
2920{
2921 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2922}
2923
2924
50f151d7
RD
2925SWIGINTERNINLINE PyObject *
2926SWIG_From_unsigned_SS_int (unsigned int value)
2927{
2928 return SWIG_From_unsigned_SS_long (value);
2929}
2930
2931
d55e5bfc
RD
2932#include <wx/slider.h>
2933
2934
2935 static const wxString wxPySliderNameStr(wxSliderNameStr);
2936 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2937
2938#if !wxUSE_TOGGLEBTN
2939// implement dummy items for platforms that don't have this class
2940
2941#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2942
2943class wxToggleButton : public wxControl
2944{
2945public:
2946 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2947 const wxPoint&, const wxSize&, long,
2948 const wxValidator&, const wxString&)
2949 { wxPyRaiseNotImplemented(); }
2950
2951 wxToggleButton()
2952 { wxPyRaiseNotImplemented(); }
2953};
2954#endif
2955
51b83b37 2956 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2957
7e08d4ef 2958SWIGINTERNINLINE int
1bd55598 2959SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2960{
7e08d4ef 2961 unsigned long v;
1bd55598
RD
2962 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2963 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2964 return res;
7e08d4ef 2965}
7e08d4ef 2966
d55e5bfc 2967 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2968SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2969 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2970 if (udata) {
2971 Py_INCREF(udata->m_obj);
2972 return udata->m_obj;
2973 } else {
2974 Py_INCREF(Py_None);
2975 return Py_None;
2976 }
2977 }
1bd55598 2978SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2979 self->SetClientData(new wxPyUserData(clientData));
2980 }
1bd55598 2981SWIGINTERN 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
2982 wxPyUserData* udata = NULL;
2983 if (clientData && clientData != Py_None)
2984 udata = new wxPyUserData(clientData);
2985 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2986 shortHelp, longHelp, udata);
2987 }
1bd55598 2988SWIGINTERN 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
2989 wxPyUserData* udata = NULL;
2990 if (clientData && clientData != Py_None)
2991 udata = new wxPyUserData(clientData);
2992 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2993 shortHelp, longHelp, udata);
2994 }
1bd55598 2995SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2996 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2997 if (udata) {
2998 Py_INCREF(udata->m_obj);
2999 return udata->m_obj;
3000 } else {
3001 Py_INCREF(Py_None);
3002 return Py_None;
3003 }
3004 }
1bd55598 3005SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3006 self->SetToolClientData(id, new wxPyUserData(clientData));
3007 }
3008
3009#include <wx/listctrl.h>
3010
fef4c27a 3011 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3012SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3013 // Python aware sorting function for wxPyListCtrl
3014 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3015 int retval = 0;
3016 PyObject* func = (PyObject*)funcPtr;
5a446332 3017 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3018
3019 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3020 PyObject* result = PyEval_CallObject(func, args);
3021 Py_DECREF(args);
3022 if (result) {
3023 retval = PyInt_AsLong(result);
3024 Py_DECREF(result);
3025 }
3026
3027 wxPyEndBlockThreads(blocked);
3028 return retval;
3029 }
3030
3031 // C++ Version of a Python aware class
3032class wxPyListCtrl : public wxListCtrl {
32fe5131 3033 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3034public:
3035 wxPyListCtrl() : wxListCtrl() {}
3036 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3037 const wxPoint& pos,
3038 const wxSize& size,
3039 long style,
3040 const wxValidator& validator,
3041 const wxString& name) :
3042 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3043
3044 bool Create(wxWindow* parent, wxWindowID id,
3045 const wxPoint& pos,
3046 const wxSize& size,
3047 long style,
3048 const wxValidator& validator,
3049 const wxString& name) {
3050 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3051 }
3052
3053 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3054 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3055
84f85550
RD
3056 // use the virtual version to avoid a confusing assert in the base class
3057 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3058 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3059
d55e5bfc
RD
3060 PYPRIVATE;
3061};
3062
3063IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3064
3065IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3066IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3067IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3068IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3069
d55e5bfc 3070
1bd55598 3071SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3072 wxListItem item;
3073 item.SetMask( wxLIST_MASK_STATE |
3074 wxLIST_MASK_TEXT |
3075 wxLIST_MASK_IMAGE |
3076 wxLIST_MASK_DATA |
3077 wxLIST_SET_ITEM |
3078 wxLIST_MASK_WIDTH |
3079 wxLIST_MASK_FORMAT
3080 );
3081 if (self->GetColumn(col, item))
3082 return new wxListItem(item);
3083 else
3084 return NULL;
3085 }
1bd55598 3086SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3087 wxListItem* info = new wxListItem;
3088 info->m_itemId = itemId;
3089 info->m_col = col;
3090 info->m_mask = 0xFFFF;
3091 self->GetItem(*info);
3092 return info;
3093 }
1bd55598 3094SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3095 wxPoint pos;
3096 self->GetItemPosition(item, pos);
3097 return pos;
3098 }
1bd55598 3099SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3100 wxRect rect;
3101 self->GetItemRect(item, rect, code);
3102 return rect;
3103 }
1bd55598 3104SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3105 if (!PyCallable_Check(func))
b411df4a 3106 return false;
d55e5bfc
RD
3107 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3108 }
1bd55598 3109SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc 3110
6a223074
RD
3111 return self;
3112
d55e5bfc
RD
3113
3114
d55e5bfc
RD
3115 }
3116
3117#include <wx/treectrl.h>
3118#include "wx/wxPython/pytree.h"
3119
3120 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3121SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3122SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3123SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3124
3125 static wxTreeItemId wxNullTreeItemId;
3126
d55e5bfc
RD
3127 // C++ version of Python aware wxTreeCtrl
3128class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3129 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3130public:
3131 wxPyTreeCtrl() : wxTreeCtrl() {}
3132 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3133 const wxPoint& pos,
3134 const wxSize& size,
3135 long style,
3136 const wxValidator& validator,
3137 const wxString& name) :
3138 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3139
3140 bool Create(wxWindow *parent, wxWindowID id,
3141 const wxPoint& pos,
3142 const wxSize& size,
3143 long style,
3144 const wxValidator& validator,
3145 const wxString& name) {
3146 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3147 }
3148
3149
3150 int OnCompareItems(const wxTreeItemId& item1,
3151 const wxTreeItemId& item2) {
3152 int rval = 0;
3153 bool found;
5a446332 3154 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3155 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3156 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3157 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3158 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3159 Py_DECREF(o1);
3160 Py_DECREF(o2);
3161 }
3162 wxPyEndBlockThreads(blocked);
3163 if (! found)
3164 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3165 return rval;
3166 }
3167 PYPRIVATE;
3168};
3169
3170IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3171
3172
1bd55598 3173SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3174 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3175 if (data == NULL) {
3176 data = new wxPyTreeItemData();
3177 data->SetId(item); // set the id
3178 self->SetItemData(item, data);
3179 }
3180 return data;
3181 }
1bd55598 3182SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3183 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3184 if (data == NULL) {
3185 data = new wxPyTreeItemData();
3186 data->SetId(item); // set the id
3187 self->SetItemData(item, data);
3188 }
3189 return data->GetData();
3190 }
1bd55598 3191SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3192 data->SetId(item); // set the id
3193 self->SetItemData(item, data);
3194 }
1bd55598 3195SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3196 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3197 if (data == NULL) {
3198 data = new wxPyTreeItemData(obj);
3199 data->SetId(item); // set the id
3200 self->SetItemData(item, data);
3201 } else
3202 data->SetData(obj);
3203 }
1bd55598 3204SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3206 PyObject* rval = PyList_New(0);
3207 wxArrayTreeItemIds array;
3208 size_t num, x;
3209 num = self->GetSelections(array);
3210 for (x=0; x < num; x++) {
3211 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3212 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3213 PyList_Append(rval, item);
68e533f8 3214 Py_DECREF(item);
d55e5bfc
RD
3215 }
3216 wxPyEndBlockThreads(blocked);
3217 return rval;
3218 }
1bd55598 3219SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3220 void* cookie = 0;
3221 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3222 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3223 PyObject* tup = PyTuple_New(2);
b411df4a 3224 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3225 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3226 wxPyEndBlockThreads(blocked);
3227 return tup;
3228 }
1bd55598 3229SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3230 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3231 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3232 PyObject* tup = PyTuple_New(2);
b411df4a 3233 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3234 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3235 wxPyEndBlockThreads(blocked);
3236 return tup;
3237 }
1bd55598 3238SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3239 wxRect rect;
3240 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3241 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3242 wxRect* r = new wxRect(rect);
b411df4a 3243 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3244 wxPyEndBlockThreads(blocked);
3245 return val;
3246 }
3247 else
3248 RETURN_NONE();
3249 }
3250 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3251
32fe5131 3252SWIGINTERNINLINE PyObject*
1bd55598 3253 SWIG_From_bool (bool value)
c370783e 3254{
1bd55598 3255 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3256}
3257
d55e5bfc
RD
3258 // C++ version of Python aware wxControl
3259class wxPyControl : public wxControl
3260{
3261 DECLARE_DYNAMIC_CLASS(wxPyControl)
3262public:
3263 wxPyControl() : wxControl() {}
3264 wxPyControl(wxWindow* parent, const wxWindowID id,
3265 const wxPoint& pos = wxDefaultPosition,
3266 const wxSize& size = wxDefaultSize,
3267 long style = 0,
3268 const wxValidator& validator=wxDefaultValidator,
3269 const wxString& name = wxPyControlNameStr)
3270 : wxControl(parent, id, pos, size, style, validator, name) {}
3271
3272
976dbff5
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d55e5bfc
RD
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
a5ee0656 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d55e5bfc
RD
3314 PYPRIVATE;
3315};
3316
3317IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
a5ee0656 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d55e5bfc
RD
3350
3351
1bd55598 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
1bd55598 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
704eda0c 3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
1bd55598
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
d55e5bfc
RD
3381}
3382
3383
1bd55598
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
d55e5bfc 3388#if wxUSE_UNICODE
1bd55598 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3390#else
1bd55598 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3392#endif
1bd55598
RD
3393 }
3394 return pyobj;
3395}
3396
3397
3398SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
d55e5bfc 3452 {
1bd55598
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d55e5bfc 3456 }
1bd55598
RD
3457 }
3458 if (obj3) {
d55e5bfc 3459 {
1bd55598
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3462 }
1bd55598
RD
3463 }
3464 if (obj4) {
d55e5bfc 3465 {
1bd55598
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3468 }
1bd55598
RD
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3481 }
1bd55598
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3484 }
1bd55598
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d55e5bfc 3488 {
1bd55598
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d55e5bfc 3492 }
1bd55598
RD
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
d55e5bfc
RD
3521}
3522
3523
1bd55598
RD
3524SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538fail:
3539 return NULL;
3540}
3541
3542
3543SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
d55e5bfc 3606 {
1bd55598
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d55e5bfc 3610 }
1bd55598
RD
3611 }
3612 if (obj4) {
d55e5bfc 3613 {
1bd55598
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3616 }
1bd55598
RD
3617 }
3618 if (obj5) {
d55e5bfc 3619 {
1bd55598
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3622 }
1bd55598
RD
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3635 }
1bd55598
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3638 }
1bd55598
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d55e5bfc 3642 {
1bd55598
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d55e5bfc 3646 }
1bd55598
RD
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
d55e5bfc
RD
3676}
3677
3678
1bd55598
RD
3679SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701fail:
3702 return NULL;
d55e5bfc
RD
3703}
3704
3705
1bd55598
RD
3706SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752fail:
3753 return NULL;
3754}
3755
3756
3757SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762}
3763
3764SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766}
3767
3768SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
d55e5bfc 3833 {
1bd55598
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3836 }
1bd55598
RD
3837 }
3838 if (obj4) {
d55e5bfc 3839 {
1bd55598
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3842 }
1bd55598
RD
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3855 }
1bd55598
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3858 }
1bd55598
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
f20a2e1f 3862 {
1bd55598
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
f20a2e1f 3866 }
1bd55598
RD
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
f20a2e1f
RD
3887}
3888
3889
1bd55598
RD
3890SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904fail:
3905 return NULL;
3906}
3907
3908
3909SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3976 }
1bd55598
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3979 }
1bd55598
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d55e5bfc 3983 {
1bd55598
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3986 }
1bd55598
RD
3987 }
3988 if (obj5) {
d55e5bfc 3989 {
1bd55598
RD
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4008 }
1bd55598
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d55e5bfc 4012 {
1bd55598
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d55e5bfc 4016 }
1bd55598
RD
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
d55e5bfc
RD
4038}
4039
4040
1bd55598
RD
4041SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064fail:
4065 return NULL;
d55e5bfc
RD
4066}
4067
4068
1bd55598
RD
4069SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092fail:
4093 return NULL;
d55e5bfc
RD
4094}
4095
4096
1bd55598
RD
4097SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120fail:
4121 return NULL;
d55e5bfc
RD
4122}
4123
4124
1bd55598
RD
4125SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148fail:
4149 return NULL;
d55e5bfc
RD
4150}
4151
4152
1bd55598
RD
4153SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217fail:
4218 return NULL;
4219}
4220
4221
4222SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258fail:
4259 return NULL;
4260}
4261
4262
4263SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
4301}
4302
4303
4304SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340fail:
4341 return NULL;
4342}
4343
4344
4345SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381fail:
4382 return NULL;
4383}
4384
4385
4386SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL;
d55e5bfc
RD
4430}
4431
4432
1bd55598
RD
4433SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456fail:
4457 return NULL;
d55e5bfc
RD
4458}
4459
4460
1bd55598
RD
4461SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484fail:
4485 return NULL;
b1fcee84
RD
4486}
4487
4488
1bd55598
RD
4489SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
d55e5bfc
RD
4494}
4495
1bd55598
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d55e5bfc 4499
1bd55598
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d55e5bfc
RD
4503}
4504
4505
1bd55598
RD
4506SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510#if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512#else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514#endif
4515 }
4516 return pyobj;
4517}
4518
4519
4520SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
d55e5bfc 4574 {
1bd55598
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d55e5bfc 4578 }
1bd55598
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4584 }
1bd55598
RD
4585 }
4586 if (obj4) {
d55e5bfc 4587 {
1bd55598
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4590 }
1bd55598
RD
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4603 }
1bd55598
RD
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
b1fcee84 4610 {
1bd55598
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
1bd55598
RD
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
b1fcee84
RD
4643}
4644
4645
1bd55598
RD
4646SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
36ed4f51 4728 {
1bd55598
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
36ed4f51 4732 }
1bd55598
RD
4733 }
4734 if (obj4) {
36ed4f51 4735 {
1bd55598
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4738 }
1bd55598
RD
4739 }
4740 if (obj5) {
d55e5bfc 4741 {
1bd55598
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4744 }
1bd55598
RD
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4757 }
1bd55598
RD
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
36ed4f51 4764 {
1bd55598
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
36ed4f51 4768 }
1bd55598
RD
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
d55e5bfc
RD
4798}
4799
4800
1bd55598
RD
4801SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826fail:
4827 return NULL;
d55e5bfc
RD
4828}
4829
4830
1bd55598
RD
4831SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894fail:
4895 return NULL;
d55e5bfc 4896}
1bd55598
RD
4897
4898
4899SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960fail:
4961 return NULL;
d55e5bfc
RD
4962}
4963
4964
1bd55598
RD
4965SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
d55e5bfc
RD
4992}
4993
4994
1bd55598
RD
4995SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020fail:
5021 return NULL;
d55e5bfc
RD
5022}
5023
5024
1bd55598
RD
5025SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053fail:
5054 return NULL;
d55e5bfc
RD
5055}
5056
5057
1bd55598
RD
5058SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
d55e5bfc
RD
5063}
5064
1bd55598
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d55e5bfc 5068
1bd55598
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d55e5bfc
RD
5072}
5073
5074
1bd55598
RD
5075SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079#if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081#else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083#endif
5084 }
5085 return pyobj;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
36ed4f51 5143 {
1bd55598
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5146 }
1bd55598
RD
5147 }
5148 if (obj3) {
d55e5bfc 5149 {
1bd55598
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5152 }
1bd55598
RD
5153 }
5154 if (obj4) {
d55e5bfc 5155 {
1bd55598
RD
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
d55e5bfc 5171 }
1bd55598
RD
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5184 }
1bd55598
RD
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
d55e5bfc 5191 {
1bd55598
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d55e5bfc 5195 }
1bd55598
RD
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
d55e5bfc
RD
5222}
5223
5224
1bd55598
RD
5225SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239fail:
5240 return NULL;
5241}
5242
5243
5244SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
d55e5bfc 5307 {
1bd55598
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5310 }
1bd55598
RD
5311 }
5312 if (obj4) {
d55e5bfc 5313 {
1bd55598
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5316 }
1bd55598
RD
5317 }
5318 if (obj5) {
d55e5bfc 5319 {
1bd55598
RD
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5348 }
1bd55598
RD
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
d55e5bfc 5355 {
1bd55598
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
d55e5bfc 5359 }
1bd55598
RD
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
d55e5bfc
RD
5387}
5388
5389
1bd55598
RD
5390SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446fail:
5447 return NULL;
f20a2e1f
RD
5448}
5449
5450
1bd55598
RD
5451SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
d55e5bfc 5456}
1bd55598
RD
5457
5458SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460}
5461
5462SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
d55e5bfc
RD
5465}
5466
5467
1bd55598
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
d55e5bfc 5472#if wxUSE_UNICODE
1bd55598 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5474#else
1bd55598 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5476#endif
1bd55598
RD
5477 }
5478 return pyobj;
5479}
5480
5481
5482SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
d55e5bfc 5540 {
1bd55598
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d55e5bfc 5544 }
1bd55598
RD
5545 }
5546 if (obj3) {
d55e5bfc 5547 {
1bd55598
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5550 }
1bd55598
RD
5551 }
5552 if (obj4) {
d55e5bfc 5553 {
1bd55598
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5556 }
1bd55598
RD
5557 }
5558 if (obj5) {
d55e5bfc 5559 {
1bd55598
RD
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
d55e5bfc 5575 }
1bd55598
RD
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
d55e5bfc 5595 {
1bd55598
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d55e5bfc 5599 }
1bd55598
RD
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 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);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
d55e5bfc
RD
5634}
5635
5636
1bd55598
RD
5637SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651fail:
5652 return NULL;
5653}
5654
5655
5656SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
d55e5bfc 5723 {
1bd55598
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
d55e5bfc 5727 }
1bd55598
RD
5728 }
5729 if (obj4) {
d55e5bfc 5730 {
1bd55598
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5733 }
1bd55598
RD
5734 }
5735 if (obj5) {
d55e5bfc 5736 {
1bd55598
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5739 }
1bd55598
RD
5740 }
5741 if (obj6) {
d55e5bfc 5742 {
1bd55598
RD
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
d55e5bfc 5758 }
1bd55598
RD
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5771 }
1bd55598
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5774 }
1bd55598
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d55e5bfc 5778 {
1bd55598
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d55e5bfc 5782 }
1bd55598
RD
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 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);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
d55e5bfc
RD
5818}
5819
5820
1bd55598
RD
5821SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
d55e5bfc 5843#if wxUSE_UNICODE
1bd55598 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5845#else
1bd55598 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5847#endif
1bd55598
RD
5848 }
5849 return resultobj;
5850fail:
5851 return NULL;
5852}
5853
5854
5855SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
d55e5bfc
RD
5897}
5898
5899
1bd55598
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Copy(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_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
1bd55598
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Cut(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_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
d55e5bfc
RD
5951}
5952
5953
1bd55598
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014fail:
6015 return NULL;
d55e5bfc
RD
6016}
6017
6018
1bd55598
RD
6019SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042fail:
6043 return NULL;
d55e5bfc
RD
6044}
6045
6046
1bd55598
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
2131d850 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
2131d850 6153 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180fail:
6181 return NULL;
d55e5bfc
RD
6182}
6183
6184
1bd55598
RD
6185SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6198 }
6199 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_From_int(static_cast< int >(result));
6207 return resultobj;
6208fail:
6209 return NULL;
6210}
6211
6212
6213SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxComboBox *arg1 = (wxComboBox *) 0 ;
6216 wxString *arg2 = 0 ;
6217 bool result;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 bool temp2 = false ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "self",(char *) "string", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6231 }
6232 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6233 {
6234 arg2 = wxString_in_helper(obj1);
6235 if (arg2 == NULL) SWIG_fail;
6236 temp2 = true;
6237 }
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 {
6245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6246 }
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 return resultobj;
6252fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return NULL;
6258}
6259
6260
50f151d7
RD
6261SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxComboBox *arg1 = (wxComboBox *) 0 ;
6264 int arg2 ;
6265 wxString *arg3 = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 int val2 ;
6269 int ecode2 = 0 ;
6270 bool temp3 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 PyObject * obj2 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "n",(char *) "string", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 ecode2 = SWIG_AsVal_int(obj1, &val2);
6285 if (!SWIG_IsOK(ecode2)) {
6286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6287 }
6288 arg2 = static_cast< int >(val2);
6289 {
6290 arg3 = wxString_in_helper(obj2);
6291 if (arg3 == NULL) SWIG_fail;
6292 temp3 = true;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetString(arg2,(wxString const &)*arg3);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 {
6302 if (temp3)
6303 delete arg3;
6304 }
6305 return resultobj;
6306fail:
6307 {
6308 if (temp3)
6309 delete arg3;
6310 }
6311 return NULL;
6312}
6313
6314
1bd55598
RD
6315SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj = 0;
6317 wxComboBox *arg1 = (wxComboBox *) 0 ;
6318 bool arg2 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool val2 ;
6322 int ecode2 = 0 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char * kwnames[] = {
6326 (char *) "self",(char *) "editable", NULL
6327 };
6328
6329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6331 if (!SWIG_IsOK(res1)) {
6332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6333 }
6334 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6336 if (!SWIG_IsOK(ecode2)) {
6337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6338 }
6339 arg2 = static_cast< bool >(val2);
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetEditable(arg2);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 return resultobj;
6348fail:
6349 return NULL;
d55e5bfc
RD
6350}
6351
6352
1bd55598
RD
6353SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6354 PyObject *resultobj = 0;
6355 wxComboBox *arg1 = (wxComboBox *) 0 ;
6356 void *argp1 = 0 ;
6357 int res1 = 0 ;
6358 PyObject *swig_obj[1] ;
6359
6360 if (!args) SWIG_fail;
6361 swig_obj[0] = args;
6362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6363 if (!SWIG_IsOK(res1)) {
6364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6365 }
6366 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetInsertionPointEnd();
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375fail:
6376 return NULL;
6377}
6378
6379
6380SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 long arg2 ;
6384 long arg3 ;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 long val2 ;
6388 int ecode2 = 0 ;
6389 long val3 ;
6390 int ecode3 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 PyObject * obj2 = 0 ;
6394 char * kwnames[] = {
2131d850 6395 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6402 }
6403 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6404 ecode2 = SWIG_AsVal_long(obj1, &val2);
6405 if (!SWIG_IsOK(ecode2)) {
6406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6407 }
6408 arg2 = static_cast< long >(val2);
6409 ecode3 = SWIG_AsVal_long(obj2, &val3);
6410 if (!SWIG_IsOK(ecode3)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6412 }
6413 arg3 = static_cast< long >(val3);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->Remove(arg2,arg3);
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422fail:
6423 return NULL;
d55e5bfc
RD
6424}
6425
6426
1bd55598
RD
6427SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 bool result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 PyObject *swig_obj[1] ;
6434
6435 if (!args) SWIG_fail;
6436 swig_obj[0] = args;
6437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6440 }
6441 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 return resultobj;
6452fail:
6453 return NULL;
d55e5bfc
RD
6454}
6455
6456
1bd55598
RD
6457SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxComboBox *arg1 = (wxComboBox *) 0 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6469 }
6470 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->Undo();
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479fail:
6480 return NULL;
d55e5bfc
RD
6481}
6482
6483
1bd55598
RD
6484SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Redo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506fail:
6507 return NULL;
d55e5bfc
RD
6508}
6509
6510
1bd55598
RD
6511SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->SelectAll();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533fail:
6534 return NULL;
943e8dfd
RD
6535}
6536
6537
1bd55598
RD
6538SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 bool result;
6542 void *argp1 = 0 ;
6543 int res1 = 0 ;
6544 PyObject *swig_obj[1] ;
6545
6546 if (!args) SWIG_fail;
6547 swig_obj[0] = args;
6548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6551 }
6552 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 {
6560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6561 }
6562 return resultobj;
6563fail:
6564 return NULL;
121b9a67
RD
6565}
6566
6567
1bd55598
RD
6568SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxComboBox *arg1 = (wxComboBox *) 0 ;
6571 bool result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6581 }
6582 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = (bool)((wxComboBox const *)arg1)->CanCut();
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 return resultobj;
6593fail:
6594 return NULL;
121b9a67
RD
6595}
6596
6597
1bd55598
RD
6598SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 PyObject *resultobj = 0;
6600 wxComboBox *arg1 = (wxComboBox *) 0 ;
6601 bool result;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 PyObject *swig_obj[1] ;
6605
6606 if (!args) SWIG_fail;
6607 swig_obj[0] = args;
6608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6611 }
6612 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 {
6620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6621 }
6622 return resultobj;
6623fail:
6624 return NULL;
d55e5bfc
RD
6625}
6626
6627
1bd55598
RD
6628SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6629 PyObject *resultobj = 0;
6630 wxComboBox *arg1 = (wxComboBox *) 0 ;
6631 bool result;
6632 void *argp1 = 0 ;
6633 int res1 = 0 ;
6634 PyObject *swig_obj[1] ;
6635
6636 if (!args) SWIG_fail;
6637 swig_obj[0] = args;
6638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6639 if (!SWIG_IsOK(res1)) {
6640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6641 }
6642 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6651 }
6652 return resultobj;
6653fail:
6654 return NULL;
d55e5bfc
RD
6655}
6656
6657
1bd55598
RD
6658SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6659 PyObject *resultobj = 0;
6660 wxComboBox *arg1 = (wxComboBox *) 0 ;
6661 bool result;
6662 void *argp1 = 0 ;
6663 int res1 = 0 ;
6664 PyObject *swig_obj[1] ;
6665
6666 if (!args) SWIG_fail;
6667 swig_obj[0] = args;
6668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6671 }
6672 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 {
6680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6681 }
6682 return resultobj;
6683fail:
6684 return NULL;
d55e5bfc
RD
6685}
6686
6687
1bd55598
RD
6688SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj = 0;
6690 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6691 SwigValueWrapper<wxVisualAttributes > result;
6692 int val1 ;
6693 int ecode1 = 0 ;
6694 PyObject * obj0 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "variant", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6700 if (obj0) {
6701 ecode1 = SWIG_AsVal_int(obj0, &val1);
6702 if (!SWIG_IsOK(ecode1)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6704 }
6705 arg1 = static_cast< wxWindowVariant >(val1);
6706 }
6707 {
6708 if (!wxPyCheckForApp()) SWIG_fail;
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = wxComboBox::GetClassDefaultAttributes(arg1);
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6715 return resultobj;
6716fail:
6717 return NULL;
5cbf236d
RD
6718}
6719
6720
1bd55598
RD
6721SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6722 PyObject *obj;
6723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6724 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6725 return SWIG_Py_Void();
5cbf236d
RD
6726}
6727
1bd55598
RD
6728SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6729 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6730}
6731
1bd55598
RD
6732SWIGINTERN int GaugeNameStr_set(PyObject *) {
6733 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6734 return 1;
5cbf236d
RD
6735}
6736
6737
1bd55598
RD
6738SWIGINTERN PyObject *GaugeNameStr_get(void) {
6739 PyObject *pyobj = 0;
6740
6741 {
6742#if wxUSE_UNICODE
6743 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744#else
6745 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6746#endif
6747 }
6748 return pyobj;
6749}
6750
6751
6752SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxWindow *arg1 = (wxWindow *) 0 ;
6755 int arg2 = (int) -1 ;
6756 int arg3 = (int) 100 ;
6757 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6758 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6759 wxSize const &arg5_defvalue = wxDefaultSize ;
6760 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6761 long arg6 = (long) wxGA_HORIZONTAL ;
6762 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6763 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6764 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6765 wxString *arg8 = (wxString *) &arg8_defvalue ;
6766 wxGauge *result = 0 ;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 int val2 ;
6770 int ecode2 = 0 ;
6771 int val3 ;
6772 int ecode3 = 0 ;
6773 wxPoint temp4 ;
6774 wxSize temp5 ;
6775 long val6 ;
6776 int ecode6 = 0 ;
6777 void *argp7 = 0 ;
6778 int res7 = 0 ;
6779 bool temp8 = false ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 PyObject * obj3 = 0 ;
6784 PyObject * obj4 = 0 ;
6785 PyObject * obj5 = 0 ;
6786 PyObject * obj6 = 0 ;
6787 PyObject * obj7 = 0 ;
6788 char * kwnames[] = {
6789 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6790 };
6791
6792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6794 if (!SWIG_IsOK(res1)) {
6795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6796 }
6797 arg1 = reinterpret_cast< wxWindow * >(argp1);
6798 if (obj1) {
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 }
6805 if (obj2) {
6806 ecode3 = SWIG_AsVal_int(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6809 }
6810 arg3 = static_cast< int >(val3);
6811 }
6812 if (obj3) {
5cbf236d 6813 {
1bd55598
RD
6814 arg4 = &temp4;
6815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6816 }
1bd55598
RD
6817 }
6818 if (obj4) {
5cbf236d 6819 {
1bd55598
RD
6820 arg5 = &temp5;
6821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6822 }
1bd55598
RD
6823 }
6824 if (obj5) {
6825 ecode6 = SWIG_AsVal_long(obj5, &val6);
6826 if (!SWIG_IsOK(ecode6)) {
6827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6828 }
6829 arg6 = static_cast< long >(val6);
6830 }
6831 if (obj6) {
6832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6833 if (!SWIG_IsOK(res7)) {
6834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6835 }
6836 if (!argp7) {
6837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6838 }
1bd55598
RD
6839 arg7 = reinterpret_cast< wxValidator * >(argp7);
6840 }
6841 if (obj7) {
5cbf236d 6842 {
1bd55598
RD
6843 arg8 = wxString_in_helper(obj7);
6844 if (arg8 == NULL) SWIG_fail;
6845 temp8 = true;
5cbf236d 6846 }
1bd55598
RD
6847 }
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6856 {
6857 if (temp8)
6858 delete arg8;
6859 }
6860 return resultobj;
6861fail:
6862 {
6863 if (temp8)
6864 delete arg8;
6865 }
6866 return NULL;
5cbf236d
RD
6867}
6868
6869
1bd55598
RD
6870SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6871 PyObject *resultobj = 0;
6872 wxGauge *result = 0 ;
6873
6874 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge();
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884fail:
6885 return NULL;
6886}
6887
6888
6889SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxGauge *arg1 = (wxGauge *) 0 ;
6892 wxWindow *arg2 = (wxWindow *) 0 ;
6893 int arg3 = (int) -1 ;
6894 int arg4 = (int) 100 ;
6895 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6896 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6897 wxSize const &arg6_defvalue = wxDefaultSize ;
6898 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6899 long arg7 = (long) wxGA_HORIZONTAL ;
6900 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6901 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6902 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6903 wxString *arg9 = (wxString *) &arg9_defvalue ;
6904 bool result;
6905 void *argp1 = 0 ;
6906 int res1 = 0 ;
6907 void *argp2 = 0 ;
6908 int res2 = 0 ;
6909 int val3 ;
6910 int ecode3 = 0 ;
6911 int val4 ;
6912 int ecode4 = 0 ;
6913 wxPoint temp5 ;
6914 wxSize temp6 ;
6915 long val7 ;
6916 int ecode7 = 0 ;
6917 void *argp8 = 0 ;
6918 int res8 = 0 ;
6919 bool temp9 = false ;
6920 PyObject * obj0 = 0 ;
6921 PyObject * obj1 = 0 ;
6922 PyObject * obj2 = 0 ;
6923 PyObject * obj3 = 0 ;
6924 PyObject * obj4 = 0 ;
6925 PyObject * obj5 = 0 ;
6926 PyObject * obj6 = 0 ;
6927 PyObject * obj7 = 0 ;
6928 PyObject * obj8 = 0 ;
6929 char * kwnames[] = {
6930 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6931 };
6932
6933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6935 if (!SWIG_IsOK(res1)) {
6936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6937 }
6938 arg1 = reinterpret_cast< wxGauge * >(argp1);
6939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6940 if (!SWIG_IsOK(res2)) {
6941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6942 }
6943 arg2 = reinterpret_cast< wxWindow * >(argp2);
6944 if (obj2) {
6945 ecode3 = SWIG_AsVal_int(obj2, &val3);
6946 if (!SWIG_IsOK(ecode3)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6948 }
6949 arg3 = static_cast< int >(val3);
6950 }
6951 if (obj3) {
6952 ecode4 = SWIG_AsVal_int(obj3, &val4);
6953 if (!SWIG_IsOK(ecode4)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6955 }
6956 arg4 = static_cast< int >(val4);
6957 }
6958 if (obj4) {
5cbf236d 6959 {
1bd55598
RD
6960 arg5 = &temp5;
6961 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6962 }
1bd55598
RD
6963 }
6964 if (obj5) {
5cbf236d 6965 {
1bd55598
RD
6966 arg6 = &temp6;
6967 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6968 }
1bd55598
RD
6969 }
6970 if (obj6) {
6971 ecode7 = SWIG_AsVal_long(obj6, &val7);
6972 if (!SWIG_IsOK(ecode7)) {
6973 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6974 }
6975 arg7 = static_cast< long >(val7);
6976 }
6977 if (obj7) {
6978 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6979 if (!SWIG_IsOK(res8)) {
6980 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6981 }
1bd55598
RD
6982 if (!argp8) {
6983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6984 }
6985 arg8 = reinterpret_cast< wxValidator * >(argp8);
6986 }
6987 if (obj8) {
5cbf236d 6988 {
1bd55598
RD
6989 arg9 = wxString_in_helper(obj8);
6990 if (arg9 == NULL) SWIG_fail;
6991 temp9 = true;
5cbf236d 6992 }
1bd55598
RD
6993 }
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 {
7001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7002 }
7003 {
7004 if (temp9)
7005 delete arg9;
7006 }
7007 return resultobj;
7008fail:
7009 {
7010 if (temp9)
7011 delete arg9;
7012 }
7013 return NULL;
7014}
7015
7016
7017SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxGauge *arg1 = (wxGauge *) 0 ;
7020 int arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 int val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "range", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7035 }
7036 arg1 = reinterpret_cast< wxGauge * >(argp1);
7037 ecode2 = SWIG_AsVal_int(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7040 }
7041 arg2 = static_cast< int >(val2);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 (arg1)->SetRange(arg2);
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_Py_Void();
7049 return resultobj;
7050fail:
7051 return NULL;
5cbf236d
RD
7052}
7053
7054
1bd55598
RD
7055SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxGauge *arg1 = (wxGauge *) 0 ;
7058 int result;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 PyObject *swig_obj[1] ;
7062
7063 if (!args) SWIG_fail;
7064 swig_obj[0] = args;
7065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7066 if (!SWIG_IsOK(res1)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7068 }
7069 arg1 = reinterpret_cast< wxGauge * >(argp1);
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 result = (int)((wxGauge const *)arg1)->GetRange();
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_From_int(static_cast< int >(result));
7077 return resultobj;
7078fail:
7079 return NULL;
7080}
7081
7082
7083SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 wxGauge *arg1 = (wxGauge *) 0 ;
7086 int arg2 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 int val2 ;
7090 int ecode2 = 0 ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char * kwnames[] = {
7094 (char *) "self",(char *) "pos", NULL
7095 };
7096
7097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7099 if (!SWIG_IsOK(res1)) {
7100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7101 }
7102 arg1 = reinterpret_cast< wxGauge * >(argp1);
7103 ecode2 = SWIG_AsVal_int(obj1, &val2);
7104 if (!SWIG_IsOK(ecode2)) {
7105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7106 }
7107 arg2 = static_cast< int >(val2);
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->SetValue(arg2);
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_Py_Void();
7115 return resultobj;
7116fail:
7117 return NULL;
5cbf236d
RD
7118}
7119
7120
1bd55598
RD
7121SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7122 PyObject *resultobj = 0;
7123 wxGauge *arg1 = (wxGauge *) 0 ;
7124 int result;
7125 void *argp1 = 0 ;
7126 int res1 = 0 ;
7127 PyObject *swig_obj[1] ;
7128
7129 if (!args) SWIG_fail;
7130 swig_obj[0] = args;
7131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7134 }
7135 arg1 = reinterpret_cast< wxGauge * >(argp1);
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 result = (int)((wxGauge const *)arg1)->GetValue();
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 resultobj = SWIG_From_int(static_cast< int >(result));
7143 return resultobj;
7144fail:
7145 return NULL;
f20a2e1f
RD
7146}
7147
7148
0d2c9713
RD
7149SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 PyObject *resultobj = 0;
7151 wxGauge *arg1 = (wxGauge *) 0 ;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 (arg1)->Pulse();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_Py_Void();
7170 return resultobj;
7171fail:
7172 return NULL;
7173}
7174
7175
1bd55598
RD
7176SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxGauge *arg1 = (wxGauge *) 0 ;
7179 bool result;
7180 void *argp1 = 0 ;
7181 int res1 = 0 ;
7182 PyObject *swig_obj[1] ;
7183
7184 if (!args) SWIG_fail;
7185 swig_obj[0] = args;
7186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7187 if (!SWIG_IsOK(res1)) {
7188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7189 }
7190 arg1 = reinterpret_cast< wxGauge * >(argp1);
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)((wxGauge const *)arg1)->IsVertical();
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7199 }
7200 return resultobj;
7201fail:
7202 return NULL;
7203}
7204
7205
7206SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxGauge *arg1 = (wxGauge *) 0 ;
7209 int arg2 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "w", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7224 }
7225 arg1 = reinterpret_cast< wxGauge * >(argp1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetShadowWidth(arg2);
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239fail:
7240 return NULL;
d55e5bfc
RD
7241}
7242
7243
1bd55598
RD
7244SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxGauge * >(argp1);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_From_int(static_cast< int >(result));
7266 return resultobj;
7267fail:
7268 return NULL;
7269}
7270
7271
7272SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxGauge *arg1 = (wxGauge *) 0 ;
7275 int arg2 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 PyObject * obj0 = 0 ;
7281 PyObject * obj1 = 0 ;
7282 char * kwnames[] = {
7283 (char *) "self",(char *) "w", NULL
7284 };
7285
7286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7290 }
7291 arg1 = reinterpret_cast< wxGauge * >(argp1);
7292 ecode2 = SWIG_AsVal_int(obj1, &val2);
7293 if (!SWIG_IsOK(ecode2)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7295 }
7296 arg2 = static_cast< int >(val2);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetBezelFace(arg2);
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_Py_Void();
7304 return resultobj;
7305fail:
7306 return NULL;
d55e5bfc
RD
7307}
7308
7309
1bd55598
RD
7310SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxGauge *arg1 = (wxGauge *) 0 ;
7313 int result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxGauge * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_From_int(static_cast< int >(result));
7332 return resultobj;
7333fail:
7334 return NULL;
7335}
7336
7337
7338SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7341 SwigValueWrapper<wxVisualAttributes > result;
7342 int val1 ;
7343 int ecode1 = 0 ;
7344 PyObject * obj0 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "variant", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7350 if (obj0) {
7351 ecode1 = SWIG_AsVal_int(obj0, &val1);
7352 if (!SWIG_IsOK(ecode1)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7354 }
7355 arg1 = static_cast< wxWindowVariant >(val1);
7356 }
7357 {
7358 if (!wxPyCheckForApp()) SWIG_fail;
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = wxGauge::GetClassDefaultAttributes(arg1);
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7365 return resultobj;
7366fail:
7367 return NULL;
d55e5bfc
RD
7368}
7369
7370
1bd55598
RD
7371SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *obj;
7373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7375 return SWIG_Py_Void();
d55e5bfc
RD
7376}
7377
1bd55598
RD
7378SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 return SWIG_Python_InitShadowInstance(args);
7380}
d55e5bfc 7381
1bd55598
RD
7382SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7383 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7384 return 1;
d55e5bfc
RD
7385}
7386
7387
1bd55598
RD
7388SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7389 PyObject *pyobj = 0;
7390
7391 {
7392#if wxUSE_UNICODE
7393 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394#else
7395 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396#endif
7397 }
7398 return pyobj;
d55e5bfc
RD
7399}
7400
7401
1bd55598
RD
7402SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7404 return 1;
d55e5bfc
RD
7405}
7406
7407
1bd55598
RD
7408SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412#if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414#else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416#endif
7417 }
7418 return pyobj;
d55e5bfc
RD
7419}
7420
7421
1bd55598
RD
7422SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7424 return 1;
d55e5bfc
RD
7425}
7426
7427
1bd55598
RD
7428SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432#if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434#else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436#endif
7437 }
7438 return pyobj;
7439}
7440
7441
7442SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxWindow *arg1 = (wxWindow *) 0 ;
7445 int arg2 = (int) -1 ;
7446 wxString const &arg3_defvalue = wxPyEmptyString ;
7447 wxString *arg3 = (wxString *) &arg3_defvalue ;
7448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7450 wxSize const &arg5_defvalue = wxDefaultSize ;
7451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7452 long arg6 = (long) 0 ;
7453 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7454 wxString *arg7 = (wxString *) &arg7_defvalue ;
7455 wxStaticBox *result = 0 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 bool temp3 = false ;
7461 wxPoint temp4 ;
7462 wxSize temp5 ;
7463 long val6 ;
7464 int ecode6 = 0 ;
7465 bool temp7 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 PyObject * obj2 = 0 ;
7469 PyObject * obj3 = 0 ;
7470 PyObject * obj4 = 0 ;
7471 PyObject * obj5 = 0 ;
7472 PyObject * obj6 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7481 }
7482 arg1 = reinterpret_cast< wxWindow * >(argp1);
7483 if (obj1) {
7484 ecode2 = SWIG_AsVal_int(obj1, &val2);
7485 if (!SWIG_IsOK(ecode2)) {
7486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7487 }
7488 arg2 = static_cast< int >(val2);
7489 }
7490 if (obj2) {
36ed4f51 7491 {
1bd55598
RD
7492 arg3 = wxString_in_helper(obj2);
7493 if (arg3 == NULL) SWIG_fail;
7494 temp3 = true;
36ed4f51 7495 }
1bd55598
RD
7496 }
7497 if (obj3) {
d55e5bfc 7498 {
1bd55598
RD
7499 arg4 = &temp4;
7500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7501 }
1bd55598
RD
7502 }
7503 if (obj4) {
d55e5bfc 7504 {
1bd55598
RD
7505 arg5 = &temp5;
7506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7507 }
1bd55598
RD
7508 }
7509 if (obj5) {
7510 ecode6 = SWIG_AsVal_long(obj5, &val6);
7511 if (!SWIG_IsOK(ecode6)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7513 }
7514 arg6 = static_cast< long >(val6);
7515 }
7516 if (obj6) {
36ed4f51 7517 {
1bd55598
RD
7518 arg7 = wxString_in_helper(obj6);
7519 if (arg7 == NULL) SWIG_fail;
7520 temp7 = true;
36ed4f51 7521 }
1bd55598
RD
7522 }
7523 {
7524 if (!wxPyCheckForApp()) SWIG_fail;
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7531 {
7532 if (temp3)
7533 delete arg3;
7534 }
7535 {
7536 if (temp7)
7537 delete arg7;
7538 }
7539 return resultobj;
7540fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 {
7546 if (temp7)
7547 delete arg7;
7548 }
7549 return NULL;
7550}
d55e5bfc 7551
1bd55598
RD
7552
7553SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 wxStaticBox *result = 0 ;
7556
7557 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7558 {
7559 if (!wxPyCheckForApp()) SWIG_fail;
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxStaticBox *)new wxStaticBox();
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7566 return resultobj;
7567fail:
7568 return NULL;
7569}
7570
7571
7572SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7575 wxWindow *arg2 = (wxWindow *) 0 ;
7576 int arg3 = (int) -1 ;
7577 wxString const &arg4_defvalue = wxPyEmptyString ;
7578 wxString *arg4 = (wxString *) &arg4_defvalue ;
7579 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7580 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7581 wxSize const &arg6_defvalue = wxDefaultSize ;
7582 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7583 long arg7 = (long) 0 ;
7584 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7585 wxString *arg8 = (wxString *) &arg8_defvalue ;
7586 bool result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 void *argp2 = 0 ;
7590 int res2 = 0 ;
7591 int val3 ;
7592 int ecode3 = 0 ;
7593 bool temp4 = false ;
7594 wxPoint temp5 ;
7595 wxSize temp6 ;
7596 long val7 ;
7597 int ecode7 = 0 ;
7598 bool temp8 = false ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 PyObject * obj4 = 0 ;
7604 PyObject * obj5 = 0 ;
7605 PyObject * obj6 = 0 ;
7606 PyObject * obj7 = 0 ;
7607 char * kwnames[] = {
7608 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7609 };
7610
7611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7615 }
7616 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7618 if (!SWIG_IsOK(res2)) {
7619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7620 }
7621 arg2 = reinterpret_cast< wxWindow * >(argp2);
7622 if (obj2) {
7623 ecode3 = SWIG_AsVal_int(obj2, &val3);
7624 if (!SWIG_IsOK(ecode3)) {
7625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7626 }
7627 arg3 = static_cast< int >(val3);
7628 }
7629 if (obj3) {
36ed4f51 7630 {
1bd55598
RD
7631 arg4 = wxString_in_helper(obj3);
7632 if (arg4 == NULL) SWIG_fail;
7633 temp4 = true;
36ed4f51 7634 }
1bd55598
RD
7635 }
7636 if (obj4) {
d55e5bfc 7637 {
1bd55598
RD
7638 arg5 = &temp5;
7639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7640 }
1bd55598
RD
7641 }
7642 if (obj5) {
d55e5bfc 7643 {
1bd55598
RD
7644 arg6 = &temp6;
7645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7646 }
1bd55598
RD
7647 }
7648 if (obj6) {
7649 ecode7 = SWIG_AsVal_long(obj6, &val7);
7650 if (!SWIG_IsOK(ecode7)) {
7651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7652 }
7653 arg7 = static_cast< long >(val7);
7654 }
7655 if (obj7) {
36ed4f51 7656 {
1bd55598
RD
7657 arg8 = wxString_in_helper(obj7);
7658 if (arg8 == NULL) SWIG_fail;
7659 temp8 = true;
36ed4f51 7660 }
1bd55598
RD
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7670 }
7671 {
7672 if (temp4)
7673 delete arg4;
7674 }
7675 {
7676 if (temp8)
7677 delete arg8;
7678 }
7679 return resultobj;
7680fail:
7681 {
7682 if (temp4)
7683 delete arg4;
7684 }
7685 {
7686 if (temp8)
7687 delete arg8;
7688 }
7689 return NULL;
d55e5bfc
RD
7690}
7691
7692
1bd55598
RD
7693SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = 0;
7695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7696 SwigValueWrapper<wxVisualAttributes > result;
7697 int val1 ;
7698 int ecode1 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "variant", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7705 if (obj0) {
7706 ecode1 = SWIG_AsVal_int(obj0, &val1);
7707 if (!SWIG_IsOK(ecode1)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7709 }
7710 arg1 = static_cast< wxWindowVariant >(val1);
7711 }
7712 {
7713 if (!wxPyCheckForApp()) SWIG_fail;
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7720 return resultobj;
7721fail:
7722 return NULL;
7723}
7724
7725
7726SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *obj;
7728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7729 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7730 return SWIG_Py_Void();
7731}
7732
7733SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 return SWIG_Python_InitShadowInstance(args);
7735}
7736
7737SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxWindow *arg1 = (wxWindow *) 0 ;
7740 int arg2 = (int) -1 ;
7741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7743 wxSize const &arg4_defvalue = wxDefaultSize ;
7744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7745 long arg5 = (long) wxLI_HORIZONTAL ;
7746 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7747 wxString *arg6 = (wxString *) &arg6_defvalue ;
7748 wxStaticLine *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 int val2 ;
7752 int ecode2 = 0 ;
7753 wxPoint temp3 ;
7754 wxSize temp4 ;
7755 long val5 ;
7756 int ecode5 = 0 ;
7757 bool temp6 = false ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 PyObject * obj4 = 0 ;
7763 PyObject * obj5 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7772 }
7773 arg1 = reinterpret_cast< wxWindow * >(argp1);
7774 if (obj1) {
7775 ecode2 = SWIG_AsVal_int(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7778 }
7779 arg2 = static_cast< int >(val2);
7780 }
7781 if (obj2) {
7782 {
7783 arg3 = &temp3;
7784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7785 }
1bd55598
RD
7786 }
7787 if (obj3) {
f20a2e1f 7788 {
1bd55598
RD
7789 arg4 = &temp4;
7790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7791 }
1bd55598
RD
7792 }
7793 if (obj4) {
7794 ecode5 = SWIG_AsVal_long(obj4, &val5);
7795 if (!SWIG_IsOK(ecode5)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7797 }
7798 arg5 = static_cast< long >(val5);
7799 }
7800 if (obj5) {
f20a2e1f 7801 {
1bd55598
RD
7802 arg6 = wxString_in_helper(obj5);
7803 if (arg6 == NULL) SWIG_fail;
7804 temp6 = true;
f20a2e1f 7805 }
1bd55598
RD
7806 }
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return resultobj;
7820fail:
7821 {
7822 if (temp6)
7823 delete arg6;
7824 }
7825 return NULL;
d55e5bfc
RD
7826}
7827
7828
1bd55598
RD
7829SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxStaticLine *result = 0 ;
7832
7833 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7834 {
7835 if (!wxPyCheckForApp()) SWIG_fail;
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 result = (wxStaticLine *)new wxStaticLine();
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7842 return resultobj;
7843fail:
7844 return NULL;
7845}
7846
7847
7848SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7851 wxWindow *arg2 = (wxWindow *) 0 ;
7852 int arg3 = (int) -1 ;
7853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7855 wxSize const &arg5_defvalue = wxDefaultSize ;
7856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7857 long arg6 = (long) wxLI_HORIZONTAL ;
7858 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7859 wxString *arg7 = (wxString *) &arg7_defvalue ;
7860 bool result;
7861 void *argp1 = 0 ;
7862 int res1 = 0 ;
7863 void *argp2 = 0 ;
7864 int res2 = 0 ;
7865 int val3 ;
7866 int ecode3 = 0 ;
7867 wxPoint temp4 ;
7868 wxSize temp5 ;
7869 long val6 ;
7870 int ecode6 = 0 ;
7871 bool temp7 = false ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7878 PyObject * obj6 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7887 }
7888 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7892 }
7893 arg2 = reinterpret_cast< wxWindow * >(argp2);
7894 if (obj2) {
7895 ecode3 = SWIG_AsVal_int(obj2, &val3);
7896 if (!SWIG_IsOK(ecode3)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7898 }
7899 arg3 = static_cast< int >(val3);
7900 }
7901 if (obj3) {
d55e5bfc 7902 {
1bd55598
RD
7903 arg4 = &temp4;
7904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7905 }
1bd55598
RD
7906 }
7907 if (obj4) {
d55e5bfc 7908 {
1bd55598
RD
7909 arg5 = &temp5;
7910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7911 }
7912 }
7913 if (obj5) {
7914 ecode6 = SWIG_AsVal_long(obj5, &val6);
7915 if (!SWIG_IsOK(ecode6)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7917 }
7918 arg6 = static_cast< long >(val6);
7919 }
7920 if (obj6) {
7921 {
7922 arg7 = wxString_in_helper(obj6);
7923 if (arg7 == NULL) SWIG_fail;
7924 temp7 = true;
d55e5bfc 7925 }
1bd55598
RD
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return resultobj;
7941fail:
7942 {
7943 if (temp7)
7944 delete arg7;
7945 }
7946 return NULL;
d55e5bfc
RD
7947}
7948
7949
1bd55598
RD
7950SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7953 bool result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7963 }
7964 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975fail:
7976 return NULL;
d55e5bfc
RD
7977}
7978
7979
1bd55598
RD
7980SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 int result;
7983
7984 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)wxStaticLine::GetDefaultSize();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_From_int(static_cast< int >(result));
7992 return resultobj;
7993fail:
7994 return NULL;
7995}
7996
7997
7998SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8001 SwigValueWrapper<wxVisualAttributes > result;
8002 int val1 ;
8003 int ecode1 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "variant", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8010 if (obj0) {
8011 ecode1 = SWIG_AsVal_int(obj0, &val1);
8012 if (!SWIG_IsOK(ecode1)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8014 }
8015 arg1 = static_cast< wxWindowVariant >(val1);
8016 }
8017 {
8018 if (!wxPyCheckForApp()) SWIG_fail;
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8025 return resultobj;
8026fail:
8027 return NULL;
8028}
8029
8030
8031SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *obj;
8033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8034 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8035 return SWIG_Py_Void();
8036}
8037
8038SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8039 return SWIG_Python_InitShadowInstance(args);
8040}
8041
8042SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxWindow *arg1 = (wxWindow *) 0 ;
8045 int arg2 = (int) -1 ;
8046 wxString const &arg3_defvalue = wxPyEmptyString ;
8047 wxString *arg3 = (wxString *) &arg3_defvalue ;
8048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8050 wxSize const &arg5_defvalue = wxDefaultSize ;
8051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8052 long arg6 = (long) 0 ;
8053 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8054 wxString *arg7 = (wxString *) &arg7_defvalue ;
8055 wxStaticText *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 int val2 ;
8059 int ecode2 = 0 ;
8060 bool temp3 = false ;
8061 wxPoint temp4 ;
8062 wxSize temp5 ;
8063 long val6 ;
8064 int ecode6 = 0 ;
8065 bool temp7 = false ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 PyObject * obj3 = 0 ;
8070 PyObject * obj4 = 0 ;
8071 PyObject * obj5 = 0 ;
8072 PyObject * obj6 = 0 ;
8073 char * kwnames[] = {
8074 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8075 };
8076
8077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8081 }
8082 arg1 = reinterpret_cast< wxWindow * >(argp1);
8083 if (obj1) {
8084 ecode2 = SWIG_AsVal_int(obj1, &val2);
8085 if (!SWIG_IsOK(ecode2)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8087 }
8088 arg2 = static_cast< int >(val2);
8089 }
8090 if (obj2) {
d55e5bfc 8091 {
1bd55598
RD
8092 arg3 = wxString_in_helper(obj2);
8093 if (arg3 == NULL) SWIG_fail;
8094 temp3 = true;
d55e5bfc 8095 }
1bd55598
RD
8096 }
8097 if (obj3) {
d55e5bfc 8098 {
1bd55598
RD
8099 arg4 = &temp4;
8100 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8101 }
1bd55598
RD
8102 }
8103 if (obj4) {
d55e5bfc 8104 {
1bd55598
RD
8105 arg5 = &temp5;
8106 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8107 }
1bd55598
RD
8108 }
8109 if (obj5) {
8110 ecode6 = SWIG_AsVal_long(obj5, &val6);
8111 if (!SWIG_IsOK(ecode6)) {
8112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8113 }
8114 arg6 = static_cast< long >(val6);
8115 }
8116 if (obj6) {
d55e5bfc 8117 {
1bd55598
RD
8118 arg7 = wxString_in_helper(obj6);
8119 if (arg7 == NULL) SWIG_fail;
8120 temp7 = true;
d55e5bfc 8121 }
1bd55598
RD
8122 }
8123 {
8124 if (!wxPyCheckForApp()) SWIG_fail;
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8131 {
8132 if (temp3)
8133 delete arg3;
8134 }
8135 {
8136 if (temp7)
8137 delete arg7;
8138 }
8139 return resultobj;
8140fail:
8141 {
8142 if (temp3)
8143 delete arg3;
8144 }
8145 {
8146 if (temp7)
8147 delete arg7;
8148 }
8149 return NULL;
d55e5bfc
RD
8150}
8151
8152
1bd55598
RD
8153SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxStaticText *result = 0 ;
8156
8157 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8158 {
8159 if (!wxPyCheckForApp()) SWIG_fail;
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = (wxStaticText *)new wxStaticText();
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8166 return resultobj;
8167fail:
8168 return NULL;
8169}
8170
8171
8172SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *arg1 = (wxStaticText *) 0 ;
8175 wxWindow *arg2 = (wxWindow *) 0 ;
8176 int arg3 = (int) -1 ;
8177 wxString const &arg4_defvalue = wxPyEmptyString ;
8178 wxString *arg4 = (wxString *) &arg4_defvalue ;
8179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8181 wxSize const &arg6_defvalue = wxDefaultSize ;
8182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8183 long arg7 = (long) 0 ;
8184 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8185 wxString *arg8 = (wxString *) &arg8_defvalue ;
8186 bool result;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 int val3 ;
8192 int ecode3 = 0 ;
8193 bool temp4 = false ;
8194 wxPoint temp5 ;
8195 wxSize temp6 ;
8196 long val7 ;
8197 int ecode7 = 0 ;
8198 bool temp8 = false ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 PyObject * obj2 = 0 ;
8202 PyObject * obj3 = 0 ;
8203 PyObject * obj4 = 0 ;
8204 PyObject * obj5 = 0 ;
8205 PyObject * obj6 = 0 ;
8206 PyObject * obj7 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8215 }
8216 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8220 }
8221 arg2 = reinterpret_cast< wxWindow * >(argp2);
8222 if (obj2) {
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 }
8229 if (obj3) {
d55e5bfc 8230 {
1bd55598
RD
8231 arg4 = wxString_in_helper(obj3);
8232 if (arg4 == NULL) SWIG_fail;
8233 temp4 = true;
d55e5bfc 8234 }
1bd55598
RD
8235 }
8236 if (obj4) {
d55e5bfc 8237 {
1bd55598
RD
8238 arg5 = &temp5;
8239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8240 }
1bd55598
RD
8241 }
8242 if (obj5) {
d55e5bfc 8243 {
1bd55598
RD
8244 arg6 = &temp6;
8245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8246 }
1bd55598
RD
8247 }
8248 if (obj6) {
8249 ecode7 = SWIG_AsVal_long(obj6, &val7);
8250 if (!SWIG_IsOK(ecode7)) {
8251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8252 }
8253 arg7 = static_cast< long >(val7);
8254 }
8255 if (obj7) {
d55e5bfc 8256 {
1bd55598
RD
8257 arg8 = wxString_in_helper(obj7);
8258 if (arg8 == NULL) SWIG_fail;
8259 temp8 = true;
d55e5bfc 8260 }
1bd55598
RD
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8270 }
8271 {
8272 if (temp4)
8273 delete arg4;
8274 }
8275 {
8276 if (temp8)
8277 delete arg8;
8278 }
8279 return resultobj;
8280fail:
8281 {
8282 if (temp4)
8283 delete arg4;
8284 }
8285 {
8286 if (temp8)
8287 delete arg8;
8288 }
8289 return NULL;
8290}
8291
8292
8293SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 wxStaticText *arg1 = (wxStaticText *) 0 ;
8296 int arg2 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 int val2 ;
8300 int ecode2 = 0 ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char * kwnames[] = {
8304 (char *) "self",(char *) "width", NULL
8305 };
8306
8307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8311 }
8312 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8313 ecode2 = SWIG_AsVal_int(obj1, &val2);
8314 if (!SWIG_IsOK(ecode2)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8316 }
8317 arg2 = static_cast< int >(val2);
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->Wrap(arg2);
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_Py_Void();
8325 return resultobj;
8326fail:
8327 return NULL;
8328}
8329
8330
8331SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj = 0;
8333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8334 SwigValueWrapper<wxVisualAttributes > result;
8335 int val1 ;
8336 int ecode1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "variant", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8343 if (obj0) {
8344 ecode1 = SWIG_AsVal_int(obj0, &val1);
8345 if (!SWIG_IsOK(ecode1)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8347 }
8348 arg1 = static_cast< wxWindowVariant >(val1);
8349 }
8350 {
8351 if (!wxPyCheckForApp()) SWIG_fail;
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = wxStaticText::GetClassDefaultAttributes(arg1);
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8358 return resultobj;
8359fail:
8360 return NULL;
8361}
8362
8363
8364SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *obj;
8366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8367 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8368 return SWIG_Py_Void();
8369}
8370
8371SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8372 return SWIG_Python_InitShadowInstance(args);
8373}
8374
8375SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 wxWindow *arg1 = (wxWindow *) 0 ;
8378 int arg2 = (int) -1 ;
8379 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8380 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8383 wxSize const &arg5_defvalue = wxDefaultSize ;
8384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8385 long arg6 = (long) 0 ;
8386 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8387 wxString *arg7 = (wxString *) &arg7_defvalue ;
8388 wxStaticBitmap *result = 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 int val2 ;
8392 int ecode2 = 0 ;
8393 void *argp3 = 0 ;
8394 int res3 = 0 ;
8395 wxPoint temp4 ;
8396 wxSize temp5 ;
8397 long val6 ;
8398 int ecode6 = 0 ;
8399 bool temp7 = false ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 PyObject * obj3 = 0 ;
8404 PyObject * obj4 = 0 ;
8405 PyObject * obj5 = 0 ;
8406 PyObject * obj6 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8415 }
8416 arg1 = reinterpret_cast< wxWindow * >(argp1);
8417 if (obj1) {
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 }
8424 if (obj2) {
8425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8426 if (!SWIG_IsOK(res3)) {
8427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8428 }
1bd55598
RD
8429 if (!argp3) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8431 }
1bd55598
RD
8432 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8433 }
8434 if (obj3) {
d55e5bfc 8435 {
1bd55598
RD
8436 arg4 = &temp4;
8437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8438 }
1bd55598
RD
8439 }
8440 if (obj4) {
f20a2e1f 8441 {
1bd55598
RD
8442 arg5 = &temp5;
8443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8444 }
1bd55598
RD
8445 }
8446 if (obj5) {
8447 ecode6 = SWIG_AsVal_long(obj5, &val6);
8448 if (!SWIG_IsOK(ecode6)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8450 }
8451 arg6 = static_cast< long >(val6);
8452 }
8453 if (obj6) {
f20a2e1f 8454 {
1bd55598
RD
8455 arg7 = wxString_in_helper(obj6);
8456 if (arg7 == NULL) SWIG_fail;
8457 temp7 = true;
f20a2e1f 8458 }
1bd55598
RD
8459 }
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return resultobj;
8473fail:
8474 {
8475 if (temp7)
8476 delete arg7;
8477 }
8478 return NULL;
f20a2e1f
RD
8479}
8480
8481
1bd55598
RD
8482SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *resultobj = 0;
8484 wxStaticBitmap *result = 0 ;
8485
8486 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8487 {
8488 if (!wxPyCheckForApp()) SWIG_fail;
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 result = (wxStaticBitmap *)new wxStaticBitmap();
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8495 return resultobj;
8496fail:
8497 return NULL;
8498}
8499
8500
8501SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8504 wxWindow *arg2 = (wxWindow *) 0 ;
8505 int arg3 = (int) -1 ;
8506 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8507 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8508 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8509 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8510 wxSize const &arg6_defvalue = wxDefaultSize ;
8511 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8512 long arg7 = (long) 0 ;
8513 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8514 wxString *arg8 = (wxString *) &arg8_defvalue ;
8515 bool result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 void *argp2 = 0 ;
8519 int res2 = 0 ;
8520 int val3 ;
8521 int ecode3 = 0 ;
8522 void *argp4 = 0 ;
8523 int res4 = 0 ;
8524 wxPoint temp5 ;
8525 wxSize temp6 ;
8526 long val7 ;
8527 int ecode7 = 0 ;
8528 bool temp8 = false ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 PyObject * obj2 = 0 ;
8532 PyObject * obj3 = 0 ;
8533 PyObject * obj4 = 0 ;
8534 PyObject * obj5 = 0 ;
8535 PyObject * obj6 = 0 ;
8536 PyObject * obj7 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8545 }
8546 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8550 }
8551 arg2 = reinterpret_cast< wxWindow * >(argp2);
8552 if (obj2) {
8553 ecode3 = SWIG_AsVal_int(obj2, &val3);
8554 if (!SWIG_IsOK(ecode3)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8556 }
8557 arg3 = static_cast< int >(val3);
8558 }
8559 if (obj3) {
8560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8561 if (!SWIG_IsOK(res4)) {
8562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8563 }
1bd55598
RD
8564 if (!argp4) {
8565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8566 }
1bd55598
RD
8567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8568 }
8569 if (obj4) {
d55e5bfc 8570 {
1bd55598
RD
8571 arg5 = &temp5;
8572 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8573 }
1bd55598
RD
8574 }
8575 if (obj5) {
d55e5bfc 8576 {
1bd55598
RD
8577 arg6 = &temp6;
8578 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8579 }
1bd55598
RD
8580 }
8581 if (obj6) {
8582 ecode7 = SWIG_AsVal_long(obj6, &val7);
8583 if (!SWIG_IsOK(ecode7)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8585 }
8586 arg7 = static_cast< long >(val7);
8587 }
8588 if (obj7) {
d55e5bfc 8589 {
1bd55598
RD
8590 arg8 = wxString_in_helper(obj7);
8591 if (arg8 == NULL) SWIG_fail;
8592 temp8 = true;
d55e5bfc 8593 }
1bd55598
RD
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return resultobj;
8609fail:
8610 {
8611 if (temp8)
8612 delete arg8;
8613 }
8614 return NULL;
d55e5bfc
RD
8615}
8616
8617
1bd55598
RD
8618SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8631 }
8632 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (arg1)->GetBitmap();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8640 return resultobj;
8641fail:
8642 return NULL;
8643}
8644
8645
8646SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8649 wxBitmap *arg2 = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 void *argp2 = 0 ;
8653 int res2 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "bitmap", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8664 }
8665 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_Py_Void();
8681 return resultobj;
8682fail:
8683 return NULL;
8684}
8685
8686
8687SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxIcon *arg2 = 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "self",(char *) "icon", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8705 }
8706 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8708 if (!SWIG_IsOK(res2)) {
8709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 if (!argp2) {
8712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8713 }
8714 arg2 = reinterpret_cast< wxIcon * >(argp2);
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->SetIcon((wxIcon const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723fail:
8724 return NULL;
8725}
8726
8727
8728SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8731 SwigValueWrapper<wxVisualAttributes > result;
8732 int val1 ;
8733 int ecode1 = 0 ;
8734 PyObject * obj0 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "variant", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8740 if (obj0) {
8741 ecode1 = SWIG_AsVal_int(obj0, &val1);
8742 if (!SWIG_IsOK(ecode1)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8744 }
8745 arg1 = static_cast< wxWindowVariant >(val1);
8746 }
8747 {
8748 if (!wxPyCheckForApp()) SWIG_fail;
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8755 return resultobj;
8756fail:
8757 return NULL;
d55e5bfc
RD
8758}
8759
8760
1bd55598
RD
8761SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *obj;
8763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8764 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8765 return SWIG_Py_Void();
d55e5bfc
RD
8766}
8767
1bd55598
RD
8768SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8770}
8771
1bd55598
RD
8772SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8773 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8774 return 1;
f20a2e1f
RD
8775}
8776
8777
1bd55598
RD
8778SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8779 PyObject *pyobj = 0;
8780
8781 {
8782#if wxUSE_UNICODE
8783 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8784#else
8785 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8786#endif
8787 }
8788 return pyobj;
8789}
8790
8791
8792SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxWindow *arg1 = (wxWindow *) 0 ;
8795 int arg2 = (int) -1 ;
8796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8798 wxSize const &arg4_defvalue = wxDefaultSize ;
8799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8800 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8801 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8802 long arg6 = (long) 0 ;
8803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8805 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8806 wxString *arg8 = (wxString *) &arg8_defvalue ;
8807 wxListBox *result = 0 ;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 int val2 ;
8811 int ecode2 = 0 ;
8812 wxPoint temp3 ;
8813 wxSize temp4 ;
8814 bool temp5 = false ;
8815 long val6 ;
8816 int ecode6 = 0 ;
8817 void *argp7 = 0 ;
8818 int res7 = 0 ;
8819 bool temp8 = false ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 PyObject * obj4 = 0 ;
8825 PyObject * obj5 = 0 ;
8826 PyObject * obj6 = 0 ;
8827 PyObject * obj7 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8836 }
8837 arg1 = reinterpret_cast< wxWindow * >(argp1);
8838 if (obj1) {
8839 ecode2 = SWIG_AsVal_int(obj1, &val2);
8840 if (!SWIG_IsOK(ecode2)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8842 }
8843 arg2 = static_cast< int >(val2);
8844 }
8845 if (obj2) {
d55e5bfc 8846 {
1bd55598
RD
8847 arg3 = &temp3;
8848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8849 }
1bd55598
RD
8850 }
8851 if (obj3) {
d55e5bfc 8852 {
1bd55598
RD
8853 arg4 = &temp4;
8854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8855 }
1bd55598
RD
8856 }
8857 if (obj4) {
d55e5bfc 8858 {
1bd55598
RD
8859 if (! PySequence_Check(obj4)) {
8860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8861 SWIG_fail;
8862 }
8863 arg5 = new wxArrayString;
8864 temp5 = true;
8865 int i, len=PySequence_Length(obj4);
8866 for (i=0; i<len; i++) {
8867 PyObject* item = PySequence_GetItem(obj4, i);
8868 wxString* s = wxString_in_helper(item);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 arg5->Add(*s);
8871 delete s;
8872 Py_DECREF(item);
8873 }
d55e5bfc 8874 }
1bd55598
RD
8875 }
8876 if (obj5) {
8877 ecode6 = SWIG_AsVal_long(obj5, &val6);
8878 if (!SWIG_IsOK(ecode6)) {
8879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8880 }
8881 arg6 = static_cast< long >(val6);
8882 }
8883 if (obj6) {
8884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8885 if (!SWIG_IsOK(res7)) {
8886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8887 }
1bd55598
RD
8888 if (!argp7) {
8889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8890 }
1bd55598
RD
8891 arg7 = reinterpret_cast< wxValidator * >(argp7);
8892 }
8893 if (obj7) {
d55e5bfc 8894 {
1bd55598
RD
8895 arg8 = wxString_in_helper(obj7);
8896 if (arg8 == NULL) SWIG_fail;
8897 temp8 = true;
d55e5bfc 8898 }
1bd55598
RD
8899 }
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8908 {
8909 if (temp5) delete arg5;
8910 }
8911 {
8912 if (temp8)
8913 delete arg8;
8914 }
8915 return resultobj;
8916fail:
8917 {
8918 if (temp5) delete arg5;
8919 }
8920 {
8921 if (temp8)
8922 delete arg8;
8923 }
8924 return NULL;
d55e5bfc
RD
8925}
8926
8927
1bd55598
RD
8928SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxListBox *result = 0 ;
8931
8932 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (wxListBox *)new wxListBox();
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942fail:
8943 return NULL;
8944}
8945
8946
8947SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxListBox *arg1 = (wxListBox *) 0 ;
8950 wxWindow *arg2 = (wxWindow *) 0 ;
8951 int arg3 = (int) -1 ;
8952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8954 wxSize const &arg5_defvalue = wxDefaultSize ;
8955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8958 long arg7 = (long) 0 ;
8959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8961 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8962 wxString *arg9 = (wxString *) &arg9_defvalue ;
8963 bool result;
8964 void *argp1 = 0 ;
8965 int res1 = 0 ;
8966 void *argp2 = 0 ;
8967 int res2 = 0 ;
8968 int val3 ;
8969 int ecode3 = 0 ;
8970 wxPoint temp4 ;
8971 wxSize temp5 ;
8972 bool temp6 = false ;
8973 long val7 ;
8974 int ecode7 = 0 ;
8975 void *argp8 = 0 ;
8976 int res8 = 0 ;
8977 bool temp9 = false ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 PyObject * obj2 = 0 ;
8981 PyObject * obj3 = 0 ;
8982 PyObject * obj4 = 0 ;
8983 PyObject * obj5 = 0 ;
8984 PyObject * obj6 = 0 ;
8985 PyObject * obj7 = 0 ;
8986 PyObject * obj8 = 0 ;
8987 char * kwnames[] = {
8988 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8989 };
8990
8991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8995 }
8996 arg1 = reinterpret_cast< wxListBox * >(argp1);
8997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8998 if (!SWIG_IsOK(res2)) {
8999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9000 }
9001 arg2 = reinterpret_cast< wxWindow * >(argp2);
9002 if (obj2) {
9003 ecode3 = SWIG_AsVal_int(obj2, &val3);
9004 if (!SWIG_IsOK(ecode3)) {
9005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9006 }
9007 arg3 = static_cast< int >(val3);
9008 }
9009 if (obj3) {
d55e5bfc 9010 {
1bd55598
RD
9011 arg4 = &temp4;
9012 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9013 }
1bd55598
RD
9014 }
9015 if (obj4) {
d55e5bfc 9016 {
1bd55598
RD
9017 arg5 = &temp5;
9018 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9019 }
1bd55598
RD
9020 }
9021 if (obj5) {
943e8dfd 9022 {
1bd55598
RD
9023 if (! PySequence_Check(obj5)) {
9024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9025 SWIG_fail;
9026 }
9027 arg6 = new wxArrayString;
9028 temp6 = true;
9029 int i, len=PySequence_Length(obj5);
9030 for (i=0; i<len; i++) {
9031 PyObject* item = PySequence_GetItem(obj5, i);
9032 wxString* s = wxString_in_helper(item);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 arg6->Add(*s);
9035 delete s;
9036 Py_DECREF(item);
9037 }
943e8dfd 9038 }
1bd55598
RD
9039 }
9040 if (obj6) {
9041 ecode7 = SWIG_AsVal_long(obj6, &val7);
9042 if (!SWIG_IsOK(ecode7)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9044 }
9045 arg7 = static_cast< long >(val7);
9046 }
9047 if (obj7) {
9048 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9049 if (!SWIG_IsOK(res8)) {
9050 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9051 }
1bd55598
RD
9052 if (!argp8) {
9053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9054 }
1bd55598
RD
9055 arg8 = reinterpret_cast< wxValidator * >(argp8);
9056 }
9057 if (obj8) {
f20a2e1f 9058 {
1bd55598
RD
9059 arg9 = wxString_in_helper(obj8);
9060 if (arg9 == NULL) SWIG_fail;
9061 temp9 = true;
f20a2e1f 9062 }
1bd55598
RD
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 }
9073 {
9074 if (temp6) delete arg6;
9075 }
9076 {
9077 if (temp9)
9078 delete arg9;
9079 }
9080 return resultobj;
9081fail:
9082 {
9083 if (temp6) delete arg6;
9084 }
9085 {
9086 if (temp9)
9087 delete arg9;
9088 }
9089 return NULL;
9090}
9091
9092
9093SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj = 0;
9095 wxListBox *arg1 = (wxListBox *) 0 ;
9096 wxString *arg2 = 0 ;
9097 int arg3 ;
9098 PyObject *arg4 = (PyObject *) NULL ;
9099 void *argp1 = 0 ;
9100 int res1 = 0 ;
9101 bool temp2 = false ;
9102 int val3 ;
9103 int ecode3 = 0 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char * kwnames[] = {
9109 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9110 };
9111
9112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9114 if (!SWIG_IsOK(res1)) {
9115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9116 }
9117 arg1 = reinterpret_cast< wxListBox * >(argp1);
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = true;
9122 }
9123 ecode3 = SWIG_AsVal_int(obj2, &val3);
9124 if (!SWIG_IsOK(ecode3)) {
9125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9126 }
9127 arg3 = static_cast< int >(val3);
9128 if (obj3) {
9129 arg4 = obj3;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_Py_Void();
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return resultobj;
9143fail:
9144 {
9145 if (temp2)
9146 delete arg2;
9147 }
9148 return NULL;
9149}
9150
9151
9152SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj = 0;
9154 wxListBox *arg1 = (wxListBox *) 0 ;
9155 wxArrayString *arg2 = 0 ;
50f151d7 9156 unsigned int arg3 ;
1bd55598
RD
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 bool temp2 = false ;
50f151d7 9160 unsigned int val3 ;
1bd55598
RD
9161 int ecode3 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "items",(char *) "pos", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9173 }
9174 arg1 = reinterpret_cast< wxListBox * >(argp1);
9175 {
9176 if (! PySequence_Check(obj1)) {
9177 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9178 SWIG_fail;
9179 }
9180 arg2 = new wxArrayString;
9181 temp2 = true;
9182 int i, len=PySequence_Length(obj1);
9183 for (i=0; i<len; i++) {
9184 PyObject* item = PySequence_GetItem(obj1, i);
9185 wxString* s = wxString_in_helper(item);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 arg2->Add(*s);
9188 delete s;
9189 Py_DECREF(item);
f20a2e1f 9190 }
1bd55598 9191 }
50f151d7 9192 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9193 if (!SWIG_IsOK(ecode3)) {
50f151d7 9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9195 }
50f151d7 9196 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2) delete arg2;
9206 }
9207 return resultobj;
9208fail:
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return NULL;
f20a2e1f
RD
9213}
9214
9215
1bd55598
RD
9216SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj = 0;
9218 wxListBox *arg1 = (wxListBox *) 0 ;
9219 wxArrayString *arg2 = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "self",(char *) "items", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9233 }
9234 arg1 = reinterpret_cast< wxListBox * >(argp1);
9235 {
9236 if (! PySequence_Check(obj1)) {
9237 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9238 SWIG_fail;
9239 }
9240 arg2 = new wxArrayString;
9241 temp2 = true;
9242 int i, len=PySequence_Length(obj1);
9243 for (i=0; i<len; i++) {
9244 PyObject* item = PySequence_GetItem(obj1, i);
9245 wxString* s = wxString_in_helper(item);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 arg2->Add(*s);
9248 delete s;
9249 Py_DECREF(item);
bfddbb17 9250 }
1bd55598
RD
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->Set((wxArrayString const &)*arg2);
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = SWIG_Py_Void();
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return resultobj;
9263fail:
9264 {
9265 if (temp2) delete arg2;
9266 }
9267 return NULL;
9268}
9269
9270
9271SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 wxListBox *arg1 = (wxListBox *) 0 ;
9274 int arg2 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 int val2 ;
9279 int ecode2 = 0 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char * kwnames[] = {
9283 (char *) "self",(char *) "n", NULL
9284 };
9285
9286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9290 }
9291 arg1 = reinterpret_cast< wxListBox * >(argp1);
9292 ecode2 = SWIG_AsVal_int(obj1, &val2);
9293 if (!SWIG_IsOK(ecode2)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9295 }
9296 arg2 = static_cast< int >(val2);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9305 }
9306 return resultobj;
9307fail:
9308 return NULL;
9309}
9310
9311
9312SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxListBox *arg1 = (wxListBox *) 0 ;
9315 int arg2 ;
9316 bool arg3 = (bool) true ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 int val2 ;
9320 int ecode2 = 0 ;
9321 bool val3 ;
9322 int ecode3 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "n",(char *) "select", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9334 }
9335 arg1 = reinterpret_cast< wxListBox * >(argp1);
9336 ecode2 = SWIG_AsVal_int(obj1, &val2);
9337 if (!SWIG_IsOK(ecode2)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9339 }
9340 arg2 = static_cast< int >(val2);
9341 if (obj2) {
9342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9345 }
9346 arg3 = static_cast< bool >(val3);
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetSelection(arg2,arg3);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356fail:
9357 return NULL;
9358}
9359
9360
9361SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxListBox *arg1 = (wxListBox *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "n", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9379 }
9380 arg1 = reinterpret_cast< wxListBox * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->Select(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394fail:
9395 return NULL;
9396}
9397
9398
9399SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "n", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9417 }
9418 arg1 = reinterpret_cast< wxListBox * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Deselect(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432fail:
9433 return NULL;
9434}
9435
9436
9437SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxListBox *arg1 = (wxListBox *) 0 ;
9440 int arg2 = (int) -1 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 int val2 ;
9444 int ecode2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "itemToLeaveSelected", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9455 }
9456 arg1 = reinterpret_cast< wxListBox * >(argp1);
9457 if (obj1) {
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->DeselectAll(arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472fail:
9473 return NULL;
9474}
9475
9476
9477SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxListBox *arg1 = (wxListBox *) 0 ;
9480 wxString *arg2 = 0 ;
9481 bool arg3 = (bool) true ;
9482 bool result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 bool temp2 = false ;
9486 bool val3 ;
9487 int ecode3 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 PyObject * obj2 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "s",(char *) "select", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9508 if (!SWIG_IsOK(ecode3)) {
9509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9510 }
9511 arg3 = static_cast< bool >(val3);
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
d55e5bfc
RD
9533}
9534
9535
1bd55598
RD
9536SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 PyObject *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (PyObject *)wxListBox_GetSelections(arg1);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result;
9558 return resultobj;
9559fail:
9560 return NULL;
9561}
9562
9563
9564SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxListBox *arg1 = (wxListBox *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "n", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9582 }
9583 arg1 = reinterpret_cast< wxListBox * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->SetFirstItem(arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597fail:
9598 return NULL;
9599}
9600
9601
9602SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 wxString *arg2 = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 bool temp2 = false ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "s", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9619 }
9620 arg1 = reinterpret_cast< wxListBox * >(argp1);
9621 {
9622 arg2 = wxString_in_helper(obj1);
9623 if (arg2 == NULL) SWIG_fail;
9624 temp2 = true;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->SetFirstItem((wxString const &)*arg2);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_Py_Void();
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return resultobj;
9638fail:
9639 {
9640 if (temp2)
9641 delete arg2;
9642 }
9643 return NULL;
9644}
9645
9646
9647SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxListBox *arg1 = (wxListBox *) 0 ;
9650 int arg2 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 int val2 ;
9654 int ecode2 = 0 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char * kwnames[] = {
9658 (char *) "self",(char *) "n", NULL
9659 };
9660
9661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9665 }
9666 arg1 = reinterpret_cast< wxListBox * >(argp1);
9667 ecode2 = SWIG_AsVal_int(obj1, &val2);
9668 if (!SWIG_IsOK(ecode2)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9670 }
9671 arg2 = static_cast< int >(val2);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->EnsureVisible(arg2);
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_Py_Void();
9679 return resultobj;
9680fail:
9681 return NULL;
9682}
9683
9684
9685SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxListBox *arg1 = (wxListBox *) 0 ;
9688 wxString *arg2 = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 bool temp2 = false ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "s", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9702 }
9703 arg1 = reinterpret_cast< wxListBox * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
d55e5bfc
RD
9727}
9728
9729
1bd55598
RD
9730SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9731 PyObject *resultobj = 0;
9732 wxListBox *arg1 = (wxListBox *) 0 ;
9733 bool result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 PyObject *swig_obj[1] ;
9737
9738 if (!args) SWIG_fail;
9739 swig_obj[0] = args;
9740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9743 }
9744 arg1 = reinterpret_cast< wxListBox * >(argp1);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (bool)((wxListBox const *)arg1)->IsSorted();
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9753 }
9754 return resultobj;
9755fail:
9756 return NULL;
9757}
9758
9759
9760SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxListBox *arg1 = (wxListBox *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 wxPoint temp2 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "pt", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9778 }
9779 arg1 = reinterpret_cast< wxListBox * >(argp1);
9780 {
9781 arg2 = &temp2;
9782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792fail:
9793 return NULL;
9794}
9795
9796
9797SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 int arg2 ;
9801 wxColour *arg3 = 0 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 int val2 ;
9805 int ecode2 = 0 ;
9806 wxColour temp3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char * kwnames[] = {
9811 (char *) "self",(char *) "item",(char *) "c", NULL
9812 };
9813
9814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9816 if (!SWIG_IsOK(res1)) {
9817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9818 }
9819 arg1 = reinterpret_cast< wxListBox * >(argp1);
9820 ecode2 = SWIG_AsVal_int(obj1, &val2);
9821 if (!SWIG_IsOK(ecode2)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9823 }
9824 arg2 = static_cast< int >(val2);
9825 {
9826 arg3 = &temp3;
9827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837fail:
9838 return NULL;
9839}
9840
9841
9842SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxListBox *arg1 = (wxListBox *) 0 ;
9845 int arg2 ;
9846 wxColour *arg3 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 wxColour temp3 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 PyObject * obj2 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "item",(char *) "c", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9863 }
9864 arg1 = reinterpret_cast< wxListBox * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 arg3 = &temp3;
9872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882fail:
9883 return NULL;
9884}
9885
9886
9887SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxListBox *arg1 = (wxListBox *) 0 ;
9890 int arg2 ;
9891 wxFont *arg3 = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 int val2 ;
9895 int ecode2 = 0 ;
9896 void *argp3 = 0 ;
9897 int res3 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 PyObject * obj2 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "item",(char *) "f", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9909 }
9910 arg1 = reinterpret_cast< wxListBox * >(argp1);
9911 ecode2 = SWIG_AsVal_int(obj1, &val2);
9912 if (!SWIG_IsOK(ecode2)) {
9913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9914 }
9915 arg2 = static_cast< int >(val2);
9916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9917 if (!SWIG_IsOK(res3)) {
9918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 if (!argp3) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9922 }
9923 arg3 = reinterpret_cast< wxFont * >(argp3);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932fail:
9933 return NULL;
9934}
9935
9936
9937SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9940 SwigValueWrapper<wxVisualAttributes > result;
9941 int val1 ;
9942 int ecode1 = 0 ;
9943 PyObject * obj0 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "variant", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9949 if (obj0) {
9950 ecode1 = SWIG_AsVal_int(obj0, &val1);
9951 if (!SWIG_IsOK(ecode1)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9953 }
9954 arg1 = static_cast< wxWindowVariant >(val1);
9955 }
9956 {
9957 if (!wxPyCheckForApp()) SWIG_fail;
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = wxListBox::GetClassDefaultAttributes(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9964 return resultobj;
9965fail:
9966 return NULL;
9967}
9968
9969
9970SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *obj;
9972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9973 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9974 return SWIG_Py_Void();
9975}
9976
9977SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9978 return SWIG_Python_InitShadowInstance(args);
9979}
9980
9981SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj = 0;
9983 wxWindow *arg1 = (wxWindow *) 0 ;
9984 int arg2 = (int) -1 ;
9985 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9986 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9987 wxSize const &arg4_defvalue = wxDefaultSize ;
9988 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9989 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9990 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9991 long arg6 = (long) 0 ;
9992 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9993 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9994 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9995 wxString *arg8 = (wxString *) &arg8_defvalue ;
9996 wxCheckListBox *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 int val2 ;
10000 int ecode2 = 0 ;
10001 wxPoint temp3 ;
10002 wxSize temp4 ;
10003 bool temp5 = false ;
10004 long val6 ;
10005 int ecode6 = 0 ;
10006 void *argp7 = 0 ;
10007 int res7 = 0 ;
10008 bool temp8 = false ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 PyObject * obj3 = 0 ;
10013 PyObject * obj4 = 0 ;
10014 PyObject * obj5 = 0 ;
10015 PyObject * obj6 = 0 ;
10016 PyObject * obj7 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10025 }
10026 arg1 = reinterpret_cast< wxWindow * >(argp1);
10027 if (obj1) {
10028 ecode2 = SWIG_AsVal_int(obj1, &val2);
10029 if (!SWIG_IsOK(ecode2)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10031 }
10032 arg2 = static_cast< int >(val2);
10033 }
10034 if (obj2) {
10035 {
10036 arg3 = &temp3;
10037 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10038 }
1bd55598
RD
10039 }
10040 if (obj3) {
10041 {
10042 arg4 = &temp4;
10043 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10044 }
1bd55598
RD
10045 }
10046 if (obj4) {
10047 {
10048 if (! PySequence_Check(obj4)) {
10049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10050 SWIG_fail;
10051 }
10052 arg5 = new wxArrayString;
10053 temp5 = true;
10054 int i, len=PySequence_Length(obj4);
10055 for (i=0; i<len; i++) {
10056 PyObject* item = PySequence_GetItem(obj4, i);
10057 wxString* s = wxString_in_helper(item);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 arg5->Add(*s);
10060 delete s;
10061 Py_DECREF(item);
10062 }
d55e5bfc 10063 }
1bd55598
RD
10064 }
10065 if (obj5) {
10066 ecode6 = SWIG_AsVal_long(obj5, &val6);
10067 if (!SWIG_IsOK(ecode6)) {
10068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10069 }
10070 arg6 = static_cast< long >(val6);
10071 }
10072 if (obj6) {
10073 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10074 if (!SWIG_IsOK(res7)) {
10075 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10076 }
1bd55598
RD
10077 if (!argp7) {
10078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10079 }
1bd55598
RD
10080 arg7 = reinterpret_cast< wxValidator * >(argp7);
10081 }
10082 if (obj7) {
10083 {
10084 arg8 = wxString_in_helper(obj7);
10085 if (arg8 == NULL) SWIG_fail;
10086 temp8 = true;
d55e5bfc 10087 }
1bd55598
RD
10088 }
10089 {
10090 if (!wxPyCheckForApp()) SWIG_fail;
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10097 {
10098 if (temp5) delete arg5;
10099 }
10100 {
10101 if (temp8)
10102 delete arg8;
10103 }
10104 return resultobj;
10105fail:
10106 {
10107 if (temp5) delete arg5;
10108 }
10109 {
10110 if (temp8)
10111 delete arg8;
10112 }
10113 return NULL;
10114}
10115
10116
10117SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxCheckListBox *result = 0 ;
10120
10121 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCheckListBox *)new wxCheckListBox();
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10130 return resultobj;
10131fail:
10132 return NULL;
10133}
10134
10135
10136SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10139 wxWindow *arg2 = (wxWindow *) 0 ;
10140 int arg3 = (int) -1 ;
10141 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10142 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10143 wxSize const &arg5_defvalue = wxDefaultSize ;
10144 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10145 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10146 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10147 long arg7 = (long) 0 ;
10148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10150 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10151 wxString *arg9 = (wxString *) &arg9_defvalue ;
10152 bool result;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 void *argp2 = 0 ;
10156 int res2 = 0 ;
10157 int val3 ;
10158 int ecode3 = 0 ;
10159 wxPoint temp4 ;
10160 wxSize temp5 ;
10161 bool temp6 = false ;
10162 long val7 ;
10163 int ecode7 = 0 ;
10164 void *argp8 = 0 ;
10165 int res8 = 0 ;
10166 bool temp9 = false ;
10167 PyObject * obj0 = 0 ;
10168 PyObject * obj1 = 0 ;
10169 PyObject * obj2 = 0 ;
10170 PyObject * obj3 = 0 ;
10171 PyObject * obj4 = 0 ;
10172 PyObject * obj5 = 0 ;
10173 PyObject * obj6 = 0 ;
10174 PyObject * obj7 = 0 ;
10175 PyObject * obj8 = 0 ;
10176 char * kwnames[] = {
10177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10178 };
10179
10180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10184 }
10185 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10187 if (!SWIG_IsOK(res2)) {
10188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10189 }
10190 arg2 = reinterpret_cast< wxWindow * >(argp2);
10191 if (obj2) {
10192 ecode3 = SWIG_AsVal_int(obj2, &val3);
10193 if (!SWIG_IsOK(ecode3)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10195 }
10196 arg3 = static_cast< int >(val3);
10197 }
10198 if (obj3) {
d55e5bfc 10199 {
1bd55598
RD
10200 arg4 = &temp4;
10201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10202 }
1bd55598
RD
10203 }
10204 if (obj4) {
d55e5bfc 10205 {
1bd55598
RD
10206 arg5 = &temp5;
10207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10208 }
1bd55598
RD
10209 }
10210 if (obj5) {
d55e5bfc 10211 {
1bd55598
RD
10212 if (! PySequence_Check(obj5)) {
10213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10214 SWIG_fail;
10215 }
10216 arg6 = new wxArrayString;
10217 temp6 = true;
10218 int i, len=PySequence_Length(obj5);
10219 for (i=0; i<len; i++) {
10220 PyObject* item = PySequence_GetItem(obj5, i);
10221 wxString* s = wxString_in_helper(item);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 arg6->Add(*s);
10224 delete s;
10225 Py_DECREF(item);
10226 }
10227 }
10228 }
10229 if (obj6) {
10230 ecode7 = SWIG_AsVal_long(obj6, &val7);
10231 if (!SWIG_IsOK(ecode7)) {
10232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10233 }
10234 arg7 = static_cast< long >(val7);
10235 }
10236 if (obj7) {
10237 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10238 if (!SWIG_IsOK(res8)) {
10239 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 if (!argp8) {
10242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10243 }
1bd55598
RD
10244 arg8 = reinterpret_cast< wxValidator * >(argp8);
10245 }
10246 if (obj8) {
d55e5bfc 10247 {
1bd55598
RD
10248 arg9 = wxString_in_helper(obj8);
10249 if (arg9 == NULL) SWIG_fail;
10250 temp9 = true;
d55e5bfc 10251 }
1bd55598
RD
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 {
10263 if (temp6) delete arg6;
10264 }
10265 {
10266 if (temp9)
10267 delete arg9;
10268 }
10269 return resultobj;
10270fail:
10271 {
10272 if (temp6) delete arg6;
10273 }
10274 {
10275 if (temp9)
10276 delete arg9;
10277 }
10278 return NULL;
10279}
10280
10281
10282SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = 0;
10284 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10285 unsigned int arg2 ;
1bd55598
RD
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
50f151d7 10289 unsigned int val2 ;
1bd55598
RD
10290 int ecode2 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 char * kwnames[] = {
10294 (char *) "self",(char *) "index", NULL
10295 };
10296
10297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10301 }
10302 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10303 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10304 if (!SWIG_IsOK(ecode2)) {
50f151d7 10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10306 }
50f151d7 10307 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsChecked(arg2);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318fail:
10319 return NULL;
10320}
10321
10322
10323SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10326 unsigned int arg2 ;
1bd55598
RD
10327 int arg3 = (int) true ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
50f151d7 10330 unsigned int val2 ;
1bd55598
RD
10331 int ecode2 = 0 ;
10332 int val3 ;
10333 int ecode3 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "index",(char *) "check", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10347 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10348 if (!SWIG_IsOK(ecode2)) {
50f151d7 10349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10350 }
50f151d7 10351 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10352 if (obj2) {
10353 ecode3 = SWIG_AsVal_int(obj2, &val3);
10354 if (!SWIG_IsOK(ecode3)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10356 }
10357 arg3 = static_cast< int >(val3);
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->Check(arg2,arg3);
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 resultobj = SWIG_Py_Void();
10366 return resultobj;
10367fail:
10368 return NULL;
d55e5bfc
RD
10369}
10370
10371
1bd55598
RD
10372SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *obj;
10374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10375 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10376 return SWIG_Py_Void();
d55e5bfc
RD
10377}
10378
1bd55598
RD
10379SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10380 return SWIG_Python_InitShadowInstance(args);
10381}
d55e5bfc 10382
1bd55598
RD
10383SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10384 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10385 return 1;
d55e5bfc
RD
10386}
10387
10388
1bd55598
RD
10389SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10390 PyObject *pyobj = 0;
10391
10392 {
d55e5bfc 10393#if wxUSE_UNICODE
1bd55598 10394 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10395#else
1bd55598 10396 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10397#endif
1bd55598
RD
10398 }
10399 return pyobj;
10400}
10401
10402
10403SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxColour const &arg1_defvalue = wxNullColour ;
10406 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10407 wxColour const &arg2_defvalue = wxNullColour ;
10408 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10409 wxFont const &arg3_defvalue = wxNullFont ;
10410 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10411 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10412 wxTextAttr *result = 0 ;
10413 wxColour temp1 ;
10414 wxColour temp2 ;
10415 void *argp3 = 0 ;
10416 int res3 = 0 ;
10417 int val4 ;
10418 int ecode4 = 0 ;
10419 PyObject * obj0 = 0 ;
10420 PyObject * obj1 = 0 ;
10421 PyObject * obj2 = 0 ;
10422 PyObject * obj3 = 0 ;
10423 char * kwnames[] = {
10424 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10425 };
10426
10427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10428 if (obj0) {
d55e5bfc 10429 {
1bd55598
RD
10430 arg1 = &temp1;
10431 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10432 }
1bd55598
RD
10433 }
10434 if (obj1) {
d55e5bfc 10435 {
1bd55598
RD
10436 arg2 = &temp2;
10437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10438 }
1bd55598
RD
10439 }
10440 if (obj2) {
10441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10442 if (!SWIG_IsOK(res3)) {
10443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10444 }
1bd55598
RD
10445 if (!argp3) {
10446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10447 }
1bd55598
RD
10448 arg3 = reinterpret_cast< wxFont * >(argp3);
10449 }
10450 if (obj3) {
10451 ecode4 = SWIG_AsVal_int(obj3, &val4);
10452 if (!SWIG_IsOK(ecode4)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10454 }
10455 arg4 = static_cast< wxTextAttrAlignment >(val4);
10456 }
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10464 return resultobj;
10465fail:
10466 return NULL;
d55e5bfc
RD
10467}
10468
10469
1bd55598
RD
10470SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10473 void *argp1 = 0 ;
10474 int res1 = 0 ;
10475 PyObject *swig_obj[1] ;
10476
10477 if (!args) SWIG_fail;
10478 swig_obj[0] = args;
10479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10480 if (!SWIG_IsOK(res1)) {
10481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10482 }
10483 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 delete arg1;
d55e5bfc 10487
1bd55598
RD
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_Py_Void();
10492 return resultobj;
10493fail:
10494 return NULL;
d55e5bfc
RD
10495}
10496
10497
1bd55598
RD
10498SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 PyObject *swig_obj[1] ;
10504
10505 if (!args) SWIG_fail;
10506 swig_obj[0] = args;
10507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10508 if (!SWIG_IsOK(res1)) {
10509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10510 }
10511 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 (arg1)->Init();
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_Py_Void();
10519 return resultobj;
10520fail:
10521 return NULL;
10522}
10523
10524
2131d850
RD
10525SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 wxTextAttr *arg1 = 0 ;
10528 wxTextAttr *arg2 = 0 ;
10529 wxTextAttr result;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 void *argp2 = 0 ;
10533 int res2 = 0 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 char * kwnames[] = {
10537 (char *) "base",(char *) "overlay", NULL
10538 };
10539
10540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10541 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10544 }
10545 if (!argp1) {
10546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10547 }
10548 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10550 if (!SWIG_IsOK(res2)) {
10551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10552 }
10553 if (!argp2) {
10554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10555 }
10556 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10564 return resultobj;
10565fail:
10566 return NULL;
10567}
10568
10569
1bd55598
RD
10570SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10573 wxColour *arg2 = 0 ;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 wxColour temp2 ;
10577 PyObject * obj0 = 0 ;
10578 PyObject * obj1 = 0 ;
10579 char * kwnames[] = {
10580 (char *) "self",(char *) "colText", NULL
10581 };
10582
10583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10585 if (!SWIG_IsOK(res1)) {
10586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10587 }
10588 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10589 {
10590 arg2 = &temp2;
10591 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10592 }
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 (arg1)->SetTextColour((wxColour const &)*arg2);
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 resultobj = SWIG_Py_Void();
10600 return resultobj;
10601fail:
10602 return NULL;
10603}
10604
10605
10606SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = 0;
10608 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10609 wxColour *arg2 = 0 ;
10610 void *argp1 = 0 ;
10611 int res1 = 0 ;
10612 wxColour temp2 ;
10613 PyObject * obj0 = 0 ;
10614 PyObject * obj1 = 0 ;
10615 char * kwnames[] = {
10616 (char *) "self",(char *) "colBack", NULL
10617 };
10618
10619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10621 if (!SWIG_IsOK(res1)) {
10622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10623 }
10624 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10625 {
10626 arg2 = &temp2;
10627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10628 }
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 resultobj = SWIG_Py_Void();
10636 return resultobj;
10637fail:
10638 return NULL;
10639}
10640
10641
10642SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = 0;
10644 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10645 wxFont *arg2 = 0 ;
10646 long arg3 = (long) wxTEXT_ATTR_FONT ;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 void *argp2 = 0 ;
10650 int res2 = 0 ;
10651 long val3 ;
10652 int ecode3 = 0 ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 PyObject * obj2 = 0 ;
10656 char * kwnames[] = {
10657 (char *) "self",(char *) "font",(char *) "flags", NULL
10658 };
10659
10660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10662 if (!SWIG_IsOK(res1)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10664 }
10665 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10667 if (!SWIG_IsOK(res2)) {
10668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10669 }
10670 if (!argp2) {
10671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10672 }
10673 arg2 = reinterpret_cast< wxFont * >(argp2);
10674 if (obj2) {
10675 ecode3 = SWIG_AsVal_long(obj2, &val3);
10676 if (!SWIG_IsOK(ecode3)) {
10677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10678 }
10679 arg3 = static_cast< long >(val3);
10680 }
10681 {
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 resultobj = SWIG_Py_Void();
10688 return resultobj;
10689fail:
10690 return NULL;
10691}
10692
10693
10694SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10695 PyObject *resultobj = 0;
10696 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10697 wxTextAttrAlignment arg2 ;
10698 void *argp1 = 0 ;
10699 int res1 = 0 ;
10700 int val2 ;
10701 int ecode2 = 0 ;
10702 PyObject * obj0 = 0 ;
10703 PyObject * obj1 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "alignment", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 ecode2 = SWIG_AsVal_int(obj1, &val2);
10715 if (!SWIG_IsOK(ecode2)) {
10716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10717 }
10718 arg2 = static_cast< wxTextAttrAlignment >(val2);
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->SetAlignment(arg2);
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 resultobj = SWIG_Py_Void();
10726 return resultobj;
10727fail:
10728 return NULL;
10729}
10730
10731
10732SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj = 0;
10734 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10735 wxArrayInt *arg2 = 0 ;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 bool temp2 = false ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char * kwnames[] = {
10742 (char *) "self",(char *) "tabs", NULL
10743 };
10744
10745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10747 if (!SWIG_IsOK(res1)) {
10748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10749 }
10750 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10751 {
10752 if (! PySequence_Check(obj1)) {
10753 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10754 SWIG_fail;
10755 }
10756 arg2 = new wxArrayInt;
10757 temp2 = true;
10758 int i, len=PySequence_Length(obj1);
10759 for (i=0; i<len; i++) {
10760 PyObject* item = PySequence_GetItem(obj1, i);
10761 PyObject* number = PyNumber_Int(item);
10762 arg2->Add(PyInt_AS_LONG(number));
10763 Py_DECREF(item);
10764 Py_DECREF(number);
d55e5bfc 10765 }
1bd55598
RD
10766 }
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 {
10775 if (temp2) delete arg2;
10776 }
10777 return resultobj;
10778fail:
10779 {
10780 if (temp2) delete arg2;
10781 }
10782 return NULL;
10783}
10784
10785
10786SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = 0;
10788 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10789 int arg2 ;
10790 int arg3 = (int) 0 ;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 int val2 ;
10794 int ecode2 = 0 ;
10795 int val3 ;
10796 int ecode3 = 0 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 PyObject * obj2 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10808 }
10809 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10810 ecode2 = SWIG_AsVal_int(obj1, &val2);
10811 if (!SWIG_IsOK(ecode2)) {
10812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10813 }
10814 arg2 = static_cast< int >(val2);
10815 if (obj2) {
10816 ecode3 = SWIG_AsVal_int(obj2, &val3);
10817 if (!SWIG_IsOK(ecode3)) {
10818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10819 }
10820 arg3 = static_cast< int >(val3);
10821 }
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 (arg1)->SetLeftIndent(arg2,arg3);
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_Py_Void();
10829 return resultobj;
10830fail:
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10838 int arg2 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 PyObject * obj0 = 0 ;
10844 PyObject * obj1 = 0 ;
10845 char * kwnames[] = {
10846 (char *) "self",(char *) "indent", NULL
10847 };
10848
10849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10851 if (!SWIG_IsOK(res1)) {
10852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10853 }
10854 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10855 ecode2 = SWIG_AsVal_int(obj1, &val2);
10856 if (!SWIG_IsOK(ecode2)) {
10857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10858 }
10859 arg2 = static_cast< int >(val2);
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 (arg1)->SetRightIndent(arg2);
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 resultobj = SWIG_Py_Void();
10867 return resultobj;
10868fail:
10869 return NULL;
10870}
10871
10872
10873SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj = 0;
10875 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10876 long arg2 ;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 long val2 ;
10880 int ecode2 = 0 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 char * kwnames[] = {
10884 (char *) "self",(char *) "flags", NULL
10885 };
10886
10887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10891 }
10892 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10893 ecode2 = SWIG_AsVal_long(obj1, &val2);
10894 if (!SWIG_IsOK(ecode2)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10896 }
10897 arg2 = static_cast< long >(val2);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->SetFlags(arg2);
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 resultobj = SWIG_Py_Void();
10905 return resultobj;
10906fail:
10907 return NULL;
d55e5bfc
RD
10908}
10909
10910
1bd55598
RD
10911SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10912 PyObject *resultobj = 0;
10913 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10914 bool result;
10915 void *argp1 = 0 ;
10916 int res1 = 0 ;
10917 PyObject *swig_obj[1] ;
10918
10919 if (!args) SWIG_fail;
10920 swig_obj[0] = args;
10921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10924 }
10925 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10934 }
10935 return resultobj;
10936fail:
10937 return NULL;
d55e5bfc
RD
10938}
10939
10940
1bd55598
RD
10941SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10942 PyObject *resultobj = 0;
10943 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 PyObject *swig_obj[1] ;
10948
10949 if (!args) SWIG_fail;
10950 swig_obj[0] = args;
10951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10954 }
10955 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 {
10963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10964 }
10965 return resultobj;
10966fail:
10967 return NULL;
d55e5bfc
RD
10968}
10969
10970
1bd55598
RD
10971SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10972 PyObject *resultobj = 0;
10973 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10974 bool result;
10975 void *argp1 = 0 ;
10976 int res1 = 0 ;
10977 PyObject *swig_obj[1] ;
10978
10979 if (!args) SWIG_fail;
10980 swig_obj[0] = args;
10981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10982 if (!SWIG_IsOK(res1)) {
10983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10984 }
10985 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10994 }
10995 return resultobj;
10996fail:
10997 return NULL;
d55e5bfc
RD
10998}
10999
11000
1bd55598
RD
11001SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11002 PyObject *resultobj = 0;
11003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 PyObject *swig_obj[1] ;
11008
11009 if (!args) SWIG_fail;
11010 swig_obj[0] = args;
11011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11014 }
11015 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 {
11023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11024 }
11025 return resultobj;
11026fail:
11027 return NULL;
d55e5bfc
RD
11028}
11029
11030
1bd55598
RD
11031SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11032 PyObject *resultobj = 0;
11033 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11034 bool result;
11035 void *argp1 = 0 ;
11036 int res1 = 0 ;
11037 PyObject *swig_obj[1] ;
11038
11039 if (!args) SWIG_fail;
11040 swig_obj[0] = args;
11041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11044 }
11045 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11054 }
11055 return resultobj;
11056fail:
11057 return NULL;
d55e5bfc
RD
11058}
11059
11060
1bd55598
RD
11061SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11062 PyObject *resultobj = 0;
11063 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11064 bool result;
11065 void *argp1 = 0 ;
11066 int res1 = 0 ;
11067 PyObject *swig_obj[1] ;
11068
11069 if (!args) SWIG_fail;
11070 swig_obj[0] = args;
11071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11072 if (!SWIG_IsOK(res1)) {
11073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11074 }
11075 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086fail:
11087 return NULL;
d55e5bfc
RD
11088}
11089
11090
1bd55598
RD
11091SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 PyObject *resultobj = 0;
11093 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 PyObject *swig_obj[1] ;
11098
11099 if (!args) SWIG_fail;
11100 swig_obj[0] = args;
11101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11104 }
11105 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 {
11113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11114 }
11115 return resultobj;
11116fail:
11117 return NULL;
11118}
11119
11120
11121SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj = 0;
11123 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11124 long arg2 ;
11125 bool result;
11126 void *argp1 = 0 ;
11127 int res1 = 0 ;
11128 long val2 ;
11129 int ecode2 = 0 ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char * kwnames[] = {
11133 (char *) "self",(char *) "flag", NULL
11134 };
11135
11136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11138 if (!SWIG_IsOK(res1)) {
11139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11140 }
11141 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11142 ecode2 = SWIG_AsVal_long(obj1, &val2);
11143 if (!SWIG_IsOK(ecode2)) {
11144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11145 }
11146 arg2 = static_cast< long >(val2);
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 {
11154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11155 }
11156 return resultobj;
11157fail:
11158 return NULL;
d55e5bfc
RD
11159}
11160
11161
1bd55598
RD
11162SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *resultobj = 0;
11164 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11165 wxColour *result = 0 ;
11166 void *argp1 = 0 ;
11167 int res1 = 0 ;
11168 PyObject *swig_obj[1] ;
11169
11170 if (!args) SWIG_fail;
11171 swig_obj[0] = args;
11172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11173 if (!SWIG_IsOK(res1)) {
11174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11175 }
11176 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11179 {
1bd55598
RD
11180 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11181 result = (wxColour *) &_result_ref;
d55e5bfc 11182 }
1bd55598
RD
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11187 return resultobj;
11188fail:
11189 return NULL;
d55e5bfc
RD
11190}
11191
11192
1bd55598
RD
11193SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11194 PyObject *resultobj = 0;
11195 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11196 wxColour *result = 0 ;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 PyObject *swig_obj[1] ;
11200
11201 if (!args) SWIG_fail;
11202 swig_obj[0] = args;
11203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11204 if (!SWIG_IsOK(res1)) {
11205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11206 }
11207 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11210 {
1bd55598
RD
11211 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11212 result = (wxColour *) &_result_ref;
d55e5bfc 11213 }
1bd55598
RD
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11218 return resultobj;
11219fail:
11220 return NULL;
d55e5bfc
RD
11221}
11222
11223
1bd55598
RD
11224SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11225 PyObject *resultobj = 0;
11226 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11227 wxFont *result = 0 ;
11228 void *argp1 = 0 ;
11229 int res1 = 0 ;
11230 PyObject *swig_obj[1] ;
11231
11232 if (!args) SWIG_fail;
11233 swig_obj[0] = args;
11234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11235 if (!SWIG_IsOK(res1)) {
11236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11237 }
11238 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11241 {
1bd55598
RD
11242 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11243 result = (wxFont *) &_result_ref;
d55e5bfc 11244 }
1bd55598
RD
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 wxFont* resultptr = new wxFont(*result);
11250 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11251 }
11252 return resultobj;
11253fail:
11254 return NULL;
d55e5bfc
RD
11255}
11256
11257
1bd55598
RD
11258SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxTextAttrAlignment result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 resultobj = SWIG_From_int(static_cast< int >(result));
11280 return resultobj;
11281fail:
11282 return NULL;
d55e5bfc
RD
11283}
11284
11285
1bd55598
RD
11286SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxArrayInt *result = 0 ;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 PyObject *swig_obj[1] ;
11293
11294 if (!args) SWIG_fail;
11295 swig_obj[0] = args;
11296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11303 {
1bd55598
RD
11304 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11305 result = (wxArrayInt *) &_result_ref;
36ed4f51 11306 }
1bd55598
RD
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 {
b39fe951 11311 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
11312 }
11313 return resultobj;
11314fail:
11315 return NULL;
d55e5bfc
RD
11316}
11317
11318
1bd55598
RD
11319SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11320 PyObject *resultobj = 0;
11321 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11322 long result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject *swig_obj[1] ;
11326
11327 if (!args) SWIG_fail;
11328 swig_obj[0] = args;
11329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11330 if (!SWIG_IsOK(res1)) {
11331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11332 }
11333 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 resultobj = SWIG_From_long(static_cast< long >(result));
11341 return resultobj;
11342fail:
11343 return NULL;
d55e5bfc
RD
11344}
11345
11346
1bd55598
RD
11347SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *resultobj = 0;
11349 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11350 long result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11360 }
11361 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_long(static_cast< long >(result));
11369 return resultobj;
11370fail:
11371 return NULL;
d55e5bfc
RD
11372}
11373
11374
1bd55598
RD
11375SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11376 PyObject *resultobj = 0;
11377 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11378 long result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 PyObject *swig_obj[1] ;
11382
11383 if (!args) SWIG_fail;
11384 swig_obj[0] = args;
11385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11386 if (!SWIG_IsOK(res1)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11388 }
11389 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_From_long(static_cast< long >(result));
11397 return resultobj;
11398fail:
11399 return NULL;
d55e5bfc
RD
11400}
11401
11402
1bd55598
RD
11403SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404 PyObject *resultobj = 0;
11405 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11406 long result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 PyObject *swig_obj[1] ;
11410
11411 if (!args) SWIG_fail;
11412 swig_obj[0] = args;
11413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11416 }
11417 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 resultobj = SWIG_From_long(static_cast< long >(result));
11425 return resultobj;
11426fail:
11427 return NULL;
d55e5bfc
RD
11428}
11429
11430
1bd55598
RD
11431SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11432 PyObject *resultobj = 0;
11433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11434 bool result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 PyObject *swig_obj[1] ;
11438
11439 if (!args) SWIG_fail;
11440 swig_obj[0] = args;
11441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11444 }
11445 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 {
11453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11454 }
11455 return resultobj;
11456fail:
11457 return NULL;
11458}
11459
11460
11461SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11462 PyObject *resultobj = 0;
11463 wxTextAttr *arg1 = 0 ;
11464 wxTextAttr *arg2 = 0 ;
11465 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11466 wxTextAttr result;
11467 void *argp1 = 0 ;
11468 int res1 = 0 ;
11469 void *argp2 = 0 ;
11470 int res2 = 0 ;
11471 void *argp3 = 0 ;
11472 int res3 = 0 ;
11473 PyObject * obj0 = 0 ;
11474 PyObject * obj1 = 0 ;
11475 PyObject * obj2 = 0 ;
11476 char * kwnames[] = {
11477 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11478 };
11479
11480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11482 if (!SWIG_IsOK(res1)) {
11483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11484 }
11485 if (!argp1) {
11486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11487 }
11488 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11490 if (!SWIG_IsOK(res2)) {
11491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11492 }
11493 if (!argp2) {
11494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11495 }
11496 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11497 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11498 if (!SWIG_IsOK(res3)) {
11499 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11500 }
11501 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11509 return resultobj;
11510fail:
11511 return NULL;
11512}
11513
11514
11515SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11516 PyObject *obj;
11517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11518 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11519 return SWIG_Py_Void();
11520}
11521
11522SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11523 return SWIG_Python_InitShadowInstance(args);
11524}
11525
11526SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11527 PyObject *resultobj = 0;
11528 wxWindow *arg1 = (wxWindow *) 0 ;
11529 int arg2 = (int) -1 ;
11530 wxString const &arg3_defvalue = wxPyEmptyString ;
11531 wxString *arg3 = (wxString *) &arg3_defvalue ;
11532 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11533 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11534 wxSize const &arg5_defvalue = wxDefaultSize ;
11535 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11536 long arg6 = (long) 0 ;
11537 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11538 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11539 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11540 wxString *arg8 = (wxString *) &arg8_defvalue ;
11541 wxTextCtrl *result = 0 ;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 int val2 ;
11545 int ecode2 = 0 ;
11546 bool temp3 = false ;
11547 wxPoint temp4 ;
11548 wxSize temp5 ;
11549 long val6 ;
11550 int ecode6 = 0 ;
11551 void *argp7 = 0 ;
11552 int res7 = 0 ;
11553 bool temp8 = false ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 PyObject * obj3 = 0 ;
11558 PyObject * obj4 = 0 ;
11559 PyObject * obj5 = 0 ;
11560 PyObject * obj6 = 0 ;
11561 PyObject * obj7 = 0 ;
11562 char * kwnames[] = {
11563 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11564 };
11565
11566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11570 }
11571 arg1 = reinterpret_cast< wxWindow * >(argp1);
11572 if (obj1) {
11573 ecode2 = SWIG_AsVal_int(obj1, &val2);
11574 if (!SWIG_IsOK(ecode2)) {
11575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11576 }
11577 arg2 = static_cast< int >(val2);
11578 }
11579 if (obj2) {
36ed4f51 11580 {
1bd55598
RD
11581 arg3 = wxString_in_helper(obj2);
11582 if (arg3 == NULL) SWIG_fail;
11583 temp3 = true;
36ed4f51 11584 }
1bd55598
RD
11585 }
11586 if (obj3) {
36ed4f51 11587 {
1bd55598
RD
11588 arg4 = &temp4;
11589 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11590 }
1bd55598
RD
11591 }
11592 if (obj4) {
d55e5bfc 11593 {
1bd55598
RD
11594 arg5 = &temp5;
11595 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11596 }
1bd55598
RD
11597 }
11598 if (obj5) {
11599 ecode6 = SWIG_AsVal_long(obj5, &val6);
11600 if (!SWIG_IsOK(ecode6)) {
11601 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11602 }
11603 arg6 = static_cast< long >(val6);
11604 }
11605 if (obj6) {
11606 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11607 if (!SWIG_IsOK(res7)) {
11608 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11609 }
1bd55598
RD
11610 if (!argp7) {
11611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11612 }
1bd55598
RD
11613 arg7 = reinterpret_cast< wxValidator * >(argp7);
11614 }
11615 if (obj7) {
d55e5bfc 11616 {
1bd55598
RD
11617 arg8 = wxString_in_helper(obj7);
11618 if (arg8 == NULL) SWIG_fail;
11619 temp8 = true;
d55e5bfc 11620 }
1bd55598
RD
11621 }
11622 {
11623 if (!wxPyCheckForApp()) SWIG_fail;
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11630 {
11631 if (temp3)
11632 delete arg3;
11633 }
11634 {
11635 if (temp8)
11636 delete arg8;
11637 }
11638 return resultobj;
11639fail:
11640 {
11641 if (temp3)
11642 delete arg3;
11643 }
11644 {
11645 if (temp8)
11646 delete arg8;
11647 }
11648 return NULL;
d55e5bfc
RD
11649}
11650
11651
1bd55598
RD
11652SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11653 PyObject *resultobj = 0;
11654 wxTextCtrl *result = 0 ;
11655
11656 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11657 {
11658 if (!wxPyCheckForApp()) SWIG_fail;
11659 PyThreadState* __tstate = wxPyBeginAllowThreads();
11660 result = (wxTextCtrl *)new wxTextCtrl();
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11665 return resultobj;
11666fail:
11667 return NULL;
11668}
11669
11670
11671SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj = 0;
11673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11674 wxWindow *arg2 = (wxWindow *) 0 ;
11675 int arg3 = (int) -1 ;
11676 wxString const &arg4_defvalue = wxPyEmptyString ;
11677 wxString *arg4 = (wxString *) &arg4_defvalue ;
11678 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11679 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11680 wxSize const &arg6_defvalue = wxDefaultSize ;
11681 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11682 long arg7 = (long) 0 ;
11683 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11684 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11685 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11686 wxString *arg9 = (wxString *) &arg9_defvalue ;
11687 bool result;
11688 void *argp1 = 0 ;
11689 int res1 = 0 ;
11690 void *argp2 = 0 ;
11691 int res2 = 0 ;
11692 int val3 ;
11693 int ecode3 = 0 ;
11694 bool temp4 = false ;
11695 wxPoint temp5 ;
11696 wxSize temp6 ;
11697 long val7 ;
11698 int ecode7 = 0 ;
11699 void *argp8 = 0 ;
11700 int res8 = 0 ;
11701 bool temp9 = false ;
11702 PyObject * obj0 = 0 ;
11703 PyObject * obj1 = 0 ;
11704 PyObject * obj2 = 0 ;
11705 PyObject * obj3 = 0 ;
11706 PyObject * obj4 = 0 ;
11707 PyObject * obj5 = 0 ;
11708 PyObject * obj6 = 0 ;
11709 PyObject * obj7 = 0 ;
11710 PyObject * obj8 = 0 ;
11711 char * kwnames[] = {
11712 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11713 };
11714
11715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11719 }
11720 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11722 if (!SWIG_IsOK(res2)) {
11723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11724 }
11725 arg2 = reinterpret_cast< wxWindow * >(argp2);
11726 if (obj2) {
11727 ecode3 = SWIG_AsVal_int(obj2, &val3);
11728 if (!SWIG_IsOK(ecode3)) {
11729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11730 }
11731 arg3 = static_cast< int >(val3);
11732 }
11733 if (obj3) {
d55e5bfc 11734 {
1bd55598
RD
11735 arg4 = wxString_in_helper(obj3);
11736 if (arg4 == NULL) SWIG_fail;
11737 temp4 = true;
d55e5bfc 11738 }
1bd55598
RD
11739 }
11740 if (obj4) {
d55e5bfc 11741 {
1bd55598
RD
11742 arg5 = &temp5;
11743 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11744 }
1bd55598
RD
11745 }
11746 if (obj5) {
d55e5bfc 11747 {
1bd55598
RD
11748 arg6 = &temp6;
11749 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11750 }
1bd55598
RD
11751 }
11752 if (obj6) {
11753 ecode7 = SWIG_AsVal_long(obj6, &val7);
11754 if (!SWIG_IsOK(ecode7)) {
11755 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11756 }
11757 arg7 = static_cast< long >(val7);
11758 }
11759 if (obj7) {
11760 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11761 if (!SWIG_IsOK(res8)) {
11762 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11763 }
1bd55598
RD
11764 if (!argp8) {
11765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11766 }
11767 arg8 = reinterpret_cast< wxValidator * >(argp8);
11768 }
11769 if (obj8) {
d55e5bfc 11770 {
1bd55598
RD
11771 arg9 = wxString_in_helper(obj8);
11772 if (arg9 == NULL) SWIG_fail;
11773 temp9 = true;
d55e5bfc 11774 }
1bd55598
RD
11775 }
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11779 wxPyEndAllowThreads(__tstate);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 {
11783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11784 }
11785 {
11786 if (temp4)
11787 delete arg4;
11788 }
11789 {
11790 if (temp9)
11791 delete arg9;
11792 }
11793 return resultobj;
11794fail:
11795 {
11796 if (temp4)
11797 delete arg4;
11798 }
11799 {
11800 if (temp9)
11801 delete arg9;
11802 }
11803 return NULL;
d55e5bfc
RD
11804}
11805
11806
1bd55598
RD
11807SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11808 PyObject *resultobj = 0;
11809 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11810 wxString result;
11811 void *argp1 = 0 ;
11812 int res1 = 0 ;
11813 PyObject *swig_obj[1] ;
11814
11815 if (!args) SWIG_fail;
11816 swig_obj[0] = args;
11817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11818 if (!SWIG_IsOK(res1)) {
11819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11820 }
11821 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = ((wxTextCtrl const *)arg1)->GetValue();
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 {
11829#if wxUSE_UNICODE
11830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11831#else
11832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11833#endif
11834 }
11835 return resultobj;
11836fail:
11837 return NULL;
11838}
11839
11840
11841SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj = 0;
11843 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11844 wxString *arg2 = 0 ;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 bool temp2 = false ;
11848 PyObject * obj0 = 0 ;
11849 PyObject * obj1 = 0 ;
11850 char * kwnames[] = {
11851 (char *) "self",(char *) "value", NULL
11852 };
11853
11854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11856 if (!SWIG_IsOK(res1)) {
11857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11858 }
11859 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11860 {
11861 arg2 = wxString_in_helper(obj1);
11862 if (arg2 == NULL) SWIG_fail;
11863 temp2 = true;
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 (arg1)->SetValue((wxString const &)*arg2);
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 resultobj = SWIG_Py_Void();
11872 {
11873 if (temp2)
11874 delete arg2;
11875 }
11876 return resultobj;
11877fail:
11878 {
11879 if (temp2)
11880 delete arg2;
11881 }
11882 return NULL;
11883}
11884
11885
b39fe951
RD
11886SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11887 PyObject *resultobj = 0;
11888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11889 bool result;
11890 void *argp1 = 0 ;
11891 int res1 = 0 ;
11892 PyObject *swig_obj[1] ;
11893
11894 if (!args) SWIG_fail;
11895 swig_obj[0] = args;
11896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11897 if (!SWIG_IsOK(res1)) {
11898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11899 }
11900 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11904 wxPyEndAllowThreads(__tstate);
11905 if (PyErr_Occurred()) SWIG_fail;
11906 }
11907 {
11908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11909 }
11910 return resultobj;
11911fail:
11912 return NULL;
11913}
11914
11915
11916SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11917 PyObject *resultobj = 0;
11918 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11919 wxString *arg2 = 0 ;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 bool temp2 = false ;
11923 PyObject * obj0 = 0 ;
11924 PyObject * obj1 = 0 ;
11925 char * kwnames[] = {
11926 (char *) "self",(char *) "value", NULL
11927 };
11928
11929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11931 if (!SWIG_IsOK(res1)) {
11932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11933 }
11934 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11935 {
11936 arg2 = wxString_in_helper(obj1);
11937 if (arg2 == NULL) SWIG_fail;
11938 temp2 = true;
11939 }
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 (arg1)->ChangeValue((wxString const &)*arg2);
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_Py_Void();
11947 {
11948 if (temp2)
11949 delete arg2;
11950 }
11951 return resultobj;
11952fail:
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return NULL;
11958}
11959
11960
1bd55598
RD
11961SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj = 0;
11963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11964 long arg2 ;
11965 long arg3 ;
11966 wxString result;
11967 void *argp1 = 0 ;
11968 int res1 = 0 ;
11969 long val2 ;
11970 int ecode2 = 0 ;
11971 long val3 ;
11972 int ecode3 = 0 ;
11973 PyObject * obj0 = 0 ;
11974 PyObject * obj1 = 0 ;
11975 PyObject * obj2 = 0 ;
11976 char * kwnames[] = {
2131d850 11977 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11978 };
11979
11980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11982 if (!SWIG_IsOK(res1)) {
11983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11984 }
11985 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11986 ecode2 = SWIG_AsVal_long(obj1, &val2);
11987 if (!SWIG_IsOK(ecode2)) {
11988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11989 }
11990 arg2 = static_cast< long >(val2);
11991 ecode3 = SWIG_AsVal_long(obj2, &val3);
11992 if (!SWIG_IsOK(ecode3)) {
11993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11994 }
11995 arg3 = static_cast< long >(val3);
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 {
12003#if wxUSE_UNICODE
12004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12005#else
12006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12007#endif
12008 }
12009 return resultobj;
12010fail:
12011 return NULL;
12012}
12013
12014
12015SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj = 0;
12017 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12018 long arg2 ;
12019 int result;
12020 void *argp1 = 0 ;
12021 int res1 = 0 ;
12022 long val2 ;
12023 int ecode2 = 0 ;
12024 PyObject * obj0 = 0 ;
12025 PyObject * obj1 = 0 ;
12026 char * kwnames[] = {
12027 (char *) "self",(char *) "lineNo", NULL
12028 };
12029
12030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12032 if (!SWIG_IsOK(res1)) {
12033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12034 }
12035 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12036 ecode2 = SWIG_AsVal_long(obj1, &val2);
12037 if (!SWIG_IsOK(ecode2)) {
12038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12039 }
12040 arg2 = static_cast< long >(val2);
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12044 wxPyEndAllowThreads(__tstate);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 resultobj = SWIG_From_int(static_cast< int >(result));
12048 return resultobj;
12049fail:
12050 return NULL;
12051}
12052
12053
12054SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj = 0;
12056 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12057 long arg2 ;
12058 wxString result;
12059 void *argp1 = 0 ;
12060 int res1 = 0 ;
12061 long val2 ;
12062 int ecode2 = 0 ;
12063 PyObject * obj0 = 0 ;
12064 PyObject * obj1 = 0 ;
12065 char * kwnames[] = {
12066 (char *) "self",(char *) "lineNo", NULL
12067 };
12068
12069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 ecode2 = SWIG_AsVal_long(obj1, &val2);
12076 if (!SWIG_IsOK(ecode2)) {
12077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12078 }
12079 arg2 = static_cast< long >(val2);
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 {
12087#if wxUSE_UNICODE
12088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12089#else
12090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12091#endif
12092 }
12093 return resultobj;
12094fail:
12095 return NULL;
d55e5bfc
RD
12096}
12097
12098
1bd55598
RD
12099SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *resultobj = 0;
12101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12102 int result;
12103 void *argp1 = 0 ;
12104 int res1 = 0 ;
12105 PyObject *swig_obj[1] ;
12106
12107 if (!args) SWIG_fail;
12108 swig_obj[0] = args;
12109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12110 if (!SWIG_IsOK(res1)) {
12111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12112 }
12113 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 resultobj = SWIG_From_int(static_cast< int >(result));
12121 return resultobj;
12122fail:
12123 return NULL;
d55e5bfc
RD
12124}
12125
12126
1bd55598
RD
12127SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12128 PyObject *resultobj = 0;
12129 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12130 bool result;
12131 void *argp1 = 0 ;
12132 int res1 = 0 ;
12133 PyObject *swig_obj[1] ;
12134
12135 if (!args) SWIG_fail;
12136 swig_obj[0] = args;
12137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12138 if (!SWIG_IsOK(res1)) {
12139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12140 }
12141 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 {
12149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12150 }
12151 return resultobj;
12152fail:
12153 return NULL;
d55e5bfc
RD
12154}
12155
12156
1bd55598
RD
12157SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12158 PyObject *resultobj = 0;
12159 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12160 bool result;
12161 void *argp1 = 0 ;
12162 int res1 = 0 ;
12163 PyObject *swig_obj[1] ;
12164
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12170 }
12171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 {
12179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12180 }
12181 return resultobj;
12182fail:
12183 return NULL;
d55e5bfc
RD
12184}
12185
12186
1bd55598
RD
12187SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12188 PyObject *resultobj = 0;
12189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12190 bool result;
12191 void *argp1 = 0 ;
12192 int res1 = 0 ;
12193 PyObject *swig_obj[1] ;
12194
12195 if (!args) SWIG_fail;
12196 swig_obj[0] = args;
12197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12198 if (!SWIG_IsOK(res1)) {
12199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12200 }
12201 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12205 wxPyEndAllowThreads(__tstate);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 {
12209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12210 }
12211 return resultobj;
12212fail:
12213 return NULL;
d55e5bfc
RD
12214}
12215
12216
1bd55598
RD
12217SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12218 PyObject *resultobj = 0;
12219 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12220 bool result;
12221 void *argp1 = 0 ;
12222 int res1 = 0 ;
12223 PyObject *swig_obj[1] ;
12224
12225 if (!args) SWIG_fail;
12226 swig_obj[0] = args;
12227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12228 if (!SWIG_IsOK(res1)) {
12229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12230 }
12231 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 {
12239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12240 }
12241 return resultobj;
12242fail:
12243 return NULL;
12244}
12245
12246
12247SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12250 long *arg2 = (long *) 0 ;
12251 long *arg3 = (long *) 0 ;
12252 void *argp1 = 0 ;
12253 int res1 = 0 ;
12254 long temp2 ;
12255 int res2 = SWIG_TMPOBJ ;
12256 long temp3 ;
12257 int res3 = SWIG_TMPOBJ ;
12258 PyObject *swig_obj[1] ;
12259
12260 arg2 = &temp2;
12261 arg3 = &temp3;
12262 if (!args) SWIG_fail;
12263 swig_obj[0] = args;
12264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12267 }
12268 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 resultobj = SWIG_Py_Void();
12276 if (SWIG_IsTmpObj(res2)) {
12277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12278 } else {
12279 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12281 }
12282 if (SWIG_IsTmpObj(res3)) {
12283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12284 } else {
12285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12287 }
12288 return resultobj;
12289fail:
12290 return NULL;
d55e5bfc
RD
12291}
12292
12293
1bd55598
RD
12294SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12297 wxString result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12307 }
12308 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 {
d55e5bfc 12316#if wxUSE_UNICODE
1bd55598 12317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12318#else
1bd55598 12319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12320#endif
1bd55598
RD
12321 }
12322 return resultobj;
12323fail:
12324 return NULL;
d55e5bfc
RD
12325}
12326
12327
1bd55598
RD
12328SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12329 PyObject *resultobj = 0;
12330 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12331 void *argp1 = 0 ;
12332 int res1 = 0 ;
12333 PyObject *swig_obj[1] ;
12334
12335 if (!args) SWIG_fail;
12336 swig_obj[0] = args;
12337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12340 }
12341 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 (arg1)->Clear();
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 resultobj = SWIG_Py_Void();
12349 return resultobj;
12350fail:
12351 return NULL;
12352}
12353
12354
12355SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj = 0;
12357 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12358 long arg2 ;
12359 long arg3 ;
12360 wxString *arg4 = 0 ;
12361 void *argp1 = 0 ;
12362 int res1 = 0 ;
12363 long val2 ;
12364 int ecode2 = 0 ;
12365 long val3 ;
12366 int ecode3 = 0 ;
12367 bool temp4 = false ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 PyObject * obj2 = 0 ;
12371 PyObject * obj3 = 0 ;
12372 char * kwnames[] = {
2131d850 12373 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12374 };
12375
12376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12378 if (!SWIG_IsOK(res1)) {
12379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12380 }
12381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12382 ecode2 = SWIG_AsVal_long(obj1, &val2);
12383 if (!SWIG_IsOK(ecode2)) {
12384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12385 }
12386 arg2 = static_cast< long >(val2);
12387 ecode3 = SWIG_AsVal_long(obj2, &val3);
12388 if (!SWIG_IsOK(ecode3)) {
12389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12390 }
12391 arg3 = static_cast< long >(val3);
12392 {
12393 arg4 = wxString_in_helper(obj3);
12394 if (arg4 == NULL) SWIG_fail;
12395 temp4 = true;
12396 }
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 resultobj = SWIG_Py_Void();
12404 {
12405 if (temp4)
12406 delete arg4;
12407 }
12408 return resultobj;
12409fail:
12410 {
12411 if (temp4)
12412 delete arg4;
12413 }
12414 return NULL;
12415}
12416
12417
12418SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12419 PyObject *resultobj = 0;
12420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12421 long arg2 ;
12422 long arg3 ;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 long val2 ;
12426 int ecode2 = 0 ;
12427 long val3 ;
12428 int ecode3 = 0 ;
12429 PyObject * obj0 = 0 ;
12430 PyObject * obj1 = 0 ;
12431 PyObject * obj2 = 0 ;
12432 char * kwnames[] = {
2131d850 12433 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12434 };
12435
12436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12440 }
12441 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12442 ecode2 = SWIG_AsVal_long(obj1, &val2);
12443 if (!SWIG_IsOK(ecode2)) {
12444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12445 }
12446 arg2 = static_cast< long >(val2);
12447 ecode3 = SWIG_AsVal_long(obj2, &val3);
12448 if (!SWIG_IsOK(ecode3)) {
12449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12450 }
12451 arg3 = static_cast< long >(val3);
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 (arg1)->Remove(arg2,arg3);
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = SWIG_Py_Void();
12459 return resultobj;
12460fail:
12461 return NULL;
12462}
12463
12464
12465SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj = 0;
12467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12468 wxString *arg2 = 0 ;
f5263701 12469 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12470 bool result;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 bool temp2 = false ;
f5263701
RD
12474 int val3 ;
12475 int ecode3 = 0 ;
1bd55598
RD
12476 PyObject * obj0 = 0 ;
12477 PyObject * obj1 = 0 ;
f5263701 12478 PyObject * obj2 = 0 ;
1bd55598 12479 char * kwnames[] = {
f5263701 12480 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12481 };
12482
f5263701 12483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12485 if (!SWIG_IsOK(res1)) {
12486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12487 }
12488 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12489 {
12490 arg2 = wxString_in_helper(obj1);
12491 if (arg2 == NULL) SWIG_fail;
12492 temp2 = true;
12493 }
f5263701
RD
12494 if (obj2) {
12495 ecode3 = SWIG_AsVal_int(obj2, &val3);
12496 if (!SWIG_IsOK(ecode3)) {
12497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12498 }
12499 arg3 = static_cast< int >(val3);
12500 }
1bd55598
RD
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12503 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 {
12508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12509 }
12510 {
12511 if (temp2)
12512 delete arg2;
12513 }
12514 return resultobj;
12515fail:
12516 {
12517 if (temp2)
12518 delete arg2;
12519 }
12520 return NULL;
12521}
12522
12523
12524SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12525 PyObject *resultobj = 0;
12526 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12527 wxString const &arg2_defvalue = wxPyEmptyString ;
12528 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12529 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12530 bool result;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 bool temp2 = false ;
f5263701
RD
12534 int val3 ;
12535 int ecode3 = 0 ;
1bd55598
RD
12536 PyObject * obj0 = 0 ;
12537 PyObject * obj1 = 0 ;
f5263701 12538 PyObject * obj2 = 0 ;
1bd55598 12539 char * kwnames[] = {
f5263701 12540 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12541 };
12542
f5263701 12543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12547 }
12548 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12549 if (obj1) {
d55e5bfc 12550 {
1bd55598
RD
12551 arg2 = wxString_in_helper(obj1);
12552 if (arg2 == NULL) SWIG_fail;
12553 temp2 = true;
d55e5bfc 12554 }
1bd55598 12555 }
f5263701
RD
12556 if (obj2) {
12557 ecode3 = SWIG_AsVal_int(obj2, &val3);
12558 if (!SWIG_IsOK(ecode3)) {
12559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12560 }
12561 arg3 = static_cast< int >(val3);
12562 }
1bd55598
RD
12563 {
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12565 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
1bd55598
RD
12566 wxPyEndAllowThreads(__tstate);
12567 if (PyErr_Occurred()) SWIG_fail;
12568 }
12569 {
12570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12571 }
12572 {
12573 if (temp2)
12574 delete arg2;
12575 }
12576 return resultobj;
12577fail:
12578 {
12579 if (temp2)
12580 delete arg2;
12581 }
12582 return NULL;
d55e5bfc
RD
12583}
12584
12585
1bd55598
RD
12586SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12587 PyObject *resultobj = 0;
12588 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 PyObject *swig_obj[1] ;
12592
12593 if (!args) SWIG_fail;
12594 swig_obj[0] = args;
12595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12598 }
12599 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 (arg1)->MarkDirty();
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = SWIG_Py_Void();
12607 return resultobj;
12608fail:
12609 return NULL;
d55e5bfc
RD
12610}
12611
12612
1bd55598
RD
12613SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12614 PyObject *resultobj = 0;
12615 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 PyObject *swig_obj[1] ;
12619
12620 if (!args) SWIG_fail;
12621 swig_obj[0] = args;
12622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12625 }
12626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 (arg1)->DiscardEdits();
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 resultobj = SWIG_Py_Void();
12634 return resultobj;
12635fail:
12636 return NULL;
12637}
12638
12639
b02396e8
RD
12640SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12641 PyObject *resultobj = 0;
12642 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12643 bool arg2 ;
12644 void *argp1 = 0 ;
12645 int res1 = 0 ;
12646 bool val2 ;
12647 int ecode2 = 0 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 char * kwnames[] = {
12651 (char *) "self",(char *) "modified", NULL
12652 };
12653
12654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12658 }
12659 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12660 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12661 if (!SWIG_IsOK(ecode2)) {
12662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12663 }
12664 arg2 = static_cast< bool >(val2);
12665 {
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 (arg1)->SetModified(arg2);
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 resultobj = SWIG_Py_Void();
12672 return resultobj;
12673fail:
12674 return NULL;
12675}
12676
12677
1bd55598
RD
12678SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj = 0;
12680 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12681 unsigned long arg2 ;
12682 void *argp1 = 0 ;
12683 int res1 = 0 ;
12684 unsigned long val2 ;
12685 int ecode2 = 0 ;
12686 PyObject * obj0 = 0 ;
12687 PyObject * obj1 = 0 ;
12688 char * kwnames[] = {
12689 (char *) "self",(char *) "len", NULL
12690 };
12691
12692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12694 if (!SWIG_IsOK(res1)) {
12695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12696 }
12697 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12698 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12699 if (!SWIG_IsOK(ecode2)) {
12700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12701 }
12702 arg2 = static_cast< unsigned long >(val2);
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 (arg1)->SetMaxLength(arg2);
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 resultobj = SWIG_Py_Void();
12710 return resultobj;
12711fail:
12712 return NULL;
12713}
12714
12715
12716SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj = 0;
12718 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12719 wxString *arg2 = 0 ;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 bool temp2 = false ;
12723 PyObject * obj0 = 0 ;
12724 PyObject * obj1 = 0 ;
12725 char * kwnames[] = {
12726 (char *) "self",(char *) "text", NULL
12727 };
12728
12729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12731 if (!SWIG_IsOK(res1)) {
12732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12733 }
12734 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12735 {
12736 arg2 = wxString_in_helper(obj1);
12737 if (arg2 == NULL) SWIG_fail;
12738 temp2 = true;
12739 }
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 (arg1)->WriteText((wxString const &)*arg2);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = SWIG_Py_Void();
12747 {
12748 if (temp2)
12749 delete arg2;
12750 }
12751 return resultobj;
12752fail:
12753 {
12754 if (temp2)
12755 delete arg2;
12756 }
12757 return NULL;
d55e5bfc
RD
12758}
12759
12760
1bd55598
RD
12761SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12762 PyObject *resultobj = 0;
12763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12764 wxString *arg2 = 0 ;
12765 void *argp1 = 0 ;
12766 int res1 = 0 ;
12767 bool temp2 = false ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "text", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 {
12781 arg2 = wxString_in_helper(obj1);
12782 if (arg2 == NULL) SWIG_fail;
12783 temp2 = true;
12784 }
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 (arg1)->AppendText((wxString const &)*arg2);
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_Py_Void();
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 return resultobj;
12797fail:
12798 {
12799 if (temp2)
12800 delete arg2;
12801 }
12802 return NULL;
12803}
12804
12805
12806SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj = 0;
12808 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12809 wxKeyEvent *arg2 = 0 ;
12810 bool result;
12811 void *argp1 = 0 ;
12812 int res1 = 0 ;
12813 void *argp2 = 0 ;
12814 int res2 = 0 ;
12815 PyObject * obj0 = 0 ;
12816 PyObject * obj1 = 0 ;
12817 char * kwnames[] = {
12818 (char *) "self",(char *) "event", NULL
12819 };
12820
12821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12823 if (!SWIG_IsOK(res1)) {
12824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12825 }
12826 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12828 if (!SWIG_IsOK(res2)) {
12829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12830 }
12831 if (!argp2) {
12832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12833 }
12834 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 {
12842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12843 }
12844 return resultobj;
12845fail:
12846 return NULL;
12847}
12848
12849
12850SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12851 PyObject *resultobj = 0;
12852 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12853 long arg2 ;
12854 long arg3 ;
12855 wxTextAttr *arg4 = 0 ;
12856 bool result;
12857 void *argp1 = 0 ;
12858 int res1 = 0 ;
12859 long val2 ;
12860 int ecode2 = 0 ;
12861 long val3 ;
12862 int ecode3 = 0 ;
12863 void *argp4 = 0 ;
12864 int res4 = 0 ;
12865 PyObject * obj0 = 0 ;
12866 PyObject * obj1 = 0 ;
12867 PyObject * obj2 = 0 ;
12868 PyObject * obj3 = 0 ;
12869 char * kwnames[] = {
12870 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12871 };
12872
12873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12875 if (!SWIG_IsOK(res1)) {
12876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12877 }
12878 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12879 ecode2 = SWIG_AsVal_long(obj1, &val2);
12880 if (!SWIG_IsOK(ecode2)) {
12881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12882 }
12883 arg2 = static_cast< long >(val2);
12884 ecode3 = SWIG_AsVal_long(obj2, &val3);
12885 if (!SWIG_IsOK(ecode3)) {
12886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12887 }
12888 arg3 = static_cast< long >(val3);
12889 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12890 if (!SWIG_IsOK(res4)) {
12891 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12892 }
12893 if (!argp4) {
12894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12895 }
12896 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 {
12904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12905 }
12906 return resultobj;
12907fail:
12908 return NULL;
12909}
12910
12911
12912SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj = 0;
12914 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12915 long arg2 ;
12916 wxTextAttr *arg3 = 0 ;
12917 bool result;
12918 void *argp1 = 0 ;
12919 int res1 = 0 ;
12920 long val2 ;
12921 int ecode2 = 0 ;
12922 void *argp3 = 0 ;
12923 int res3 = 0 ;
12924 PyObject * obj0 = 0 ;
12925 PyObject * obj1 = 0 ;
12926 PyObject * obj2 = 0 ;
12927 char * kwnames[] = {
12928 (char *) "self",(char *) "position",(char *) "style", NULL
12929 };
12930
12931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12933 if (!SWIG_IsOK(res1)) {
12934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12935 }
12936 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12937 ecode2 = SWIG_AsVal_long(obj1, &val2);
12938 if (!SWIG_IsOK(ecode2)) {
12939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12940 }
12941 arg2 = static_cast< long >(val2);
12942 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12943 if (!SWIG_IsOK(res3)) {
12944 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12945 }
12946 if (!argp3) {
12947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12948 }
12949 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 {
12957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12958 }
12959 return resultobj;
12960fail:
12961 return NULL;
12962}
12963
12964
12965SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12966 PyObject *resultobj = 0;
12967 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12968 wxTextAttr *arg2 = 0 ;
12969 bool result;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 void *argp2 = 0 ;
12973 int res2 = 0 ;
12974 PyObject * obj0 = 0 ;
12975 PyObject * obj1 = 0 ;
12976 char * kwnames[] = {
12977 (char *) "self",(char *) "style", NULL
12978 };
12979
12980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12982 if (!SWIG_IsOK(res1)) {
12983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12984 }
12985 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12987 if (!SWIG_IsOK(res2)) {
12988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12989 }
12990 if (!argp2) {
12991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12992 }
12993 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12994 {
12995 PyThreadState* __tstate = wxPyBeginAllowThreads();
12996 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12997 wxPyEndAllowThreads(__tstate);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 {
13001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13002 }
13003 return resultobj;
13004fail:
13005 return NULL;
d55e5bfc
RD
13006}
13007
13008
1bd55598
RD
13009SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13010 PyObject *resultobj = 0;
13011 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13012 wxTextAttr *result = 0 ;
13013 void *argp1 = 0 ;
13014 int res1 = 0 ;
13015 PyObject *swig_obj[1] ;
13016
13017 if (!args) SWIG_fail;
13018 swig_obj[0] = args;
13019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13020 if (!SWIG_IsOK(res1)) {
13021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13022 }
13023 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13024 {
13025 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13026 {
1bd55598
RD
13027 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13028 result = (wxTextAttr *) &_result_ref;
d55e5bfc 13029 }
1bd55598
RD
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13034 return resultobj;
13035fail:
13036 return NULL;
13037}
13038
13039
13040SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13043 long arg2 ;
13044 long arg3 ;
13045 long result;
13046 void *argp1 = 0 ;
13047 int res1 = 0 ;
13048 long val2 ;
13049 int ecode2 = 0 ;
13050 long val3 ;
13051 int ecode3 = 0 ;
13052 PyObject * obj0 = 0 ;
13053 PyObject * obj1 = 0 ;
13054 PyObject * obj2 = 0 ;
13055 char * kwnames[] = {
13056 (char *) "self",(char *) "x",(char *) "y", NULL
13057 };
13058
13059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13063 }
13064 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13065 ecode2 = SWIG_AsVal_long(obj1, &val2);
13066 if (!SWIG_IsOK(ecode2)) {
13067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13068 }
13069 arg2 = static_cast< long >(val2);
13070 ecode3 = SWIG_AsVal_long(obj2, &val3);
13071 if (!SWIG_IsOK(ecode3)) {
13072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13073 }
13074 arg3 = static_cast< long >(val3);
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13078 wxPyEndAllowThreads(__tstate);
13079 if (PyErr_Occurred()) SWIG_fail;
13080 }
13081 resultobj = SWIG_From_long(static_cast< long >(result));
13082 return resultobj;
13083fail:
13084 return NULL;
13085}
13086
13087
13088SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj = 0;
13090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13091 long arg2 ;
13092 long *arg3 = (long *) 0 ;
13093 long *arg4 = (long *) 0 ;
13094 void *argp1 = 0 ;
13095 int res1 = 0 ;
13096 long val2 ;
13097 int ecode2 = 0 ;
13098 long temp3 ;
13099 int res3 = SWIG_TMPOBJ ;
13100 long temp4 ;
13101 int res4 = SWIG_TMPOBJ ;
13102 PyObject * obj0 = 0 ;
13103 PyObject * obj1 = 0 ;
13104 char * kwnames[] = {
13105 (char *) "self",(char *) "pos", NULL
13106 };
13107
13108 arg3 = &temp3;
13109 arg4 = &temp4;
13110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13112 if (!SWIG_IsOK(res1)) {
13113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13114 }
13115 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13116 ecode2 = SWIG_AsVal_long(obj1, &val2);
13117 if (!SWIG_IsOK(ecode2)) {
13118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13119 }
13120 arg2 = static_cast< long >(val2);
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = SWIG_Py_Void();
13128 if (SWIG_IsTmpObj(res3)) {
13129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13130 } else {
13131 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13133 }
13134 if (SWIG_IsTmpObj(res4)) {
13135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13136 } else {
13137 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13139 }
13140 return resultobj;
13141fail:
13142 return NULL;
13143}
13144
13145
13146SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13147 PyObject *resultobj = 0;
13148 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13149 long arg2 ;
13150 void *argp1 = 0 ;
13151 int res1 = 0 ;
13152 long val2 ;
13153 int ecode2 = 0 ;
13154 PyObject * obj0 = 0 ;
13155 PyObject * obj1 = 0 ;
13156 char * kwnames[] = {
13157 (char *) "self",(char *) "pos", NULL
13158 };
13159
13160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13162 if (!SWIG_IsOK(res1)) {
13163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13164 }
13165 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13166 ecode2 = SWIG_AsVal_long(obj1, &val2);
13167 if (!SWIG_IsOK(ecode2)) {
13168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13169 }
13170 arg2 = static_cast< long >(val2);
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 (arg1)->ShowPosition(arg2);
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_Py_Void();
13178 return resultobj;
13179fail:
13180 return NULL;
13181}
13182
13183
13184SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj = 0;
13186 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13187 wxPoint *arg2 = 0 ;
13188 long *arg3 = (long *) 0 ;
13189 long *arg4 = (long *) 0 ;
13190 wxTextCtrlHitTestResult result;
13191 void *argp1 = 0 ;
13192 int res1 = 0 ;
13193 wxPoint temp2 ;
13194 long temp3 ;
13195 int res3 = SWIG_TMPOBJ ;
13196 long temp4 ;
13197 int res4 = SWIG_TMPOBJ ;
13198 PyObject * obj0 = 0 ;
13199 PyObject * obj1 = 0 ;
13200 char * kwnames[] = {
13201 (char *) "self",(char *) "pt", NULL
13202 };
13203
13204 arg3 = &temp3;
13205 arg4 = &temp4;
13206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13208 if (!SWIG_IsOK(res1)) {
13209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13210 }
13211 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13212 {
13213 arg2 = &temp2;
13214 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13215 }
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13219 wxPyEndAllowThreads(__tstate);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 resultobj = SWIG_From_int(static_cast< int >(result));
13223 if (SWIG_IsTmpObj(res3)) {
13224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13225 } else {
13226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13228 }
13229 if (SWIG_IsTmpObj(res4)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236fail:
13237 return NULL;
13238}
13239
13240
13241SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 wxPoint *arg2 = 0 ;
13245 long *arg3 = (long *) 0 ;
13246 wxTextCtrlHitTestResult result;
13247 void *argp1 = 0 ;
13248 int res1 = 0 ;
13249 wxPoint temp2 ;
13250 long temp3 ;
13251 int res3 = SWIG_TMPOBJ ;
13252 PyObject * obj0 = 0 ;
13253 PyObject * obj1 = 0 ;
13254 char * kwnames[] = {
13255 (char *) "self",(char *) "pt", NULL
13256 };
13257
13258 arg3 = &temp3;
13259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 {
13266 arg2 = &temp2;
13267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13268 }
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 resultobj = SWIG_From_int(static_cast< int >(result));
13276 if (SWIG_IsTmpObj(res3)) {
13277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13278 } else {
13279 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13281 }
13282 return resultobj;
13283fail:
13284 return NULL;
d55e5bfc
RD
13285}
13286
13287
1bd55598
RD
13288SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13289 PyObject *resultobj = 0;
13290 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13291 void *argp1 = 0 ;
13292 int res1 = 0 ;
13293 PyObject *swig_obj[1] ;
13294
13295 if (!args) SWIG_fail;
13296 swig_obj[0] = args;
13297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13298 if (!SWIG_IsOK(res1)) {
13299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13300 }
13301 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13302 {
13303 PyThreadState* __tstate = wxPyBeginAllowThreads();
13304 (arg1)->Copy();
13305 wxPyEndAllowThreads(__tstate);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 }
13308 resultobj = SWIG_Py_Void();
13309 return resultobj;
13310fail:
13311 return NULL;
d55e5bfc
RD
13312}
13313
13314
1bd55598
RD
13315SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13316 PyObject *resultobj = 0;
13317 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13318 void *argp1 = 0 ;
13319 int res1 = 0 ;
13320 PyObject *swig_obj[1] ;
13321
13322 if (!args) SWIG_fail;
13323 swig_obj[0] = args;
13324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13325 if (!SWIG_IsOK(res1)) {
13326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13327 }
13328 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 (arg1)->Cut();
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 resultobj = SWIG_Py_Void();
13336 return resultobj;
13337fail:
13338 return NULL;
d55e5bfc
RD
13339}
13340
13341
1bd55598
RD
13342SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13343 PyObject *resultobj = 0;
13344 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13345 void *argp1 = 0 ;
13346 int res1 = 0 ;
13347 PyObject *swig_obj[1] ;
13348
13349 if (!args) SWIG_fail;
13350 swig_obj[0] = args;
13351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13352 if (!SWIG_IsOK(res1)) {
13353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13354 }
13355 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 (arg1)->Paste();
13359 wxPyEndAllowThreads(__tstate);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 }
13362 resultobj = SWIG_Py_Void();
13363 return resultobj;
13364fail:
13365 return NULL;
d55e5bfc
RD
13366}
13367
13368
1bd55598
RD
13369SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13370 PyObject *resultobj = 0;
13371 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13372 bool result;
13373 void *argp1 = 0 ;
13374 int res1 = 0 ;
13375 PyObject *swig_obj[1] ;
13376
13377 if (!args) SWIG_fail;
13378 swig_obj[0] = args;
13379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 {
13391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13392 }
13393 return resultobj;
13394fail:
13395 return NULL;
d55e5bfc
RD
13396}
13397
13398
1bd55598
RD
13399SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13400 PyObject *resultobj = 0;
13401 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13402 bool result;
13403 void *argp1 = 0 ;
13404 int res1 = 0 ;
13405 PyObject *swig_obj[1] ;
13406
13407 if (!args) SWIG_fail;
13408 swig_obj[0] = args;
13409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13410 if (!SWIG_IsOK(res1)) {
13411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13412 }
13413 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 {
13421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13422 }
13423 return resultobj;
13424fail:
13425 return NULL;
d55e5bfc
RD
13426}
13427
13428
1bd55598
RD
13429SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13430 PyObject *resultobj = 0;
13431 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13432 bool result;
13433 void *argp1 = 0 ;
13434 int res1 = 0 ;
13435 PyObject *swig_obj[1] ;
13436
13437 if (!args) SWIG_fail;
13438 swig_obj[0] = args;
13439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13440 if (!SWIG_IsOK(res1)) {
13441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13442 }
13443 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 {
13451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13452 }
13453 return resultobj;
13454fail:
13455 return NULL;
d55e5bfc
RD
13456}
13457
13458
1bd55598
RD
13459SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13460 PyObject *resultobj = 0;
13461 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13462 void *argp1 = 0 ;
13463 int res1 = 0 ;
13464 PyObject *swig_obj[1] ;
13465
13466 if (!args) SWIG_fail;
13467 swig_obj[0] = args;
13468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13469 if (!SWIG_IsOK(res1)) {
13470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13471 }
13472 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 (arg1)->Undo();
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 resultobj = SWIG_Py_Void();
13480 return resultobj;
13481fail:
13482 return NULL;
d55e5bfc
RD
13483}
13484
13485
1bd55598
RD
13486SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13487 PyObject *resultobj = 0;
13488 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
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_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13498 }
13499 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 (arg1)->Redo();
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_Py_Void();
13507 return resultobj;
13508fail:
13509 return NULL;
d55e5bfc
RD
13510}
13511
13512
1bd55598
RD
13513SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13516 bool 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_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13526 }
13527 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 {
13535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13536 }
13537 return resultobj;
13538fail:
13539 return NULL;
d55e5bfc
RD
13540}
13541
13542
1bd55598
RD
13543SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13544 PyObject *resultobj = 0;
13545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13546 bool result;
13547 void *argp1 = 0 ;
13548 int res1 = 0 ;
13549 PyObject *swig_obj[1] ;
13550
13551 if (!args) SWIG_fail;
13552 swig_obj[0] = args;
13553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13554 if (!SWIG_IsOK(res1)) {
13555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13556 }
13557 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13558 {
13559 PyThreadState* __tstate = wxPyBeginAllowThreads();
13560 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13561 wxPyEndAllowThreads(__tstate);
13562 if (PyErr_Occurred()) SWIG_fail;
13563 }
13564 {
13565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13566 }
13567 return resultobj;
13568fail:
13569 return NULL;
13570}
13571
13572
13573SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13574 PyObject *resultobj = 0;
13575 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13576 long arg2 ;
13577 void *argp1 = 0 ;
13578 int res1 = 0 ;
13579 long val2 ;
13580 int ecode2 = 0 ;
13581 PyObject * obj0 = 0 ;
13582 PyObject * obj1 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "self",(char *) "pos", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13591 }
13592 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13593 ecode2 = SWIG_AsVal_long(obj1, &val2);
13594 if (!SWIG_IsOK(ecode2)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13596 }
13597 arg2 = static_cast< long >(val2);
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->SetInsertionPoint(arg2);
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606fail:
13607 return NULL;
d55e5bfc
RD
13608}
13609
13610
1bd55598
RD
13611SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13614 void *argp1 = 0 ;
13615 int res1 = 0 ;
13616 PyObject *swig_obj[1] ;
13617
13618 if (!args) SWIG_fail;
13619 swig_obj[0] = args;
13620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13621 if (!SWIG_IsOK(res1)) {
13622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13623 }
13624 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 (arg1)->SetInsertionPointEnd();
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 resultobj = SWIG_Py_Void();
13632 return resultobj;
13633fail:
13634 return NULL;
d55e5bfc
RD
13635}
13636
13637
1bd55598
RD
13638SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13639 PyObject *resultobj = 0;
13640 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13641 long result;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13651 }
13652 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_From_long(static_cast< long >(result));
13660 return resultobj;
13661fail:
13662 return NULL;
d55e5bfc
RD
13663}
13664
13665
1bd55598
RD
13666SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13667 PyObject *resultobj = 0;
13668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13669 long result;
13670 void *argp1 = 0 ;
13671 int res1 = 0 ;
13672 PyObject *swig_obj[1] ;
13673
13674 if (!args) SWIG_fail;
13675 swig_obj[0] = args;
13676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13677 if (!SWIG_IsOK(res1)) {
13678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13679 }
13680 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_From_long(static_cast< long >(result));
13688 return resultobj;
13689fail:
13690 return NULL;
13691}
13692
13693
13694SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 long arg2 ;
13698 long arg3 ;
13699 void *argp1 = 0 ;
13700 int res1 = 0 ;
13701 long val2 ;
13702 int ecode2 = 0 ;
13703 long val3 ;
13704 int ecode3 = 0 ;
13705 PyObject * obj0 = 0 ;
13706 PyObject * obj1 = 0 ;
13707 PyObject * obj2 = 0 ;
13708 char * kwnames[] = {
2131d850 13709 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13710 };
13711
13712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13714 if (!SWIG_IsOK(res1)) {
13715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13716 }
13717 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13718 ecode2 = SWIG_AsVal_long(obj1, &val2);
13719 if (!SWIG_IsOK(ecode2)) {
13720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13721 }
13722 arg2 = static_cast< long >(val2);
13723 ecode3 = SWIG_AsVal_long(obj2, &val3);
13724 if (!SWIG_IsOK(ecode3)) {
13725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13726 }
13727 arg3 = static_cast< long >(val3);
13728 {
13729 PyThreadState* __tstate = wxPyBeginAllowThreads();
13730 (arg1)->SetSelection(arg2,arg3);
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 resultobj = SWIG_Py_Void();
13735 return resultobj;
13736fail:
13737 return NULL;
d55e5bfc
RD
13738}
13739
13740
1bd55598
RD
13741SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13742 PyObject *resultobj = 0;
13743 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13744 void *argp1 = 0 ;
13745 int res1 = 0 ;
13746 PyObject *swig_obj[1] ;
13747
13748 if (!args) SWIG_fail;
13749 swig_obj[0] = args;
13750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13751 if (!SWIG_IsOK(res1)) {
13752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13753 }
13754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 (arg1)->SelectAll();
13758 wxPyEndAllowThreads(__tstate);
13759 if (PyErr_Occurred()) SWIG_fail;
13760 }
13761 resultobj = SWIG_Py_Void();
13762 return resultobj;
13763fail:
13764 return NULL;
13765}
13766
13767
13768SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13769 PyObject *resultobj = 0;
13770 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13771 bool arg2 ;
13772 void *argp1 = 0 ;
13773 int res1 = 0 ;
13774 bool val2 ;
13775 int ecode2 = 0 ;
13776 PyObject * obj0 = 0 ;
13777 PyObject * obj1 = 0 ;
13778 char * kwnames[] = {
13779 (char *) "self",(char *) "editable", NULL
13780 };
13781
13782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13784 if (!SWIG_IsOK(res1)) {
13785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13786 }
13787 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13788 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13789 if (!SWIG_IsOK(ecode2)) {
13790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13791 }
13792 arg2 = static_cast< bool >(val2);
13793 {
13794 PyThreadState* __tstate = wxPyBeginAllowThreads();
13795 (arg1)->SetEditable(arg2);
13796 wxPyEndAllowThreads(__tstate);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 resultobj = SWIG_Py_Void();
13800 return resultobj;
13801fail:
13802 return NULL;
13803}
13804
13805
b39fe951
RD
13806SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13807 PyObject *resultobj = 0;
13808 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13809 void *argp1 = 0 ;
13810 int res1 = 0 ;
13811 PyObject *swig_obj[1] ;
13812
13813 if (!args) SWIG_fail;
13814 swig_obj[0] = args;
13815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13816 if (!SWIG_IsOK(res1)) {
13817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13818 }
13819 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 (arg1)->SendTextUpdatedEvent();
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_Py_Void();
13827 return resultobj;
13828fail:
13829 return NULL;
13830}
13831
13832
1bd55598
RD
13833SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj = 0;
13835 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13836 wxString *arg2 = 0 ;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 bool temp2 = false ;
13840 PyObject * obj0 = 0 ;
13841 PyObject * obj1 = 0 ;
13842 char * kwnames[] = {
13843 (char *) "self",(char *) "text", NULL
13844 };
13845
13846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13848 if (!SWIG_IsOK(res1)) {
13849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13850 }
13851 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13852 {
13853 arg2 = wxString_in_helper(obj1);
13854 if (arg2 == NULL) SWIG_fail;
13855 temp2 = true;
13856 }
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13860 wxPyEndAllowThreads(__tstate);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 resultobj = SWIG_Py_Void();
13864 {
13865 if (temp2)
13866 delete arg2;
13867 }
13868 return resultobj;
13869fail:
13870 {
13871 if (temp2)
13872 delete arg2;
13873 }
13874 return NULL;
13875}
13876
13877
13878SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13879 PyObject *resultobj = 0;
13880 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13881 long arg2 ;
13882 long arg3 ;
13883 wxString result;
13884 void *argp1 = 0 ;
13885 int res1 = 0 ;
13886 long val2 ;
13887 int ecode2 = 0 ;
13888 long val3 ;
13889 int ecode3 = 0 ;
13890 PyObject * obj0 = 0 ;
13891 PyObject * obj1 = 0 ;
13892 PyObject * obj2 = 0 ;
13893 char * kwnames[] = {
2131d850 13894 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13895 };
13896
13897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13901 }
13902 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13903 ecode2 = SWIG_AsVal_long(obj1, &val2);
13904 if (!SWIG_IsOK(ecode2)) {
13905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13906 }
13907 arg2 = static_cast< long >(val2);
13908 ecode3 = SWIG_AsVal_long(obj2, &val3);
13909 if (!SWIG_IsOK(ecode3)) {
13910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13911 }
13912 arg3 = static_cast< long >(val3);
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 {
13920#if wxUSE_UNICODE
13921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13922#else
13923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13924#endif
13925 }
13926 return resultobj;
13927fail:
13928 return NULL;
d55e5bfc
RD
13929}
13930
13931
1bd55598
RD
13932SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj = 0;
13934 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13935 SwigValueWrapper<wxVisualAttributes > result;
13936 int val1 ;
13937 int ecode1 = 0 ;
13938 PyObject * obj0 = 0 ;
13939 char * kwnames[] = {
13940 (char *) "variant", NULL
13941 };
13942
13943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13944 if (obj0) {
13945 ecode1 = SWIG_AsVal_int(obj0, &val1);
13946 if (!SWIG_IsOK(ecode1)) {
13947 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13948 }
13949 arg1 = static_cast< wxWindowVariant >(val1);
13950 }
13951 {
13952 if (!wxPyCheckForApp()) SWIG_fail;
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13955 wxPyEndAllowThreads(__tstate);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 }
13958 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13959 return resultobj;
13960fail:
13961 return NULL;
13962}
13963
13964
13965SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13966 PyObject *obj;
13967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13968 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13969 return SWIG_Py_Void();
13970}
13971
13972SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13973 return SWIG_Python_InitShadowInstance(args);
13974}
13975
13976SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj = 0;
13978 int arg1 ;
13979 wxMouseEvent *arg2 = 0 ;
13980 long arg3 ;
13981 long arg4 ;
13982 wxTextUrlEvent *result = 0 ;
13983 int val1 ;
13984 int ecode1 = 0 ;
13985 void *argp2 = 0 ;
13986 int res2 = 0 ;
13987 long val3 ;
13988 int ecode3 = 0 ;
13989 long val4 ;
13990 int ecode4 = 0 ;
13991 PyObject * obj0 = 0 ;
13992 PyObject * obj1 = 0 ;
13993 PyObject * obj2 = 0 ;
13994 PyObject * obj3 = 0 ;
13995 char * kwnames[] = {
13996 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13997 };
13998
13999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14000 ecode1 = SWIG_AsVal_int(obj0, &val1);
14001 if (!SWIG_IsOK(ecode1)) {
14002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14003 }
14004 arg1 = static_cast< int >(val1);
14005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14006 if (!SWIG_IsOK(res2)) {
14007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14008 }
14009 if (!argp2) {
14010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14011 }
14012 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14013 ecode3 = SWIG_AsVal_long(obj2, &val3);
14014 if (!SWIG_IsOK(ecode3)) {
14015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14016 }
14017 arg3 = static_cast< long >(val3);
14018 ecode4 = SWIG_AsVal_long(obj3, &val4);
14019 if (!SWIG_IsOK(ecode4)) {
14020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14021 }
14022 arg4 = static_cast< long >(val4);
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14030 return resultobj;
14031fail:
14032 return NULL;
d55e5bfc
RD
14033}
14034
14035
1bd55598
RD
14036SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14037 PyObject *resultobj = 0;
14038 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14039 wxMouseEvent *result = 0 ;
14040 void *argp1 = 0 ;
14041 int res1 = 0 ;
14042 PyObject *swig_obj[1] ;
14043
14044 if (!args) SWIG_fail;
14045 swig_obj[0] = args;
14046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14047 if (!SWIG_IsOK(res1)) {
14048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14049 }
14050 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14053 {
1bd55598
RD
14054 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14055 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14056 }
1bd55598
RD
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14061 return resultobj;
14062fail:
14063 return NULL;
d55e5bfc
RD
14064}
14065
14066
1bd55598
RD
14067SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14068 PyObject *resultobj = 0;
14069 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14070 long result;
14071 void *argp1 = 0 ;
14072 int res1 = 0 ;
14073 PyObject *swig_obj[1] ;
14074
14075 if (!args) SWIG_fail;
14076 swig_obj[0] = args;
14077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14078 if (!SWIG_IsOK(res1)) {
14079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14080 }
14081 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14082 {
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14085 wxPyEndAllowThreads(__tstate);
14086 if (PyErr_Occurred()) SWIG_fail;
14087 }
14088 resultobj = SWIG_From_long(static_cast< long >(result));
14089 return resultobj;
14090fail:
14091 return NULL;
d55e5bfc
RD
14092}
14093
14094
1bd55598
RD
14095SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14096 PyObject *resultobj = 0;
14097 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14098 long result;
14099 void *argp1 = 0 ;
14100 int res1 = 0 ;
14101 PyObject *swig_obj[1] ;
14102
14103 if (!args) SWIG_fail;
14104 swig_obj[0] = args;
14105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14106 if (!SWIG_IsOK(res1)) {
14107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14108 }
14109 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 resultobj = SWIG_From_long(static_cast< long >(result));
14117 return resultobj;
14118fail:
14119 return NULL;
d55e5bfc
RD
14120}
14121
14122
1bd55598
RD
14123SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14124 PyObject *obj;
14125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14126 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14127 return SWIG_Py_Void();
68e533f8
RD
14128}
14129
1bd55598
RD
14130SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14132}
14133
1bd55598
RD
14134SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14135 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14136 return 1;
d55e5bfc
RD
14137}
14138
14139
1bd55598
RD
14140SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14141 PyObject *pyobj = 0;
14142
14143 {
14144#if wxUSE_UNICODE
14145 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14146#else
14147 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14148#endif
14149 }
14150 return pyobj;
14151}
14152
14153
14154SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14155 PyObject *resultobj = 0;
14156 wxWindow *arg1 = (wxWindow *) 0 ;
14157 int arg2 = (int) -1 ;
14158 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14159 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14160 wxSize const &arg4_defvalue = wxDefaultSize ;
14161 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14162 long arg5 = (long) wxSB_HORIZONTAL ;
14163 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14164 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14165 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14166 wxString *arg7 = (wxString *) &arg7_defvalue ;
14167 wxScrollBar *result = 0 ;
14168 void *argp1 = 0 ;
14169 int res1 = 0 ;
14170 int val2 ;
14171 int ecode2 = 0 ;
14172 wxPoint temp3 ;
14173 wxSize temp4 ;
14174 long val5 ;
14175 int ecode5 = 0 ;
14176 void *argp6 = 0 ;
14177 int res6 = 0 ;
14178 bool temp7 = false ;
14179 PyObject * obj0 = 0 ;
14180 PyObject * obj1 = 0 ;
14181 PyObject * obj2 = 0 ;
14182 PyObject * obj3 = 0 ;
14183 PyObject * obj4 = 0 ;
14184 PyObject * obj5 = 0 ;
14185 PyObject * obj6 = 0 ;
14186 char * kwnames[] = {
14187 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14188 };
14189
14190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14192 if (!SWIG_IsOK(res1)) {
14193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14194 }
14195 arg1 = reinterpret_cast< wxWindow * >(argp1);
14196 if (obj1) {
14197 ecode2 = SWIG_AsVal_int(obj1, &val2);
14198 if (!SWIG_IsOK(ecode2)) {
14199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14200 }
14201 arg2 = static_cast< int >(val2);
14202 }
14203 if (obj2) {
d55e5bfc 14204 {
1bd55598
RD
14205 arg3 = &temp3;
14206 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14207 }
1bd55598
RD
14208 }
14209 if (obj3) {
36ed4f51 14210 {
1bd55598
RD
14211 arg4 = &temp4;
14212 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14213 }
1bd55598
RD
14214 }
14215 if (obj4) {
14216 ecode5 = SWIG_AsVal_long(obj4, &val5);
14217 if (!SWIG_IsOK(ecode5)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14219 }
14220 arg5 = static_cast< long >(val5);
14221 }
14222 if (obj5) {
14223 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14224 if (!SWIG_IsOK(res6)) {
14225 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14226 }
1bd55598
RD
14227 if (!argp6) {
14228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14229 }
1bd55598
RD
14230 arg6 = reinterpret_cast< wxValidator * >(argp6);
14231 }
14232 if (obj6) {
d55e5bfc 14233 {
1bd55598
RD
14234 arg7 = wxString_in_helper(obj6);
14235 if (arg7 == NULL) SWIG_fail;
14236 temp7 = true;
d55e5bfc 14237 }
1bd55598
RD
14238 }
14239 {
14240 if (!wxPyCheckForApp()) SWIG_fail;
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14247 {
14248 if (temp7)
14249 delete arg7;
14250 }
14251 return resultobj;
14252fail:
14253 {
14254 if (temp7)
14255 delete arg7;
14256 }
14257 return NULL;
d55e5bfc
RD
14258}
14259
14260
1bd55598
RD
14261SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14262 PyObject *resultobj = 0;
14263 wxScrollBar *result = 0 ;
14264
14265 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14266 {
14267 if (!wxPyCheckForApp()) SWIG_fail;
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 result = (wxScrollBar *)new wxScrollBar();
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14274 return resultobj;
14275fail:
14276 return NULL;
14277}
14278
14279
14280SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj = 0;
14282 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14283 wxWindow *arg2 = (wxWindow *) 0 ;
14284 int arg3 = (int) -1 ;
14285 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14286 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14287 wxSize const &arg5_defvalue = wxDefaultSize ;
14288 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14289 long arg6 = (long) wxSB_HORIZONTAL ;
14290 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14291 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14292 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14293 wxString *arg8 = (wxString *) &arg8_defvalue ;
14294 bool result;
14295 void *argp1 = 0 ;
14296 int res1 = 0 ;
14297 void *argp2 = 0 ;
14298 int res2 = 0 ;
14299 int val3 ;
14300 int ecode3 = 0 ;
14301 wxPoint temp4 ;
14302 wxSize temp5 ;
14303 long val6 ;
14304 int ecode6 = 0 ;
14305 void *argp7 = 0 ;
14306 int res7 = 0 ;
14307 bool temp8 = false ;
14308 PyObject * obj0 = 0 ;
14309 PyObject * obj1 = 0 ;
14310 PyObject * obj2 = 0 ;
14311 PyObject * obj3 = 0 ;
14312 PyObject * obj4 = 0 ;
14313 PyObject * obj5 = 0 ;
14314 PyObject * obj6 = 0 ;
14315 PyObject * obj7 = 0 ;
14316 char * kwnames[] = {
14317 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14318 };
14319
14320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14322 if (!SWIG_IsOK(res1)) {
14323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14324 }
14325 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14327 if (!SWIG_IsOK(res2)) {
14328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14329 }
14330 arg2 = reinterpret_cast< wxWindow * >(argp2);
14331 if (obj2) {
14332 ecode3 = SWIG_AsVal_int(obj2, &val3);
14333 if (!SWIG_IsOK(ecode3)) {
14334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14335 }
14336 arg3 = static_cast< int >(val3);
14337 }
14338 if (obj3) {
d55e5bfc 14339 {
1bd55598
RD
14340 arg4 = &temp4;
14341 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14342 }
1bd55598
RD
14343 }
14344 if (obj4) {
d55e5bfc 14345 {
1bd55598
RD
14346 arg5 = &temp5;
14347 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14348 }
1bd55598
RD
14349 }
14350 if (obj5) {
14351 ecode6 = SWIG_AsVal_long(obj5, &val6);
14352 if (!SWIG_IsOK(ecode6)) {
14353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14354 }
14355 arg6 = static_cast< long >(val6);
14356 }
14357 if (obj6) {
14358 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14359 if (!SWIG_IsOK(res7)) {
14360 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14361 }
1bd55598
RD
14362 if (!argp7) {
14363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14364 }
1bd55598
RD
14365 arg7 = reinterpret_cast< wxValidator * >(argp7);
14366 }
14367 if (obj7) {
d55e5bfc 14368 {
1bd55598
RD
14369 arg8 = wxString_in_helper(obj7);
14370 if (arg8 == NULL) SWIG_fail;
14371 temp8 = true;
d55e5bfc 14372 }
1bd55598
RD
14373 }
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 {
14381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14382 }
14383 {
14384 if (temp8)
14385 delete arg8;
14386 }
14387 return resultobj;
14388fail:
14389 {
14390 if (temp8)
14391 delete arg8;
14392 }
14393 return NULL;
d55e5bfc
RD
14394}
14395
14396
1bd55598
RD
14397SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14398 PyObject *resultobj = 0;
14399 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14400 int result;
14401 void *argp1 = 0 ;
14402 int res1 = 0 ;
14403 PyObject *swig_obj[1] ;
14404
14405 if (!args) SWIG_fail;
14406 swig_obj[0] = args;
14407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14408 if (!SWIG_IsOK(res1)) {
14409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14410 }
14411 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14412 {
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14415 wxPyEndAllowThreads(__tstate);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 }
14418 resultobj = SWIG_From_int(static_cast< int >(result));
14419 return resultobj;
14420fail:
14421 return NULL;
d55e5bfc
RD
14422}
14423
14424
1bd55598
RD
14425SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14426 PyObject *resultobj = 0;
14427 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14428 int result;
14429 void *argp1 = 0 ;
14430 int res1 = 0 ;
14431 PyObject *swig_obj[1] ;
14432
14433 if (!args) SWIG_fail;
14434 swig_obj[0] = args;
14435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14436 if (!SWIG_IsOK(res1)) {
14437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14438 }
14439 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 resultobj = SWIG_From_int(static_cast< int >(result));
14447 return resultobj;
14448fail:
14449 return NULL;
d55e5bfc
RD
14450}
14451
14452
1bd55598
RD
14453SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14454 PyObject *resultobj = 0;
14455 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14456 int result;
14457 void *argp1 = 0 ;
14458 int res1 = 0 ;
14459 PyObject *swig_obj[1] ;
14460
14461 if (!args) SWIG_fail;
14462 swig_obj[0] = args;
14463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14464 if (!SWIG_IsOK(res1)) {
14465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14466 }
14467 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14471 wxPyEndAllowThreads(__tstate);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 }
14474 resultobj = SWIG_From_int(static_cast< int >(result));
14475 return resultobj;
14476fail:
14477 return NULL;
d55e5bfc
RD
14478}
14479
14480
1bd55598
RD
14481SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14482 PyObject *resultobj = 0;
14483 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14484 int result;
14485 void *argp1 = 0 ;
14486 int res1 = 0 ;
14487 PyObject *swig_obj[1] ;
14488
14489 if (!args) SWIG_fail;
14490 swig_obj[0] = args;
14491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14492 if (!SWIG_IsOK(res1)) {
14493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14494 }
14495 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (int)((wxScrollBar const *)arg1)->GetRange();
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 resultobj = SWIG_From_int(static_cast< int >(result));
14503 return resultobj;
14504fail:
14505 return NULL;
d55e5bfc
RD
14506}
14507
14508
1bd55598
RD
14509SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14510 PyObject *resultobj = 0;
14511 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14512 bool result;
14513 void *argp1 = 0 ;
14514 int res1 = 0 ;
14515 PyObject *swig_obj[1] ;
14516
14517 if (!args) SWIG_fail;
14518 swig_obj[0] = args;
14519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14520 if (!SWIG_IsOK(res1)) {
14521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14522 }
14523 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 {
14531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14532 }
14533 return resultobj;
14534fail:
14535 return NULL;
14536}
14537
14538
14539SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj = 0;
14541 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14542 int arg2 ;
14543 void *argp1 = 0 ;
14544 int res1 = 0 ;
14545 int val2 ;
14546 int ecode2 = 0 ;
14547 PyObject * obj0 = 0 ;
14548 PyObject * obj1 = 0 ;
14549 char * kwnames[] = {
14550 (char *) "self",(char *) "viewStart", NULL
14551 };
14552
14553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14555 if (!SWIG_IsOK(res1)) {
14556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14557 }
14558 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14559 ecode2 = SWIG_AsVal_int(obj1, &val2);
14560 if (!SWIG_IsOK(ecode2)) {
14561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14562 }
14563 arg2 = static_cast< int >(val2);
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 (arg1)->SetThumbPosition(arg2);
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 resultobj = SWIG_Py_Void();
14571 return resultobj;
14572fail:
14573 return NULL;
14574}
14575
14576
14577SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14578 PyObject *resultobj = 0;
14579 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14580 SwigValueWrapper<wxVisualAttributes > result;
14581 int val1 ;
14582 int ecode1 = 0 ;
14583 PyObject * obj0 = 0 ;
14584 char * kwnames[] = {
14585 (char *) "variant", NULL
14586 };
14587
14588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14589 if (obj0) {
14590 ecode1 = SWIG_AsVal_int(obj0, &val1);
14591 if (!SWIG_IsOK(ecode1)) {
14592 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14593 }
14594 arg1 = static_cast< wxWindowVariant >(val1);
14595 }
14596 {
14597 if (!wxPyCheckForApp()) SWIG_fail;
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14600 wxPyEndAllowThreads(__tstate);
14601 if (PyErr_Occurred()) SWIG_fail;
14602 }
14603 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14604 return resultobj;
14605fail:
14606 return NULL;
d55e5bfc
RD
14607}
14608
14609
1bd55598
RD
14610SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14611 PyObject *obj;
14612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14613 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14614 return SWIG_Py_Void();
d55e5bfc
RD
14615}
14616
1bd55598
RD
14617SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14618 return SWIG_Python_InitShadowInstance(args);
14619}
d55e5bfc 14620
1bd55598
RD
14621SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14622 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14623 return 1;
14624}
14625
14626
14627SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14628 PyObject *pyobj = 0;
14629
14630 {
d55e5bfc 14631#if wxUSE_UNICODE
1bd55598 14632 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14633#else
1bd55598 14634 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14635#endif
1bd55598
RD
14636 }
14637 return pyobj;
d55e5bfc
RD
14638}
14639
14640
1bd55598
RD
14641SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14642 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14643 return 1;
d55e5bfc
RD
14644}
14645
14646
1bd55598
RD
14647SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14648 PyObject *pyobj = 0;
14649
14650 {
14651#if wxUSE_UNICODE
14652 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14653#else
14654 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14655#endif
14656 }
14657 return pyobj;
14658}
14659
14660
14661SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14662 PyObject *resultobj = 0;
14663 wxWindow *arg1 = (wxWindow *) 0 ;
14664 int arg2 = (int) -1 ;
14665 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14666 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14667 wxSize const &arg4_defvalue = wxDefaultSize ;
14668 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14669 long arg5 = (long) wxSP_HORIZONTAL ;
14670 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14671 wxString *arg6 = (wxString *) &arg6_defvalue ;
14672 wxSpinButton *result = 0 ;
14673 void *argp1 = 0 ;
14674 int res1 = 0 ;
14675 int val2 ;
14676 int ecode2 = 0 ;
14677 wxPoint temp3 ;
14678 wxSize temp4 ;
14679 long val5 ;
14680 int ecode5 = 0 ;
14681 bool temp6 = false ;
14682 PyObject * obj0 = 0 ;
14683 PyObject * obj1 = 0 ;
14684 PyObject * obj2 = 0 ;
14685 PyObject * obj3 = 0 ;
14686 PyObject * obj4 = 0 ;
14687 PyObject * obj5 = 0 ;
14688 char * kwnames[] = {
14689 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14690 };
14691
14692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14694 if (!SWIG_IsOK(res1)) {
14695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14696 }
14697 arg1 = reinterpret_cast< wxWindow * >(argp1);
14698 if (obj1) {
14699 ecode2 = SWIG_AsVal_int(obj1, &val2);
14700 if (!SWIG_IsOK(ecode2)) {
14701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14702 }
14703 arg2 = static_cast< int >(val2);
14704 }
14705 if (obj2) {
d55e5bfc 14706 {
1bd55598
RD
14707 arg3 = &temp3;
14708 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14709 }
1bd55598
RD
14710 }
14711 if (obj3) {
d55e5bfc 14712 {
1bd55598
RD
14713 arg4 = &temp4;
14714 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14715 }
1bd55598
RD
14716 }
14717 if (obj4) {
14718 ecode5 = SWIG_AsVal_long(obj4, &val5);
14719 if (!SWIG_IsOK(ecode5)) {
14720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14721 }
14722 arg5 = static_cast< long >(val5);
14723 }
14724 if (obj5) {
d55e5bfc 14725 {
1bd55598
RD
14726 arg6 = wxString_in_helper(obj5);
14727 if (arg6 == NULL) SWIG_fail;
14728 temp6 = true;
d55e5bfc 14729 }
1bd55598
RD
14730 }
14731 {
14732 if (!wxPyCheckForApp()) SWIG_fail;
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14739 {
14740 if (temp6)
14741 delete arg6;
14742 }
14743 return resultobj;
14744fail:
14745 {
14746 if (temp6)
14747 delete arg6;
14748 }
14749 return NULL;
d55e5bfc
RD
14750}
14751
14752
1bd55598
RD
14753SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14754 PyObject *resultobj = 0;
14755 wxSpinButton *result = 0 ;
14756
14757 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14758 {
14759 if (!wxPyCheckForApp()) SWIG_fail;
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 result = (wxSpinButton *)new wxSpinButton();
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14766 return resultobj;
14767fail:
14768 return NULL;
14769}
14770
14771
14772SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14773 PyObject *resultobj = 0;
14774 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14775 wxWindow *arg2 = (wxWindow *) 0 ;
14776 int arg3 = (int) -1 ;
14777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14779 wxSize const &arg5_defvalue = wxDefaultSize ;
14780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14781 long arg6 = (long) wxSP_HORIZONTAL ;
14782 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14783 wxString *arg7 = (wxString *) &arg7_defvalue ;
14784 bool result;
14785 void *argp1 = 0 ;
14786 int res1 = 0 ;
14787 void *argp2 = 0 ;
14788 int res2 = 0 ;
14789 int val3 ;
14790 int ecode3 = 0 ;
14791 wxPoint temp4 ;
14792 wxSize temp5 ;
14793 long val6 ;
14794 int ecode6 = 0 ;
14795 bool temp7 = false ;
14796 PyObject * obj0 = 0 ;
14797 PyObject * obj1 = 0 ;
14798 PyObject * obj2 = 0 ;
14799 PyObject * obj3 = 0 ;
14800 PyObject * obj4 = 0 ;
14801 PyObject * obj5 = 0 ;
14802 PyObject * obj6 = 0 ;
14803 char * kwnames[] = {
14804 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14805 };
14806
14807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14809 if (!SWIG_IsOK(res1)) {
14810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14811 }
14812 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14813 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14814 if (!SWIG_IsOK(res2)) {
14815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14816 }
14817 arg2 = reinterpret_cast< wxWindow * >(argp2);
14818 if (obj2) {
14819 ecode3 = SWIG_AsVal_int(obj2, &val3);
14820 if (!SWIG_IsOK(ecode3)) {
14821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14822 }
14823 arg3 = static_cast< int >(val3);
14824 }
14825 if (obj3) {
d55e5bfc 14826 {
1bd55598
RD
14827 arg4 = &temp4;
14828 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14829 }
1bd55598
RD
14830 }
14831 if (obj4) {
d55e5bfc 14832 {
1bd55598
RD
14833 arg5 = &temp5;
14834 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14835 }
1bd55598
RD
14836 }
14837 if (obj5) {
14838 ecode6 = SWIG_AsVal_long(obj5, &val6);
14839 if (!SWIG_IsOK(ecode6)) {
14840 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14841 }
14842 arg6 = static_cast< long >(val6);
14843 }
14844 if (obj6) {
14845 {
14846 arg7 = wxString_in_helper(obj6);
14847 if (arg7 == NULL) SWIG_fail;
14848 temp7 = true;
14849 }
14850 }
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 {
14858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14859 }
14860 {
14861 if (temp7)
14862 delete arg7;
14863 }
14864 return resultobj;
14865fail:
14866 {
14867 if (temp7)
14868 delete arg7;
14869 }
14870 return NULL;
d55e5bfc
RD
14871}
14872
14873
1bd55598
RD
14874SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14875 PyObject *resultobj = 0;
14876 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14877 int result;
14878 void *argp1 = 0 ;
14879 int res1 = 0 ;
14880 PyObject *swig_obj[1] ;
14881
14882 if (!args) SWIG_fail;
14883 swig_obj[0] = args;
14884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14887 }
14888 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14889 {
14890 PyThreadState* __tstate = wxPyBeginAllowThreads();
14891 result = (int)((wxSpinButton const *)arg1)->GetValue();
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
14895 resultobj = SWIG_From_int(static_cast< int >(result));
14896 return resultobj;
14897fail:
14898 return NULL;
d55e5bfc
RD
14899}
14900
14901
1bd55598
RD
14902SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14903 PyObject *resultobj = 0;
14904 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14905 int result;
14906 void *argp1 = 0 ;
14907 int res1 = 0 ;
14908 PyObject *swig_obj[1] ;
14909
14910 if (!args) SWIG_fail;
14911 swig_obj[0] = args;
14912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14913 if (!SWIG_IsOK(res1)) {
14914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14915 }
14916 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (int)((wxSpinButton const *)arg1)->GetMin();
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 resultobj = SWIG_From_int(static_cast< int >(result));
14924 return resultobj;
14925fail:
14926 return NULL;
d55e5bfc
RD
14927}
14928
14929
1bd55598
RD
14930SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14931 PyObject *resultobj = 0;
14932 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14933 int result;
14934 void *argp1 = 0 ;
14935 int res1 = 0 ;
14936 PyObject *swig_obj[1] ;
14937
14938 if (!args) SWIG_fail;
14939 swig_obj[0] = args;
14940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14943 }
14944 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 result = (int)((wxSpinButton const *)arg1)->GetMax();
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 resultobj = SWIG_From_int(static_cast< int >(result));
14952 return resultobj;
14953fail:
14954 return NULL;
14955}
14956
14957
14958SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj = 0;
14960 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14961 int arg2 ;
14962 void *argp1 = 0 ;
14963 int res1 = 0 ;
14964 int val2 ;
14965 int ecode2 = 0 ;
14966 PyObject * obj0 = 0 ;
14967 PyObject * obj1 = 0 ;
14968 char * kwnames[] = {
14969 (char *) "self",(char *) "val", NULL
14970 };
14971
14972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14976 }
14977 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14978 ecode2 = SWIG_AsVal_int(obj1, &val2);
14979 if (!SWIG_IsOK(ecode2)) {
14980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14981 }
14982 arg2 = static_cast< int >(val2);
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 (arg1)->SetValue(arg2);
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = SWIG_Py_Void();
14990 return resultobj;
14991fail:
14992 return NULL;
14993}
14994
14995
14996SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj = 0;
14998 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14999 int arg2 ;
15000 void *argp1 = 0 ;
15001 int res1 = 0 ;
15002 int val2 ;
15003 int ecode2 = 0 ;
15004 PyObject * obj0 = 0 ;
15005 PyObject * obj1 = 0 ;
15006 char * kwnames[] = {
15007 (char *) "self",(char *) "minVal", NULL
15008 };
15009
15010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15012 if (!SWIG_IsOK(res1)) {
15013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15014 }
15015 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15016 ecode2 = SWIG_AsVal_int(obj1, &val2);
15017 if (!SWIG_IsOK(ecode2)) {
15018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15019 }
15020 arg2 = static_cast< int >(val2);
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 (arg1)->SetMin(arg2);
15024 wxPyEndAllowThreads(__tstate);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 }
15027 resultobj = SWIG_Py_Void();
15028 return resultobj;
15029fail:
15030 return NULL;
15031}
15032
15033
15034SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj = 0;
15036 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15037 int arg2 ;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 int val2 ;
15041 int ecode2 = 0 ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044 char * kwnames[] = {
15045 (char *) "self",(char *) "maxVal", NULL
15046 };
15047
15048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15050 if (!SWIG_IsOK(res1)) {
15051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15052 }
15053 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15054 ecode2 = SWIG_AsVal_int(obj1, &val2);
15055 if (!SWIG_IsOK(ecode2)) {
15056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15057 }
15058 arg2 = static_cast< int >(val2);
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 (arg1)->SetMax(arg2);
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = SWIG_Py_Void();
15066 return resultobj;
15067fail:
15068 return NULL;
15069}
15070
15071
15072SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj = 0;
15074 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15075 int arg2 ;
15076 int arg3 ;
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 int val2 ;
15080 int ecode2 = 0 ;
15081 int val3 ;
15082 int ecode3 = 0 ;
15083 PyObject * obj0 = 0 ;
15084 PyObject * obj1 = 0 ;
15085 PyObject * obj2 = 0 ;
15086 char * kwnames[] = {
15087 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15088 };
15089
15090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15092 if (!SWIG_IsOK(res1)) {
15093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15094 }
15095 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15096 ecode2 = SWIG_AsVal_int(obj1, &val2);
15097 if (!SWIG_IsOK(ecode2)) {
15098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15099 }
15100 arg2 = static_cast< int >(val2);
15101 ecode3 = SWIG_AsVal_int(obj2, &val3);
15102 if (!SWIG_IsOK(ecode3)) {
15103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15104 }
15105 arg3 = static_cast< int >(val3);
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 (arg1)->SetRange(arg2,arg3);
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = SWIG_Py_Void();
15113 return resultobj;
15114fail:
15115 return NULL;
d55e5bfc
RD
15116}
15117
15118
1bd55598
RD
15119SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15120 PyObject *resultobj = 0;
15121 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15122 bool result;
15123 void *argp1 = 0 ;
15124 int res1 = 0 ;
15125 PyObject *swig_obj[1] ;
15126
15127 if (!args) SWIG_fail;
15128 swig_obj[0] = args;
15129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15130 if (!SWIG_IsOK(res1)) {
15131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15132 }
15133 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 {
15141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15142 }
15143 return resultobj;
15144fail:
15145 return NULL;
d55e5bfc
RD
15146}
15147
15148
1bd55598
RD
15149SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15150 PyObject *resultobj = 0;
15151 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15152 SwigValueWrapper<wxVisualAttributes > result;
15153 int val1 ;
15154 int ecode1 = 0 ;
15155 PyObject * obj0 = 0 ;
15156 char * kwnames[] = {
15157 (char *) "variant", NULL
15158 };
15159
15160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15161 if (obj0) {
15162 ecode1 = SWIG_AsVal_int(obj0, &val1);
15163 if (!SWIG_IsOK(ecode1)) {
15164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15165 }
15166 arg1 = static_cast< wxWindowVariant >(val1);
15167 }
15168 {
15169 if (!wxPyCheckForApp()) SWIG_fail;
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15176 return resultobj;
15177fail:
15178 return NULL;
15179}
15180
15181
15182SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15183 PyObject *obj;
15184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15185 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15186 return SWIG_Py_Void();
15187}
15188
15189SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15190 return SWIG_Python_InitShadowInstance(args);
15191}
15192
15193SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15194 PyObject *resultobj = 0;
15195 wxWindow *arg1 = (wxWindow *) 0 ;
15196 int arg2 = (int) -1 ;
15197 wxString const &arg3_defvalue = wxPyEmptyString ;
15198 wxString *arg3 = (wxString *) &arg3_defvalue ;
15199 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15200 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15201 wxSize const &arg5_defvalue = wxDefaultSize ;
15202 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15203 long arg6 = (long) wxSP_ARROW_KEYS ;
15204 int arg7 = (int) 0 ;
15205 int arg8 = (int) 100 ;
15206 int arg9 = (int) 0 ;
15207 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15208 wxString *arg10 = (wxString *) &arg10_defvalue ;
15209 wxSpinCtrl *result = 0 ;
15210 void *argp1 = 0 ;
15211 int res1 = 0 ;
15212 int val2 ;
15213 int ecode2 = 0 ;
15214 bool temp3 = false ;
15215 wxPoint temp4 ;
15216 wxSize temp5 ;
15217 long val6 ;
15218 int ecode6 = 0 ;
15219 int val7 ;
15220 int ecode7 = 0 ;
15221 int val8 ;
15222 int ecode8 = 0 ;
15223 int val9 ;
15224 int ecode9 = 0 ;
15225 bool temp10 = false ;
15226 PyObject * obj0 = 0 ;
15227 PyObject * obj1 = 0 ;
15228 PyObject * obj2 = 0 ;
15229 PyObject * obj3 = 0 ;
15230 PyObject * obj4 = 0 ;
15231 PyObject * obj5 = 0 ;
15232 PyObject * obj6 = 0 ;
15233 PyObject * obj7 = 0 ;
15234 PyObject * obj8 = 0 ;
15235 PyObject * obj9 = 0 ;
15236 char * kwnames[] = {
15237 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15238 };
15239
15240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15242 if (!SWIG_IsOK(res1)) {
15243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15244 }
15245 arg1 = reinterpret_cast< wxWindow * >(argp1);
15246 if (obj1) {
15247 ecode2 = SWIG_AsVal_int(obj1, &val2);
15248 if (!SWIG_IsOK(ecode2)) {
15249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15250 }
15251 arg2 = static_cast< int >(val2);
15252 }
15253 if (obj2) {
d55e5bfc 15254 {
1bd55598
RD
15255 arg3 = wxString_in_helper(obj2);
15256 if (arg3 == NULL) SWIG_fail;
15257 temp3 = true;
d55e5bfc 15258 }
1bd55598
RD
15259 }
15260 if (obj3) {
d55e5bfc 15261 {
1bd55598
RD
15262 arg4 = &temp4;
15263 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15264 }
1bd55598
RD
15265 }
15266 if (obj4) {
d55e5bfc 15267 {
1bd55598
RD
15268 arg5 = &temp5;
15269 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15270 }
1bd55598
RD
15271 }
15272 if (obj5) {
15273 ecode6 = SWIG_AsVal_long(obj5, &val6);
15274 if (!SWIG_IsOK(ecode6)) {
15275 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15276 }
15277 arg6 = static_cast< long >(val6);
15278 }
15279 if (obj6) {
15280 ecode7 = SWIG_AsVal_int(obj6, &val7);
15281 if (!SWIG_IsOK(ecode7)) {
15282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15283 }
15284 arg7 = static_cast< int >(val7);
15285 }
15286 if (obj7) {
15287 ecode8 = SWIG_AsVal_int(obj7, &val8);
15288 if (!SWIG_IsOK(ecode8)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15290 }
15291 arg8 = static_cast< int >(val8);
15292 }
15293 if (obj8) {
15294 ecode9 = SWIG_AsVal_int(obj8, &val9);
15295 if (!SWIG_IsOK(ecode9)) {
15296 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15297 }
15298 arg9 = static_cast< int >(val9);
15299 }
15300 if (obj9) {
d55e5bfc 15301 {
1bd55598
RD
15302 arg10 = wxString_in_helper(obj9);
15303 if (arg10 == NULL) SWIG_fail;
15304 temp10 = true;
d55e5bfc 15305 }
1bd55598
RD
15306 }
15307 {
15308 if (!wxPyCheckForApp()) SWIG_fail;
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15315 {
15316 if (temp3)
15317 delete arg3;
15318 }
15319 {
15320 if (temp10)
15321 delete arg10;
15322 }
15323 return resultobj;
15324fail:
15325 {
15326 if (temp3)
15327 delete arg3;
15328 }
15329 {
15330 if (temp10)
15331 delete arg10;
15332 }
15333 return NULL;
d55e5bfc
RD
15334}
15335
15336
1bd55598
RD
15337SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15338 PyObject *resultobj = 0;
15339 wxSpinCtrl *result = 0 ;
15340
15341 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15342 {
15343 if (!wxPyCheckForApp()) SWIG_fail;
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = (wxSpinCtrl *)new wxSpinCtrl();
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15350 return resultobj;
15351fail:
15352 return NULL;
15353}
15354
15355
15356SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15357 PyObject *resultobj = 0;
15358 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15359 wxWindow *arg2 = (wxWindow *) 0 ;
15360 int arg3 = (int) -1 ;
15361 wxString const &arg4_defvalue = wxPyEmptyString ;
15362 wxString *arg4 = (wxString *) &arg4_defvalue ;
15363 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15364 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15365 wxSize const &arg6_defvalue = wxDefaultSize ;
15366 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15367 long arg7 = (long) wxSP_ARROW_KEYS ;
15368 int arg8 = (int) 0 ;
15369 int arg9 = (int) 100 ;
15370 int arg10 = (int) 0 ;
15371 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15372 wxString *arg11 = (wxString *) &arg11_defvalue ;
15373 bool result;
15374 void *argp1 = 0 ;
15375 int res1 = 0 ;
15376 void *argp2 = 0 ;
15377 int res2 = 0 ;
15378 int val3 ;
15379 int ecode3 = 0 ;
15380 bool temp4 = false ;
15381 wxPoint temp5 ;
15382 wxSize temp6 ;
15383 long val7 ;
15384 int ecode7 = 0 ;
15385 int val8 ;
15386 int ecode8 = 0 ;
15387 int val9 ;
15388 int ecode9 = 0 ;
15389 int val10 ;
15390 int ecode10 = 0 ;
15391 bool temp11 = false ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 PyObject * obj2 = 0 ;
15395 PyObject * obj3 = 0 ;
15396 PyObject * obj4 = 0 ;
15397 PyObject * obj5 = 0 ;
15398 PyObject * obj6 = 0 ;
15399 PyObject * obj7 = 0 ;
15400 PyObject * obj8 = 0 ;
15401 PyObject * obj9 = 0 ;
15402 PyObject * obj10 = 0 ;
15403 char * kwnames[] = {
15404 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15405 };
15406
15407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15409 if (!SWIG_IsOK(res1)) {
15410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15411 }
15412 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15414 if (!SWIG_IsOK(res2)) {
15415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15416 }
15417 arg2 = reinterpret_cast< wxWindow * >(argp2);
15418 if (obj2) {
15419 ecode3 = SWIG_AsVal_int(obj2, &val3);
15420 if (!SWIG_IsOK(ecode3)) {
15421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15422 }
15423 arg3 = static_cast< int >(val3);
15424 }
15425 if (obj3) {
36ed4f51 15426 {
1bd55598
RD
15427 arg4 = wxString_in_helper(obj3);
15428 if (arg4 == NULL) SWIG_fail;
15429 temp4 = true;
36ed4f51 15430 }
1bd55598
RD
15431 }
15432 if (obj4) {
36ed4f51 15433 {
1bd55598
RD
15434 arg5 = &temp5;
15435 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15436 }
1bd55598
RD
15437 }
15438 if (obj5) {
d55e5bfc 15439 {
1bd55598
RD
15440 arg6 = &temp6;
15441 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15442 }
1bd55598
RD
15443 }
15444 if (obj6) {
15445 ecode7 = SWIG_AsVal_long(obj6, &val7);
15446 if (!SWIG_IsOK(ecode7)) {
15447 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15448 }
15449 arg7 = static_cast< long >(val7);
15450 }
15451 if (obj7) {
15452 ecode8 = SWIG_AsVal_int(obj7, &val8);
15453 if (!SWIG_IsOK(ecode8)) {
15454 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15455 }
15456 arg8 = static_cast< int >(val8);
15457 }
15458 if (obj8) {
15459 ecode9 = SWIG_AsVal_int(obj8, &val9);
15460 if (!SWIG_IsOK(ecode9)) {
15461 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15462 }
15463 arg9 = static_cast< int >(val9);
15464 }
15465 if (obj9) {
15466 ecode10 = SWIG_AsVal_int(obj9, &val10);
15467 if (!SWIG_IsOK(ecode10)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15469 }
15470 arg10 = static_cast< int >(val10);
15471 }
15472 if (obj10) {
15473 {
15474 arg11 = wxString_in_helper(obj10);
15475 if (arg11 == NULL) SWIG_fail;
15476 temp11 = true;
15477 }
15478 }
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 {
15486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15487 }
15488 {
15489 if (temp4)
15490 delete arg4;
15491 }
15492 {
15493 if (temp11)
15494 delete arg11;
15495 }
15496 return resultobj;
15497fail:
15498 {
15499 if (temp4)
15500 delete arg4;
15501 }
15502 {
15503 if (temp11)
15504 delete arg11;
15505 }
15506 return NULL;
d55e5bfc
RD
15507}
15508
15509
1bd55598
RD
15510SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15511 PyObject *resultobj = 0;
15512 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15513 int result;
15514 void *argp1 = 0 ;
15515 int res1 = 0 ;
15516 PyObject *swig_obj[1] ;
15517
15518 if (!args) SWIG_fail;
15519 swig_obj[0] = args;
15520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15523 }
15524 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 resultobj = SWIG_From_int(static_cast< int >(result));
15532 return resultobj;
15533fail:
15534 return NULL;
15535}
15536
15537
15538SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15539 PyObject *resultobj = 0;
15540 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15541 int arg2 ;
15542 void *argp1 = 0 ;
15543 int res1 = 0 ;
15544 int val2 ;
15545 int ecode2 = 0 ;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 char * kwnames[] = {
15549 (char *) "self",(char *) "value", NULL
15550 };
15551
15552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15554 if (!SWIG_IsOK(res1)) {
15555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15556 }
15557 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15558 ecode2 = SWIG_AsVal_int(obj1, &val2);
15559 if (!SWIG_IsOK(ecode2)) {
15560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15561 }
15562 arg2 = static_cast< int >(val2);
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 (arg1)->SetValue(arg2);
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 resultobj = SWIG_Py_Void();
15570 return resultobj;
15571fail:
15572 return NULL;
15573}
15574
15575
15576SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj = 0;
15578 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15579 wxString *arg2 = 0 ;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 bool temp2 = false ;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 char * kwnames[] = {
15586 (char *) "self",(char *) "text", NULL
15587 };
15588
15589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15591 if (!SWIG_IsOK(res1)) {
15592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15593 }
15594 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15595 {
15596 arg2 = wxString_in_helper(obj1);
15597 if (arg2 == NULL) SWIG_fail;
15598 temp2 = true;
15599 }
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 (arg1)->SetValue((wxString const &)*arg2);
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 resultobj = SWIG_Py_Void();
15607 {
15608 if (temp2)
15609 delete arg2;
15610 }
15611 return resultobj;
15612fail:
15613 {
15614 if (temp2)
15615 delete arg2;
15616 }
15617 return NULL;
15618}
15619
15620
15621SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj = 0;
15623 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15624 int arg2 ;
15625 int arg3 ;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 int val2 ;
15629 int ecode2 = 0 ;
15630 int val3 ;
15631 int ecode3 = 0 ;
15632 PyObject * obj0 = 0 ;
15633 PyObject * obj1 = 0 ;
15634 PyObject * obj2 = 0 ;
15635 char * kwnames[] = {
15636 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15637 };
15638
15639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15641 if (!SWIG_IsOK(res1)) {
15642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15643 }
15644 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15645 ecode2 = SWIG_AsVal_int(obj1, &val2);
15646 if (!SWIG_IsOK(ecode2)) {
15647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15648 }
15649 arg2 = static_cast< int >(val2);
15650 ecode3 = SWIG_AsVal_int(obj2, &val3);
15651 if (!SWIG_IsOK(ecode3)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15653 }
15654 arg3 = static_cast< int >(val3);
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 (arg1)->SetRange(arg2,arg3);
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 resultobj = SWIG_Py_Void();
15662 return resultobj;
15663fail:
15664 return NULL;
d55e5bfc
RD
15665}
15666
15667
1bd55598
RD
15668SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15669 PyObject *resultobj = 0;
15670 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15671 int result;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 PyObject *swig_obj[1] ;
15675
15676 if (!args) SWIG_fail;
15677 swig_obj[0] = args;
15678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15679 if (!SWIG_IsOK(res1)) {
15680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15681 }
15682 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15686 wxPyEndAllowThreads(__tstate);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 resultobj = SWIG_From_int(static_cast< int >(result));
15690 return resultobj;
15691fail:
15692 return NULL;
d55e5bfc
RD
15693}
15694
15695
1bd55598
RD
15696SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 PyObject *resultobj = 0;
15698 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15699 int result;
15700 void *argp1 = 0 ;
15701 int res1 = 0 ;
15702 PyObject *swig_obj[1] ;
15703
15704 if (!args) SWIG_fail;
15705 swig_obj[0] = args;
15706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15707 if (!SWIG_IsOK(res1)) {
15708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15709 }
15710 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_From_int(static_cast< int >(result));
15718 return resultobj;
15719fail:
15720 return NULL;
15721}
15722
15723
15724SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15725 PyObject *resultobj = 0;
15726 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15727 long arg2 ;
15728 long arg3 ;
15729 void *argp1 = 0 ;
15730 int res1 = 0 ;
15731 long val2 ;
15732 int ecode2 = 0 ;
15733 long val3 ;
15734 int ecode3 = 0 ;
15735 PyObject * obj0 = 0 ;
15736 PyObject * obj1 = 0 ;
15737 PyObject * obj2 = 0 ;
15738 char * kwnames[] = {
2131d850 15739 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15740 };
15741
15742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15744 if (!SWIG_IsOK(res1)) {
15745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15746 }
15747 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15748 ecode2 = SWIG_AsVal_long(obj1, &val2);
15749 if (!SWIG_IsOK(ecode2)) {
15750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15751 }
15752 arg2 = static_cast< long >(val2);
15753 ecode3 = SWIG_AsVal_long(obj2, &val3);
15754 if (!SWIG_IsOK(ecode3)) {
15755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15756 }
15757 arg3 = static_cast< long >(val3);
15758 {
15759 PyThreadState* __tstate = wxPyBeginAllowThreads();
15760 (arg1)->SetSelection(arg2,arg3);
15761 wxPyEndAllowThreads(__tstate);
15762 if (PyErr_Occurred()) SWIG_fail;
15763 }
15764 resultobj = SWIG_Py_Void();
15765 return resultobj;
15766fail:
15767 return NULL;
15768}
15769
15770
15771SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15772 PyObject *resultobj = 0;
15773 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15774 SwigValueWrapper<wxVisualAttributes > result;
15775 int val1 ;
15776 int ecode1 = 0 ;
15777 PyObject * obj0 = 0 ;
15778 char * kwnames[] = {
15779 (char *) "variant", NULL
15780 };
15781
15782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15783 if (obj0) {
15784 ecode1 = SWIG_AsVal_int(obj0, &val1);
15785 if (!SWIG_IsOK(ecode1)) {
15786 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15787 }
15788 arg1 = static_cast< wxWindowVariant >(val1);
15789 }
15790 {
15791 if (!wxPyCheckForApp()) SWIG_fail;
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15794 wxPyEndAllowThreads(__tstate);
15795 if (PyErr_Occurred()) SWIG_fail;
15796 }
15797 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15798 return resultobj;
15799fail:
15800 return NULL;
d55e5bfc
RD
15801}
15802
15803
1bd55598
RD
15804SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15805 PyObject *obj;
15806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15807 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15808 return SWIG_Py_Void();
d55e5bfc
RD
15809}
15810
1bd55598
RD
15811SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15812 return SWIG_Python_InitShadowInstance(args);
15813}
d55e5bfc 15814
1bd55598
RD
15815SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj = 0;
15817 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15818 int arg2 = (int) 0 ;
15819 wxSpinEvent *result = 0 ;
15820 int val1 ;
15821 int ecode1 = 0 ;
15822 int val2 ;
15823 int ecode2 = 0 ;
15824 PyObject * obj0 = 0 ;
15825 PyObject * obj1 = 0 ;
15826 char * kwnames[] = {
15827 (char *) "commandType",(char *) "winid", NULL
15828 };
15829
15830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15831 if (obj0) {
15832 ecode1 = SWIG_AsVal_int(obj0, &val1);
15833 if (!SWIG_IsOK(ecode1)) {
15834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15835 }
15836 arg1 = static_cast< wxEventType >(val1);
15837 }
15838 if (obj1) {
15839 ecode2 = SWIG_AsVal_int(obj1, &val2);
15840 if (!SWIG_IsOK(ecode2)) {
15841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15842 }
15843 arg2 = static_cast< int >(val2);
15844 }
15845 {
15846 PyThreadState* __tstate = wxPyBeginAllowThreads();
15847 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15852 return resultobj;
15853fail:
15854 return NULL;
d55e5bfc
RD
15855}
15856
15857
1bd55598
RD
15858SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15859 PyObject *resultobj = 0;
15860 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15861 int result;
15862 void *argp1 = 0 ;
15863 int res1 = 0 ;
15864 PyObject *swig_obj[1] ;
15865
15866 if (!args) SWIG_fail;
15867 swig_obj[0] = args;
15868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15869 if (!SWIG_IsOK(res1)) {
15870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15871 }
15872 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15876 wxPyEndAllowThreads(__tstate);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 resultobj = SWIG_From_int(static_cast< int >(result));
15880 return resultobj;
15881fail:
15882 return NULL;
15883}
15884
15885
15886SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15887 PyObject *resultobj = 0;
15888 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15889 int arg2 ;
15890 void *argp1 = 0 ;
15891 int res1 = 0 ;
15892 int val2 ;
15893 int ecode2 = 0 ;
15894 PyObject * obj0 = 0 ;
15895 PyObject * obj1 = 0 ;
15896 char * kwnames[] = {
15897 (char *) "self",(char *) "pos", NULL
15898 };
15899
15900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15902 if (!SWIG_IsOK(res1)) {
15903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15904 }
15905 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15906 ecode2 = SWIG_AsVal_int(obj1, &val2);
15907 if (!SWIG_IsOK(ecode2)) {
15908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15909 }
15910 arg2 = static_cast< int >(val2);
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 (arg1)->SetPosition(arg2);
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 resultobj = SWIG_Py_Void();
15918 return resultobj;
15919fail:
15920 return NULL;
d55e5bfc
RD
15921}
15922
15923
1bd55598
RD
15924SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15925 PyObject *obj;
15926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15927 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15928 return SWIG_Py_Void();
d55e5bfc
RD
15929}
15930
1bd55598
RD
15931SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15932 return SWIG_Python_InitShadowInstance(args);
15933}
d55e5bfc 15934
1bd55598
RD
15935SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15936 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15937 return 1;
d55e5bfc
RD
15938}
15939
15940
1bd55598
RD
15941SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15942 PyObject *pyobj = 0;
15943
15944 {
15945#if wxUSE_UNICODE
15946 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15947#else
15948 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15949#endif
15950 }
15951 return pyobj;
d55e5bfc
RD
15952}
15953
15954
1bd55598
RD
15955SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15956 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15957 return 1;
15958}
15959
15960
15961SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15962 PyObject *pyobj = 0;
15963
15964 {
15965#if wxUSE_UNICODE
15966 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15967#else
15968 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15969#endif
15970 }
15971 return pyobj;
15972}
15973
15974
15975SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj = 0;
15977 wxWindow *arg1 = (wxWindow *) 0 ;
15978 int arg2 = (int) -1 ;
15979 wxString const &arg3_defvalue = wxPyEmptyString ;
15980 wxString *arg3 = (wxString *) &arg3_defvalue ;
15981 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15982 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15983 wxSize const &arg5_defvalue = wxDefaultSize ;
15984 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15985 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15986 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15987 int arg7 = (int) 0 ;
15988 long arg8 = (long) wxRA_HORIZONTAL ;
15989 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15990 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15991 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15992 wxString *arg10 = (wxString *) &arg10_defvalue ;
15993 wxRadioBox *result = 0 ;
15994 void *argp1 = 0 ;
15995 int res1 = 0 ;
15996 int val2 ;
15997 int ecode2 = 0 ;
15998 bool temp3 = false ;
15999 wxPoint temp4 ;
16000 wxSize temp5 ;
16001 bool temp6 = false ;
16002 int val7 ;
16003 int ecode7 = 0 ;
16004 long val8 ;
16005 int ecode8 = 0 ;
16006 void *argp9 = 0 ;
16007 int res9 = 0 ;
16008 bool temp10 = false ;
16009 PyObject * obj0 = 0 ;
16010 PyObject * obj1 = 0 ;
16011 PyObject * obj2 = 0 ;
16012 PyObject * obj3 = 0 ;
16013 PyObject * obj4 = 0 ;
16014 PyObject * obj5 = 0 ;
16015 PyObject * obj6 = 0 ;
16016 PyObject * obj7 = 0 ;
16017 PyObject * obj8 = 0 ;
16018 PyObject * obj9 = 0 ;
16019 char * kwnames[] = {
16020 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16021 };
16022
16023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16025 if (!SWIG_IsOK(res1)) {
16026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16027 }
16028 arg1 = reinterpret_cast< wxWindow * >(argp1);
16029 if (obj1) {
16030 ecode2 = SWIG_AsVal_int(obj1, &val2);
16031 if (!SWIG_IsOK(ecode2)) {
16032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16033 }
16034 arg2 = static_cast< int >(val2);
16035 }
16036 if (obj2) {
36ed4f51 16037 {
1bd55598
RD
16038 arg3 = wxString_in_helper(obj2);
16039 if (arg3 == NULL) SWIG_fail;
16040 temp3 = true;
36ed4f51 16041 }
1bd55598
RD
16042 }
16043 if (obj3) {
36ed4f51 16044 {
1bd55598
RD
16045 arg4 = &temp4;
16046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16047 }
1bd55598
RD
16048 }
16049 if (obj4) {
d55e5bfc 16050 {
1bd55598
RD
16051 arg5 = &temp5;
16052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16053 }
1bd55598
RD
16054 }
16055 if (obj5) {
d55e5bfc 16056 {
1bd55598
RD
16057 if (! PySequence_Check(obj5)) {
16058 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16059 SWIG_fail;
16060 }
16061 arg6 = new wxArrayString;
16062 temp6 = true;
16063 int i, len=PySequence_Length(obj5);
16064 for (i=0; i<len; i++) {
16065 PyObject* item = PySequence_GetItem(obj5, i);
16066 wxString* s = wxString_in_helper(item);
16067 if (PyErr_Occurred()) SWIG_fail;
16068 arg6->Add(*s);
16069 delete s;
16070 Py_DECREF(item);
16071 }
d55e5bfc 16072 }
1bd55598
RD
16073 }
16074 if (obj6) {
16075 ecode7 = SWIG_AsVal_int(obj6, &val7);
16076 if (!SWIG_IsOK(ecode7)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16078 }
16079 arg7 = static_cast< int >(val7);
16080 }
16081 if (obj7) {
16082 ecode8 = SWIG_AsVal_long(obj7, &val8);
16083 if (!SWIG_IsOK(ecode8)) {
16084 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16085 }
16086 arg8 = static_cast< long >(val8);
16087 }
16088 if (obj8) {
16089 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16090 if (!SWIG_IsOK(res9)) {
16091 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16092 }
1bd55598
RD
16093 if (!argp9) {
16094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16095 }
1bd55598
RD
16096 arg9 = reinterpret_cast< wxValidator * >(argp9);
16097 }
16098 if (obj9) {
d55e5bfc 16099 {
1bd55598
RD
16100 arg10 = wxString_in_helper(obj9);
16101 if (arg10 == NULL) SWIG_fail;
16102 temp10 = true;
d55e5bfc 16103 }
1bd55598
RD
16104 }
16105 {
16106 if (!wxPyCheckForApp()) SWIG_fail;
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 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);
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16113 {
16114 if (temp3)
16115 delete arg3;
16116 }
16117 {
16118 if (temp6) delete arg6;
16119 }
16120 {
16121 if (temp10)
16122 delete arg10;
16123 }
16124 return resultobj;
16125fail:
16126 {
16127 if (temp3)
16128 delete arg3;
16129 }
16130 {
16131 if (temp6) delete arg6;
16132 }
16133 {
16134 if (temp10)
16135 delete arg10;
16136 }
16137 return NULL;
d55e5bfc
RD
16138}
16139
16140
1bd55598
RD
16141SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 wxRadioBox *result = 0 ;
16144
16145 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16146 {
16147 if (!wxPyCheckForApp()) SWIG_fail;
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = (wxRadioBox *)new wxRadioBox();
16150 wxPyEndAllowThreads(__tstate);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 }
16153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16154 return resultobj;
16155fail:
16156 return NULL;
16157}
16158
16159
16160SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16161 PyObject *resultobj = 0;
16162 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16163 wxWindow *arg2 = (wxWindow *) 0 ;
16164 int arg3 = (int) -1 ;
16165 wxString const &arg4_defvalue = wxPyEmptyString ;
16166 wxString *arg4 = (wxString *) &arg4_defvalue ;
16167 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16168 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16169 wxSize const &arg6_defvalue = wxDefaultSize ;
16170 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16171 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16172 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16173 int arg8 = (int) 0 ;
16174 long arg9 = (long) wxRA_HORIZONTAL ;
16175 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16176 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16177 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16178 wxString *arg11 = (wxString *) &arg11_defvalue ;
16179 bool result;
16180 void *argp1 = 0 ;
16181 int res1 = 0 ;
16182 void *argp2 = 0 ;
16183 int res2 = 0 ;
16184 int val3 ;
16185 int ecode3 = 0 ;
16186 bool temp4 = false ;
16187 wxPoint temp5 ;
16188 wxSize temp6 ;
16189 bool temp7 = false ;
16190 int val8 ;
16191 int ecode8 = 0 ;
16192 long val9 ;
16193 int ecode9 = 0 ;
16194 void *argp10 = 0 ;
16195 int res10 = 0 ;
16196 bool temp11 = false ;
16197 PyObject * obj0 = 0 ;
16198 PyObject * obj1 = 0 ;
16199 PyObject * obj2 = 0 ;
16200 PyObject * obj3 = 0 ;
16201 PyObject * obj4 = 0 ;
16202 PyObject * obj5 = 0 ;
16203 PyObject * obj6 = 0 ;
16204 PyObject * obj7 = 0 ;
16205 PyObject * obj8 = 0 ;
16206 PyObject * obj9 = 0 ;
16207 PyObject * obj10 = 0 ;
16208 char * kwnames[] = {
16209 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16210 };
16211
16212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16214 if (!SWIG_IsOK(res1)) {
16215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16216 }
16217 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16219 if (!SWIG_IsOK(res2)) {
16220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16221 }
16222 arg2 = reinterpret_cast< wxWindow * >(argp2);
16223 if (obj2) {
16224 ecode3 = SWIG_AsVal_int(obj2, &val3);
16225 if (!SWIG_IsOK(ecode3)) {
16226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16227 }
16228 arg3 = static_cast< int >(val3);
16229 }
16230 if (obj3) {
36ed4f51 16231 {
1bd55598
RD
16232 arg4 = wxString_in_helper(obj3);
16233 if (arg4 == NULL) SWIG_fail;
16234 temp4 = true;
36ed4f51 16235 }
1bd55598
RD
16236 }
16237 if (obj4) {
36ed4f51 16238 {
1bd55598
RD
16239 arg5 = &temp5;
16240 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16241 }
1bd55598
RD
16242 }
16243 if (obj5) {
d55e5bfc 16244 {
1bd55598
RD
16245 arg6 = &temp6;
16246 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16247 }
1bd55598
RD
16248 }
16249 if (obj6) {
36ed4f51 16250 {
1bd55598
RD
16251 if (! PySequence_Check(obj6)) {
16252 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16253 SWIG_fail;
16254 }
16255 arg7 = new wxArrayString;
16256 temp7 = true;
16257 int i, len=PySequence_Length(obj6);
16258 for (i=0; i<len; i++) {
16259 PyObject* item = PySequence_GetItem(obj6, i);
16260 wxString* s = wxString_in_helper(item);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 arg7->Add(*s);
16263 delete s;
16264 Py_DECREF(item);
16265 }
36ed4f51 16266 }
1bd55598
RD
16267 }
16268 if (obj7) {
16269 ecode8 = SWIG_AsVal_int(obj7, &val8);
16270 if (!SWIG_IsOK(ecode8)) {
16271 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16272 }
16273 arg8 = static_cast< int >(val8);
16274 }
16275 if (obj8) {
16276 ecode9 = SWIG_AsVal_long(obj8, &val9);
16277 if (!SWIG_IsOK(ecode9)) {
16278 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16279 }
16280 arg9 = static_cast< long >(val9);
16281 }
16282 if (obj9) {
16283 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16284 if (!SWIG_IsOK(res10)) {
16285 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16286 }
1bd55598
RD
16287 if (!argp10) {
16288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16289 }
1bd55598
RD
16290 arg10 = reinterpret_cast< wxValidator * >(argp10);
16291 }
16292 if (obj10) {
d55e5bfc 16293 {
1bd55598
RD
16294 arg11 = wxString_in_helper(obj10);
16295 if (arg11 == NULL) SWIG_fail;
16296 temp11 = true;
d55e5bfc 16297 }
1bd55598
RD
16298 }
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 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);
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16307 }
16308 {
16309 if (temp4)
16310 delete arg4;
16311 }
16312 {
16313 if (temp7) delete arg7;
16314 }
16315 {
16316 if (temp11)
16317 delete arg11;
16318 }
16319 return resultobj;
16320fail:
16321 {
16322 if (temp4)
16323 delete arg4;
16324 }
16325 {
16326 if (temp7) delete arg7;
16327 }
16328 {
16329 if (temp11)
16330 delete arg11;
16331 }
16332 return NULL;
16333}
16334
16335
16336SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16337 PyObject *resultobj = 0;
16338 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16339 int arg2 ;
16340 void *argp1 = 0 ;
16341 int res1 = 0 ;
16342 int val2 ;
16343 int ecode2 = 0 ;
16344 PyObject * obj0 = 0 ;
16345 PyObject * obj1 = 0 ;
16346 char * kwnames[] = {
16347 (char *) "self",(char *) "n", NULL
16348 };
16349
16350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16352 if (!SWIG_IsOK(res1)) {
16353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16354 }
16355 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16356 ecode2 = SWIG_AsVal_int(obj1, &val2);
16357 if (!SWIG_IsOK(ecode2)) {
16358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16359 }
16360 arg2 = static_cast< int >(val2);
16361 {
16362 PyThreadState* __tstate = wxPyBeginAllowThreads();
16363 (arg1)->SetSelection(arg2);
16364 wxPyEndAllowThreads(__tstate);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 }
16367 resultobj = SWIG_Py_Void();
16368 return resultobj;
16369fail:
16370 return NULL;
d55e5bfc
RD
16371}
16372
16373
1bd55598
RD
16374SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16375 PyObject *resultobj = 0;
16376 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16377 int result;
16378 void *argp1 = 0 ;
16379 int res1 = 0 ;
16380 PyObject *swig_obj[1] ;
16381
16382 if (!args) SWIG_fail;
16383 swig_obj[0] = args;
16384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16385 if (!SWIG_IsOK(res1)) {
16386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16387 }
16388 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16389 {
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 resultobj = SWIG_From_int(static_cast< int >(result));
16396 return resultobj;
16397fail:
16398 return NULL;
d55e5bfc
RD
16399}
16400
16401
1bd55598
RD
16402SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16403 PyObject *resultobj = 0;
16404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16405 wxString result;
16406 void *argp1 = 0 ;
16407 int res1 = 0 ;
16408 PyObject *swig_obj[1] ;
16409
16410 if (!args) SWIG_fail;
16411 swig_obj[0] = args;
16412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16413 if (!SWIG_IsOK(res1)) {
16414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16415 }
16416 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16417 {
16418 PyThreadState* __tstate = wxPyBeginAllowThreads();
16419 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16420 wxPyEndAllowThreads(__tstate);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 }
16423 {
16424#if wxUSE_UNICODE
16425 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16426#else
16427 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16428#endif
16429 }
16430 return resultobj;
16431fail:
16432 return NULL;
16433}
16434
16435
16436SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj = 0;
16438 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16439 wxString *arg2 = 0 ;
16440 bool result;
16441 void *argp1 = 0 ;
16442 int res1 = 0 ;
16443 bool temp2 = false ;
16444 PyObject * obj0 = 0 ;
16445 PyObject * obj1 = 0 ;
16446 char * kwnames[] = {
16447 (char *) "self",(char *) "s", NULL
16448 };
16449
16450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16452 if (!SWIG_IsOK(res1)) {
16453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16454 }
16455 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16456 {
16457 arg2 = wxString_in_helper(obj1);
16458 if (arg2 == NULL) SWIG_fail;
16459 temp2 = true;
16460 }
16461 {
16462 PyThreadState* __tstate = wxPyBeginAllowThreads();
16463 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16469 }
16470 {
16471 if (temp2)
16472 delete arg2;
16473 }
16474 return resultobj;
16475fail:
16476 {
16477 if (temp2)
16478 delete arg2;
16479 }
16480 return NULL;
4896ac9e
RD
16481}
16482
16483
1bd55598
RD
16484SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16485 PyObject *resultobj = 0;
16486 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16487 size_t result;
1bd55598
RD
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 PyObject *swig_obj[1] ;
16491
16492 if (!args) SWIG_fail;
16493 swig_obj[0] = args;
16494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16495 if (!SWIG_IsOK(res1)) {
16496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16497 }
16498 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16501 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
1c71765a 16505 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16506 return resultobj;
16507fail:
16508 return NULL;
16509}
16510
16511
16512SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj = 0;
16514 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16515 wxString *arg2 = 0 ;
16516 int result;
16517 void *argp1 = 0 ;
16518 int res1 = 0 ;
16519 bool temp2 = false ;
16520 PyObject * obj0 = 0 ;
16521 PyObject * obj1 = 0 ;
16522 char * kwnames[] = {
16523 (char *) "self",(char *) "s", NULL
16524 };
16525
16526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16528 if (!SWIG_IsOK(res1)) {
16529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16530 }
16531 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16532 {
16533 arg2 = wxString_in_helper(obj1);
16534 if (arg2 == NULL) SWIG_fail;
16535 temp2 = true;
16536 }
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 resultobj = SWIG_From_int(static_cast< int >(result));
16544 {
16545 if (temp2)
16546 delete arg2;
16547 }
16548 return resultobj;
16549fail:
16550 {
16551 if (temp2)
16552 delete arg2;
16553 }
16554 return NULL;
16555}
16556
16557
16558SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16559 PyObject *resultobj = 0;
16560 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16561 int arg2 ;
16562 wxString result;
16563 void *argp1 = 0 ;
16564 int res1 = 0 ;
16565 int val2 ;
16566 int ecode2 = 0 ;
16567 PyObject * obj0 = 0 ;
16568 PyObject * obj1 = 0 ;
16569 char * kwnames[] = {
16570 (char *) "self",(char *) "n", NULL
16571 };
16572
16573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16575 if (!SWIG_IsOK(res1)) {
16576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16577 }
16578 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16579 ecode2 = SWIG_AsVal_int(obj1, &val2);
16580 if (!SWIG_IsOK(ecode2)) {
16581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16582 }
16583 arg2 = static_cast< int >(val2);
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
16586 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16587 wxPyEndAllowThreads(__tstate);
16588 if (PyErr_Occurred()) SWIG_fail;
16589 }
16590 {
16591#if wxUSE_UNICODE
16592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16593#else
16594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16595#endif
16596 }
16597 return resultobj;
16598fail:
16599 return NULL;
16600}
16601
16602
16603SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16604 PyObject *resultobj = 0;
16605 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16606 int arg2 ;
16607 wxString *arg3 = 0 ;
16608 void *argp1 = 0 ;
16609 int res1 = 0 ;
16610 int val2 ;
16611 int ecode2 = 0 ;
16612 bool temp3 = false ;
16613 PyObject * obj0 = 0 ;
16614 PyObject * obj1 = 0 ;
16615 PyObject * obj2 = 0 ;
16616 char * kwnames[] = {
16617 (char *) "self",(char *) "n",(char *) "label", NULL
16618 };
16619
16620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16622 if (!SWIG_IsOK(res1)) {
16623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16624 }
16625 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16626 ecode2 = SWIG_AsVal_int(obj1, &val2);
16627 if (!SWIG_IsOK(ecode2)) {
16628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16629 }
16630 arg2 = static_cast< int >(val2);
16631 {
16632 arg3 = wxString_in_helper(obj2);
16633 if (arg3 == NULL) SWIG_fail;
16634 temp3 = true;
16635 }
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 (arg1)->SetString(arg2,(wxString const &)*arg3);
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 resultobj = SWIG_Py_Void();
16643 {
16644 if (temp3)
16645 delete arg3;
16646 }
16647 return resultobj;
16648fail:
16649 {
16650 if (temp3)
16651 delete arg3;
16652 }
16653 return NULL;
16654}
16655
16656
16657SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16658 PyObject *resultobj = 0;
16659 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16660 unsigned int arg2 ;
1bd55598
RD
16661 bool arg3 = (bool) true ;
16662 void *argp1 = 0 ;
16663 int res1 = 0 ;
50f151d7 16664 unsigned int val2 ;
1bd55598
RD
16665 int ecode2 = 0 ;
16666 bool val3 ;
16667 int ecode3 = 0 ;
16668 PyObject * obj0 = 0 ;
16669 PyObject * obj1 = 0 ;
16670 PyObject * obj2 = 0 ;
16671 char * kwnames[] = {
16672 (char *) "self",(char *) "n",(char *) "enable", NULL
16673 };
16674
16675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16677 if (!SWIG_IsOK(res1)) {
16678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16679 }
16680 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16681 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16682 if (!SWIG_IsOK(ecode2)) {
50f151d7 16683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16684 }
50f151d7 16685 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16686 if (obj2) {
16687 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16688 if (!SWIG_IsOK(ecode3)) {
16689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16690 }
16691 arg3 = static_cast< bool >(val3);
16692 }
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 (arg1)->Enable(arg2,arg3);
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
16699 resultobj = SWIG_Py_Void();
16700 return resultobj;
16701fail:
16702 return NULL;
16703}
16704
16705
16706SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj = 0;
16708 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16709 unsigned int arg2 ;
1bd55598
RD
16710 bool arg3 = (bool) true ;
16711 void *argp1 = 0 ;
16712 int res1 = 0 ;
50f151d7 16713 unsigned int val2 ;
1bd55598
RD
16714 int ecode2 = 0 ;
16715 bool val3 ;
16716 int ecode3 = 0 ;
16717 PyObject * obj0 = 0 ;
16718 PyObject * obj1 = 0 ;
16719 PyObject * obj2 = 0 ;
16720 char * kwnames[] = {
16721 (char *) "self",(char *) "n",(char *) "show", NULL
16722 };
16723
16724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16726 if (!SWIG_IsOK(res1)) {
16727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16728 }
16729 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16730 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16731 if (!SWIG_IsOK(ecode2)) {
50f151d7 16732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16733 }
50f151d7 16734 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16735 if (obj2) {
16736 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16737 if (!SWIG_IsOK(ecode3)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16739 }
16740 arg3 = static_cast< bool >(val3);
16741 }
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 (arg1)->Show(arg2,arg3);
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 resultobj = SWIG_Py_Void();
16749 return resultobj;
16750fail:
16751 return NULL;
d55e5bfc
RD
16752}
16753
16754
50f151d7
RD
16755SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj = 0;
16757 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16758 unsigned int arg2 ;
16759 bool result;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 unsigned int val2 ;
16763 int ecode2 = 0 ;
16764 PyObject * obj0 = 0 ;
16765 PyObject * obj1 = 0 ;
16766 char * kwnames[] = {
16767 (char *) "self",(char *) "n", NULL
16768 };
16769
16770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16774 }
16775 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16776 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16777 if (!SWIG_IsOK(ecode2)) {
16778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16779 }
16780 arg2 = static_cast< unsigned int >(val2);
16781 {
16782 PyThreadState* __tstate = wxPyBeginAllowThreads();
16783 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 {
16788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16789 }
16790 return resultobj;
16791fail:
16792 return NULL;
16793}
16794
16795
16796SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16797 PyObject *resultobj = 0;
16798 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16799 unsigned int arg2 ;
16800 bool result;
16801 void *argp1 = 0 ;
16802 int res1 = 0 ;
16803 unsigned int val2 ;
16804 int ecode2 = 0 ;
16805 PyObject * obj0 = 0 ;
16806 PyObject * obj1 = 0 ;
16807 char * kwnames[] = {
16808 (char *) "self",(char *) "n", NULL
16809 };
16810
16811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16813 if (!SWIG_IsOK(res1)) {
16814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16815 }
16816 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16817 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16818 if (!SWIG_IsOK(ecode2)) {
16819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16820 }
16821 arg2 = static_cast< unsigned int >(val2);
16822 {
16823 PyThreadState* __tstate = wxPyBeginAllowThreads();
16824 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 {
16829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16830 }
16831 return resultobj;
16832fail:
16833 return NULL;
16834}
16835
16836
1bd55598
RD
16837SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16838 PyObject *resultobj = 0;
16839 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16840 unsigned int result;
1bd55598
RD
16841 void *argp1 = 0 ;
16842 int res1 = 0 ;
16843 PyObject *swig_obj[1] ;
16844
16845 if (!args) SWIG_fail;
16846 swig_obj[0] = args;
16847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16848 if (!SWIG_IsOK(res1)) {
16849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16850 }
16851 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16854 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
50f151d7 16858 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16859 return resultobj;
16860fail:
16861 return NULL;
d55e5bfc
RD
16862}
16863
16864
1bd55598
RD
16865SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16866 PyObject *resultobj = 0;
16867 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16868 unsigned int result;
1bd55598
RD
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 PyObject *swig_obj[1] ;
16872
16873 if (!args) SWIG_fail;
16874 swig_obj[0] = args;
16875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16880 {
16881 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16882 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
50f151d7 16886 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16887 return resultobj;
16888fail:
16889 return NULL;
16890}
16891
16892
16893SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16894 PyObject *resultobj = 0;
16895 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16896 int arg2 ;
16897 wxDirection arg3 ;
16898 long arg4 ;
16899 int result;
16900 void *argp1 = 0 ;
16901 int res1 = 0 ;
16902 int val2 ;
16903 int ecode2 = 0 ;
16904 int val3 ;
16905 int ecode3 = 0 ;
16906 long val4 ;
16907 int ecode4 = 0 ;
16908 PyObject * obj0 = 0 ;
16909 PyObject * obj1 = 0 ;
16910 PyObject * obj2 = 0 ;
16911 PyObject * obj3 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16920 }
16921 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16922 ecode2 = SWIG_AsVal_int(obj1, &val2);
16923 if (!SWIG_IsOK(ecode2)) {
16924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16925 }
16926 arg2 = static_cast< int >(val2);
16927 ecode3 = SWIG_AsVal_int(obj2, &val3);
16928 if (!SWIG_IsOK(ecode3)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16930 }
16931 arg3 = static_cast< wxDirection >(val3);
16932 ecode4 = SWIG_AsVal_long(obj3, &val4);
16933 if (!SWIG_IsOK(ecode4)) {
16934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16935 }
16936 arg4 = static_cast< long >(val4);
16937 {
16938 PyThreadState* __tstate = wxPyBeginAllowThreads();
16939 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 resultobj = SWIG_From_int(static_cast< int >(result));
16944 return resultobj;
16945fail:
16946 return NULL;
16947}
16948
16949
2131d850
RD
16950SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16951 PyObject *resultobj = 0;
16952 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16953 unsigned int arg2 ;
16954 wxString *arg3 = 0 ;
16955 void *argp1 = 0 ;
16956 int res1 = 0 ;
16957 unsigned int val2 ;
16958 int ecode2 = 0 ;
16959 bool temp3 = false ;
16960 PyObject * obj0 = 0 ;
16961 PyObject * obj1 = 0 ;
16962 PyObject * obj2 = 0 ;
16963 char * kwnames[] = {
16964 (char *) "self",(char *) "item",(char *) "text", NULL
16965 };
16966
16967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16971 }
16972 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16973 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16974 if (!SWIG_IsOK(ecode2)) {
16975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16976 }
16977 arg2 = static_cast< unsigned int >(val2);
16978 {
16979 arg3 = wxString_in_helper(obj2);
16980 if (arg3 == NULL) SWIG_fail;
16981 temp3 = true;
16982 }
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 resultobj = SWIG_Py_Void();
16990 {
16991 if (temp3)
16992 delete arg3;
16993 }
16994 return resultobj;
16995fail:
16996 {
16997 if (temp3)
16998 delete arg3;
16999 }
17000 return NULL;
17001}
17002
17003
17004SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj = 0;
17006 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17007 unsigned int arg2 ;
17008 wxToolTip *result = 0 ;
17009 void *argp1 = 0 ;
17010 int res1 = 0 ;
17011 unsigned int val2 ;
17012 int ecode2 = 0 ;
17013 PyObject * obj0 = 0 ;
17014 PyObject * obj1 = 0 ;
17015 char * kwnames[] = {
17016 (char *) "self",(char *) "item", NULL
17017 };
17018
17019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17021 if (!SWIG_IsOK(res1)) {
17022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17023 }
17024 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17025 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17026 if (!SWIG_IsOK(ecode2)) {
17027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17028 }
17029 arg2 = static_cast< unsigned int >(val2);
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 {
17037 resultobj = wxPyMake_wxObject(result, (bool)0);
17038 }
17039 return resultobj;
17040fail:
17041 return NULL;
17042}
17043
17044
b850e7f3
RD
17045SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj = 0;
17047 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17048 unsigned int arg2 ;
17049 wxString *arg3 = 0 ;
17050 void *argp1 = 0 ;
17051 int res1 = 0 ;
17052 unsigned int val2 ;
17053 int ecode2 = 0 ;
17054 bool temp3 = false ;
17055 PyObject * obj0 = 0 ;
17056 PyObject * obj1 = 0 ;
17057 PyObject * obj2 = 0 ;
17058 char * kwnames[] = {
17059 (char *) "self",(char *) "n",(char *) "helpText", NULL
17060 };
17061
17062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17064 if (!SWIG_IsOK(res1)) {
17065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17066 }
17067 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17068 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17069 if (!SWIG_IsOK(ecode2)) {
17070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17071 }
17072 arg2 = static_cast< unsigned int >(val2);
17073 {
17074 arg3 = wxString_in_helper(obj2);
17075 if (arg3 == NULL) SWIG_fail;
17076 temp3 = true;
17077 }
17078 {
17079 PyThreadState* __tstate = wxPyBeginAllowThreads();
17080 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17081 wxPyEndAllowThreads(__tstate);
17082 if (PyErr_Occurred()) SWIG_fail;
17083 }
17084 resultobj = SWIG_Py_Void();
17085 {
17086 if (temp3)
17087 delete arg3;
17088 }
17089 return resultobj;
17090fail:
17091 {
17092 if (temp3)
17093 delete arg3;
17094 }
17095 return NULL;
17096}
17097
17098
17099SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17102 unsigned int arg2 ;
17103 wxString result;
17104 void *argp1 = 0 ;
17105 int res1 = 0 ;
17106 unsigned int val2 ;
17107 int ecode2 = 0 ;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 char * kwnames[] = {
17111 (char *) "self",(char *) "n", NULL
17112 };
17113
17114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17116 if (!SWIG_IsOK(res1)) {
17117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17118 }
17119 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17120 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17121 if (!SWIG_IsOK(ecode2)) {
17122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17123 }
17124 arg2 = static_cast< unsigned int >(val2);
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17128 wxPyEndAllowThreads(__tstate);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 }
17131 {
17132#if wxUSE_UNICODE
17133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17134#else
17135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17136#endif
17137 }
17138 return resultobj;
17139fail:
17140 return NULL;
17141}
17142
17143
1bd55598
RD
17144SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj = 0;
17146 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17147 SwigValueWrapper<wxVisualAttributes > result;
17148 int val1 ;
17149 int ecode1 = 0 ;
17150 PyObject * obj0 = 0 ;
17151 char * kwnames[] = {
17152 (char *) "variant", NULL
17153 };
17154
17155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17156 if (obj0) {
17157 ecode1 = SWIG_AsVal_int(obj0, &val1);
17158 if (!SWIG_IsOK(ecode1)) {
17159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17160 }
17161 arg1 = static_cast< wxWindowVariant >(val1);
17162 }
17163 {
17164 if (!wxPyCheckForApp()) SWIG_fail;
17165 PyThreadState* __tstate = wxPyBeginAllowThreads();
17166 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17167 wxPyEndAllowThreads(__tstate);
17168 if (PyErr_Occurred()) SWIG_fail;
17169 }
17170 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17171 return resultobj;
17172fail:
17173 return NULL;
17174}
17175
17176
17177SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17178 PyObject *obj;
17179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17180 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17181 return SWIG_Py_Void();
17182}
17183
17184SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17185 return SWIG_Python_InitShadowInstance(args);
17186}
17187
17188SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj = 0;
17190 wxWindow *arg1 = (wxWindow *) 0 ;
17191 int arg2 = (int) -1 ;
17192 wxString const &arg3_defvalue = wxPyEmptyString ;
17193 wxString *arg3 = (wxString *) &arg3_defvalue ;
17194 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17195 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17196 wxSize const &arg5_defvalue = wxDefaultSize ;
17197 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17198 long arg6 = (long) 0 ;
17199 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17200 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17201 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17202 wxString *arg8 = (wxString *) &arg8_defvalue ;
17203 wxRadioButton *result = 0 ;
17204 void *argp1 = 0 ;
17205 int res1 = 0 ;
17206 int val2 ;
17207 int ecode2 = 0 ;
17208 bool temp3 = false ;
17209 wxPoint temp4 ;
17210 wxSize temp5 ;
17211 long val6 ;
17212 int ecode6 = 0 ;
17213 void *argp7 = 0 ;
17214 int res7 = 0 ;
17215 bool temp8 = false ;
17216 PyObject * obj0 = 0 ;
17217 PyObject * obj1 = 0 ;
17218 PyObject * obj2 = 0 ;
17219 PyObject * obj3 = 0 ;
17220 PyObject * obj4 = 0 ;
17221 PyObject * obj5 = 0 ;
17222 PyObject * obj6 = 0 ;
17223 PyObject * obj7 = 0 ;
17224 char * kwnames[] = {
17225 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17226 };
17227
17228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17230 if (!SWIG_IsOK(res1)) {
17231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17232 }
17233 arg1 = reinterpret_cast< wxWindow * >(argp1);
17234 if (obj1) {
17235 ecode2 = SWIG_AsVal_int(obj1, &val2);
17236 if (!SWIG_IsOK(ecode2)) {
17237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17238 }
17239 arg2 = static_cast< int >(val2);
17240 }
17241 if (obj2) {
d55e5bfc 17242 {
1bd55598
RD
17243 arg3 = wxString_in_helper(obj2);
17244 if (arg3 == NULL) SWIG_fail;
17245 temp3 = true;
d55e5bfc 17246 }
1bd55598
RD
17247 }
17248 if (obj3) {
d55e5bfc 17249 {
1bd55598
RD
17250 arg4 = &temp4;
17251 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17252 }
1bd55598
RD
17253 }
17254 if (obj4) {
d55e5bfc 17255 {
1bd55598
RD
17256 arg5 = &temp5;
17257 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17258 }
1bd55598
RD
17259 }
17260 if (obj5) {
17261 ecode6 = SWIG_AsVal_long(obj5, &val6);
17262 if (!SWIG_IsOK(ecode6)) {
17263 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17264 }
17265 arg6 = static_cast< long >(val6);
17266 }
17267 if (obj6) {
17268 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17269 if (!SWIG_IsOK(res7)) {
17270 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17271 }
1bd55598
RD
17272 if (!argp7) {
17273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17274 }
17275 arg7 = reinterpret_cast< wxValidator * >(argp7);
17276 }
17277 if (obj7) {
d55e5bfc 17278 {
1bd55598
RD
17279 arg8 = wxString_in_helper(obj7);
17280 if (arg8 == NULL) SWIG_fail;
17281 temp8 = true;
d55e5bfc 17282 }
1bd55598
RD
17283 }
17284 {
17285 if (!wxPyCheckForApp()) SWIG_fail;
17286 PyThreadState* __tstate = wxPyBeginAllowThreads();
17287 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17292 {
17293 if (temp3)
17294 delete arg3;
17295 }
17296 {
17297 if (temp8)
17298 delete arg8;
17299 }
17300 return resultobj;
17301fail:
17302 {
17303 if (temp3)
17304 delete arg3;
17305 }
17306 {
17307 if (temp8)
17308 delete arg8;
17309 }
17310 return NULL;
d55e5bfc
RD
17311}
17312
17313
1bd55598
RD
17314SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17315 PyObject *resultobj = 0;
17316 wxRadioButton *result = 0 ;
17317
17318 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17319 {
17320 if (!wxPyCheckForApp()) SWIG_fail;
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (wxRadioButton *)new wxRadioButton();
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17327 return resultobj;
17328fail:
17329 return NULL;
17330}
17331
17332
17333SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj = 0;
17335 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17336 wxWindow *arg2 = (wxWindow *) 0 ;
17337 int arg3 = (int) -1 ;
17338 wxString const &arg4_defvalue = wxPyEmptyString ;
17339 wxString *arg4 = (wxString *) &arg4_defvalue ;
17340 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17341 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17342 wxSize const &arg6_defvalue = wxDefaultSize ;
17343 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17344 long arg7 = (long) 0 ;
17345 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17346 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17347 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17348 wxString *arg9 = (wxString *) &arg9_defvalue ;
17349 bool result;
17350 void *argp1 = 0 ;
17351 int res1 = 0 ;
17352 void *argp2 = 0 ;
17353 int res2 = 0 ;
17354 int val3 ;
17355 int ecode3 = 0 ;
17356 bool temp4 = false ;
17357 wxPoint temp5 ;
17358 wxSize temp6 ;
17359 long val7 ;
17360 int ecode7 = 0 ;
17361 void *argp8 = 0 ;
17362 int res8 = 0 ;
17363 bool temp9 = false ;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 PyObject * obj2 = 0 ;
17367 PyObject * obj3 = 0 ;
17368 PyObject * obj4 = 0 ;
17369 PyObject * obj5 = 0 ;
17370 PyObject * obj6 = 0 ;
17371 PyObject * obj7 = 0 ;
17372 PyObject * obj8 = 0 ;
17373 char * kwnames[] = {
17374 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17375 };
17376
17377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17381 }
17382 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17383 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17384 if (!SWIG_IsOK(res2)) {
17385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17386 }
17387 arg2 = reinterpret_cast< wxWindow * >(argp2);
17388 if (obj2) {
17389 ecode3 = SWIG_AsVal_int(obj2, &val3);
17390 if (!SWIG_IsOK(ecode3)) {
17391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17392 }
17393 arg3 = static_cast< int >(val3);
17394 }
17395 if (obj3) {
d55e5bfc 17396 {
1bd55598
RD
17397 arg4 = wxString_in_helper(obj3);
17398 if (arg4 == NULL) SWIG_fail;
17399 temp4 = true;
d55e5bfc 17400 }
1bd55598
RD
17401 }
17402 if (obj4) {
d55e5bfc 17403 {
1bd55598
RD
17404 arg5 = &temp5;
17405 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17406 }
1bd55598
RD
17407 }
17408 if (obj5) {
d55e5bfc 17409 {
1bd55598
RD
17410 arg6 = &temp6;
17411 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17412 }
1bd55598
RD
17413 }
17414 if (obj6) {
17415 ecode7 = SWIG_AsVal_long(obj6, &val7);
17416 if (!SWIG_IsOK(ecode7)) {
17417 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17418 }
17419 arg7 = static_cast< long >(val7);
17420 }
17421 if (obj7) {
17422 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17423 if (!SWIG_IsOK(res8)) {
17424 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17425 }
1bd55598
RD
17426 if (!argp8) {
17427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17428 }
1bd55598
RD
17429 arg8 = reinterpret_cast< wxValidator * >(argp8);
17430 }
17431 if (obj8) {
d55e5bfc 17432 {
1bd55598
RD
17433 arg9 = wxString_in_helper(obj8);
17434 if (arg9 == NULL) SWIG_fail;
17435 temp9 = true;
d55e5bfc 17436 }
1bd55598
RD
17437 }
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17446 }
17447 {
17448 if (temp4)
17449 delete arg4;
17450 }
17451 {
17452 if (temp9)
17453 delete arg9;
17454 }
17455 return resultobj;
17456fail:
17457 {
17458 if (temp4)
17459 delete arg4;
17460 }
17461 {
17462 if (temp9)
17463 delete arg9;
17464 }
17465 return NULL;
d55e5bfc
RD
17466}
17467
17468
1bd55598
RD
17469SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17470 PyObject *resultobj = 0;
17471 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17472 bool result;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 PyObject *swig_obj[1] ;
17476
17477 if (!args) SWIG_fail;
17478 swig_obj[0] = args;
17479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17480 if (!SWIG_IsOK(res1)) {
17481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17482 }
17483 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (bool)(arg1)->GetValue();
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 {
17491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17492 }
17493 return resultobj;
17494fail:
17495 return NULL;
17496}
17497
17498
17499SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj = 0;
17501 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17502 bool arg2 ;
17503 void *argp1 = 0 ;
17504 int res1 = 0 ;
17505 bool val2 ;
17506 int ecode2 = 0 ;
17507 PyObject * obj0 = 0 ;
17508 PyObject * obj1 = 0 ;
17509 char * kwnames[] = {
17510 (char *) "self",(char *) "value", NULL
17511 };
17512
17513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17515 if (!SWIG_IsOK(res1)) {
17516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17517 }
17518 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17519 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17520 if (!SWIG_IsOK(ecode2)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17522 }
17523 arg2 = static_cast< bool >(val2);
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 (arg1)->SetValue(arg2);
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 resultobj = SWIG_Py_Void();
17531 return resultobj;
17532fail:
17533 return NULL;
17534}
17535
17536
17537SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj = 0;
17539 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17540 SwigValueWrapper<wxVisualAttributes > result;
17541 int val1 ;
17542 int ecode1 = 0 ;
17543 PyObject * obj0 = 0 ;
17544 char * kwnames[] = {
17545 (char *) "variant", NULL
17546 };
17547
17548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17549 if (obj0) {
17550 ecode1 = SWIG_AsVal_int(obj0, &val1);
17551 if (!SWIG_IsOK(ecode1)) {
17552 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17553 }
17554 arg1 = static_cast< wxWindowVariant >(val1);
17555 }
17556 {
17557 if (!wxPyCheckForApp()) SWIG_fail;
17558 PyThreadState* __tstate = wxPyBeginAllowThreads();
17559 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17564 return resultobj;
17565fail:
17566 return NULL;
d55e5bfc
RD
17567}
17568
17569
1bd55598
RD
17570SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17571 PyObject *obj;
17572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17573 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17574 return SWIG_Py_Void();
d55e5bfc
RD
17575}
17576
1bd55598
RD
17577SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17578 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17579}
17580
1bd55598
RD
17581SWIGINTERN int SliderNameStr_set(PyObject *) {
17582 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17583 return 1;
d55e5bfc
RD
17584}
17585
17586
1bd55598
RD
17587SWIGINTERN PyObject *SliderNameStr_get(void) {
17588 PyObject *pyobj = 0;
17589
17590 {
17591#if wxUSE_UNICODE
17592 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17593#else
17594 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17595#endif
17596 }
17597 return pyobj;
17598}
17599
17600
17601SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17602 PyObject *resultobj = 0;
17603 wxWindow *arg1 = (wxWindow *) 0 ;
17604 int arg2 = (int) -1 ;
17605 int arg3 = (int) 0 ;
17606 int arg4 = (int) 0 ;
17607 int arg5 = (int) 100 ;
17608 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17609 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17610 wxSize const &arg7_defvalue = wxDefaultSize ;
17611 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17612 long arg8 = (long) wxSL_HORIZONTAL ;
17613 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17614 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17615 wxString const &arg10_defvalue = wxPySliderNameStr ;
17616 wxString *arg10 = (wxString *) &arg10_defvalue ;
17617 wxSlider *result = 0 ;
17618 void *argp1 = 0 ;
17619 int res1 = 0 ;
17620 int val2 ;
17621 int ecode2 = 0 ;
17622 int val3 ;
17623 int ecode3 = 0 ;
17624 int val4 ;
17625 int ecode4 = 0 ;
17626 int val5 ;
17627 int ecode5 = 0 ;
17628 wxPoint temp6 ;
17629 wxSize temp7 ;
17630 long val8 ;
17631 int ecode8 = 0 ;
17632 void *argp9 = 0 ;
17633 int res9 = 0 ;
17634 bool temp10 = false ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 PyObject * obj2 = 0 ;
17638 PyObject * obj3 = 0 ;
17639 PyObject * obj4 = 0 ;
17640 PyObject * obj5 = 0 ;
17641 PyObject * obj6 = 0 ;
17642 PyObject * obj7 = 0 ;
17643 PyObject * obj8 = 0 ;
17644 PyObject * obj9 = 0 ;
17645 char * kwnames[] = {
17646 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17647 };
17648
17649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17651 if (!SWIG_IsOK(res1)) {
17652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17653 }
17654 arg1 = reinterpret_cast< wxWindow * >(argp1);
17655 if (obj1) {
17656 ecode2 = SWIG_AsVal_int(obj1, &val2);
17657 if (!SWIG_IsOK(ecode2)) {
17658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17659 }
17660 arg2 = static_cast< int >(val2);
17661 }
17662 if (obj2) {
17663 ecode3 = SWIG_AsVal_int(obj2, &val3);
17664 if (!SWIG_IsOK(ecode3)) {
17665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17666 }
17667 arg3 = static_cast< int >(val3);
17668 }
17669 if (obj3) {
17670 ecode4 = SWIG_AsVal_int(obj3, &val4);
17671 if (!SWIG_IsOK(ecode4)) {
17672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17673 }
17674 arg4 = static_cast< int >(val4);
17675 }
17676 if (obj4) {
17677 ecode5 = SWIG_AsVal_int(obj4, &val5);
17678 if (!SWIG_IsOK(ecode5)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17680 }
17681 arg5 = static_cast< int >(val5);
17682 }
17683 if (obj5) {
36ed4f51 17684 {
1bd55598
RD
17685 arg6 = &temp6;
17686 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17687 }
1bd55598
RD
17688 }
17689 if (obj6) {
36ed4f51 17690 {
1bd55598
RD
17691 arg7 = &temp7;
17692 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17693 }
1bd55598
RD
17694 }
17695 if (obj7) {
17696 ecode8 = SWIG_AsVal_long(obj7, &val8);
17697 if (!SWIG_IsOK(ecode8)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17699 }
17700 arg8 = static_cast< long >(val8);
17701 }
17702 if (obj8) {
17703 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17704 if (!SWIG_IsOK(res9)) {
17705 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17706 }
1bd55598
RD
17707 if (!argp9) {
17708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17709 }
1bd55598
RD
17710 arg9 = reinterpret_cast< wxValidator * >(argp9);
17711 }
17712 if (obj9) {
d55e5bfc 17713 {
1bd55598
RD
17714 arg10 = wxString_in_helper(obj9);
17715 if (arg10 == NULL) SWIG_fail;
17716 temp10 = true;
d55e5bfc 17717 }
1bd55598
RD
17718 }
17719 {
17720 if (!wxPyCheckForApp()) SWIG_fail;
17721 PyThreadState* __tstate = wxPyBeginAllowThreads();
17722 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17723 wxPyEndAllowThreads(__tstate);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 }
17726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17727 {
17728 if (temp10)
17729 delete arg10;
17730 }
17731 return resultobj;
17732fail:
17733 {
17734 if (temp10)
17735 delete arg10;
17736 }
17737 return NULL;
d55e5bfc
RD
17738}
17739
17740
1bd55598
RD
17741SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17742 PyObject *resultobj = 0;
17743 wxSlider *result = 0 ;
17744
17745 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17746 {
17747 if (!wxPyCheckForApp()) SWIG_fail;
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 result = (wxSlider *)new wxSlider();
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17754 return resultobj;
17755fail:
17756 return NULL;
17757}
17758
17759
17760SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17761 PyObject *resultobj = 0;
17762 wxSlider *arg1 = (wxSlider *) 0 ;
17763 wxWindow *arg2 = (wxWindow *) 0 ;
17764 int arg3 = (int) -1 ;
17765 int arg4 = (int) 0 ;
17766 int arg5 = (int) 0 ;
17767 int arg6 = (int) 100 ;
17768 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17769 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17770 wxSize const &arg8_defvalue = wxDefaultSize ;
17771 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17772 long arg9 = (long) wxSL_HORIZONTAL ;
17773 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17774 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17775 wxString const &arg11_defvalue = wxPySliderNameStr ;
17776 wxString *arg11 = (wxString *) &arg11_defvalue ;
17777 bool result;
17778 void *argp1 = 0 ;
17779 int res1 = 0 ;
17780 void *argp2 = 0 ;
17781 int res2 = 0 ;
17782 int val3 ;
17783 int ecode3 = 0 ;
17784 int val4 ;
17785 int ecode4 = 0 ;
17786 int val5 ;
17787 int ecode5 = 0 ;
17788 int val6 ;
17789 int ecode6 = 0 ;
17790 wxPoint temp7 ;
17791 wxSize temp8 ;
17792 long val9 ;
17793 int ecode9 = 0 ;
17794 void *argp10 = 0 ;
17795 int res10 = 0 ;
17796 bool temp11 = false ;
17797 PyObject * obj0 = 0 ;
17798 PyObject * obj1 = 0 ;
17799 PyObject * obj2 = 0 ;
17800 PyObject * obj3 = 0 ;
17801 PyObject * obj4 = 0 ;
17802 PyObject * obj5 = 0 ;
17803 PyObject * obj6 = 0 ;
17804 PyObject * obj7 = 0 ;
17805 PyObject * obj8 = 0 ;
17806 PyObject * obj9 = 0 ;
17807 PyObject * obj10 = 0 ;
17808 char * kwnames[] = {
17809 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17810 };
17811
17812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17814 if (!SWIG_IsOK(res1)) {
17815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17816 }
17817 arg1 = reinterpret_cast< wxSlider * >(argp1);
17818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17819 if (!SWIG_IsOK(res2)) {
17820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17821 }
17822 arg2 = reinterpret_cast< wxWindow * >(argp2);
17823 if (obj2) {
17824 ecode3 = SWIG_AsVal_int(obj2, &val3);
17825 if (!SWIG_IsOK(ecode3)) {
17826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17827 }
17828 arg3 = static_cast< int >(val3);
17829 }
17830 if (obj3) {
17831 ecode4 = SWIG_AsVal_int(obj3, &val4);
17832 if (!SWIG_IsOK(ecode4)) {
17833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17834 }
17835 arg4 = static_cast< int >(val4);
17836 }
17837 if (obj4) {
17838 ecode5 = SWIG_AsVal_int(obj4, &val5);
17839 if (!SWIG_IsOK(ecode5)) {
17840 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17841 }
17842 arg5 = static_cast< int >(val5);
17843 }
17844 if (obj5) {
17845 ecode6 = SWIG_AsVal_int(obj5, &val6);
17846 if (!SWIG_IsOK(ecode6)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17848 }
17849 arg6 = static_cast< int >(val6);
17850 }
17851 if (obj6) {
d55e5bfc 17852 {
1bd55598
RD
17853 arg7 = &temp7;
17854 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17855 }
1bd55598
RD
17856 }
17857 if (obj7) {
d55e5bfc 17858 {
1bd55598
RD
17859 arg8 = &temp8;
17860 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17861 }
1bd55598
RD
17862 }
17863 if (obj8) {
17864 ecode9 = SWIG_AsVal_long(obj8, &val9);
17865 if (!SWIG_IsOK(ecode9)) {
17866 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17867 }
17868 arg9 = static_cast< long >(val9);
17869 }
17870 if (obj9) {
17871 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17872 if (!SWIG_IsOK(res10)) {
17873 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17874 }
1bd55598
RD
17875 if (!argp10) {
17876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17877 }
1bd55598
RD
17878 arg10 = reinterpret_cast< wxValidator * >(argp10);
17879 }
17880 if (obj10) {
d55e5bfc 17881 {
1bd55598
RD
17882 arg11 = wxString_in_helper(obj10);
17883 if (arg11 == NULL) SWIG_fail;
17884 temp11 = true;
d55e5bfc 17885 }
1bd55598
RD
17886 }
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 {
17894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17895 }
17896 {
17897 if (temp11)
17898 delete arg11;
17899 }
17900 return resultobj;
17901fail:
17902 {
17903 if (temp11)
17904 delete arg11;
17905 }
17906 return NULL;
d55e5bfc
RD
17907}
17908
17909
1bd55598
RD
17910SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17911 PyObject *resultobj = 0;
17912 wxSlider *arg1 = (wxSlider *) 0 ;
17913 int result;
17914 void *argp1 = 0 ;
17915 int res1 = 0 ;
17916 PyObject *swig_obj[1] ;
17917
17918 if (!args) SWIG_fail;
17919 swig_obj[0] = args;
17920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17921 if (!SWIG_IsOK(res1)) {
17922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17923 }
17924 arg1 = reinterpret_cast< wxSlider * >(argp1);
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 result = (int)((wxSlider const *)arg1)->GetValue();
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_From_int(static_cast< int >(result));
17932 return resultobj;
17933fail:
17934 return NULL;
17935}
17936
17937
17938SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj = 0;
17940 wxSlider *arg1 = (wxSlider *) 0 ;
17941 int arg2 ;
17942 void *argp1 = 0 ;
17943 int res1 = 0 ;
17944 int val2 ;
17945 int ecode2 = 0 ;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 char * kwnames[] = {
17949 (char *) "self",(char *) "value", NULL
17950 };
17951
17952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17954 if (!SWIG_IsOK(res1)) {
17955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17956 }
17957 arg1 = reinterpret_cast< wxSlider * >(argp1);
17958 ecode2 = SWIG_AsVal_int(obj1, &val2);
17959 if (!SWIG_IsOK(ecode2)) {
17960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17961 }
17962 arg2 = static_cast< int >(val2);
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 (arg1)->SetValue(arg2);
17966 wxPyEndAllowThreads(__tstate);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 }
17969 resultobj = SWIG_Py_Void();
17970 return resultobj;
17971fail:
17972 return NULL;
17973}
17974
17975
17976SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj = 0;
17978 wxSlider *arg1 = (wxSlider *) 0 ;
17979 int arg2 ;
17980 int arg3 ;
17981 void *argp1 = 0 ;
17982 int res1 = 0 ;
17983 int val2 ;
17984 int ecode2 = 0 ;
17985 int val3 ;
17986 int ecode3 = 0 ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 PyObject * obj2 = 0 ;
17990 char * kwnames[] = {
17991 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17992 };
17993
17994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17996 if (!SWIG_IsOK(res1)) {
17997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17998 }
17999 arg1 = reinterpret_cast< wxSlider * >(argp1);
18000 ecode2 = SWIG_AsVal_int(obj1, &val2);
18001 if (!SWIG_IsOK(ecode2)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18003 }
18004 arg2 = static_cast< int >(val2);
18005 ecode3 = SWIG_AsVal_int(obj2, &val3);
18006 if (!SWIG_IsOK(ecode3)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18008 }
18009 arg3 = static_cast< int >(val3);
18010 {
18011 PyThreadState* __tstate = wxPyBeginAllowThreads();
18012 (arg1)->SetRange(arg2,arg3);
18013 wxPyEndAllowThreads(__tstate);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 }
18016 resultobj = SWIG_Py_Void();
18017 return resultobj;
18018fail:
18019 return NULL;
d55e5bfc
RD
18020}
18021
18022
1bd55598
RD
18023SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18024 PyObject *resultobj = 0;
18025 wxSlider *arg1 = (wxSlider *) 0 ;
18026 int result;
18027 void *argp1 = 0 ;
18028 int res1 = 0 ;
18029 PyObject *swig_obj[1] ;
18030
18031 if (!args) SWIG_fail;
18032 swig_obj[0] = args;
18033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18034 if (!SWIG_IsOK(res1)) {
18035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18036 }
18037 arg1 = reinterpret_cast< wxSlider * >(argp1);
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 result = (int)((wxSlider const *)arg1)->GetMin();
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 resultobj = SWIG_From_int(static_cast< int >(result));
18045 return resultobj;
18046fail:
18047 return NULL;
f20a2e1f
RD
18048}
18049
18050
1bd55598
RD
18051SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18052 PyObject *resultobj = 0;
18053 wxSlider *arg1 = (wxSlider *) 0 ;
18054 int result;
18055 void *argp1 = 0 ;
18056 int res1 = 0 ;
18057 PyObject *swig_obj[1] ;
18058
18059 if (!args) SWIG_fail;
18060 swig_obj[0] = args;
18061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18064 }
18065 arg1 = reinterpret_cast< wxSlider * >(argp1);
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = (int)((wxSlider const *)arg1)->GetMax();
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 resultobj = SWIG_From_int(static_cast< int >(result));
18073 return resultobj;
18074fail:
18075 return NULL;
18076}
18077
18078
18079SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj = 0;
18081 wxSlider *arg1 = (wxSlider *) 0 ;
18082 int arg2 ;
18083 void *argp1 = 0 ;
18084 int res1 = 0 ;
18085 int val2 ;
18086 int ecode2 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "minValue", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18097 }
18098 arg1 = reinterpret_cast< wxSlider * >(argp1);
18099 ecode2 = SWIG_AsVal_int(obj1, &val2);
18100 if (!SWIG_IsOK(ecode2)) {
18101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18102 }
18103 arg2 = static_cast< int >(val2);
18104 {
18105 PyThreadState* __tstate = wxPyBeginAllowThreads();
18106 (arg1)->SetMin(arg2);
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 resultobj = SWIG_Py_Void();
18111 return resultobj;
18112fail:
18113 return NULL;
18114}
18115
18116
18117SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18118 PyObject *resultobj = 0;
18119 wxSlider *arg1 = (wxSlider *) 0 ;
18120 int arg2 ;
18121 void *argp1 = 0 ;
18122 int res1 = 0 ;
18123 int val2 ;
18124 int ecode2 = 0 ;
18125 PyObject * obj0 = 0 ;
18126 PyObject * obj1 = 0 ;
18127 char * kwnames[] = {
18128 (char *) "self",(char *) "maxValue", NULL
18129 };
18130
18131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18133 if (!SWIG_IsOK(res1)) {
18134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18135 }
18136 arg1 = reinterpret_cast< wxSlider * >(argp1);
18137 ecode2 = SWIG_AsVal_int(obj1, &val2);
18138 if (!SWIG_IsOK(ecode2)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18140 }
18141 arg2 = static_cast< int >(val2);
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->SetMax(arg2);
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150fail:
18151 return NULL;
18152}
18153
18154
18155SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxSlider *arg1 = (wxSlider *) 0 ;
18158 int arg2 ;
18159 void *argp1 = 0 ;
18160 int res1 = 0 ;
18161 int val2 ;
18162 int ecode2 = 0 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char * kwnames[] = {
18166 (char *) "self",(char *) "lineSize", NULL
18167 };
18168
18169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18173 }
18174 arg1 = reinterpret_cast< wxSlider * >(argp1);
18175 ecode2 = SWIG_AsVal_int(obj1, &val2);
18176 if (!SWIG_IsOK(ecode2)) {
18177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18178 }
18179 arg2 = static_cast< int >(val2);
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 (arg1)->SetLineSize(arg2);
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = SWIG_Py_Void();
18187 return resultobj;
18188fail:
18189 return NULL;
18190}
18191
18192
18193SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj = 0;
18195 wxSlider *arg1 = (wxSlider *) 0 ;
18196 int arg2 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 int val2 ;
18200 int ecode2 = 0 ;
18201 PyObject * obj0 = 0 ;
18202 PyObject * obj1 = 0 ;
18203 char * kwnames[] = {
18204 (char *) "self",(char *) "pageSize", NULL
18205 };
18206
18207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18209 if (!SWIG_IsOK(res1)) {
18210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18211 }
18212 arg1 = reinterpret_cast< wxSlider * >(argp1);
18213 ecode2 = SWIG_AsVal_int(obj1, &val2);
18214 if (!SWIG_IsOK(ecode2)) {
18215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18216 }
18217 arg2 = static_cast< int >(val2);
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 (arg1)->SetPageSize(arg2);
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 resultobj = SWIG_Py_Void();
18225 return resultobj;
18226fail:
18227 return NULL;
d55e5bfc
RD
18228}
18229
18230
1bd55598
RD
18231SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18232 PyObject *resultobj = 0;
18233 wxSlider *arg1 = (wxSlider *) 0 ;
18234 int result;
18235 void *argp1 = 0 ;
18236 int res1 = 0 ;
18237 PyObject *swig_obj[1] ;
18238
18239 if (!args) SWIG_fail;
18240 swig_obj[0] = args;
18241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18242 if (!SWIG_IsOK(res1)) {
18243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18244 }
18245 arg1 = reinterpret_cast< wxSlider * >(argp1);
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 result = (int)((wxSlider const *)arg1)->GetLineSize();
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_From_int(static_cast< int >(result));
18253 return resultobj;
18254fail:
18255 return NULL;
d55e5bfc
RD
18256}
18257
18258
1bd55598
RD
18259SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18260 PyObject *resultobj = 0;
18261 wxSlider *arg1 = (wxSlider *) 0 ;
18262 int result;
18263 void *argp1 = 0 ;
18264 int res1 = 0 ;
18265 PyObject *swig_obj[1] ;
18266
18267 if (!args) SWIG_fail;
18268 swig_obj[0] = args;
18269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18272 }
18273 arg1 = reinterpret_cast< wxSlider * >(argp1);
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 result = (int)((wxSlider const *)arg1)->GetPageSize();
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 resultobj = SWIG_From_int(static_cast< int >(result));
18281 return resultobj;
18282fail:
18283 return NULL;
18284}
18285
18286
18287SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18288 PyObject *resultobj = 0;
18289 wxSlider *arg1 = (wxSlider *) 0 ;
18290 int arg2 ;
18291 void *argp1 = 0 ;
18292 int res1 = 0 ;
18293 int val2 ;
18294 int ecode2 = 0 ;
18295 PyObject * obj0 = 0 ;
18296 PyObject * obj1 = 0 ;
18297 char * kwnames[] = {
18298 (char *) "self",(char *) "lenPixels", NULL
18299 };
18300
18301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18305 }
18306 arg1 = reinterpret_cast< wxSlider * >(argp1);
18307 ecode2 = SWIG_AsVal_int(obj1, &val2);
18308 if (!SWIG_IsOK(ecode2)) {
18309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18310 }
18311 arg2 = static_cast< int >(val2);
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 (arg1)->SetThumbLength(arg2);
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 resultobj = SWIG_Py_Void();
18319 return resultobj;
18320fail:
18321 return NULL;
d55e5bfc
RD
18322}
18323
18324
1bd55598
RD
18325SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18326 PyObject *resultobj = 0;
18327 wxSlider *arg1 = (wxSlider *) 0 ;
18328 int result;
18329 void *argp1 = 0 ;
18330 int res1 = 0 ;
18331 PyObject *swig_obj[1] ;
18332
18333 if (!args) SWIG_fail;
18334 swig_obj[0] = args;
18335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18336 if (!SWIG_IsOK(res1)) {
18337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18338 }
18339 arg1 = reinterpret_cast< wxSlider * >(argp1);
18340 {
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_From_int(static_cast< int >(result));
18347 return resultobj;
18348fail:
18349 return NULL;
18350}
18351
18352
18353SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18354 PyObject *resultobj = 0;
18355 wxSlider *arg1 = (wxSlider *) 0 ;
18356 int arg2 ;
18357 int arg3 = (int) 1 ;
18358 void *argp1 = 0 ;
18359 int res1 = 0 ;
18360 int val2 ;
18361 int ecode2 = 0 ;
18362 int val3 ;
18363 int ecode3 = 0 ;
18364 PyObject * obj0 = 0 ;
18365 PyObject * obj1 = 0 ;
18366 PyObject * obj2 = 0 ;
18367 char * kwnames[] = {
18368 (char *) "self",(char *) "n",(char *) "pos", NULL
18369 };
18370
18371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18373 if (!SWIG_IsOK(res1)) {
18374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18375 }
18376 arg1 = reinterpret_cast< wxSlider * >(argp1);
18377 ecode2 = SWIG_AsVal_int(obj1, &val2);
18378 if (!SWIG_IsOK(ecode2)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18380 }
18381 arg2 = static_cast< int >(val2);
18382 if (obj2) {
18383 ecode3 = SWIG_AsVal_int(obj2, &val3);
18384 if (!SWIG_IsOK(ecode3)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18386 }
18387 arg3 = static_cast< int >(val3);
18388 }
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 (arg1)->SetTickFreq(arg2,arg3);
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_Py_Void();
18396 return resultobj;
18397fail:
18398 return NULL;
d55e5bfc
RD
18399}
18400
18401
1bd55598
RD
18402SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18403 PyObject *resultobj = 0;
18404 wxSlider *arg1 = (wxSlider *) 0 ;
18405 int result;
18406 void *argp1 = 0 ;
18407 int res1 = 0 ;
18408 PyObject *swig_obj[1] ;
18409
18410 if (!args) SWIG_fail;
18411 swig_obj[0] = args;
18412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18413 if (!SWIG_IsOK(res1)) {
18414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18415 }
18416 arg1 = reinterpret_cast< wxSlider * >(argp1);
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_From_int(static_cast< int >(result));
18424 return resultobj;
18425fail:
18426 return NULL;
d55e5bfc
RD
18427}
18428
18429
1bd55598
RD
18430SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18431 PyObject *resultobj = 0;
18432 wxSlider *arg1 = (wxSlider *) 0 ;
18433 void *argp1 = 0 ;
18434 int res1 = 0 ;
18435 PyObject *swig_obj[1] ;
18436
18437 if (!args) SWIG_fail;
18438 swig_obj[0] = args;
18439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18442 }
18443 arg1 = reinterpret_cast< wxSlider * >(argp1);
18444 {
18445 PyThreadState* __tstate = wxPyBeginAllowThreads();
18446 (arg1)->ClearTicks();
18447 wxPyEndAllowThreads(__tstate);
18448 if (PyErr_Occurred()) SWIG_fail;
18449 }
18450 resultobj = SWIG_Py_Void();
18451 return resultobj;
18452fail:
18453 return NULL;
18454}
18455
18456
18457SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18458 PyObject *resultobj = 0;
18459 wxSlider *arg1 = (wxSlider *) 0 ;
18460 int arg2 ;
18461 void *argp1 = 0 ;
18462 int res1 = 0 ;
18463 int val2 ;
18464 int ecode2 = 0 ;
18465 PyObject * obj0 = 0 ;
18466 PyObject * obj1 = 0 ;
18467 char * kwnames[] = {
18468 (char *) "self",(char *) "tickPos", NULL
18469 };
18470
18471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18473 if (!SWIG_IsOK(res1)) {
18474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18475 }
18476 arg1 = reinterpret_cast< wxSlider * >(argp1);
18477 ecode2 = SWIG_AsVal_int(obj1, &val2);
18478 if (!SWIG_IsOK(ecode2)) {
18479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18480 }
18481 arg2 = static_cast< int >(val2);
18482 {
18483 PyThreadState* __tstate = wxPyBeginAllowThreads();
18484 (arg1)->SetTick(arg2);
18485 wxPyEndAllowThreads(__tstate);
18486 if (PyErr_Occurred()) SWIG_fail;
18487 }
18488 resultobj = SWIG_Py_Void();
18489 return resultobj;
18490fail:
18491 return NULL;
d55e5bfc
RD
18492}
18493
18494
1bd55598
RD
18495SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18496 PyObject *resultobj = 0;
18497 wxSlider *arg1 = (wxSlider *) 0 ;
18498 void *argp1 = 0 ;
18499 int res1 = 0 ;
18500 PyObject *swig_obj[1] ;
18501
18502 if (!args) SWIG_fail;
18503 swig_obj[0] = args;
18504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18505 if (!SWIG_IsOK(res1)) {
18506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18507 }
18508 arg1 = reinterpret_cast< wxSlider * >(argp1);
18509 {
18510 PyThreadState* __tstate = wxPyBeginAllowThreads();
18511 (arg1)->ClearSel();
18512 wxPyEndAllowThreads(__tstate);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 }
18515 resultobj = SWIG_Py_Void();
18516 return resultobj;
18517fail:
18518 return NULL;
d55e5bfc
RD
18519}
18520
18521
1bd55598
RD
18522SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18523 PyObject *resultobj = 0;
18524 wxSlider *arg1 = (wxSlider *) 0 ;
18525 int result;
18526 void *argp1 = 0 ;
18527 int res1 = 0 ;
18528 PyObject *swig_obj[1] ;
18529
18530 if (!args) SWIG_fail;
18531 swig_obj[0] = args;
18532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18533 if (!SWIG_IsOK(res1)) {
18534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18535 }
18536 arg1 = reinterpret_cast< wxSlider * >(argp1);
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 resultobj = SWIG_From_int(static_cast< int >(result));
18544 return resultobj;
18545fail:
18546 return NULL;
d55e5bfc
RD
18547}
18548
18549
1bd55598
RD
18550SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18551 PyObject *resultobj = 0;
18552 wxSlider *arg1 = (wxSlider *) 0 ;
18553 int result;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 PyObject *swig_obj[1] ;
18557
18558 if (!args) SWIG_fail;
18559 swig_obj[0] = args;
18560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18563 }
18564 arg1 = reinterpret_cast< wxSlider * >(argp1);
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = (int)((wxSlider const *)arg1)->GetSelStart();
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_From_int(static_cast< int >(result));
18572 return resultobj;
18573fail:
18574 return NULL;
18575}
18576
18577
18578SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18579 PyObject *resultobj = 0;
18580 wxSlider *arg1 = (wxSlider *) 0 ;
18581 int arg2 ;
18582 int arg3 ;
18583 void *argp1 = 0 ;
18584 int res1 = 0 ;
18585 int val2 ;
18586 int ecode2 = 0 ;
18587 int val3 ;
18588 int ecode3 = 0 ;
18589 PyObject * obj0 = 0 ;
18590 PyObject * obj1 = 0 ;
18591 PyObject * obj2 = 0 ;
18592 char * kwnames[] = {
18593 (char *) "self",(char *) "min",(char *) "max", NULL
18594 };
18595
18596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18600 }
18601 arg1 = reinterpret_cast< wxSlider * >(argp1);
18602 ecode2 = SWIG_AsVal_int(obj1, &val2);
18603 if (!SWIG_IsOK(ecode2)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18605 }
18606 arg2 = static_cast< int >(val2);
18607 ecode3 = SWIG_AsVal_int(obj2, &val3);
18608 if (!SWIG_IsOK(ecode3)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18610 }
18611 arg3 = static_cast< int >(val3);
18612 {
18613 PyThreadState* __tstate = wxPyBeginAllowThreads();
18614 (arg1)->SetSelection(arg2,arg3);
18615 wxPyEndAllowThreads(__tstate);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 }
18618 resultobj = SWIG_Py_Void();
18619 return resultobj;
18620fail:
18621 return NULL;
18622}
18623
18624
18625SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18626 PyObject *resultobj = 0;
18627 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18628 SwigValueWrapper<wxVisualAttributes > result;
18629 int val1 ;
18630 int ecode1 = 0 ;
18631 PyObject * obj0 = 0 ;
18632 char * kwnames[] = {
18633 (char *) "variant", NULL
18634 };
18635
18636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18637 if (obj0) {
18638 ecode1 = SWIG_AsVal_int(obj0, &val1);
18639 if (!SWIG_IsOK(ecode1)) {
18640 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18641 }
18642 arg1 = static_cast< wxWindowVariant >(val1);
18643 }
18644 {
18645 if (!wxPyCheckForApp()) SWIG_fail;
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 result = wxSlider::GetClassDefaultAttributes(arg1);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18652 return resultobj;
18653fail:
18654 return NULL;
d55e5bfc
RD
18655}
18656
18657
1bd55598
RD
18658SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18659 PyObject *obj;
18660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18661 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18662 return SWIG_Py_Void();
d55e5bfc
RD
18663}
18664
1bd55598
RD
18665SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18666 return SWIG_Python_InitShadowInstance(args);
18667}
d55e5bfc 18668
1bd55598
RD
18669SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18670 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18671 return 1;
d55e5bfc
RD
18672}
18673
18674
1bd55598
RD
18675SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18676 PyObject *pyobj = 0;
18677
18678 {
18679#if wxUSE_UNICODE
18680 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18681#else
18682 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18683#endif
18684 }
18685 return pyobj;
18686}
18687
18688
18689SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxWindow *arg1 = (wxWindow *) 0 ;
18692 int arg2 = (int) -1 ;
18693 wxString const &arg3_defvalue = wxPyEmptyString ;
18694 wxString *arg3 = (wxString *) &arg3_defvalue ;
18695 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18696 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18697 wxSize const &arg5_defvalue = wxDefaultSize ;
18698 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18699 long arg6 = (long) 0 ;
18700 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18701 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18702 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18703 wxString *arg8 = (wxString *) &arg8_defvalue ;
18704 wxToggleButton *result = 0 ;
18705 void *argp1 = 0 ;
18706 int res1 = 0 ;
18707 int val2 ;
18708 int ecode2 = 0 ;
18709 bool temp3 = false ;
18710 wxPoint temp4 ;
18711 wxSize temp5 ;
18712 long val6 ;
18713 int ecode6 = 0 ;
18714 void *argp7 = 0 ;
18715 int res7 = 0 ;
18716 bool temp8 = false ;
18717 PyObject * obj0 = 0 ;
18718 PyObject * obj1 = 0 ;
18719 PyObject * obj2 = 0 ;
18720 PyObject * obj3 = 0 ;
18721 PyObject * obj4 = 0 ;
18722 PyObject * obj5 = 0 ;
18723 PyObject * obj6 = 0 ;
18724 PyObject * obj7 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18733 }
18734 arg1 = reinterpret_cast< wxWindow * >(argp1);
18735 if (obj1) {
18736 ecode2 = SWIG_AsVal_int(obj1, &val2);
18737 if (!SWIG_IsOK(ecode2)) {
18738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18739 }
18740 arg2 = static_cast< int >(val2);
18741 }
18742 if (obj2) {
d55e5bfc 18743 {
1bd55598
RD
18744 arg3 = wxString_in_helper(obj2);
18745 if (arg3 == NULL) SWIG_fail;
18746 temp3 = true;
d55e5bfc 18747 }
1bd55598
RD
18748 }
18749 if (obj3) {
36ed4f51 18750 {
1bd55598
RD
18751 arg4 = &temp4;
18752 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18753 }
1bd55598
RD
18754 }
18755 if (obj4) {
d55e5bfc 18756 {
1bd55598
RD
18757 arg5 = &temp5;
18758 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18759 }
1bd55598
RD
18760 }
18761 if (obj5) {
18762 ecode6 = SWIG_AsVal_long(obj5, &val6);
18763 if (!SWIG_IsOK(ecode6)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18765 }
18766 arg6 = static_cast< long >(val6);
18767 }
18768 if (obj6) {
18769 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18770 if (!SWIG_IsOK(res7)) {
18771 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18772 }
1bd55598
RD
18773 if (!argp7) {
18774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18775 }
1bd55598
RD
18776 arg7 = reinterpret_cast< wxValidator * >(argp7);
18777 }
18778 if (obj7) {
d55e5bfc 18779 {
1bd55598
RD
18780 arg8 = wxString_in_helper(obj7);
18781 if (arg8 == NULL) SWIG_fail;
18782 temp8 = true;
d55e5bfc 18783 }
1bd55598
RD
18784 }
18785 {
18786 if (!wxPyCheckForApp()) SWIG_fail;
18787 PyThreadState* __tstate = wxPyBeginAllowThreads();
18788 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18789 wxPyEndAllowThreads(__tstate);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18793 {
18794 if (temp3)
18795 delete arg3;
18796 }
18797 {
18798 if (temp8)
18799 delete arg8;
18800 }
18801 return resultobj;
18802fail:
18803 {
18804 if (temp3)
18805 delete arg3;
18806 }
18807 {
18808 if (temp8)
18809 delete arg8;
18810 }
18811 return NULL;
d55e5bfc
RD
18812}
18813
18814
1bd55598
RD
18815SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18816 PyObject *resultobj = 0;
18817 wxToggleButton *result = 0 ;
18818
18819 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18820 {
18821 if (!wxPyCheckForApp()) SWIG_fail;
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 result = (wxToggleButton *)new wxToggleButton();
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18828 return resultobj;
18829fail:
18830 return NULL;
18831}
18832
18833
18834SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18835 PyObject *resultobj = 0;
18836 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18837 wxWindow *arg2 = (wxWindow *) 0 ;
18838 int arg3 = (int) -1 ;
18839 wxString const &arg4_defvalue = wxPyEmptyString ;
18840 wxString *arg4 = (wxString *) &arg4_defvalue ;
18841 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18842 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18843 wxSize const &arg6_defvalue = wxDefaultSize ;
18844 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18845 long arg7 = (long) 0 ;
18846 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18847 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18848 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18849 wxString *arg9 = (wxString *) &arg9_defvalue ;
18850 bool result;
18851 void *argp1 = 0 ;
18852 int res1 = 0 ;
18853 void *argp2 = 0 ;
18854 int res2 = 0 ;
18855 int val3 ;
18856 int ecode3 = 0 ;
18857 bool temp4 = false ;
18858 wxPoint temp5 ;
18859 wxSize temp6 ;
18860 long val7 ;
18861 int ecode7 = 0 ;
18862 void *argp8 = 0 ;
18863 int res8 = 0 ;
18864 bool temp9 = false ;
18865 PyObject * obj0 = 0 ;
18866 PyObject * obj1 = 0 ;
18867 PyObject * obj2 = 0 ;
18868 PyObject * obj3 = 0 ;
18869 PyObject * obj4 = 0 ;
18870 PyObject * obj5 = 0 ;
18871 PyObject * obj6 = 0 ;
18872 PyObject * obj7 = 0 ;
18873 PyObject * obj8 = 0 ;
18874 char * kwnames[] = {
18875 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18876 };
18877
18878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18880 if (!SWIG_IsOK(res1)) {
18881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18882 }
18883 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18884 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18885 if (!SWIG_IsOK(res2)) {
18886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18887 }
18888 arg2 = reinterpret_cast< wxWindow * >(argp2);
18889 if (obj2) {
18890 ecode3 = SWIG_AsVal_int(obj2, &val3);
18891 if (!SWIG_IsOK(ecode3)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18893 }
18894 arg3 = static_cast< int >(val3);
18895 }
18896 if (obj3) {
36ed4f51 18897 {
1bd55598
RD
18898 arg4 = wxString_in_helper(obj3);
18899 if (arg4 == NULL) SWIG_fail;
18900 temp4 = true;
36ed4f51 18901 }
1bd55598
RD
18902 }
18903 if (obj4) {
36ed4f51 18904 {
1bd55598
RD
18905 arg5 = &temp5;
18906 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18907 }
1bd55598
RD
18908 }
18909 if (obj5) {
36ed4f51 18910 {
1bd55598
RD
18911 arg6 = &temp6;
18912 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18913 }
1bd55598
RD
18914 }
18915 if (obj6) {
18916 ecode7 = SWIG_AsVal_long(obj6, &val7);
18917 if (!SWIG_IsOK(ecode7)) {
18918 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18919 }
18920 arg7 = static_cast< long >(val7);
18921 }
18922 if (obj7) {
18923 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18924 if (!SWIG_IsOK(res8)) {
18925 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18926 }
1bd55598
RD
18927 if (!argp8) {
18928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18929 }
1bd55598
RD
18930 arg8 = reinterpret_cast< wxValidator * >(argp8);
18931 }
18932 if (obj8) {
d55e5bfc 18933 {
1bd55598
RD
18934 arg9 = wxString_in_helper(obj8);
18935 if (arg9 == NULL) SWIG_fail;
18936 temp9 = true;
d55e5bfc 18937 }
1bd55598
RD
18938 }
18939 {
18940 PyThreadState* __tstate = wxPyBeginAllowThreads();
18941 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18942 wxPyEndAllowThreads(__tstate);
18943 if (PyErr_Occurred()) SWIG_fail;
18944 }
18945 {
18946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18947 }
18948 {
18949 if (temp4)
18950 delete arg4;
18951 }
18952 {
18953 if (temp9)
18954 delete arg9;
18955 }
18956 return resultobj;
18957fail:
18958 {
18959 if (temp4)
18960 delete arg4;
18961 }
18962 {
18963 if (temp9)
18964 delete arg9;
18965 }
18966 return NULL;
18967}
18968
18969
18970SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18971 PyObject *resultobj = 0;
18972 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18973 bool arg2 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 bool val2 ;
18977 int ecode2 = 0 ;
18978 PyObject * obj0 = 0 ;
18979 PyObject * obj1 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "value", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18988 }
18989 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18990 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18991 if (!SWIG_IsOK(ecode2)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18993 }
18994 arg2 = static_cast< bool >(val2);
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 (arg1)->SetValue(arg2);
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 resultobj = SWIG_Py_Void();
19002 return resultobj;
19003fail:
19004 return NULL;
d55e5bfc
RD
19005}
19006
19007
1bd55598
RD
19008SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19009 PyObject *resultobj = 0;
19010 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19011 bool result;
19012 void *argp1 = 0 ;
19013 int res1 = 0 ;
19014 PyObject *swig_obj[1] ;
19015
19016 if (!args) SWIG_fail;
19017 swig_obj[0] = args;
19018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19019 if (!SWIG_IsOK(res1)) {
19020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19021 }
19022 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19023 {
19024 PyThreadState* __tstate = wxPyBeginAllowThreads();
19025 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 {
19030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19031 }
19032 return resultobj;
19033fail:
19034 return NULL;
f20a2e1f
RD
19035}
19036
19037
1bd55598
RD
19038SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj = 0;
19040 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19041 SwigValueWrapper<wxVisualAttributes > result;
19042 int val1 ;
19043 int ecode1 = 0 ;
19044 PyObject * obj0 = 0 ;
19045 char * kwnames[] = {
19046 (char *) "variant", NULL
19047 };
19048
19049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19050 if (obj0) {
19051 ecode1 = SWIG_AsVal_int(obj0, &val1);
19052 if (!SWIG_IsOK(ecode1)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19054 }
19055 arg1 = static_cast< wxWindowVariant >(val1);
19056 }
19057 {
19058 if (!wxPyCheckForApp()) SWIG_fail;
19059 PyThreadState* __tstate = wxPyBeginAllowThreads();
19060 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19061 wxPyEndAllowThreads(__tstate);
19062 if (PyErr_Occurred()) SWIG_fail;
19063 }
19064 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19065 return resultobj;
19066fail:
19067 return NULL;
d55e5bfc
RD
19068}
19069
19070
1bd55598
RD
19071SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19072 PyObject *obj;
19073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19074 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19075 return SWIG_Py_Void();
d55e5bfc
RD
19076}
19077
1bd55598
RD
19078SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19079 return SWIG_Python_InitShadowInstance(args);
19080}
d55e5bfc 19081
1bd55598
RD
19082SWIGINTERN int NotebookNameStr_set(PyObject *) {
19083 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19084 return 1;
d55e5bfc
RD
19085}
19086
19087
1bd55598
RD
19088SWIGINTERN PyObject *NotebookNameStr_get(void) {
19089 PyObject *pyobj = 0;
19090
19091 {
d55e5bfc 19092#if wxUSE_UNICODE
1bd55598 19093 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19094#else
1bd55598 19095 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19096#endif
1bd55598
RD
19097 }
19098 return pyobj;
d55e5bfc
RD
19099}
19100
19101
1bd55598
RD
19102SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19103 PyObject *resultobj = 0;
19104 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19105 size_t result;
19106 void *argp1 = 0 ;
19107 int res1 = 0 ;
19108 PyObject *swig_obj[1] ;
19109
19110 if (!args) SWIG_fail;
19111 swig_obj[0] = args;
19112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19113 if (!SWIG_IsOK(res1)) {
19114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19115 }
19116 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19117 {
19118 PyThreadState* __tstate = wxPyBeginAllowThreads();
19119 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19124 return resultobj;
19125fail:
19126 return NULL;
19127}
19128
19129
19130SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj = 0;
19132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19133 size_t arg2 ;
19134 wxWindow *result = 0 ;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 size_t val2 ;
19138 int ecode2 = 0 ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 char * kwnames[] = {
19142 (char *) "self",(char *) "n", NULL
19143 };
19144
19145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19147 if (!SWIG_IsOK(res1)) {
19148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19149 }
19150 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19152 if (!SWIG_IsOK(ecode2)) {
19153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19154 }
19155 arg2 = static_cast< size_t >(val2);
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 result = (wxWindow *)(arg1)->GetPage(arg2);
19159 wxPyEndAllowThreads(__tstate);
19160 if (PyErr_Occurred()) SWIG_fail;
19161 }
19162 {
19163 resultobj = wxPyMake_wxObject(result, 0);
19164 }
19165 return resultobj;
19166fail:
19167 return NULL;
d55e5bfc
RD
19168}
19169
19170
1bd55598
RD
19171SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19172 PyObject *resultobj = 0;
19173 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19174 wxWindow *result = 0 ;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 PyObject *swig_obj[1] ;
19178
19179 if (!args) SWIG_fail;
19180 swig_obj[0] = args;
19181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19182 if (!SWIG_IsOK(res1)) {
19183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19184 }
19185 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19186 {
19187 PyThreadState* __tstate = wxPyBeginAllowThreads();
19188 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 {
19193 resultobj = wxPyMake_wxObject(result, 0);
19194 }
19195 return resultobj;
19196fail:
19197 return NULL;
d55e5bfc
RD
19198}
19199
19200
1bd55598
RD
19201SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19202 PyObject *resultobj = 0;
19203 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19204 int result;
19205 void *argp1 = 0 ;
19206 int res1 = 0 ;
19207 PyObject *swig_obj[1] ;
19208
19209 if (!args) SWIG_fail;
19210 swig_obj[0] = args;
19211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19212 if (!SWIG_IsOK(res1)) {
19213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19214 }
19215 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19216 {
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 resultobj = SWIG_From_int(static_cast< int >(result));
19223 return resultobj;
19224fail:
19225 return NULL;
19226}
19227
19228
19229SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19230 PyObject *resultobj = 0;
19231 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19232 size_t arg2 ;
19233 wxString *arg3 = 0 ;
19234 bool result;
19235 void *argp1 = 0 ;
19236 int res1 = 0 ;
19237 size_t val2 ;
19238 int ecode2 = 0 ;
19239 bool temp3 = false ;
19240 PyObject * obj0 = 0 ;
19241 PyObject * obj1 = 0 ;
19242 PyObject * obj2 = 0 ;
19243 char * kwnames[] = {
19244 (char *) "self",(char *) "n",(char *) "strText", NULL
19245 };
19246
19247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19249 if (!SWIG_IsOK(res1)) {
19250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19251 }
19252 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19253 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19254 if (!SWIG_IsOK(ecode2)) {
19255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19256 }
19257 arg2 = static_cast< size_t >(val2);
19258 {
19259 arg3 = wxString_in_helper(obj2);
19260 if (arg3 == NULL) SWIG_fail;
19261 temp3 = true;
19262 }
19263 {
19264 PyThreadState* __tstate = wxPyBeginAllowThreads();
19265 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
19269 {
19270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19271 }
19272 {
19273 if (temp3)
19274 delete arg3;
19275 }
19276 return resultobj;
19277fail:
19278 {
19279 if (temp3)
19280 delete arg3;
19281 }
19282 return NULL;
19283}
19284
19285
19286SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19287 PyObject *resultobj = 0;
19288 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19289 size_t arg2 ;
19290 wxString result;
19291 void *argp1 = 0 ;
19292 int res1 = 0 ;
19293 size_t val2 ;
19294 int ecode2 = 0 ;
19295 PyObject * obj0 = 0 ;
19296 PyObject * obj1 = 0 ;
19297 char * kwnames[] = {
19298 (char *) "self",(char *) "n", NULL
19299 };
19300
19301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19307 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19308 if (!SWIG_IsOK(ecode2)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19310 }
19311 arg2 = static_cast< size_t >(val2);
19312 {
19313 PyThreadState* __tstate = wxPyBeginAllowThreads();
19314 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 {
19319#if wxUSE_UNICODE
19320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19321#else
19322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19323#endif
19324 }
19325 return resultobj;
19326fail:
19327 return NULL;
19328}
19329
19330
19331SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj = 0;
19333 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19334 wxImageList *arg2 = (wxImageList *) 0 ;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 void *argp2 = 0 ;
19338 int res2 = 0 ;
19339 PyObject * obj0 = 0 ;
19340 PyObject * obj1 = 0 ;
19341 char * kwnames[] = {
19342 (char *) "self",(char *) "imageList", NULL
19343 };
19344
19345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19347 if (!SWIG_IsOK(res1)) {
19348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19349 }
19350 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19352 if (!SWIG_IsOK(res2)) {
19353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19354 }
19355 arg2 = reinterpret_cast< wxImageList * >(argp2);
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->SetImageList(arg2);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 resultobj = SWIG_Py_Void();
19363 return resultobj;
19364fail:
19365 return NULL;
19366}
19367
19368
19369SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19370 PyObject *resultobj = 0;
19371 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19372 wxImageList *arg2 = (wxImageList *) 0 ;
19373 void *argp1 = 0 ;
19374 int res1 = 0 ;
19375 int res2 = 0 ;
19376 PyObject * obj0 = 0 ;
19377 PyObject * obj1 = 0 ;
19378 char * kwnames[] = {
19379 (char *) "self",(char *) "imageList", NULL
19380 };
19381
19382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19384 if (!SWIG_IsOK(res1)) {
19385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19386 }
19387 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19388 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19389 if (!SWIG_IsOK(res2)) {
19390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19391 }
19392 {
19393 PyThreadState* __tstate = wxPyBeginAllowThreads();
19394 (arg1)->AssignImageList(arg2);
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 resultobj = SWIG_Py_Void();
19399 return resultobj;
19400fail:
19401 return NULL;
d55e5bfc
RD
19402}
19403
19404
1bd55598
RD
19405SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19406 PyObject *resultobj = 0;
19407 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19408 wxImageList *result = 0 ;
19409 void *argp1 = 0 ;
19410 int res1 = 0 ;
19411 PyObject *swig_obj[1] ;
19412
19413 if (!args) SWIG_fail;
19414 swig_obj[0] = args;
19415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19416 if (!SWIG_IsOK(res1)) {
19417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19418 }
19419 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
3ecece7e
RD
19426 {
19427 resultobj = wxPyMake_wxObject(result, (bool)0);
19428 }
1bd55598
RD
19429 return resultobj;
19430fail:
19431 return NULL;
19432}
19433
19434
19435SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19436 PyObject *resultobj = 0;
19437 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19438 size_t arg2 ;
19439 int result;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 size_t val2 ;
19443 int ecode2 = 0 ;
19444 PyObject * obj0 = 0 ;
19445 PyObject * obj1 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "n", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19454 }
19455 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19456 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19457 if (!SWIG_IsOK(ecode2)) {
19458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19459 }
19460 arg2 = static_cast< size_t >(val2);
19461 {
19462 PyThreadState* __tstate = wxPyBeginAllowThreads();
19463 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 resultobj = SWIG_From_int(static_cast< int >(result));
19468 return resultobj;
19469fail:
19470 return NULL;
19471}
19472
19473
19474SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj = 0;
19476 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19477 size_t arg2 ;
19478 int arg3 ;
19479 bool result;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 size_t val2 ;
19483 int ecode2 = 0 ;
19484 int val3 ;
19485 int ecode3 = 0 ;
19486 PyObject * obj0 = 0 ;
19487 PyObject * obj1 = 0 ;
19488 PyObject * obj2 = 0 ;
19489 char * kwnames[] = {
19490 (char *) "self",(char *) "n",(char *) "imageId", NULL
19491 };
19492
19493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19495 if (!SWIG_IsOK(res1)) {
19496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19497 }
19498 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19499 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19500 if (!SWIG_IsOK(ecode2)) {
19501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19502 }
19503 arg2 = static_cast< size_t >(val2);
19504 ecode3 = SWIG_AsVal_int(obj2, &val3);
19505 if (!SWIG_IsOK(ecode3)) {
19506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19507 }
19508 arg3 = static_cast< int >(val3);
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19512 wxPyEndAllowThreads(__tstate);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
19515 {
19516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19517 }
19518 return resultobj;
19519fail:
19520 return NULL;
19521}
19522
19523
19524SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj = 0;
19526 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19527 wxSize *arg2 = 0 ;
19528 void *argp1 = 0 ;
19529 int res1 = 0 ;
19530 wxSize temp2 ;
19531 PyObject * obj0 = 0 ;
19532 PyObject * obj1 = 0 ;
19533 char * kwnames[] = {
19534 (char *) "self",(char *) "size", NULL
19535 };
19536
19537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19539 if (!SWIG_IsOK(res1)) {
19540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19541 }
19542 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19543 {
19544 arg2 = &temp2;
19545 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19546 }
19547 {
19548 PyThreadState* __tstate = wxPyBeginAllowThreads();
19549 (arg1)->SetPageSize((wxSize const &)*arg2);
19550 wxPyEndAllowThreads(__tstate);
19551 if (PyErr_Occurred()) SWIG_fail;
19552 }
19553 resultobj = SWIG_Py_Void();
19554 return resultobj;
19555fail:
19556 return NULL;
19557}
19558
19559
19560SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19561 PyObject *resultobj = 0;
19562 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19563 wxSize *arg2 = 0 ;
19564 wxSize result;
19565 void *argp1 = 0 ;
19566 int res1 = 0 ;
19567 wxSize temp2 ;
19568 PyObject * obj0 = 0 ;
19569 PyObject * obj1 = 0 ;
19570 char * kwnames[] = {
19571 (char *) "self",(char *) "sizePage", NULL
19572 };
19573
19574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19576 if (!SWIG_IsOK(res1)) {
19577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19578 }
19579 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19580 {
19581 arg2 = &temp2;
19582 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19583 }
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19587 wxPyEndAllowThreads(__tstate);
19588 if (PyErr_Occurred()) SWIG_fail;
19589 }
19590 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19591 return resultobj;
19592fail:
19593 return NULL;
d55e5bfc
RD
19594}
19595
19596
1bd55598
RD
19597SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19598 PyObject *resultobj = 0;
19599 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19600 unsigned int result;
1bd55598
RD
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 PyObject *swig_obj[1] ;
19604
19605 if (!args) SWIG_fail;
19606 swig_obj[0] = args;
19607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19608 if (!SWIG_IsOK(res1)) {
19609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19610 }
19611 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19614 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
e9d6f3a4 19618 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19619 return resultobj;
19620fail:
19621 return NULL;
19622}
19623
19624
19625SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19626 PyObject *resultobj = 0;
19627 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19628 unsigned int arg2 ;
1bd55598
RD
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
e9d6f3a4 19631 unsigned int val2 ;
1bd55598
RD
19632 int ecode2 = 0 ;
19633 PyObject * obj0 = 0 ;
19634 PyObject * obj1 = 0 ;
19635 char * kwnames[] = {
19636 (char *) "self",(char *) "internalBorder", NULL
19637 };
19638
19639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19641 if (!SWIG_IsOK(res1)) {
19642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19643 }
19644 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19645 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19646 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19648 }
e9d6f3a4 19649 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19650 {
19651 PyThreadState* __tstate = wxPyBeginAllowThreads();
19652 (arg1)->SetInternalBorder(arg2);
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 resultobj = SWIG_Py_Void();
19657 return resultobj;
19658fail:
19659 return NULL;
d55e5bfc
RD
19660}
19661
19662
1bd55598
RD
19663SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19664 PyObject *resultobj = 0;
19665 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19666 bool result;
19667 void *argp1 = 0 ;
19668 int res1 = 0 ;
19669 PyObject *swig_obj[1] ;
19670
19671 if (!args) SWIG_fail;
19672 swig_obj[0] = args;
19673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19674 if (!SWIG_IsOK(res1)) {
19675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19676 }
19677 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19678 {
19679 PyThreadState* __tstate = wxPyBeginAllowThreads();
19680 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19681 wxPyEndAllowThreads(__tstate);
19682 if (PyErr_Occurred()) SWIG_fail;
19683 }
19684 {
19685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19686 }
19687 return resultobj;
19688fail:
19689 return NULL;
19690}
19691
19692
e9d6f3a4
RD
19693SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19694 PyObject *resultobj = 0;
19695 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19696 int arg2 ;
19697 void *argp1 = 0 ;
19698 int res1 = 0 ;
19699 int val2 ;
19700 int ecode2 = 0 ;
19701 PyObject * obj0 = 0 ;
19702 PyObject * obj1 = 0 ;
19703 char * kwnames[] = {
19704 (char *) "self",(char *) "margin", NULL
19705 };
19706
19707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19709 if (!SWIG_IsOK(res1)) {
19710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19711 }
19712 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19713 ecode2 = SWIG_AsVal_int(obj1, &val2);
19714 if (!SWIG_IsOK(ecode2)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19716 }
19717 arg2 = static_cast< int >(val2);
19718 {
19719 PyThreadState* __tstate = wxPyBeginAllowThreads();
19720 (arg1)->SetControlMargin(arg2);
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_Py_Void();
19725 return resultobj;
19726fail:
19727 return NULL;
19728}
19729
19730
19731SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19732 PyObject *resultobj = 0;
19733 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19734 int result;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 PyObject *swig_obj[1] ;
19738
19739 if (!args) SWIG_fail;
19740 swig_obj[0] = args;
19741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19742 if (!SWIG_IsOK(res1)) {
19743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19744 }
19745 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19746 {
19747 PyThreadState* __tstate = wxPyBeginAllowThreads();
19748 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 resultobj = SWIG_From_int(static_cast< int >(result));
19753 return resultobj;
19754fail:
19755 return NULL;
19756}
19757
19758
1bd55598
RD
19759SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19760 PyObject *resultobj = 0;
19761 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19762 bool arg2 ;
19763 void *argp1 = 0 ;
19764 int res1 = 0 ;
19765 bool val2 ;
19766 int ecode2 = 0 ;
19767 PyObject * obj0 = 0 ;
19768 PyObject * obj1 = 0 ;
19769 char * kwnames[] = {
19770 (char *) "self",(char *) "fit", NULL
19771 };
19772
19773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19775 if (!SWIG_IsOK(res1)) {
19776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19777 }
19778 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19779 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19780 if (!SWIG_IsOK(ecode2)) {
19781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19782 }
19783 arg2 = static_cast< bool >(val2);
19784 {
19785 PyThreadState* __tstate = wxPyBeginAllowThreads();
19786 (arg1)->SetFitToCurrentPage(arg2);
19787 wxPyEndAllowThreads(__tstate);
19788 if (PyErr_Occurred()) SWIG_fail;
19789 }
19790 resultobj = SWIG_Py_Void();
19791 return resultobj;
19792fail:
19793 return NULL;
d55e5bfc
RD
19794}
19795
19796
1bd55598
RD
19797SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19798 PyObject *resultobj = 0;
19799 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19800 bool result;
19801 void *argp1 = 0 ;
19802 int res1 = 0 ;
19803 PyObject *swig_obj[1] ;
19804
19805 if (!args) SWIG_fail;
19806 swig_obj[0] = args;
19807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19808 if (!SWIG_IsOK(res1)) {
19809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19810 }
19811 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 {
19819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19820 }
19821 return resultobj;
19822fail:
19823 return NULL;
19824}
19825
19826
e9d6f3a4
RD
19827SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19828 PyObject *resultobj = 0;
19829 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19830 wxSizer *result = 0 ;
19831 void *argp1 = 0 ;
19832 int res1 = 0 ;
19833 PyObject *swig_obj[1] ;
19834
19835 if (!args) SWIG_fail;
19836 swig_obj[0] = args;
19837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19838 if (!SWIG_IsOK(res1)) {
19839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19840 }
19841 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19845 wxPyEndAllowThreads(__tstate);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 }
19848 {
19849 resultobj = wxPyMake_wxObject(result, (bool)0);
19850 }
19851 return resultobj;
19852fail:
19853 return NULL;
19854}
19855
19856
1bd55598
RD
19857SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19858 PyObject *resultobj = 0;
19859 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19860 size_t arg2 ;
19861 bool result;
19862 void *argp1 = 0 ;
19863 int res1 = 0 ;
19864 size_t val2 ;
19865 int ecode2 = 0 ;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868 char * kwnames[] = {
19869 (char *) "self",(char *) "n", NULL
19870 };
19871
19872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19874 if (!SWIG_IsOK(res1)) {
19875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19876 }
19877 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19878 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19879 if (!SWIG_IsOK(ecode2)) {
19880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19881 }
19882 arg2 = static_cast< size_t >(val2);
19883 {
19884 PyThreadState* __tstate = wxPyBeginAllowThreads();
19885 result = (bool)(arg1)->DeletePage(arg2);
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
19889 {
19890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19891 }
19892 return resultobj;
19893fail:
19894 return NULL;
19895}
19896
19897
19898SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19899 PyObject *resultobj = 0;
19900 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19901 size_t arg2 ;
19902 bool result;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 size_t val2 ;
19906 int ecode2 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 char * kwnames[] = {
19910 (char *) "self",(char *) "n", NULL
19911 };
19912
19913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19915 if (!SWIG_IsOK(res1)) {
19916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19917 }
19918 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19919 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19920 if (!SWIG_IsOK(ecode2)) {
19921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19922 }
19923 arg2 = static_cast< size_t >(val2);
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 result = (bool)(arg1)->RemovePage(arg2);
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 {
19931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19932 }
19933 return resultobj;
19934fail:
19935 return NULL;
f20a2e1f
RD
19936}
19937
19938
1bd55598
RD
19939SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19940 PyObject *resultobj = 0;
19941 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19942 bool result;
19943 void *argp1 = 0 ;
19944 int res1 = 0 ;
19945 PyObject *swig_obj[1] ;
19946
19947 if (!args) SWIG_fail;
19948 swig_obj[0] = args;
19949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19952 }
19953 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = (bool)(arg1)->DeleteAllPages();
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 {
19961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19962 }
19963 return resultobj;
19964fail:
19965 return NULL;
19966}
19967
19968
19969SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19970 PyObject *resultobj = 0;
19971 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19972 wxWindow *arg2 = (wxWindow *) 0 ;
19973 wxString *arg3 = 0 ;
19974 bool arg4 = (bool) false ;
19975 int arg5 = (int) -1 ;
19976 bool result;
19977 void *argp1 = 0 ;
19978 int res1 = 0 ;
19979 void *argp2 = 0 ;
19980 int res2 = 0 ;
19981 bool temp3 = false ;
19982 bool val4 ;
19983 int ecode4 = 0 ;
19984 int val5 ;
19985 int ecode5 = 0 ;
19986 PyObject * obj0 = 0 ;
19987 PyObject * obj1 = 0 ;
19988 PyObject * obj2 = 0 ;
19989 PyObject * obj3 = 0 ;
19990 PyObject * obj4 = 0 ;
19991 char * kwnames[] = {
19992 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19993 };
19994
19995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19999 }
20000 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20001 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20002 if (!SWIG_IsOK(res2)) {
20003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20004 }
20005 arg2 = reinterpret_cast< wxWindow * >(argp2);
20006 {
20007 arg3 = wxString_in_helper(obj2);
20008 if (arg3 == NULL) SWIG_fail;
20009 temp3 = true;
20010 }
20011 if (obj3) {
20012 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20013 if (!SWIG_IsOK(ecode4)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20015 }
20016 arg4 = static_cast< bool >(val4);
20017 }
20018 if (obj4) {
20019 ecode5 = SWIG_AsVal_int(obj4, &val5);
20020 if (!SWIG_IsOK(ecode5)) {
20021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20022 }
20023 arg5 = static_cast< int >(val5);
20024 }
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20028 wxPyEndAllowThreads(__tstate);
20029 if (PyErr_Occurred()) SWIG_fail;
20030 }
20031 {
20032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20033 }
20034 {
20035 if (temp3)
20036 delete arg3;
20037 }
20038 return resultobj;
20039fail:
20040 {
20041 if (temp3)
20042 delete arg3;
20043 }
20044 return NULL;
20045}
20046
20047
20048SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20049 PyObject *resultobj = 0;
20050 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20051 size_t arg2 ;
20052 wxWindow *arg3 = (wxWindow *) 0 ;
20053 wxString *arg4 = 0 ;
20054 bool arg5 = (bool) false ;
20055 int arg6 = (int) -1 ;
20056 bool result;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 size_t val2 ;
20060 int ecode2 = 0 ;
20061 void *argp3 = 0 ;
20062 int res3 = 0 ;
20063 bool temp4 = false ;
20064 bool val5 ;
20065 int ecode5 = 0 ;
20066 int val6 ;
20067 int ecode6 = 0 ;
20068 PyObject * obj0 = 0 ;
20069 PyObject * obj1 = 0 ;
20070 PyObject * obj2 = 0 ;
20071 PyObject * obj3 = 0 ;
20072 PyObject * obj4 = 0 ;
20073 PyObject * obj5 = 0 ;
20074 char * kwnames[] = {
20075 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20076 };
20077
20078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20080 if (!SWIG_IsOK(res1)) {
20081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20082 }
20083 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20085 if (!SWIG_IsOK(ecode2)) {
20086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20087 }
20088 arg2 = static_cast< size_t >(val2);
20089 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20090 if (!SWIG_IsOK(res3)) {
20091 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20092 }
20093 arg3 = reinterpret_cast< wxWindow * >(argp3);
20094 {
20095 arg4 = wxString_in_helper(obj3);
20096 if (arg4 == NULL) SWIG_fail;
20097 temp4 = true;
20098 }
20099 if (obj4) {
20100 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20101 if (!SWIG_IsOK(ecode5)) {
20102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20103 }
20104 arg5 = static_cast< bool >(val5);
20105 }
20106 if (obj5) {
20107 ecode6 = SWIG_AsVal_int(obj5, &val6);
20108 if (!SWIG_IsOK(ecode6)) {
20109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20110 }
20111 arg6 = static_cast< int >(val6);
20112 }
20113 {
20114 PyThreadState* __tstate = wxPyBeginAllowThreads();
20115 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20116 wxPyEndAllowThreads(__tstate);
20117 if (PyErr_Occurred()) SWIG_fail;
20118 }
20119 {
20120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20121 }
20122 {
20123 if (temp4)
20124 delete arg4;
20125 }
20126 return resultobj;
20127fail:
20128 {
20129 if (temp4)
20130 delete arg4;
20131 }
20132 return NULL;
20133}
20134
20135
20136SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20137 PyObject *resultobj = 0;
20138 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20139 size_t arg2 ;
20140 int result;
20141 void *argp1 = 0 ;
20142 int res1 = 0 ;
20143 size_t val2 ;
20144 int ecode2 = 0 ;
20145 PyObject * obj0 = 0 ;
20146 PyObject * obj1 = 0 ;
20147 char * kwnames[] = {
20148 (char *) "self",(char *) "n", NULL
20149 };
20150
20151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20153 if (!SWIG_IsOK(res1)) {
20154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20155 }
20156 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20157 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20158 if (!SWIG_IsOK(ecode2)) {
20159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20160 }
20161 arg2 = static_cast< size_t >(val2);
20162 {
20163 PyThreadState* __tstate = wxPyBeginAllowThreads();
20164 result = (int)(arg1)->SetSelection(arg2);
20165 wxPyEndAllowThreads(__tstate);
20166 if (PyErr_Occurred()) SWIG_fail;
20167 }
20168 resultobj = SWIG_From_int(static_cast< int >(result));
20169 return resultobj;
20170fail:
20171 return NULL;
20172}
20173
20174
b39fe951
RD
20175SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj = 0;
20177 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20178 size_t arg2 ;
20179 int result;
20180 void *argp1 = 0 ;
20181 int res1 = 0 ;
20182 size_t val2 ;
20183 int ecode2 = 0 ;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 char * kwnames[] = {
20187 (char *) "self",(char *) "n", NULL
20188 };
20189
20190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20192 if (!SWIG_IsOK(res1)) {
20193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20194 }
20195 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20196 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20197 if (!SWIG_IsOK(ecode2)) {
20198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20199 }
20200 arg2 = static_cast< size_t >(val2);
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 result = (int)(arg1)->ChangeSelection(arg2);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_From_int(static_cast< int >(result));
20208 return resultobj;
20209fail:
20210 return NULL;
20211}
20212
20213
1bd55598
RD
20214SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20217 bool arg2 = (bool) true ;
20218 void *argp1 = 0 ;
20219 int res1 = 0 ;
20220 bool val2 ;
20221 int ecode2 = 0 ;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 char * kwnames[] = {
20225 (char *) "self",(char *) "forward", NULL
20226 };
20227
20228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20230 if (!SWIG_IsOK(res1)) {
20231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20232 }
20233 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20234 if (obj1) {
20235 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20236 if (!SWIG_IsOK(ecode2)) {
20237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20238 }
20239 arg2 = static_cast< bool >(val2);
20240 }
20241 {
20242 PyThreadState* __tstate = wxPyBeginAllowThreads();
20243 (arg1)->AdvanceSelection(arg2);
20244 wxPyEndAllowThreads(__tstate);
20245 if (PyErr_Occurred()) SWIG_fail;
20246 }
20247 resultobj = SWIG_Py_Void();
20248 return resultobj;
20249fail:
20250 return NULL;
20251}
20252
20253
704eda0c
RD
20254SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj = 0;
20256 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20257 wxPoint *arg2 = 0 ;
20258 long *arg3 = (long *) 0 ;
20259 int result;
20260 void *argp1 = 0 ;
20261 int res1 = 0 ;
20262 wxPoint temp2 ;
20263 long temp3 ;
20264 int res3 = SWIG_TMPOBJ ;
20265 PyObject * obj0 = 0 ;
20266 PyObject * obj1 = 0 ;
20267 char * kwnames[] = {
20268 (char *) "self",(char *) "pt", NULL
20269 };
20270
20271 arg3 = &temp3;
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20274 if (!SWIG_IsOK(res1)) {
20275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20276 }
20277 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20278 {
20279 arg2 = &temp2;
20280 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20281 }
20282 {
20283 PyThreadState* __tstate = wxPyBeginAllowThreads();
20284 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20285 wxPyEndAllowThreads(__tstate);
20286 if (PyErr_Occurred()) SWIG_fail;
20287 }
20288 resultobj = SWIG_From_int(static_cast< int >(result));
20289 if (SWIG_IsTmpObj(res3)) {
20290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20291 } else {
20292 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20294 }
20295 return resultobj;
20296fail:
20297 return NULL;
20298}
20299
20300
1bd55598
RD
20301SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20304 SwigValueWrapper<wxVisualAttributes > result;
20305 int val1 ;
20306 int ecode1 = 0 ;
20307 PyObject * obj0 = 0 ;
20308 char * kwnames[] = {
20309 (char *) "variant", NULL
20310 };
20311
20312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20313 if (obj0) {
20314 ecode1 = SWIG_AsVal_int(obj0, &val1);
20315 if (!SWIG_IsOK(ecode1)) {
20316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20317 }
20318 arg1 = static_cast< wxWindowVariant >(val1);
20319 }
20320 {
20321 if (!wxPyCheckForApp()) SWIG_fail;
20322 PyThreadState* __tstate = wxPyBeginAllowThreads();
20323 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20324 wxPyEndAllowThreads(__tstate);
20325 if (PyErr_Occurred()) SWIG_fail;
20326 }
20327 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20328 return resultobj;
20329fail:
20330 return NULL;
20331}
20332
20333
20334SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20335 PyObject *obj;
20336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20337 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20338 return SWIG_Py_Void();
20339}
20340
20341SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj = 0;
20343 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20344 int arg2 = (int) 0 ;
20345 int arg3 = (int) -1 ;
20346 int arg4 = (int) -1 ;
20347 wxBookCtrlBaseEvent *result = 0 ;
20348 int val1 ;
20349 int ecode1 = 0 ;
20350 int val2 ;
20351 int ecode2 = 0 ;
20352 int val3 ;
20353 int ecode3 = 0 ;
20354 int val4 ;
20355 int ecode4 = 0 ;
20356 PyObject * obj0 = 0 ;
20357 PyObject * obj1 = 0 ;
20358 PyObject * obj2 = 0 ;
20359 PyObject * obj3 = 0 ;
20360 char * kwnames[] = {
20361 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20362 };
20363
20364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20365 if (obj0) {
20366 ecode1 = SWIG_AsVal_int(obj0, &val1);
20367 if (!SWIG_IsOK(ecode1)) {
20368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20369 }
20370 arg1 = static_cast< wxEventType >(val1);
20371 }
20372 if (obj1) {
20373 ecode2 = SWIG_AsVal_int(obj1, &val2);
20374 if (!SWIG_IsOK(ecode2)) {
20375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20376 }
20377 arg2 = static_cast< int >(val2);
20378 }
20379 if (obj2) {
20380 ecode3 = SWIG_AsVal_int(obj2, &val3);
20381 if (!SWIG_IsOK(ecode3)) {
20382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20383 }
20384 arg3 = static_cast< int >(val3);
20385 }
20386 if (obj3) {
20387 ecode4 = SWIG_AsVal_int(obj3, &val4);
20388 if (!SWIG_IsOK(ecode4)) {
20389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20390 }
20391 arg4 = static_cast< int >(val4);
20392 }
20393 {
20394 PyThreadState* __tstate = wxPyBeginAllowThreads();
20395 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20396 wxPyEndAllowThreads(__tstate);
20397 if (PyErr_Occurred()) SWIG_fail;
20398 }
20399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20400 return resultobj;
20401fail:
20402 return NULL;
d55e5bfc
RD
20403}
20404
20405
1bd55598
RD
20406SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20407 PyObject *resultobj = 0;
20408 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20409 int result;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 PyObject *swig_obj[1] ;
20413
20414 if (!args) SWIG_fail;
20415 swig_obj[0] = args;
20416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20417 if (!SWIG_IsOK(res1)) {
20418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20419 }
20420 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_From_int(static_cast< int >(result));
20428 return resultobj;
20429fail:
20430 return NULL;
20431}
20432
20433
20434SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj = 0;
20436 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20437 int arg2 ;
20438 void *argp1 = 0 ;
20439 int res1 = 0 ;
20440 int val2 ;
20441 int ecode2 = 0 ;
20442 PyObject * obj0 = 0 ;
20443 PyObject * obj1 = 0 ;
20444 char * kwnames[] = {
20445 (char *) "self",(char *) "nSel", NULL
20446 };
20447
20448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20450 if (!SWIG_IsOK(res1)) {
20451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20452 }
20453 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20454 ecode2 = SWIG_AsVal_int(obj1, &val2);
20455 if (!SWIG_IsOK(ecode2)) {
20456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20457 }
20458 arg2 = static_cast< int >(val2);
20459 {
20460 PyThreadState* __tstate = wxPyBeginAllowThreads();
20461 (arg1)->SetSelection(arg2);
20462 wxPyEndAllowThreads(__tstate);
20463 if (PyErr_Occurred()) SWIG_fail;
20464 }
20465 resultobj = SWIG_Py_Void();
20466 return resultobj;
20467fail:
20468 return NULL;
d55e5bfc
RD
20469}
20470
20471
1bd55598
RD
20472SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20473 PyObject *resultobj = 0;
20474 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20475 int result;
20476 void *argp1 = 0 ;
20477 int res1 = 0 ;
20478 PyObject *swig_obj[1] ;
20479
20480 if (!args) SWIG_fail;
20481 swig_obj[0] = args;
20482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20483 if (!SWIG_IsOK(res1)) {
20484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20485 }
20486 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20487 {
20488 PyThreadState* __tstate = wxPyBeginAllowThreads();
20489 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20490 wxPyEndAllowThreads(__tstate);
20491 if (PyErr_Occurred()) SWIG_fail;
20492 }
20493 resultobj = SWIG_From_int(static_cast< int >(result));
20494 return resultobj;
20495fail:
20496 return NULL;
20497}
20498
20499
20500SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20501 PyObject *resultobj = 0;
20502 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20503 int arg2 ;
20504 void *argp1 = 0 ;
20505 int res1 = 0 ;
20506 int val2 ;
20507 int ecode2 = 0 ;
20508 PyObject * obj0 = 0 ;
20509 PyObject * obj1 = 0 ;
20510 char * kwnames[] = {
20511 (char *) "self",(char *) "nOldSel", NULL
20512 };
20513
20514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20516 if (!SWIG_IsOK(res1)) {
20517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20518 }
20519 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20520 ecode2 = SWIG_AsVal_int(obj1, &val2);
20521 if (!SWIG_IsOK(ecode2)) {
20522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20523 }
20524 arg2 = static_cast< int >(val2);
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 (arg1)->SetOldSelection(arg2);
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 resultobj = SWIG_Py_Void();
20532 return resultobj;
20533fail:
20534 return NULL;
20535}
20536
20537
20538SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20539 PyObject *obj;
20540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20541 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20542 return SWIG_Py_Void();
20543}
20544
20545SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20546 return SWIG_Python_InitShadowInstance(args);
20547}
20548
20549SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20550 PyObject *resultobj = 0;
20551 wxWindow *arg1 = (wxWindow *) 0 ;
20552 int arg2 = (int) -1 ;
20553 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20554 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20555 wxSize const &arg4_defvalue = wxDefaultSize ;
20556 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20557 long arg5 = (long) 0 ;
20558 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20559 wxString *arg6 = (wxString *) &arg6_defvalue ;
20560 wxNotebook *result = 0 ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 int val2 ;
20564 int ecode2 = 0 ;
20565 wxPoint temp3 ;
20566 wxSize temp4 ;
20567 long val5 ;
20568 int ecode5 = 0 ;
20569 bool temp6 = false ;
20570 PyObject * obj0 = 0 ;
20571 PyObject * obj1 = 0 ;
20572 PyObject * obj2 = 0 ;
20573 PyObject * obj3 = 0 ;
20574 PyObject * obj4 = 0 ;
20575 PyObject * obj5 = 0 ;
20576 char * kwnames[] = {
20577 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20578 };
20579
20580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20582 if (!SWIG_IsOK(res1)) {
20583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20584 }
20585 arg1 = reinterpret_cast< wxWindow * >(argp1);
20586 if (obj1) {
20587 ecode2 = SWIG_AsVal_int(obj1, &val2);
20588 if (!SWIG_IsOK(ecode2)) {
20589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20590 }
20591 arg2 = static_cast< int >(val2);
20592 }
20593 if (obj2) {
20594 {
20595 arg3 = &temp3;
20596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20597 }
1bd55598
RD
20598 }
20599 if (obj3) {
d55e5bfc 20600 {
1bd55598
RD
20601 arg4 = &temp4;
20602 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20603 }
1bd55598
RD
20604 }
20605 if (obj4) {
20606 ecode5 = SWIG_AsVal_long(obj4, &val5);
20607 if (!SWIG_IsOK(ecode5)) {
20608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20609 }
20610 arg5 = static_cast< long >(val5);
20611 }
20612 if (obj5) {
d55e5bfc 20613 {
1bd55598
RD
20614 arg6 = wxString_in_helper(obj5);
20615 if (arg6 == NULL) SWIG_fail;
20616 temp6 = true;
d55e5bfc 20617 }
1bd55598
RD
20618 }
20619 {
20620 if (!wxPyCheckForApp()) SWIG_fail;
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20627 {
20628 if (temp6)
20629 delete arg6;
20630 }
20631 return resultobj;
20632fail:
20633 {
20634 if (temp6)
20635 delete arg6;
20636 }
20637 return NULL;
20638}
20639
20640
20641SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20642 PyObject *resultobj = 0;
20643 wxNotebook *result = 0 ;
20644
20645 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20646 {
20647 if (!wxPyCheckForApp()) SWIG_fail;
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 result = (wxNotebook *)new wxNotebook();
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20654 return resultobj;
20655fail:
20656 return NULL;
20657}
20658
20659
20660SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20661 PyObject *resultobj = 0;
20662 wxNotebook *arg1 = (wxNotebook *) 0 ;
20663 wxWindow *arg2 = (wxWindow *) 0 ;
20664 int arg3 = (int) -1 ;
20665 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20666 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20667 wxSize const &arg5_defvalue = wxDefaultSize ;
20668 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20669 long arg6 = (long) 0 ;
20670 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20671 wxString *arg7 = (wxString *) &arg7_defvalue ;
20672 bool result;
20673 void *argp1 = 0 ;
20674 int res1 = 0 ;
20675 void *argp2 = 0 ;
20676 int res2 = 0 ;
20677 int val3 ;
20678 int ecode3 = 0 ;
20679 wxPoint temp4 ;
20680 wxSize temp5 ;
20681 long val6 ;
20682 int ecode6 = 0 ;
20683 bool temp7 = false ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 PyObject * obj2 = 0 ;
20687 PyObject * obj3 = 0 ;
20688 PyObject * obj4 = 0 ;
20689 PyObject * obj5 = 0 ;
20690 PyObject * obj6 = 0 ;
20691 char * kwnames[] = {
20692 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20693 };
20694
20695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20697 if (!SWIG_IsOK(res1)) {
20698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20699 }
20700 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20702 if (!SWIG_IsOK(res2)) {
20703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20704 }
20705 arg2 = reinterpret_cast< wxWindow * >(argp2);
20706 if (obj2) {
20707 ecode3 = SWIG_AsVal_int(obj2, &val3);
20708 if (!SWIG_IsOK(ecode3)) {
20709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20710 }
20711 arg3 = static_cast< int >(val3);
20712 }
20713 if (obj3) {
d55e5bfc 20714 {
1bd55598
RD
20715 arg4 = &temp4;
20716 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20717 }
1bd55598
RD
20718 }
20719 if (obj4) {
d55e5bfc 20720 {
1bd55598
RD
20721 arg5 = &temp5;
20722 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20723 }
1bd55598
RD
20724 }
20725 if (obj5) {
20726 ecode6 = SWIG_AsVal_long(obj5, &val6);
20727 if (!SWIG_IsOK(ecode6)) {
20728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20729 }
20730 arg6 = static_cast< long >(val6);
20731 }
20732 if (obj6) {
d55e5bfc 20733 {
1bd55598
RD
20734 arg7 = wxString_in_helper(obj6);
20735 if (arg7 == NULL) SWIG_fail;
20736 temp7 = true;
d55e5bfc 20737 }
1bd55598
RD
20738 }
20739 {
20740 PyThreadState* __tstate = wxPyBeginAllowThreads();
20741 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20742 wxPyEndAllowThreads(__tstate);
20743 if (PyErr_Occurred()) SWIG_fail;
20744 }
20745 {
20746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20747 }
20748 {
20749 if (temp7)
20750 delete arg7;
20751 }
20752 return resultobj;
20753fail:
20754 {
20755 if (temp7)
20756 delete arg7;
20757 }
20758 return NULL;
d55e5bfc
RD
20759}
20760
20761
1bd55598
RD
20762SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20763 PyObject *resultobj = 0;
20764 wxNotebook *arg1 = (wxNotebook *) 0 ;
20765 int result;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 PyObject *swig_obj[1] ;
20769
20770 if (!args) SWIG_fail;
20771 swig_obj[0] = args;
20772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20773 if (!SWIG_IsOK(res1)) {
20774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20775 }
20776 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20777 {
20778 PyThreadState* __tstate = wxPyBeginAllowThreads();
20779 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20780 wxPyEndAllowThreads(__tstate);
20781 if (PyErr_Occurred()) SWIG_fail;
20782 }
20783 resultobj = SWIG_From_int(static_cast< int >(result));
20784 return resultobj;
20785fail:
20786 return NULL;
20787}
20788
20789
20790SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20791 PyObject *resultobj = 0;
20792 wxNotebook *arg1 = (wxNotebook *) 0 ;
20793 wxSize *arg2 = 0 ;
20794 void *argp1 = 0 ;
20795 int res1 = 0 ;
20796 wxSize temp2 ;
20797 PyObject * obj0 = 0 ;
20798 PyObject * obj1 = 0 ;
20799 char * kwnames[] = {
20800 (char *) "self",(char *) "padding", NULL
20801 };
20802
20803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20805 if (!SWIG_IsOK(res1)) {
20806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20807 }
20808 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20809 {
20810 arg2 = &temp2;
20811 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20812 }
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 (arg1)->SetPadding((wxSize const &)*arg2);
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 resultobj = SWIG_Py_Void();
20820 return resultobj;
20821fail:
20822 return NULL;
20823}
20824
20825
20826SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20827 PyObject *resultobj = 0;
20828 wxNotebook *arg1 = (wxNotebook *) 0 ;
20829 wxSize *arg2 = 0 ;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 wxSize temp2 ;
20833 PyObject * obj0 = 0 ;
20834 PyObject * obj1 = 0 ;
20835 char * kwnames[] = {
20836 (char *) "self",(char *) "sz", NULL
20837 };
20838
20839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20841 if (!SWIG_IsOK(res1)) {
20842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20843 }
20844 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20845 {
20846 arg2 = &temp2;
20847 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20848 }
20849 {
20850 PyThreadState* __tstate = wxPyBeginAllowThreads();
20851 (arg1)->SetTabSize((wxSize const &)*arg2);
20852 wxPyEndAllowThreads(__tstate);
20853 if (PyErr_Occurred()) SWIG_fail;
20854 }
20855 resultobj = SWIG_Py_Void();
20856 return resultobj;
20857fail:
20858 return NULL;
20859}
20860
20861
1bd55598
RD
20862SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20863 PyObject *resultobj = 0;
20864 wxNotebook *arg1 = (wxNotebook *) 0 ;
20865 wxColour result;
20866 void *argp1 = 0 ;
20867 int res1 = 0 ;
20868 PyObject *swig_obj[1] ;
20869
20870 if (!args) SWIG_fail;
20871 swig_obj[0] = args;
20872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20873 if (!SWIG_IsOK(res1)) {
20874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20875 }
20876 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20884 return resultobj;
20885fail:
20886 return NULL;
20887}
20888
20889
20890SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj = 0;
20892 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20893 SwigValueWrapper<wxVisualAttributes > result;
20894 int val1 ;
20895 int ecode1 = 0 ;
20896 PyObject * obj0 = 0 ;
20897 char * kwnames[] = {
20898 (char *) "variant", NULL
20899 };
20900
20901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20902 if (obj0) {
20903 ecode1 = SWIG_AsVal_int(obj0, &val1);
20904 if (!SWIG_IsOK(ecode1)) {
20905 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20906 }
20907 arg1 = static_cast< wxWindowVariant >(val1);
20908 }
20909 {
20910 if (!wxPyCheckForApp()) SWIG_fail;
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = wxNotebook::GetClassDefaultAttributes(arg1);
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20917 return resultobj;
20918fail:
20919 return NULL;
20920}
20921
20922
b39fe951
RD
20923SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20924 PyObject *resultobj = 0;
20925 wxNotebook *arg1 = (wxNotebook *) 0 ;
20926 int arg2 ;
20927 bool result;
20928 void *argp1 = 0 ;
20929 int res1 = 0 ;
20930 int val2 ;
20931 int ecode2 = 0 ;
20932 PyObject * obj0 = 0 ;
20933 PyObject * obj1 = 0 ;
20934 char * kwnames[] = {
20935 (char *) "self",(char *) "nPage", NULL
20936 };
20937
20938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20940 if (!SWIG_IsOK(res1)) {
20941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20942 }
20943 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20944 ecode2 = SWIG_AsVal_int(obj1, &val2);
20945 if (!SWIG_IsOK(ecode2)) {
20946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20947 }
20948 arg2 = static_cast< int >(val2);
20949 {
20950 PyThreadState* __tstate = wxPyBeginAllowThreads();
20951 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20952 wxPyEndAllowThreads(__tstate);
20953 if (PyErr_Occurred()) SWIG_fail;
20954 }
20955 {
20956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20957 }
20958 return resultobj;
20959fail:
20960 return NULL;
20961}
20962
20963
20964SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20965 PyObject *resultobj = 0;
20966 wxNotebook *arg1 = (wxNotebook *) 0 ;
20967 int arg2 ;
20968 int arg3 = (int) -1 ;
20969 void *argp1 = 0 ;
20970 int res1 = 0 ;
20971 int val2 ;
20972 int ecode2 = 0 ;
20973 int val3 ;
20974 int ecode3 = 0 ;
20975 PyObject * obj0 = 0 ;
20976 PyObject * obj1 = 0 ;
20977 PyObject * obj2 = 0 ;
20978 char * kwnames[] = {
20979 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
20980 };
20981
20982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20984 if (!SWIG_IsOK(res1)) {
20985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20986 }
20987 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20988 ecode2 = SWIG_AsVal_int(obj1, &val2);
20989 if (!SWIG_IsOK(ecode2)) {
20990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
20991 }
20992 arg2 = static_cast< int >(val2);
20993 if (obj2) {
20994 ecode3 = SWIG_AsVal_int(obj2, &val3);
20995 if (!SWIG_IsOK(ecode3)) {
20996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
20997 }
20998 arg3 = static_cast< int >(val3);
20999 }
21000 {
21001 PyThreadState* __tstate = wxPyBeginAllowThreads();
21002 (arg1)->SendPageChangedEvent(arg2,arg3);
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 resultobj = SWIG_Py_Void();
21007 return resultobj;
21008fail:
21009 return NULL;
21010}
21011
21012
1bd55598
RD
21013SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21014 PyObject *obj;
21015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21016 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21017 return SWIG_Py_Void();
21018}
21019
21020SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21021 return SWIG_Python_InitShadowInstance(args);
21022}
21023
21024SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj = 0;
21026 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21027 int arg2 = (int) 0 ;
21028 int arg3 = (int) -1 ;
21029 int arg4 = (int) -1 ;
21030 wxNotebookEvent *result = 0 ;
21031 int val1 ;
21032 int ecode1 = 0 ;
21033 int val2 ;
21034 int ecode2 = 0 ;
21035 int val3 ;
21036 int ecode3 = 0 ;
21037 int val4 ;
21038 int ecode4 = 0 ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 PyObject * obj2 = 0 ;
21042 PyObject * obj3 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21048 if (obj0) {
21049 ecode1 = SWIG_AsVal_int(obj0, &val1);
21050 if (!SWIG_IsOK(ecode1)) {
21051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21052 }
21053 arg1 = static_cast< wxEventType >(val1);
21054 }
21055 if (obj1) {
21056 ecode2 = SWIG_AsVal_int(obj1, &val2);
21057 if (!SWIG_IsOK(ecode2)) {
21058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21059 }
21060 arg2 = static_cast< int >(val2);
21061 }
21062 if (obj2) {
21063 ecode3 = SWIG_AsVal_int(obj2, &val3);
21064 if (!SWIG_IsOK(ecode3)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21066 }
21067 arg3 = static_cast< int >(val3);
21068 }
21069 if (obj3) {
21070 ecode4 = SWIG_AsVal_int(obj3, &val4);
21071 if (!SWIG_IsOK(ecode4)) {
21072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21073 }
21074 arg4 = static_cast< int >(val4);
21075 }
21076 {
21077 PyThreadState* __tstate = wxPyBeginAllowThreads();
21078 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21083 return resultobj;
21084fail:
21085 return NULL;
21086}
21087
21088
21089SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21090 PyObject *obj;
21091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21092 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21093 return SWIG_Py_Void();
21094}
21095
21096SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21097 return SWIG_Python_InitShadowInstance(args);
21098}
21099
21100SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxWindow *arg1 = (wxWindow *) 0 ;
21103 int arg2 = (int) -1 ;
21104 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21105 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21106 wxSize const &arg4_defvalue = wxDefaultSize ;
21107 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21108 long arg5 = (long) 0 ;
21109 wxString const &arg6_defvalue = wxPyEmptyString ;
21110 wxString *arg6 = (wxString *) &arg6_defvalue ;
21111 wxListbook *result = 0 ;
21112 void *argp1 = 0 ;
21113 int res1 = 0 ;
21114 int val2 ;
21115 int ecode2 = 0 ;
21116 wxPoint temp3 ;
21117 wxSize temp4 ;
21118 long val5 ;
21119 int ecode5 = 0 ;
21120 bool temp6 = false ;
21121 PyObject * obj0 = 0 ;
21122 PyObject * obj1 = 0 ;
21123 PyObject * obj2 = 0 ;
21124 PyObject * obj3 = 0 ;
21125 PyObject * obj4 = 0 ;
21126 PyObject * obj5 = 0 ;
21127 char * kwnames[] = {
21128 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21129 };
21130
21131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21133 if (!SWIG_IsOK(res1)) {
21134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21135 }
21136 arg1 = reinterpret_cast< wxWindow * >(argp1);
21137 if (obj1) {
21138 ecode2 = SWIG_AsVal_int(obj1, &val2);
21139 if (!SWIG_IsOK(ecode2)) {
21140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21141 }
21142 arg2 = static_cast< int >(val2);
21143 }
21144 if (obj2) {
d55e5bfc 21145 {
1bd55598
RD
21146 arg3 = &temp3;
21147 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21148 }
1bd55598
RD
21149 }
21150 if (obj3) {
d55e5bfc 21151 {
1bd55598
RD
21152 arg4 = &temp4;
21153 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21154 }
1bd55598
RD
21155 }
21156 if (obj4) {
21157 ecode5 = SWIG_AsVal_long(obj4, &val5);
21158 if (!SWIG_IsOK(ecode5)) {
21159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21160 }
21161 arg5 = static_cast< long >(val5);
21162 }
21163 if (obj5) {
d55e5bfc 21164 {
1bd55598
RD
21165 arg6 = wxString_in_helper(obj5);
21166 if (arg6 == NULL) SWIG_fail;
21167 temp6 = true;
d55e5bfc 21168 }
1bd55598
RD
21169 }
21170 {
21171 if (!wxPyCheckForApp()) SWIG_fail;
21172 PyThreadState* __tstate = wxPyBeginAllowThreads();
21173 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21178 {
21179 if (temp6)
21180 delete arg6;
21181 }
21182 return resultobj;
21183fail:
21184 {
21185 if (temp6)
21186 delete arg6;
21187 }
21188 return NULL;
21189}
21190
21191
21192SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21193 PyObject *resultobj = 0;
21194 wxListbook *result = 0 ;
21195
21196 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21197 {
21198 if (!wxPyCheckForApp()) SWIG_fail;
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 result = (wxListbook *)new wxListbook();
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21205 return resultobj;
21206fail:
21207 return NULL;
21208}
21209
21210
21211SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj = 0;
21213 wxListbook *arg1 = (wxListbook *) 0 ;
21214 wxWindow *arg2 = (wxWindow *) 0 ;
21215 int arg3 = (int) -1 ;
21216 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21217 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21218 wxSize const &arg5_defvalue = wxDefaultSize ;
21219 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21220 long arg6 = (long) 0 ;
21221 wxString const &arg7_defvalue = wxPyEmptyString ;
21222 wxString *arg7 = (wxString *) &arg7_defvalue ;
21223 bool result;
21224 void *argp1 = 0 ;
21225 int res1 = 0 ;
21226 void *argp2 = 0 ;
21227 int res2 = 0 ;
21228 int val3 ;
21229 int ecode3 = 0 ;
21230 wxPoint temp4 ;
21231 wxSize temp5 ;
21232 long val6 ;
21233 int ecode6 = 0 ;
21234 bool temp7 = false ;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 PyObject * obj2 = 0 ;
21238 PyObject * obj3 = 0 ;
21239 PyObject * obj4 = 0 ;
21240 PyObject * obj5 = 0 ;
21241 PyObject * obj6 = 0 ;
21242 char * kwnames[] = {
21243 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21244 };
21245
21246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21248 if (!SWIG_IsOK(res1)) {
21249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21250 }
21251 arg1 = reinterpret_cast< wxListbook * >(argp1);
21252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21253 if (!SWIG_IsOK(res2)) {
21254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21255 }
21256 arg2 = reinterpret_cast< wxWindow * >(argp2);
21257 if (obj2) {
21258 ecode3 = SWIG_AsVal_int(obj2, &val3);
21259 if (!SWIG_IsOK(ecode3)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21261 }
21262 arg3 = static_cast< int >(val3);
21263 }
21264 if (obj3) {
d55e5bfc 21265 {
1bd55598
RD
21266 arg4 = &temp4;
21267 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21268 }
1bd55598
RD
21269 }
21270 if (obj4) {
d55e5bfc 21271 {
1bd55598
RD
21272 arg5 = &temp5;
21273 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21274 }
1bd55598
RD
21275 }
21276 if (obj5) {
21277 ecode6 = SWIG_AsVal_long(obj5, &val6);
21278 if (!SWIG_IsOK(ecode6)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21280 }
21281 arg6 = static_cast< long >(val6);
21282 }
21283 if (obj6) {
d55e5bfc 21284 {
1bd55598
RD
21285 arg7 = wxString_in_helper(obj6);
21286 if (arg7 == NULL) SWIG_fail;
21287 temp7 = true;
d55e5bfc 21288 }
1bd55598
RD
21289 }
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 {
21297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21298 }
21299 {
21300 if (temp7)
21301 delete arg7;
21302 }
21303 return resultobj;
21304fail:
21305 {
21306 if (temp7)
21307 delete arg7;
21308 }
21309 return NULL;
d55e5bfc
RD
21310}
21311
21312
1bd55598
RD
21313SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21314 PyObject *resultobj = 0;
21315 wxListbook *arg1 = (wxListbook *) 0 ;
21316 wxListView *result = 0 ;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 PyObject *swig_obj[1] ;
21320
21321 if (!args) SWIG_fail;
21322 swig_obj[0] = args;
21323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21324 if (!SWIG_IsOK(res1)) {
21325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21326 }
21327 arg1 = reinterpret_cast< wxListbook * >(argp1);
21328 {
21329 PyThreadState* __tstate = wxPyBeginAllowThreads();
21330 result = (wxListView *)(arg1)->GetListView();
21331 wxPyEndAllowThreads(__tstate);
21332 if (PyErr_Occurred()) SWIG_fail;
21333 }
21334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21335 return resultobj;
21336fail:
21337 return NULL;
21338}
21339
21340
21341SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21342 PyObject *obj;
21343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21344 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21345 return SWIG_Py_Void();
21346}
21347
21348SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21349 return SWIG_Python_InitShadowInstance(args);
21350}
21351
21352SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21353 PyObject *resultobj = 0;
21354 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21355 int arg2 = (int) 0 ;
21356 int arg3 = (int) -1 ;
21357 int arg4 = (int) -1 ;
21358 wxListbookEvent *result = 0 ;
21359 int val1 ;
21360 int ecode1 = 0 ;
21361 int val2 ;
21362 int ecode2 = 0 ;
21363 int val3 ;
21364 int ecode3 = 0 ;
21365 int val4 ;
21366 int ecode4 = 0 ;
21367 PyObject * obj0 = 0 ;
21368 PyObject * obj1 = 0 ;
21369 PyObject * obj2 = 0 ;
21370 PyObject * obj3 = 0 ;
21371 char * kwnames[] = {
21372 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21373 };
21374
21375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21376 if (obj0) {
21377 ecode1 = SWIG_AsVal_int(obj0, &val1);
21378 if (!SWIG_IsOK(ecode1)) {
21379 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21380 }
21381 arg1 = static_cast< wxEventType >(val1);
21382 }
21383 if (obj1) {
21384 ecode2 = SWIG_AsVal_int(obj1, &val2);
21385 if (!SWIG_IsOK(ecode2)) {
21386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21387 }
21388 arg2 = static_cast< int >(val2);
21389 }
21390 if (obj2) {
21391 ecode3 = SWIG_AsVal_int(obj2, &val3);
21392 if (!SWIG_IsOK(ecode3)) {
21393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21394 }
21395 arg3 = static_cast< int >(val3);
21396 }
21397 if (obj3) {
21398 ecode4 = SWIG_AsVal_int(obj3, &val4);
21399 if (!SWIG_IsOK(ecode4)) {
21400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21401 }
21402 arg4 = static_cast< int >(val4);
21403 }
21404 {
21405 PyThreadState* __tstate = wxPyBeginAllowThreads();
21406 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21407 wxPyEndAllowThreads(__tstate);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
21410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21411 return resultobj;
21412fail:
21413 return NULL;
21414}
21415
21416
21417SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21418 PyObject *obj;
21419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21420 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21421 return SWIG_Py_Void();
21422}
21423
21424SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425 return SWIG_Python_InitShadowInstance(args);
21426}
21427
21428SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21429 PyObject *resultobj = 0;
21430 wxWindow *arg1 = (wxWindow *) 0 ;
21431 int arg2 ;
21432 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21433 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21434 wxSize const &arg4_defvalue = wxDefaultSize ;
21435 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21436 long arg5 = (long) 0 ;
21437 wxString const &arg6_defvalue = wxPyEmptyString ;
21438 wxString *arg6 = (wxString *) &arg6_defvalue ;
21439 wxChoicebook *result = 0 ;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 int val2 ;
21443 int ecode2 = 0 ;
21444 wxPoint temp3 ;
21445 wxSize temp4 ;
21446 long val5 ;
21447 int ecode5 = 0 ;
21448 bool temp6 = false ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 PyObject * obj2 = 0 ;
21452 PyObject * obj3 = 0 ;
21453 PyObject * obj4 = 0 ;
21454 PyObject * obj5 = 0 ;
21455 char * kwnames[] = {
21456 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21457 };
21458
21459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21461 if (!SWIG_IsOK(res1)) {
21462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21463 }
21464 arg1 = reinterpret_cast< wxWindow * >(argp1);
21465 ecode2 = SWIG_AsVal_int(obj1, &val2);
21466 if (!SWIG_IsOK(ecode2)) {
21467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21468 }
21469 arg2 = static_cast< int >(val2);
21470 if (obj2) {
36ed4f51 21471 {
1bd55598
RD
21472 arg3 = &temp3;
21473 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21474 }
1bd55598
RD
21475 }
21476 if (obj3) {
36ed4f51 21477 {
1bd55598
RD
21478 arg4 = &temp4;
21479 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21480 }
1bd55598
RD
21481 }
21482 if (obj4) {
21483 ecode5 = SWIG_AsVal_long(obj4, &val5);
21484 if (!SWIG_IsOK(ecode5)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21486 }
21487 arg5 = static_cast< long >(val5);
21488 }
21489 if (obj5) {
d55e5bfc 21490 {
1bd55598
RD
21491 arg6 = wxString_in_helper(obj5);
21492 if (arg6 == NULL) SWIG_fail;
21493 temp6 = true;
d55e5bfc 21494 }
1bd55598
RD
21495 }
21496 {
21497 if (!wxPyCheckForApp()) SWIG_fail;
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21504 {
21505 if (temp6)
21506 delete arg6;
21507 }
21508 return resultobj;
21509fail:
21510 {
21511 if (temp6)
21512 delete arg6;
21513 }
21514 return NULL;
d55e5bfc
RD
21515}
21516
21517
1bd55598
RD
21518SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21519 PyObject *resultobj = 0;
21520 wxChoicebook *result = 0 ;
21521
21522 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21523 {
21524 if (!wxPyCheckForApp()) SWIG_fail;
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = (wxChoicebook *)new wxChoicebook();
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21531 return resultobj;
21532fail:
21533 return NULL;
21534}
21535
21536
21537SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21538 PyObject *resultobj = 0;
21539 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21540 wxWindow *arg2 = (wxWindow *) 0 ;
21541 int arg3 ;
21542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21544 wxSize const &arg5_defvalue = wxDefaultSize ;
21545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21546 long arg6 = (long) 0 ;
21547 wxString const &arg7_defvalue = wxPyEmptyString ;
21548 wxString *arg7 = (wxString *) &arg7_defvalue ;
21549 bool result;
21550 void *argp1 = 0 ;
21551 int res1 = 0 ;
21552 void *argp2 = 0 ;
21553 int res2 = 0 ;
21554 int val3 ;
21555 int ecode3 = 0 ;
21556 wxPoint temp4 ;
21557 wxSize temp5 ;
21558 long val6 ;
21559 int ecode6 = 0 ;
21560 bool temp7 = false ;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 PyObject * obj2 = 0 ;
21564 PyObject * obj3 = 0 ;
21565 PyObject * obj4 = 0 ;
21566 PyObject * obj5 = 0 ;
21567 PyObject * obj6 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21576 }
21577 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21579 if (!SWIG_IsOK(res2)) {
21580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21581 }
21582 arg2 = reinterpret_cast< wxWindow * >(argp2);
21583 ecode3 = SWIG_AsVal_int(obj2, &val3);
21584 if (!SWIG_IsOK(ecode3)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21586 }
21587 arg3 = static_cast< int >(val3);
21588 if (obj3) {
d55e5bfc 21589 {
1bd55598
RD
21590 arg4 = &temp4;
21591 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21592 }
1bd55598
RD
21593 }
21594 if (obj4) {
d55e5bfc 21595 {
1bd55598
RD
21596 arg5 = &temp5;
21597 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21598 }
1bd55598
RD
21599 }
21600 if (obj5) {
21601 ecode6 = SWIG_AsVal_long(obj5, &val6);
21602 if (!SWIG_IsOK(ecode6)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21604 }
21605 arg6 = static_cast< long >(val6);
21606 }
21607 if (obj6) {
d55e5bfc 21608 {
1bd55598
RD
21609 arg7 = wxString_in_helper(obj6);
21610 if (arg7 == NULL) SWIG_fail;
21611 temp7 = true;
d55e5bfc 21612 }
1bd55598
RD
21613 }
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21622 }
21623 {
21624 if (temp7)
21625 delete arg7;
21626 }
21627 return resultobj;
21628fail:
21629 {
21630 if (temp7)
21631 delete arg7;
21632 }
21633 return NULL;
d55e5bfc
RD
21634}
21635
21636
1bd55598
RD
21637SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21638 PyObject *resultobj = 0;
21639 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21640 wxChoice *result = 0 ;
21641 void *argp1 = 0 ;
21642 int res1 = 0 ;
21643 PyObject *swig_obj[1] ;
21644
21645 if (!args) SWIG_fail;
21646 swig_obj[0] = args;
21647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21648 if (!SWIG_IsOK(res1)) {
21649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21650 }
21651 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21652 {
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21659 return resultobj;
21660fail:
21661 return NULL;
21662}
21663
21664
21665SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21666 PyObject *obj;
21667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21668 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21669 return SWIG_Py_Void();
21670}
21671
21672SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21673 return SWIG_Python_InitShadowInstance(args);
21674}
21675
21676SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21677 PyObject *resultobj = 0;
21678 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21679 int arg2 = (int) 0 ;
21680 int arg3 = (int) -1 ;
21681 int arg4 = (int) -1 ;
21682 wxChoicebookEvent *result = 0 ;
21683 int val1 ;
21684 int ecode1 = 0 ;
21685 int val2 ;
21686 int ecode2 = 0 ;
21687 int val3 ;
21688 int ecode3 = 0 ;
21689 int val4 ;
21690 int ecode4 = 0 ;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 PyObject * obj2 = 0 ;
21694 PyObject * obj3 = 0 ;
21695 char * kwnames[] = {
21696 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21697 };
21698
21699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21700 if (obj0) {
21701 ecode1 = SWIG_AsVal_int(obj0, &val1);
21702 if (!SWIG_IsOK(ecode1)) {
21703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21704 }
21705 arg1 = static_cast< wxEventType >(val1);
21706 }
21707 if (obj1) {
21708 ecode2 = SWIG_AsVal_int(obj1, &val2);
21709 if (!SWIG_IsOK(ecode2)) {
21710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21711 }
21712 arg2 = static_cast< int >(val2);
21713 }
21714 if (obj2) {
21715 ecode3 = SWIG_AsVal_int(obj2, &val3);
21716 if (!SWIG_IsOK(ecode3)) {
21717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21718 }
21719 arg3 = static_cast< int >(val3);
21720 }
21721 if (obj3) {
21722 ecode4 = SWIG_AsVal_int(obj3, &val4);
21723 if (!SWIG_IsOK(ecode4)) {
21724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21725 }
21726 arg4 = static_cast< int >(val4);
21727 }
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21735 return resultobj;
21736fail:
21737 return NULL;
21738}
21739
21740
21741SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21742 PyObject *obj;
21743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21744 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21745 return SWIG_Py_Void();
21746}
21747
21748SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21749 return SWIG_Python_InitShadowInstance(args);
21750}
21751
21752SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21753 PyObject *resultobj = 0;
21754 wxWindow *arg1 = (wxWindow *) 0 ;
21755 int arg2 ;
21756 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21757 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21758 wxSize const &arg4_defvalue = wxDefaultSize ;
21759 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21760 long arg5 = (long) wxBK_DEFAULT ;
21761 wxString const &arg6_defvalue = wxPyEmptyString ;
21762 wxString *arg6 = (wxString *) &arg6_defvalue ;
21763 wxTreebook *result = 0 ;
21764 void *argp1 = 0 ;
21765 int res1 = 0 ;
21766 int val2 ;
21767 int ecode2 = 0 ;
21768 wxPoint temp3 ;
21769 wxSize temp4 ;
21770 long val5 ;
21771 int ecode5 = 0 ;
21772 bool temp6 = false ;
21773 PyObject * obj0 = 0 ;
21774 PyObject * obj1 = 0 ;
21775 PyObject * obj2 = 0 ;
21776 PyObject * obj3 = 0 ;
21777 PyObject * obj4 = 0 ;
21778 PyObject * obj5 = 0 ;
21779 char * kwnames[] = {
21780 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21781 };
21782
21783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21785 if (!SWIG_IsOK(res1)) {
21786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21787 }
21788 arg1 = reinterpret_cast< wxWindow * >(argp1);
21789 ecode2 = SWIG_AsVal_int(obj1, &val2);
21790 if (!SWIG_IsOK(ecode2)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21792 }
21793 arg2 = static_cast< int >(val2);
21794 if (obj2) {
36ed4f51 21795 {
1bd55598
RD
21796 arg3 = &temp3;
21797 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21798 }
1bd55598
RD
21799 }
21800 if (obj3) {
36ed4f51 21801 {
1bd55598
RD
21802 arg4 = &temp4;
21803 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21804 }
1bd55598
RD
21805 }
21806 if (obj4) {
21807 ecode5 = SWIG_AsVal_long(obj4, &val5);
21808 if (!SWIG_IsOK(ecode5)) {
21809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21810 }
21811 arg5 = static_cast< long >(val5);
21812 }
21813 if (obj5) {
d55e5bfc 21814 {
1bd55598
RD
21815 arg6 = wxString_in_helper(obj5);
21816 if (arg6 == NULL) SWIG_fail;
21817 temp6 = true;
d55e5bfc 21818 }
1bd55598
RD
21819 }
21820 {
21821 if (!wxPyCheckForApp()) SWIG_fail;
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21828 {
21829 if (temp6)
21830 delete arg6;
21831 }
21832 return resultobj;
21833fail:
21834 {
21835 if (temp6)
21836 delete arg6;
21837 }
21838 return NULL;
d55e5bfc
RD
21839}
21840
21841
1bd55598
RD
21842SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21843 PyObject *resultobj = 0;
21844 wxTreebook *result = 0 ;
21845
21846 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21847 {
21848 if (!wxPyCheckForApp()) SWIG_fail;
21849 PyThreadState* __tstate = wxPyBeginAllowThreads();
21850 result = (wxTreebook *)new wxTreebook();
21851 wxPyEndAllowThreads(__tstate);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 }
21854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21855 return resultobj;
21856fail:
21857 return NULL;
21858}
21859
21860
21861SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21862 PyObject *resultobj = 0;
21863 wxTreebook *arg1 = (wxTreebook *) 0 ;
21864 wxWindow *arg2 = (wxWindow *) 0 ;
21865 int arg3 ;
21866 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21867 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21868 wxSize const &arg5_defvalue = wxDefaultSize ;
21869 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21870 long arg6 = (long) wxBK_DEFAULT ;
21871 wxString const &arg7_defvalue = wxPyEmptyString ;
21872 wxString *arg7 = (wxString *) &arg7_defvalue ;
21873 bool result;
21874 void *argp1 = 0 ;
21875 int res1 = 0 ;
21876 void *argp2 = 0 ;
21877 int res2 = 0 ;
21878 int val3 ;
21879 int ecode3 = 0 ;
21880 wxPoint temp4 ;
21881 wxSize temp5 ;
21882 long val6 ;
21883 int ecode6 = 0 ;
21884 bool temp7 = false ;
21885 PyObject * obj0 = 0 ;
21886 PyObject * obj1 = 0 ;
21887 PyObject * obj2 = 0 ;
21888 PyObject * obj3 = 0 ;
21889 PyObject * obj4 = 0 ;
21890 PyObject * obj5 = 0 ;
21891 PyObject * obj6 = 0 ;
21892 char * kwnames[] = {
21893 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21894 };
21895
21896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21900 }
21901 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21903 if (!SWIG_IsOK(res2)) {
21904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21905 }
21906 arg2 = reinterpret_cast< wxWindow * >(argp2);
21907 ecode3 = SWIG_AsVal_int(obj2, &val3);
21908 if (!SWIG_IsOK(ecode3)) {
21909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21910 }
21911 arg3 = static_cast< int >(val3);
21912 if (obj3) {
36ed4f51 21913 {
1bd55598
RD
21914 arg4 = &temp4;
21915 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21916 }
1bd55598
RD
21917 }
21918 if (obj4) {
d55e5bfc 21919 {
1bd55598
RD
21920 arg5 = &temp5;
21921 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21922 }
1bd55598
RD
21923 }
21924 if (obj5) {
21925 ecode6 = SWIG_AsVal_long(obj5, &val6);
21926 if (!SWIG_IsOK(ecode6)) {
21927 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21928 }
21929 arg6 = static_cast< long >(val6);
21930 }
21931 if (obj6) {
36ed4f51 21932 {
1bd55598
RD
21933 arg7 = wxString_in_helper(obj6);
21934 if (arg7 == NULL) SWIG_fail;
21935 temp7 = true;
36ed4f51 21936 }
1bd55598
RD
21937 }
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21946 }
21947 {
21948 if (temp7)
21949 delete arg7;
21950 }
21951 return resultobj;
21952fail:
21953 {
21954 if (temp7)
21955 delete arg7;
21956 }
21957 return NULL;
21958}
21959
21960
21961SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21962 PyObject *resultobj = 0;
21963 wxTreebook *arg1 = (wxTreebook *) 0 ;
21964 size_t arg2 ;
21965 wxWindow *arg3 = (wxWindow *) 0 ;
21966 wxString *arg4 = 0 ;
21967 bool arg5 = (bool) false ;
21968 int arg6 = (int) wxNOT_FOUND ;
21969 bool result;
21970 void *argp1 = 0 ;
21971 int res1 = 0 ;
21972 size_t val2 ;
21973 int ecode2 = 0 ;
21974 void *argp3 = 0 ;
21975 int res3 = 0 ;
21976 bool temp4 = false ;
21977 bool val5 ;
21978 int ecode5 = 0 ;
21979 int val6 ;
21980 int ecode6 = 0 ;
21981 PyObject * obj0 = 0 ;
21982 PyObject * obj1 = 0 ;
21983 PyObject * obj2 = 0 ;
21984 PyObject * obj3 = 0 ;
21985 PyObject * obj4 = 0 ;
21986 PyObject * obj5 = 0 ;
21987 char * kwnames[] = {
21988 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21989 };
21990
21991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21993 if (!SWIG_IsOK(res1)) {
21994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21995 }
21996 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21997 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21998 if (!SWIG_IsOK(ecode2)) {
21999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22000 }
22001 arg2 = static_cast< size_t >(val2);
22002 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22003 if (!SWIG_IsOK(res3)) {
22004 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22005 }
22006 arg3 = reinterpret_cast< wxWindow * >(argp3);
22007 {
22008 arg4 = wxString_in_helper(obj3);
22009 if (arg4 == NULL) SWIG_fail;
22010 temp4 = true;
22011 }
22012 if (obj4) {
22013 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22014 if (!SWIG_IsOK(ecode5)) {
22015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22016 }
22017 arg5 = static_cast< bool >(val5);
22018 }
22019 if (obj5) {
22020 ecode6 = SWIG_AsVal_int(obj5, &val6);
22021 if (!SWIG_IsOK(ecode6)) {
22022 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22023 }
22024 arg6 = static_cast< int >(val6);
22025 }
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 {
22033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22034 }
22035 {
22036 if (temp4)
22037 delete arg4;
22038 }
22039 return resultobj;
22040fail:
22041 {
22042 if (temp4)
22043 delete arg4;
22044 }
22045 return NULL;
22046}
22047
22048
22049SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22050 PyObject *resultobj = 0;
22051 wxTreebook *arg1 = (wxTreebook *) 0 ;
22052 wxWindow *arg2 = (wxWindow *) 0 ;
22053 wxString *arg3 = 0 ;
22054 bool arg4 = (bool) false ;
22055 int arg5 = (int) wxNOT_FOUND ;
22056 bool result;
22057 void *argp1 = 0 ;
22058 int res1 = 0 ;
22059 void *argp2 = 0 ;
22060 int res2 = 0 ;
22061 bool temp3 = false ;
22062 bool val4 ;
22063 int ecode4 = 0 ;
22064 int val5 ;
22065 int ecode5 = 0 ;
22066 PyObject * obj0 = 0 ;
22067 PyObject * obj1 = 0 ;
22068 PyObject * obj2 = 0 ;
22069 PyObject * obj3 = 0 ;
22070 PyObject * obj4 = 0 ;
22071 char * kwnames[] = {
22072 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22073 };
22074
22075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22077 if (!SWIG_IsOK(res1)) {
22078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22079 }
22080 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22082 if (!SWIG_IsOK(res2)) {
22083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22084 }
22085 arg2 = reinterpret_cast< wxWindow * >(argp2);
22086 {
22087 arg3 = wxString_in_helper(obj2);
22088 if (arg3 == NULL) SWIG_fail;
22089 temp3 = true;
22090 }
22091 if (obj3) {
22092 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22093 if (!SWIG_IsOK(ecode4)) {
22094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22095 }
22096 arg4 = static_cast< bool >(val4);
22097 }
22098 if (obj4) {
22099 ecode5 = SWIG_AsVal_int(obj4, &val5);
22100 if (!SWIG_IsOK(ecode5)) {
22101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22102 }
22103 arg5 = static_cast< int >(val5);
22104 }
22105 {
22106 PyThreadState* __tstate = wxPyBeginAllowThreads();
22107 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22108 wxPyEndAllowThreads(__tstate);
22109 if (PyErr_Occurred()) SWIG_fail;
22110 }
22111 {
22112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22113 }
22114 {
22115 if (temp3)
22116 delete arg3;
22117 }
22118 return resultobj;
22119fail:
22120 {
22121 if (temp3)
22122 delete arg3;
22123 }
22124 return NULL;
22125}
22126
22127
22128SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22129 PyObject *resultobj = 0;
22130 wxTreebook *arg1 = (wxTreebook *) 0 ;
22131 size_t arg2 ;
22132 bool result;
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 size_t val2 ;
22136 int ecode2 = 0 ;
22137 PyObject * obj0 = 0 ;
22138 PyObject * obj1 = 0 ;
22139 char * kwnames[] = {
22140 (char *) "self",(char *) "pos", NULL
22141 };
22142
22143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22145 if (!SWIG_IsOK(res1)) {
22146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22147 }
22148 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22149 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22150 if (!SWIG_IsOK(ecode2)) {
22151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22152 }
22153 arg2 = static_cast< size_t >(val2);
22154 {
22155 PyThreadState* __tstate = wxPyBeginAllowThreads();
22156 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22157 wxPyEndAllowThreads(__tstate);
22158 if (PyErr_Occurred()) SWIG_fail;
22159 }
22160 {
22161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22162 }
22163 return resultobj;
22164fail:
22165 return NULL;
22166}
22167
22168
22169SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxTreebook *arg1 = (wxTreebook *) 0 ;
22172 size_t arg2 ;
22173 bool arg3 = (bool) true ;
22174 bool result;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 size_t val2 ;
22178 int ecode2 = 0 ;
22179 bool val3 ;
22180 int ecode3 = 0 ;
22181 PyObject * obj0 = 0 ;
22182 PyObject * obj1 = 0 ;
22183 PyObject * obj2 = 0 ;
22184 char * kwnames[] = {
22185 (char *) "self",(char *) "pos",(char *) "expand", NULL
22186 };
22187
22188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22190 if (!SWIG_IsOK(res1)) {
22191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22192 }
22193 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22195 if (!SWIG_IsOK(ecode2)) {
22196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22197 }
22198 arg2 = static_cast< size_t >(val2);
22199 if (obj2) {
22200 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22201 if (!SWIG_IsOK(ecode3)) {
22202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22203 }
22204 arg3 = static_cast< bool >(val3);
22205 }
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 {
22213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22214 }
22215 return resultobj;
22216fail:
22217 return NULL;
22218}
22219
22220
22221SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj = 0;
22223 wxTreebook *arg1 = (wxTreebook *) 0 ;
22224 size_t arg2 ;
22225 bool result;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 size_t val2 ;
22229 int ecode2 = 0 ;
22230 PyObject * obj0 = 0 ;
22231 PyObject * obj1 = 0 ;
22232 char * kwnames[] = {
22233 (char *) "self",(char *) "pos", NULL
22234 };
22235
22236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22238 if (!SWIG_IsOK(res1)) {
22239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22240 }
22241 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22242 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22243 if (!SWIG_IsOK(ecode2)) {
22244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22245 }
22246 arg2 = static_cast< size_t >(val2);
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 result = (bool)(arg1)->CollapseNode(arg2);
22250 wxPyEndAllowThreads(__tstate);
22251 if (PyErr_Occurred()) SWIG_fail;
22252 }
22253 {
22254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22255 }
22256 return resultobj;
22257fail:
22258 return NULL;
22259}
22260
22261
22262SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22263 PyObject *resultobj = 0;
22264 wxTreebook *arg1 = (wxTreebook *) 0 ;
22265 size_t arg2 ;
22266 int result;
22267 void *argp1 = 0 ;
22268 int res1 = 0 ;
22269 size_t val2 ;
22270 int ecode2 = 0 ;
22271 PyObject * obj0 = 0 ;
22272 PyObject * obj1 = 0 ;
22273 char * kwnames[] = {
22274 (char *) "self",(char *) "pos", NULL
22275 };
22276
22277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22279 if (!SWIG_IsOK(res1)) {
22280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22281 }
22282 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22283 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22284 if (!SWIG_IsOK(ecode2)) {
22285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22286 }
22287 arg2 = static_cast< size_t >(val2);
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 resultobj = SWIG_From_int(static_cast< int >(result));
22295 return resultobj;
22296fail:
22297 return NULL;
d55e5bfc
RD
22298}
22299
22300
1bd55598
RD
22301SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22302 PyObject *resultobj = 0;
22303 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22304 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22305 void *argp1 = 0 ;
22306 int res1 = 0 ;
22307 PyObject *swig_obj[1] ;
22308
22309 if (!args) SWIG_fail;
22310 swig_obj[0] = args;
22311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22312 if (!SWIG_IsOK(res1)) {
22313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22314 }
22315 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22318 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
10044bf1
RD
22322 {
22323 resultobj = wxPyMake_wxObject(result, (bool)0);
22324 }
1bd55598
RD
22325 return resultobj;
22326fail:
22327 return NULL;
22328}
22329
22330
22331SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22332 PyObject *obj;
22333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22334 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22335 return SWIG_Py_Void();
22336}
22337
22338SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22339 return SWIG_Python_InitShadowInstance(args);
22340}
22341
22342SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22343 PyObject *resultobj = 0;
22344 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22345 int arg2 = (int) 0 ;
22346 int arg3 = (int) wxNOT_FOUND ;
22347 int arg4 = (int) wxNOT_FOUND ;
22348 wxTreebookEvent *result = 0 ;
22349 int val1 ;
22350 int ecode1 = 0 ;
22351 int val2 ;
22352 int ecode2 = 0 ;
22353 int val3 ;
22354 int ecode3 = 0 ;
22355 int val4 ;
22356 int ecode4 = 0 ;
22357 PyObject * obj0 = 0 ;
22358 PyObject * obj1 = 0 ;
22359 PyObject * obj2 = 0 ;
22360 PyObject * obj3 = 0 ;
22361 char * kwnames[] = {
22362 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22363 };
22364
22365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22366 if (obj0) {
22367 ecode1 = SWIG_AsVal_int(obj0, &val1);
22368 if (!SWIG_IsOK(ecode1)) {
22369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22370 }
22371 arg1 = static_cast< wxEventType >(val1);
22372 }
22373 if (obj1) {
22374 ecode2 = SWIG_AsVal_int(obj1, &val2);
22375 if (!SWIG_IsOK(ecode2)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22377 }
22378 arg2 = static_cast< int >(val2);
22379 }
22380 if (obj2) {
22381 ecode3 = SWIG_AsVal_int(obj2, &val3);
22382 if (!SWIG_IsOK(ecode3)) {
22383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22384 }
22385 arg3 = static_cast< int >(val3);
22386 }
22387 if (obj3) {
22388 ecode4 = SWIG_AsVal_int(obj3, &val4);
22389 if (!SWIG_IsOK(ecode4)) {
22390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22391 }
22392 arg4 = static_cast< int >(val4);
22393 }
22394 {
22395 PyThreadState* __tstate = wxPyBeginAllowThreads();
22396 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22401 return resultobj;
22402fail:
22403 return NULL;
22404}
22405
22406
22407SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22408 PyObject *obj;
22409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22410 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22411 return SWIG_Py_Void();
22412}
22413
22414SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22415 return SWIG_Python_InitShadowInstance(args);
22416}
22417
22418SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj = 0;
22420 wxWindow *arg1 = (wxWindow *) 0 ;
22421 int arg2 ;
22422 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22423 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22424 wxSize const &arg4_defvalue = wxDefaultSize ;
22425 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22426 long arg5 = (long) wxBK_DEFAULT ;
22427 wxString const &arg6_defvalue = wxPyEmptyString ;
22428 wxString *arg6 = (wxString *) &arg6_defvalue ;
22429 wxToolbook *result = 0 ;
22430 void *argp1 = 0 ;
22431 int res1 = 0 ;
22432 int val2 ;
22433 int ecode2 = 0 ;
22434 wxPoint temp3 ;
22435 wxSize temp4 ;
22436 long val5 ;
22437 int ecode5 = 0 ;
22438 bool temp6 = false ;
22439 PyObject * obj0 = 0 ;
22440 PyObject * obj1 = 0 ;
22441 PyObject * obj2 = 0 ;
22442 PyObject * obj3 = 0 ;
22443 PyObject * obj4 = 0 ;
22444 PyObject * obj5 = 0 ;
22445 char * kwnames[] = {
22446 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22447 };
22448
22449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22451 if (!SWIG_IsOK(res1)) {
22452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22453 }
22454 arg1 = reinterpret_cast< wxWindow * >(argp1);
22455 ecode2 = SWIG_AsVal_int(obj1, &val2);
22456 if (!SWIG_IsOK(ecode2)) {
22457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22458 }
22459 arg2 = static_cast< int >(val2);
22460 if (obj2) {
36ed4f51 22461 {
1bd55598
RD
22462 arg3 = &temp3;
22463 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22464 }
1bd55598
RD
22465 }
22466 if (obj3) {
36ed4f51 22467 {
1bd55598
RD
22468 arg4 = &temp4;
22469 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22470 }
1bd55598
RD
22471 }
22472 if (obj4) {
22473 ecode5 = SWIG_AsVal_long(obj4, &val5);
22474 if (!SWIG_IsOK(ecode5)) {
22475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22476 }
22477 arg5 = static_cast< long >(val5);
22478 }
22479 if (obj5) {
d55e5bfc 22480 {
1bd55598
RD
22481 arg6 = wxString_in_helper(obj5);
22482 if (arg6 == NULL) SWIG_fail;
22483 temp6 = true;
d55e5bfc 22484 }
1bd55598
RD
22485 }
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22493 {
22494 if (temp6)
22495 delete arg6;
22496 }
22497 return resultobj;
22498fail:
22499 {
22500 if (temp6)
22501 delete arg6;
22502 }
22503 return NULL;
d55e5bfc
RD
22504}
22505
22506
1bd55598
RD
22507SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22508 PyObject *resultobj = 0;
22509 wxToolbook *result = 0 ;
22510
22511 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22512 {
22513 PyThreadState* __tstate = wxPyBeginAllowThreads();
22514 result = (wxToolbook *)new wxToolbook();
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22519 return resultobj;
22520fail:
22521 return NULL;
22522}
22523
22524
22525SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj = 0;
22527 wxToolbook *arg1 = (wxToolbook *) 0 ;
22528 wxWindow *arg2 = (wxWindow *) 0 ;
22529 int arg3 ;
22530 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22531 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22532 wxSize const &arg5_defvalue = wxDefaultSize ;
22533 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22534 long arg6 = (long) 0 ;
22535 wxString const &arg7_defvalue = wxEmptyString ;
22536 wxString *arg7 = (wxString *) &arg7_defvalue ;
22537 bool result;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 void *argp2 = 0 ;
22541 int res2 = 0 ;
22542 int val3 ;
22543 int ecode3 = 0 ;
22544 wxPoint temp4 ;
22545 wxSize temp5 ;
22546 long val6 ;
22547 int ecode6 = 0 ;
22548 bool temp7 = false ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 PyObject * obj2 = 0 ;
22552 PyObject * obj3 = 0 ;
22553 PyObject * obj4 = 0 ;
22554 PyObject * obj5 = 0 ;
22555 PyObject * obj6 = 0 ;
22556 char * kwnames[] = {
22557 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22558 };
22559
22560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22562 if (!SWIG_IsOK(res1)) {
22563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22564 }
22565 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22567 if (!SWIG_IsOK(res2)) {
22568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22569 }
22570 arg2 = reinterpret_cast< wxWindow * >(argp2);
22571 ecode3 = SWIG_AsVal_int(obj2, &val3);
22572 if (!SWIG_IsOK(ecode3)) {
22573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22574 }
22575 arg3 = static_cast< int >(val3);
22576 if (obj3) {
22577 {
22578 arg4 = &temp4;
22579 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22580 }
1bd55598
RD
22581 }
22582 if (obj4) {
f20a2e1f 22583 {
1bd55598
RD
22584 arg5 = &temp5;
22585 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22586 }
1bd55598
RD
22587 }
22588 if (obj5) {
22589 ecode6 = SWIG_AsVal_long(obj5, &val6);
22590 if (!SWIG_IsOK(ecode6)) {
22591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22592 }
22593 arg6 = static_cast< long >(val6);
22594 }
22595 if (obj6) {
f20a2e1f 22596 {
1bd55598
RD
22597 arg7 = wxString_in_helper(obj6);
22598 if (arg7 == NULL) SWIG_fail;
22599 temp7 = true;
f20a2e1f 22600 }
1bd55598
RD
22601 }
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 {
22609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22610 }
22611 {
22612 if (temp7)
22613 delete arg7;
22614 }
22615 return resultobj;
22616fail:
22617 {
22618 if (temp7)
22619 delete arg7;
22620 }
22621 return NULL;
f20a2e1f
RD
22622}
22623
22624
1bd55598
RD
22625SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626 PyObject *resultobj = 0;
22627 wxToolbook *arg1 = (wxToolbook *) 0 ;
22628 wxToolBarBase *result = 0 ;
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_wxToolbook, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22638 }
22639 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 {
22647 resultobj = wxPyMake_wxObject(result, (bool)0);
22648 }
22649 return resultobj;
22650fail:
22651 return NULL;
d55e5bfc
RD
22652}
22653
22654
1bd55598
RD
22655SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22656 PyObject *resultobj = 0;
22657 wxToolbook *arg1 = (wxToolbook *) 0 ;
22658 void *argp1 = 0 ;
22659 int res1 = 0 ;
22660 PyObject *swig_obj[1] ;
22661
22662 if (!args) SWIG_fail;
22663 swig_obj[0] = args;
22664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22667 }
22668 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 (arg1)->Realize();
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 resultobj = SWIG_Py_Void();
22676 return resultobj;
22677fail:
22678 return NULL;
22679}
22680
22681
22682SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *obj;
22684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22685 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22686 return SWIG_Py_Void();
22687}
22688
22689SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22690 return SWIG_Python_InitShadowInstance(args);
22691}
22692
22693SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22694 PyObject *resultobj = 0;
22695 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22696 int arg2 = (int) 0 ;
22697 int arg3 = (int) wxNOT_FOUND ;
22698 int arg4 = (int) wxNOT_FOUND ;
22699 wxToolbookEvent *result = 0 ;
22700 int val1 ;
22701 int ecode1 = 0 ;
22702 int val2 ;
22703 int ecode2 = 0 ;
22704 int val3 ;
22705 int ecode3 = 0 ;
22706 int val4 ;
22707 int ecode4 = 0 ;
22708 PyObject * obj0 = 0 ;
22709 PyObject * obj1 = 0 ;
22710 PyObject * obj2 = 0 ;
22711 PyObject * obj3 = 0 ;
22712 char * kwnames[] = {
22713 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22714 };
22715
22716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22717 if (obj0) {
22718 ecode1 = SWIG_AsVal_int(obj0, &val1);
22719 if (!SWIG_IsOK(ecode1)) {
22720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22721 }
22722 arg1 = static_cast< wxEventType >(val1);
22723 }
22724 if (obj1) {
22725 ecode2 = SWIG_AsVal_int(obj1, &val2);
22726 if (!SWIG_IsOK(ecode2)) {
22727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22728 }
22729 arg2 = static_cast< int >(val2);
22730 }
22731 if (obj2) {
22732 ecode3 = SWIG_AsVal_int(obj2, &val3);
22733 if (!SWIG_IsOK(ecode3)) {
22734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22735 }
22736 arg3 = static_cast< int >(val3);
22737 }
22738 if (obj3) {
22739 ecode4 = SWIG_AsVal_int(obj3, &val4);
22740 if (!SWIG_IsOK(ecode4)) {
22741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22742 }
22743 arg4 = static_cast< int >(val4);
22744 }
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22752 return resultobj;
22753fail:
22754 return NULL;
d55e5bfc
RD
22755}
22756
22757
1bd55598
RD
22758SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *obj;
22760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22761 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22762 return SWIG_Py_Void();
d55e5bfc
RD
22763}
22764
1bd55598
RD
22765SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22766 return SWIG_Python_InitShadowInstance(args);
22767}
d55e5bfc 22768
1bd55598
RD
22769SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22770 PyObject *resultobj = 0;
22771 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22772 int result;
22773 void *argp1 = 0 ;
22774 int res1 = 0 ;
22775 PyObject *swig_obj[1] ;
22776
22777 if (!args) SWIG_fail;
22778 swig_obj[0] = args;
22779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22780 if (!SWIG_IsOK(res1)) {
22781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22782 }
22783 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 result = (int)(arg1)->GetId();
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 resultobj = SWIG_From_int(static_cast< int >(result));
22791 return resultobj;
22792fail:
22793 return NULL;
d55e5bfc 22794}
1bd55598
RD
22795
22796
22797SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22800 wxControl *result = 0 ;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22810 }
22811 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (wxControl *)(arg1)->GetControl();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 {
22819 resultobj = wxPyMake_wxObject(result, 0);
22820 }
22821 return resultobj;
22822fail:
22823 return NULL;
d55e5bfc
RD
22824}
22825
22826
1bd55598
RD
22827SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22828 PyObject *resultobj = 0;
22829 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22830 wxToolBarBase *result = 0 ;
22831 void *argp1 = 0 ;
22832 int res1 = 0 ;
22833 PyObject *swig_obj[1] ;
22834
22835 if (!args) SWIG_fail;
22836 swig_obj[0] = args;
22837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22840 }
22841 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22842 {
22843 PyThreadState* __tstate = wxPyBeginAllowThreads();
22844 result = (wxToolBarBase *)(arg1)->GetToolBar();
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 {
22849 resultobj = wxPyMake_wxObject(result, (bool)0);
22850 }
22851 return resultobj;
22852fail:
22853 return NULL;
d55e5bfc
RD
22854}
22855
22856
1bd55598
RD
22857SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22858 PyObject *resultobj = 0;
22859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22860 int result;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 PyObject *swig_obj[1] ;
22864
22865 if (!args) SWIG_fail;
22866 swig_obj[0] = args;
22867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22868 if (!SWIG_IsOK(res1)) {
22869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22870 }
22871 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 result = (int)(arg1)->IsButton();
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 resultobj = SWIG_From_int(static_cast< int >(result));
22879 return resultobj;
22880fail:
22881 return NULL;
d55e5bfc
RD
22882}
22883
22884
1bd55598
RD
22885SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22886 PyObject *resultobj = 0;
22887 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22888 int result;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject *swig_obj[1] ;
22892
22893 if (!args) SWIG_fail;
22894 swig_obj[0] = args;
22895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22896 if (!SWIG_IsOK(res1)) {
22897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22898 }
22899 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = (int)(arg1)->IsControl();
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_From_int(static_cast< int >(result));
22907 return resultobj;
22908fail:
22909 return NULL;
d55e5bfc
RD
22910}
22911
22912
1bd55598
RD
22913SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22914 PyObject *resultobj = 0;
22915 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22916 int result;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 PyObject *swig_obj[1] ;
22920
22921 if (!args) SWIG_fail;
22922 swig_obj[0] = args;
22923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22924 if (!SWIG_IsOK(res1)) {
22925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22926 }
22927 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (int)(arg1)->IsSeparator();
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_From_int(static_cast< int >(result));
22935 return resultobj;
22936fail:
22937 return NULL;
d55e5bfc
RD
22938}
22939
22940
1bd55598
RD
22941SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22942 PyObject *resultobj = 0;
22943 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22944 int result;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 PyObject *swig_obj[1] ;
22948
22949 if (!args) SWIG_fail;
22950 swig_obj[0] = args;
22951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22952 if (!SWIG_IsOK(res1)) {
22953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22954 }
22955 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = (int)(arg1)->GetStyle();
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 resultobj = SWIG_From_int(static_cast< int >(result));
22963 return resultobj;
22964fail:
22965 return NULL;
d55e5bfc
RD
22966}
22967
22968
1bd55598
RD
22969SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22970 PyObject *resultobj = 0;
22971 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22972 wxItemKind result;
22973 void *argp1 = 0 ;
22974 int res1 = 0 ;
22975 PyObject *swig_obj[1] ;
22976
22977 if (!args) SWIG_fail;
22978 swig_obj[0] = args;
22979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22982 }
22983 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22984 {
22985 PyThreadState* __tstate = wxPyBeginAllowThreads();
22986 result = (wxItemKind)(arg1)->GetKind();
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 resultobj = SWIG_From_int(static_cast< int >(result));
22991 return resultobj;
22992fail:
22993 return NULL;
d55e5bfc
RD
22994}
22995
22996
1bd55598
RD
22997SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22998 PyObject *resultobj = 0;
22999 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23000 bool result;
23001 void *argp1 = 0 ;
23002 int res1 = 0 ;
23003 PyObject *swig_obj[1] ;
23004
23005 if (!args) SWIG_fail;
23006 swig_obj[0] = args;
23007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23008 if (!SWIG_IsOK(res1)) {
23009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23010 }
23011 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23012 {
23013 PyThreadState* __tstate = wxPyBeginAllowThreads();
23014 result = (bool)(arg1)->IsEnabled();
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 {
23019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23020 }
23021 return resultobj;
23022fail:
23023 return NULL;
d55e5bfc
RD
23024}
23025
23026
1bd55598
RD
23027SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23028 PyObject *resultobj = 0;
23029 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23030 bool result;
23031 void *argp1 = 0 ;
23032 int res1 = 0 ;
23033 PyObject *swig_obj[1] ;
23034
23035 if (!args) SWIG_fail;
23036 swig_obj[0] = args;
23037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23038 if (!SWIG_IsOK(res1)) {
23039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23040 }
23041 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23042 {
23043 PyThreadState* __tstate = wxPyBeginAllowThreads();
23044 result = (bool)(arg1)->IsToggled();
23045 wxPyEndAllowThreads(__tstate);
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 {
23049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23050 }
23051 return resultobj;
23052fail:
23053 return NULL;
d55e5bfc
RD
23054}
23055
23056
1bd55598
RD
23057SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23060 bool result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23070 }
23071 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (bool)(arg1)->CanBeToggled();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 {
23079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23080 }
23081 return resultobj;
23082fail:
23083 return NULL;
d55e5bfc
RD
23084}
23085
23086
1bd55598
RD
23087SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23090 wxBitmap *result = 0 ;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23100 }
23101 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 23104 {
1bd55598
RD
23105 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23106 result = (wxBitmap *) &_result_ref;
36ed4f51 23107 }
1bd55598
RD
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 {
23112 wxBitmap* resultptr = new wxBitmap(*result);
23113 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23114 }
23115 return resultobj;
23116fail:
23117 return NULL;
d55e5bfc
RD
23118}
23119
23120
1bd55598
RD
23121SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23122 PyObject *resultobj = 0;
23123 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23124 wxBitmap *result = 0 ;
23125 void *argp1 = 0 ;
23126 int res1 = 0 ;
23127 PyObject *swig_obj[1] ;
23128
23129 if (!args) SWIG_fail;
23130 swig_obj[0] = args;
23131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23132 if (!SWIG_IsOK(res1)) {
23133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23134 }
23135 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23138 {
1bd55598
RD
23139 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23140 result = (wxBitmap *) &_result_ref;
d55e5bfc 23141 }
1bd55598
RD
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 wxBitmap* resultptr = new wxBitmap(*result);
23147 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23148 }
23149 return resultobj;
23150fail:
23151 return NULL;
d55e5bfc
RD
23152}
23153
23154
1bd55598
RD
23155SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *resultobj = 0;
23157 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23158 wxBitmap result;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject *swig_obj[1] ;
23162
23163 if (!args) SWIG_fail;
23164 swig_obj[0] = args;
23165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23168 }
23169 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 result = (arg1)->GetBitmap();
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23177 return resultobj;
23178fail:
23179 return NULL;
d55e5bfc
RD
23180}
23181
23182
1bd55598
RD
23183SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23184 PyObject *resultobj = 0;
23185 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23186 wxString result;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 PyObject *swig_obj[1] ;
23190
23191 if (!args) SWIG_fail;
23192 swig_obj[0] = args;
23193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23196 }
23197 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 result = (arg1)->GetLabel();
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 {
23205#if wxUSE_UNICODE
23206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23207#else
23208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23209#endif
23210 }
23211 return resultobj;
23212fail:
23213 return NULL;
d55e5bfc
RD
23214}
23215
23216
1bd55598
RD
23217SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23218 PyObject *resultobj = 0;
23219 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23220 wxString result;
23221 void *argp1 = 0 ;
23222 int res1 = 0 ;
23223 PyObject *swig_obj[1] ;
23224
23225 if (!args) SWIG_fail;
23226 swig_obj[0] = args;
23227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23228 if (!SWIG_IsOK(res1)) {
23229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23230 }
23231 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 result = (arg1)->GetShortHelp();
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 {
23239#if wxUSE_UNICODE
23240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23241#else
23242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23243#endif
23244 }
23245 return resultobj;
23246fail:
23247 return NULL;
d55e5bfc
RD
23248}
23249
23250
1bd55598
RD
23251SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23252 PyObject *resultobj = 0;
23253 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23254 wxString result;
23255 void *argp1 = 0 ;
23256 int res1 = 0 ;
23257 PyObject *swig_obj[1] ;
23258
23259 if (!args) SWIG_fail;
23260 swig_obj[0] = args;
23261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23262 if (!SWIG_IsOK(res1)) {
23263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23264 }
23265 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23266 {
23267 PyThreadState* __tstate = wxPyBeginAllowThreads();
23268 result = (arg1)->GetLongHelp();
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 {
23273#if wxUSE_UNICODE
23274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23275#else
23276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23277#endif
23278 }
23279 return resultobj;
23280fail:
23281 return NULL;
23282}
23283
23284
23285SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj = 0;
23287 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23288 bool arg2 ;
23289 bool result;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 bool val2 ;
23293 int ecode2 = 0 ;
23294 PyObject * obj0 = 0 ;
23295 PyObject * obj1 = 0 ;
23296 char * kwnames[] = {
23297 (char *) "self",(char *) "enable", NULL
23298 };
23299
23300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23302 if (!SWIG_IsOK(res1)) {
23303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23304 }
23305 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23306 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23307 if (!SWIG_IsOK(ecode2)) {
23308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23309 }
23310 arg2 = static_cast< bool >(val2);
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 result = (bool)(arg1)->Enable(arg2);
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 {
23318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23319 }
23320 return resultobj;
23321fail:
23322 return NULL;
d55e5bfc
RD
23323}
23324
23325
1bd55598
RD
23326SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23327 PyObject *resultobj = 0;
23328 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23329 void *argp1 = 0 ;
23330 int res1 = 0 ;
23331 PyObject *swig_obj[1] ;
23332
23333 if (!args) SWIG_fail;
23334 swig_obj[0] = args;
23335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23336 if (!SWIG_IsOK(res1)) {
23337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23338 }
23339 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23340 {
23341 PyThreadState* __tstate = wxPyBeginAllowThreads();
23342 (arg1)->Toggle();
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 resultobj = SWIG_Py_Void();
23347 return resultobj;
23348fail:
23349 return NULL;
23350}
23351
23352
23353SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj = 0;
23355 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23356 bool arg2 ;
23357 bool result;
23358 void *argp1 = 0 ;
23359 int res1 = 0 ;
23360 bool val2 ;
23361 int ecode2 = 0 ;
23362 PyObject * obj0 = 0 ;
23363 PyObject * obj1 = 0 ;
23364 char * kwnames[] = {
23365 (char *) "self",(char *) "toggle", NULL
23366 };
23367
23368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23370 if (!SWIG_IsOK(res1)) {
23371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23372 }
23373 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23374 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23375 if (!SWIG_IsOK(ecode2)) {
23376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23377 }
23378 arg2 = static_cast< bool >(val2);
23379 {
23380 PyThreadState* __tstate = wxPyBeginAllowThreads();
23381 result = (bool)(arg1)->SetToggle(arg2);
23382 wxPyEndAllowThreads(__tstate);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 }
23385 {
23386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23387 }
23388 return resultobj;
23389fail:
23390 return NULL;
23391}
23392
23393
23394SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj = 0;
23396 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23397 wxString *arg2 = 0 ;
23398 bool result;
23399 void *argp1 = 0 ;
23400 int res1 = 0 ;
23401 bool temp2 = false ;
23402 PyObject * obj0 = 0 ;
23403 PyObject * obj1 = 0 ;
23404 char * kwnames[] = {
23405 (char *) "self",(char *) "help", NULL
23406 };
23407
23408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23410 if (!SWIG_IsOK(res1)) {
23411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23412 }
23413 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23414 {
23415 arg2 = wxString_in_helper(obj1);
23416 if (arg2 == NULL) SWIG_fail;
23417 temp2 = true;
23418 }
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 {
23426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23427 }
23428 {
23429 if (temp2)
23430 delete arg2;
23431 }
23432 return resultobj;
23433fail:
23434 {
23435 if (temp2)
23436 delete arg2;
23437 }
23438 return NULL;
23439}
23440
23441
23442SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23443 PyObject *resultobj = 0;
23444 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23445 wxString *arg2 = 0 ;
23446 bool result;
23447 void *argp1 = 0 ;
23448 int res1 = 0 ;
23449 bool temp2 = false ;
23450 PyObject * obj0 = 0 ;
23451 PyObject * obj1 = 0 ;
23452 char * kwnames[] = {
23453 (char *) "self",(char *) "help", NULL
23454 };
23455
23456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23458 if (!SWIG_IsOK(res1)) {
23459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23460 }
23461 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23462 {
23463 arg2 = wxString_in_helper(obj1);
23464 if (arg2 == NULL) SWIG_fail;
23465 temp2 = true;
23466 }
23467 {
23468 PyThreadState* __tstate = wxPyBeginAllowThreads();
23469 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 {
23474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23475 }
23476 {
23477 if (temp2)
23478 delete arg2;
23479 }
23480 return resultobj;
23481fail:
23482 {
23483 if (temp2)
23484 delete arg2;
23485 }
23486 return NULL;
23487}
23488
23489
23490SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj = 0;
23492 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23493 wxBitmap *arg2 = 0 ;
23494 void *argp1 = 0 ;
23495 int res1 = 0 ;
23496 void *argp2 = 0 ;
23497 int res2 = 0 ;
23498 PyObject * obj0 = 0 ;
23499 PyObject * obj1 = 0 ;
23500 char * kwnames[] = {
23501 (char *) "self",(char *) "bmp", NULL
23502 };
23503
23504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23506 if (!SWIG_IsOK(res1)) {
23507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23508 }
23509 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23511 if (!SWIG_IsOK(res2)) {
23512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23513 }
23514 if (!argp2) {
23515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23516 }
23517 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_Py_Void();
23525 return resultobj;
23526fail:
23527 return NULL;
23528}
23529
23530
23531SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23532 PyObject *resultobj = 0;
23533 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23534 wxBitmap *arg2 = 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 void *argp2 = 0 ;
23538 int res2 = 0 ;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char * kwnames[] = {
23542 (char *) "self",(char *) "bmp", NULL
23543 };
23544
23545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23547 if (!SWIG_IsOK(res1)) {
23548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23549 }
23550 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23552 if (!SWIG_IsOK(res2)) {
23553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23554 }
23555 if (!argp2) {
23556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23557 }
23558 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 resultobj = SWIG_Py_Void();
23566 return resultobj;
23567fail:
23568 return NULL;
23569}
23570
23571
23572SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = 0;
23574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23575 wxString *arg2 = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 bool temp2 = false ;
23579 PyObject * obj0 = 0 ;
23580 PyObject * obj1 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "self",(char *) "label", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23589 }
23590 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23591 {
23592 arg2 = wxString_in_helper(obj1);
23593 if (arg2 == NULL) SWIG_fail;
23594 temp2 = true;
23595 }
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 (arg1)->SetLabel((wxString const &)*arg2);
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 resultobj = SWIG_Py_Void();
23603 {
23604 if (temp2)
23605 delete arg2;
23606 }
23607 return resultobj;
23608fail:
23609 {
23610 if (temp2)
23611 delete arg2;
23612 }
23613 return NULL;
d55e5bfc
RD
23614}
23615
23616
1bd55598
RD
23617SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23618 PyObject *resultobj = 0;
23619 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23620 void *argp1 = 0 ;
23621 int res1 = 0 ;
23622 PyObject *swig_obj[1] ;
23623
23624 if (!args) SWIG_fail;
23625 swig_obj[0] = args;
23626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23627 if (!SWIG_IsOK(res1)) {
23628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23629 }
23630 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 (arg1)->Detach();
23634 wxPyEndAllowThreads(__tstate);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 }
23637 resultobj = SWIG_Py_Void();
23638 return resultobj;
23639fail:
23640 return NULL;
23641}
23642
23643
23644SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23645 PyObject *resultobj = 0;
23646 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23647 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 void *argp2 = 0 ;
23651 int res2 = 0 ;
23652 PyObject * obj0 = 0 ;
23653 PyObject * obj1 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "tbar", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23662 }
23663 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23665 if (!SWIG_IsOK(res2)) {
23666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23667 }
23668 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23669 {
23670 PyThreadState* __tstate = wxPyBeginAllowThreads();
23671 (arg1)->Attach(arg2);
23672 wxPyEndAllowThreads(__tstate);
23673 if (PyErr_Occurred()) SWIG_fail;
23674 }
23675 resultobj = SWIG_Py_Void();
23676 return resultobj;
23677fail:
23678 return NULL;
d55e5bfc
RD
23679}
23680
23681
1bd55598
RD
23682SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23683 PyObject *resultobj = 0;
23684 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23685 PyObject *result = 0 ;
23686 void *argp1 = 0 ;
23687 int res1 = 0 ;
23688 PyObject *swig_obj[1] ;
23689
23690 if (!args) SWIG_fail;
23691 swig_obj[0] = args;
23692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23693 if (!SWIG_IsOK(res1)) {
23694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23695 }
23696 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 resultobj = result;
23704 return resultobj;
23705fail:
23706 return NULL;
23707}
23708
23709
23710SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23711 PyObject *resultobj = 0;
23712 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23713 PyObject *arg2 = (PyObject *) 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 char * kwnames[] = {
23719 (char *) "self",(char *) "clientData", NULL
23720 };
23721
23722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23724 if (!SWIG_IsOK(res1)) {
23725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23726 }
23727 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23728 arg2 = obj1;
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 wxToolBarToolBase_SetClientData(arg1,arg2);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_Py_Void();
23736 return resultobj;
23737fail:
23738 return NULL;
23739}
23740
23741
23742SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23743 PyObject *obj;
23744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23745 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23746 return SWIG_Py_Void();
23747}
23748
23749SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23750 PyObject *resultobj = 0;
23751 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23752 int arg2 ;
23753 wxString *arg3 = 0 ;
23754 wxBitmap *arg4 = 0 ;
23755 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23756 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23757 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23758 wxString const &arg7_defvalue = wxPyEmptyString ;
23759 wxString *arg7 = (wxString *) &arg7_defvalue ;
23760 wxString const &arg8_defvalue = wxPyEmptyString ;
23761 wxString *arg8 = (wxString *) &arg8_defvalue ;
23762 PyObject *arg9 = (PyObject *) NULL ;
23763 wxToolBarToolBase *result = 0 ;
23764 void *argp1 = 0 ;
23765 int res1 = 0 ;
23766 int val2 ;
23767 int ecode2 = 0 ;
23768 bool temp3 = false ;
23769 void *argp4 = 0 ;
23770 int res4 = 0 ;
23771 void *argp5 = 0 ;
23772 int res5 = 0 ;
23773 int val6 ;
23774 int ecode6 = 0 ;
23775 bool temp7 = false ;
23776 bool temp8 = false ;
23777 PyObject * obj0 = 0 ;
23778 PyObject * obj1 = 0 ;
23779 PyObject * obj2 = 0 ;
23780 PyObject * obj3 = 0 ;
23781 PyObject * obj4 = 0 ;
23782 PyObject * obj5 = 0 ;
23783 PyObject * obj6 = 0 ;
23784 PyObject * obj7 = 0 ;
23785 PyObject * obj8 = 0 ;
23786 char * kwnames[] = {
23787 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23788 };
23789
23790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23792 if (!SWIG_IsOK(res1)) {
23793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23794 }
23795 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23796 ecode2 = SWIG_AsVal_int(obj1, &val2);
23797 if (!SWIG_IsOK(ecode2)) {
23798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23799 }
23800 arg2 = static_cast< int >(val2);
23801 {
23802 arg3 = wxString_in_helper(obj2);
23803 if (arg3 == NULL) SWIG_fail;
23804 temp3 = true;
23805 }
23806 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23807 if (!SWIG_IsOK(res4)) {
23808 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23809 }
23810 if (!argp4) {
23811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23812 }
23813 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23814 if (obj4) {
23815 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23816 if (!SWIG_IsOK(res5)) {
23817 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23818 }
1bd55598
RD
23819 if (!argp5) {
23820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23821 }
1bd55598
RD
23822 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23823 }
23824 if (obj5) {
23825 ecode6 = SWIG_AsVal_int(obj5, &val6);
23826 if (!SWIG_IsOK(ecode6)) {
23827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23828 }
23829 arg6 = static_cast< wxItemKind >(val6);
23830 }
23831 if (obj6) {
f20a2e1f 23832 {
1bd55598
RD
23833 arg7 = wxString_in_helper(obj6);
23834 if (arg7 == NULL) SWIG_fail;
23835 temp7 = true;
f20a2e1f 23836 }
1bd55598
RD
23837 }
23838 if (obj7) {
f20a2e1f 23839 {
1bd55598
RD
23840 arg8 = wxString_in_helper(obj7);
23841 if (arg8 == NULL) SWIG_fail;
23842 temp8 = true;
d55e5bfc 23843 }
1bd55598
RD
23844 }
23845 if (obj8) {
23846 arg9 = obj8;
23847 }
23848 {
23849 PyThreadState* __tstate = wxPyBeginAllowThreads();
23850 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23851 wxPyEndAllowThreads(__tstate);
23852 if (PyErr_Occurred()) SWIG_fail;
23853 }
23854 {
23855 resultobj = wxPyMake_wxObject(result, (bool)0);
23856 }
23857 {
23858 if (temp3)
23859 delete arg3;
23860 }
23861 {
23862 if (temp7)
23863 delete arg7;
23864 }
23865 {
23866 if (temp8)
23867 delete arg8;
23868 }
23869 return resultobj;
23870fail:
23871 {
23872 if (temp3)
23873 delete arg3;
23874 }
23875 {
23876 if (temp7)
23877 delete arg7;
23878 }
23879 {
23880 if (temp8)
23881 delete arg8;
23882 }
23883 return NULL;
23884}
23885
23886
23887SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23888 PyObject *resultobj = 0;
23889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23890 size_t arg2 ;
23891 int arg3 ;
23892 wxString *arg4 = 0 ;
23893 wxBitmap *arg5 = 0 ;
23894 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23895 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23896 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23897 wxString const &arg8_defvalue = wxPyEmptyString ;
23898 wxString *arg8 = (wxString *) &arg8_defvalue ;
23899 wxString const &arg9_defvalue = wxPyEmptyString ;
23900 wxString *arg9 = (wxString *) &arg9_defvalue ;
23901 PyObject *arg10 = (PyObject *) NULL ;
23902 wxToolBarToolBase *result = 0 ;
23903 void *argp1 = 0 ;
23904 int res1 = 0 ;
23905 size_t val2 ;
23906 int ecode2 = 0 ;
23907 int val3 ;
23908 int ecode3 = 0 ;
23909 bool temp4 = false ;
23910 void *argp5 = 0 ;
23911 int res5 = 0 ;
23912 void *argp6 = 0 ;
23913 int res6 = 0 ;
23914 int val7 ;
23915 int ecode7 = 0 ;
23916 bool temp8 = false ;
23917 bool temp9 = false ;
23918 PyObject * obj0 = 0 ;
23919 PyObject * obj1 = 0 ;
23920 PyObject * obj2 = 0 ;
23921 PyObject * obj3 = 0 ;
23922 PyObject * obj4 = 0 ;
23923 PyObject * obj5 = 0 ;
23924 PyObject * obj6 = 0 ;
23925 PyObject * obj7 = 0 ;
23926 PyObject * obj8 = 0 ;
23927 PyObject * obj9 = 0 ;
23928 char * kwnames[] = {
23929 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23930 };
23931
23932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23934 if (!SWIG_IsOK(res1)) {
23935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23936 }
23937 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23939 if (!SWIG_IsOK(ecode2)) {
23940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23941 }
23942 arg2 = static_cast< size_t >(val2);
23943 ecode3 = SWIG_AsVal_int(obj2, &val3);
23944 if (!SWIG_IsOK(ecode3)) {
23945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23946 }
23947 arg3 = static_cast< int >(val3);
23948 {
23949 arg4 = wxString_in_helper(obj3);
23950 if (arg4 == NULL) SWIG_fail;
23951 temp4 = true;
23952 }
23953 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23954 if (!SWIG_IsOK(res5)) {
23955 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23956 }
23957 if (!argp5) {
23958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23959 }
23960 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23961 if (obj5) {
23962 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23963 if (!SWIG_IsOK(res6)) {
23964 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23965 }
1bd55598
RD
23966 if (!argp6) {
23967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23968 }
1bd55598
RD
23969 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23970 }
23971 if (obj6) {
23972 ecode7 = SWIG_AsVal_int(obj6, &val7);
23973 if (!SWIG_IsOK(ecode7)) {
23974 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23975 }
23976 arg7 = static_cast< wxItemKind >(val7);
23977 }
23978 if (obj7) {
d55e5bfc 23979 {
1bd55598
RD
23980 arg8 = wxString_in_helper(obj7);
23981 if (arg8 == NULL) SWIG_fail;
23982 temp8 = true;
d55e5bfc 23983 }
1bd55598
RD
23984 }
23985 if (obj8) {
d55e5bfc 23986 {
1bd55598
RD
23987 arg9 = wxString_in_helper(obj8);
23988 if (arg9 == NULL) SWIG_fail;
23989 temp9 = true;
d55e5bfc 23990 }
1bd55598
RD
23991 }
23992 if (obj9) {
23993 arg10 = obj9;
23994 }
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 {
24002 resultobj = wxPyMake_wxObject(result, (bool)0);
24003 }
24004 {
24005 if (temp4)
24006 delete arg4;
24007 }
24008 {
24009 if (temp8)
24010 delete arg8;
24011 }
24012 {
24013 if (temp9)
24014 delete arg9;
24015 }
24016 return resultobj;
24017fail:
24018 {
24019 if (temp4)
24020 delete arg4;
24021 }
24022 {
24023 if (temp8)
24024 delete arg8;
24025 }
24026 {
24027 if (temp9)
24028 delete arg9;
24029 }
24030 return NULL;
24031}
24032
24033
24034SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24035 PyObject *resultobj = 0;
24036 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24037 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24038 wxToolBarToolBase *result = 0 ;
24039 void *argp1 = 0 ;
24040 int res1 = 0 ;
24041 void *argp2 = 0 ;
24042 int res2 = 0 ;
24043 PyObject * obj0 = 0 ;
24044 PyObject * obj1 = 0 ;
24045 char * kwnames[] = {
24046 (char *) "self",(char *) "tool", NULL
24047 };
24048
24049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24051 if (!SWIG_IsOK(res1)) {
24052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24053 }
24054 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24056 if (!SWIG_IsOK(res2)) {
24057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24058 }
24059 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24060 {
24061 PyThreadState* __tstate = wxPyBeginAllowThreads();
24062 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24063 wxPyEndAllowThreads(__tstate);
24064 if (PyErr_Occurred()) SWIG_fail;
24065 }
24066 {
24067 resultobj = wxPyMake_wxObject(result, (bool)0);
24068 }
24069 return resultobj;
24070fail:
24071 return NULL;
24072}
24073
24074
24075SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24076 PyObject *resultobj = 0;
24077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24078 size_t arg2 ;
24079 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24080 wxToolBarToolBase *result = 0 ;
24081 void *argp1 = 0 ;
24082 int res1 = 0 ;
24083 size_t val2 ;
24084 int ecode2 = 0 ;
24085 void *argp3 = 0 ;
24086 int res3 = 0 ;
24087 PyObject * obj0 = 0 ;
24088 PyObject * obj1 = 0 ;
24089 PyObject * obj2 = 0 ;
24090 char * kwnames[] = {
24091 (char *) "self",(char *) "pos",(char *) "tool", NULL
24092 };
24093
24094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",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_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24098 }
24099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24100 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24101 if (!SWIG_IsOK(ecode2)) {
24102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24103 }
24104 arg2 = static_cast< size_t >(val2);
24105 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24106 if (!SWIG_IsOK(res3)) {
24107 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24108 }
24109 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = wxPyMake_wxObject(result, (bool)0);
24118 }
24119 return resultobj;
24120fail:
24121 return NULL;
24122}
24123
24124
24125SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj = 0;
24127 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24128 wxControl *arg2 = (wxControl *) 0 ;
24129 wxToolBarToolBase *result = 0 ;
24130 void *argp1 = 0 ;
24131 int res1 = 0 ;
24132 void *argp2 = 0 ;
24133 int res2 = 0 ;
24134 PyObject * obj0 = 0 ;
24135 PyObject * obj1 = 0 ;
24136 char * kwnames[] = {
24137 (char *) "self",(char *) "control", NULL
24138 };
24139
24140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24142 if (!SWIG_IsOK(res1)) {
24143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24144 }
24145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24146 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24147 if (!SWIG_IsOK(res2)) {
24148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24149 }
24150 arg2 = reinterpret_cast< wxControl * >(argp2);
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 {
24158 resultobj = wxPyMake_wxObject(result, (bool)0);
24159 }
24160 return resultobj;
24161fail:
24162 return NULL;
24163}
24164
24165
24166SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24167 PyObject *resultobj = 0;
24168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24169 size_t arg2 ;
24170 wxControl *arg3 = (wxControl *) 0 ;
24171 wxToolBarToolBase *result = 0 ;
24172 void *argp1 = 0 ;
24173 int res1 = 0 ;
24174 size_t val2 ;
24175 int ecode2 = 0 ;
24176 void *argp3 = 0 ;
24177 int res3 = 0 ;
24178 PyObject * obj0 = 0 ;
24179 PyObject * obj1 = 0 ;
24180 PyObject * obj2 = 0 ;
24181 char * kwnames[] = {
24182 (char *) "self",(char *) "pos",(char *) "control", NULL
24183 };
24184
24185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24187 if (!SWIG_IsOK(res1)) {
24188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24189 }
24190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24192 if (!SWIG_IsOK(ecode2)) {
24193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24194 }
24195 arg2 = static_cast< size_t >(val2);
24196 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24197 if (!SWIG_IsOK(res3)) {
24198 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24199 }
24200 arg3 = reinterpret_cast< wxControl * >(argp3);
24201 {
24202 PyThreadState* __tstate = wxPyBeginAllowThreads();
24203 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24204 wxPyEndAllowThreads(__tstate);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 }
24207 {
24208 resultobj = wxPyMake_wxObject(result, (bool)0);
24209 }
24210 return resultobj;
24211fail:
24212 return NULL;
24213}
24214
24215
24216SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj = 0;
24218 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24219 int arg2 ;
24220 wxControl *result = 0 ;
24221 void *argp1 = 0 ;
24222 int res1 = 0 ;
24223 int val2 ;
24224 int ecode2 = 0 ;
24225 PyObject * obj0 = 0 ;
24226 PyObject * obj1 = 0 ;
24227 char * kwnames[] = {
24228 (char *) "self",(char *) "id", NULL
24229 };
24230
24231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24235 }
24236 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24237 ecode2 = SWIG_AsVal_int(obj1, &val2);
24238 if (!SWIG_IsOK(ecode2)) {
24239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24240 }
24241 arg2 = static_cast< int >(val2);
24242 {
24243 PyThreadState* __tstate = wxPyBeginAllowThreads();
24244 result = (wxControl *)(arg1)->FindControl(arg2);
24245 wxPyEndAllowThreads(__tstate);
24246 if (PyErr_Occurred()) SWIG_fail;
24247 }
24248 {
24249 resultobj = wxPyMake_wxObject(result, 0);
24250 }
24251 return resultobj;
24252fail:
24253 return NULL;
d55e5bfc
RD
24254}
24255
24256
1bd55598
RD
24257SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24258 PyObject *resultobj = 0;
24259 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24260 wxToolBarToolBase *result = 0 ;
24261 void *argp1 = 0 ;
24262 int res1 = 0 ;
24263 PyObject *swig_obj[1] ;
24264
24265 if (!args) SWIG_fail;
24266 swig_obj[0] = args;
24267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24268 if (!SWIG_IsOK(res1)) {
24269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24270 }
24271 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24272 {
24273 PyThreadState* __tstate = wxPyBeginAllowThreads();
24274 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24275 wxPyEndAllowThreads(__tstate);
24276 if (PyErr_Occurred()) SWIG_fail;
24277 }
24278 {
24279 resultobj = wxPyMake_wxObject(result, (bool)0);
24280 }
24281 return resultobj;
24282fail:
24283 return NULL;
24284}
24285
24286
24287SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24288 PyObject *resultobj = 0;
24289 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24290 size_t arg2 ;
24291 wxToolBarToolBase *result = 0 ;
24292 void *argp1 = 0 ;
24293 int res1 = 0 ;
24294 size_t val2 ;
24295 int ecode2 = 0 ;
24296 PyObject * obj0 = 0 ;
24297 PyObject * obj1 = 0 ;
24298 char * kwnames[] = {
24299 (char *) "self",(char *) "pos", NULL
24300 };
24301
24302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24304 if (!SWIG_IsOK(res1)) {
24305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24306 }
24307 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24308 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24309 if (!SWIG_IsOK(ecode2)) {
24310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24311 }
24312 arg2 = static_cast< size_t >(val2);
24313 {
24314 PyThreadState* __tstate = wxPyBeginAllowThreads();
24315 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24316 wxPyEndAllowThreads(__tstate);
24317 if (PyErr_Occurred()) SWIG_fail;
24318 }
24319 {
24320 resultobj = wxPyMake_wxObject(result, (bool)0);
24321 }
24322 return resultobj;
24323fail:
24324 return NULL;
24325}
24326
24327
24328SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj = 0;
24330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24331 int arg2 ;
24332 wxToolBarToolBase *result = 0 ;
24333 void *argp1 = 0 ;
24334 int res1 = 0 ;
24335 int val2 ;
24336 int ecode2 = 0 ;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339 char * kwnames[] = {
24340 (char *) "self",(char *) "id", NULL
24341 };
24342
24343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24345 if (!SWIG_IsOK(res1)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24347 }
24348 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24349 ecode2 = SWIG_AsVal_int(obj1, &val2);
24350 if (!SWIG_IsOK(ecode2)) {
24351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24352 }
24353 arg2 = static_cast< int >(val2);
24354 {
24355 PyThreadState* __tstate = wxPyBeginAllowThreads();
24356 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 {
24361 resultobj = wxPyMake_wxObject(result, (bool)0);
24362 }
24363 return resultobj;
24364fail:
24365 return NULL;
24366}
24367
24368
24369SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj = 0;
24371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24372 size_t arg2 ;
24373 bool result;
24374 void *argp1 = 0 ;
24375 int res1 = 0 ;
24376 size_t val2 ;
24377 int ecode2 = 0 ;
24378 PyObject * obj0 = 0 ;
24379 PyObject * obj1 = 0 ;
24380 char * kwnames[] = {
24381 (char *) "self",(char *) "pos", NULL
24382 };
24383
24384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24386 if (!SWIG_IsOK(res1)) {
24387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24388 }
24389 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24390 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24391 if (!SWIG_IsOK(ecode2)) {
24392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24393 }
24394 arg2 = static_cast< size_t >(val2);
24395 {
24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24397 result = (bool)(arg1)->DeleteToolByPos(arg2);
24398 wxPyEndAllowThreads(__tstate);
24399 if (PyErr_Occurred()) SWIG_fail;
24400 }
24401 {
24402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24403 }
24404 return resultobj;
24405fail:
24406 return NULL;
24407}
24408
24409
24410SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24411 PyObject *resultobj = 0;
24412 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24413 int arg2 ;
24414 bool result;
24415 void *argp1 = 0 ;
24416 int res1 = 0 ;
24417 int val2 ;
24418 int ecode2 = 0 ;
24419 PyObject * obj0 = 0 ;
24420 PyObject * obj1 = 0 ;
24421 char * kwnames[] = {
24422 (char *) "self",(char *) "id", NULL
24423 };
24424
24425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24427 if (!SWIG_IsOK(res1)) {
24428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24429 }
24430 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24431 ecode2 = SWIG_AsVal_int(obj1, &val2);
24432 if (!SWIG_IsOK(ecode2)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24434 }
24435 arg2 = static_cast< int >(val2);
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 result = (bool)(arg1)->DeleteTool(arg2);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 {
24443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24444 }
24445 return resultobj;
24446fail:
24447 return NULL;
d55e5bfc
RD
24448}
24449
24450
1bd55598
RD
24451SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24452 PyObject *resultobj = 0;
24453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24454 void *argp1 = 0 ;
24455 int res1 = 0 ;
24456 PyObject *swig_obj[1] ;
24457
24458 if (!args) SWIG_fail;
24459 swig_obj[0] = args;
24460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24461 if (!SWIG_IsOK(res1)) {
24462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24463 }
24464 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24465 {
24466 PyThreadState* __tstate = wxPyBeginAllowThreads();
24467 (arg1)->ClearTools();
24468 wxPyEndAllowThreads(__tstate);
24469 if (PyErr_Occurred()) SWIG_fail;
24470 }
24471 resultobj = SWIG_Py_Void();
24472 return resultobj;
24473fail:
24474 return NULL;
d55e5bfc
RD
24475}
24476
24477
1bd55598
RD
24478SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24479 PyObject *resultobj = 0;
24480 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24481 bool result;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 PyObject *swig_obj[1] ;
24485
24486 if (!args) SWIG_fail;
24487 swig_obj[0] = args;
24488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24489 if (!SWIG_IsOK(res1)) {
24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24491 }
24492 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24493 {
24494 PyThreadState* __tstate = wxPyBeginAllowThreads();
24495 result = (bool)(arg1)->Realize();
24496 wxPyEndAllowThreads(__tstate);
24497 if (PyErr_Occurred()) SWIG_fail;
24498 }
24499 {
24500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24501 }
24502 return resultobj;
24503fail:
24504 return NULL;
24505}
24506
24507
24508SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24509 PyObject *resultobj = 0;
24510 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24511 int arg2 ;
24512 bool arg3 ;
24513 void *argp1 = 0 ;
24514 int res1 = 0 ;
24515 int val2 ;
24516 int ecode2 = 0 ;
24517 bool val3 ;
24518 int ecode3 = 0 ;
24519 PyObject * obj0 = 0 ;
24520 PyObject * obj1 = 0 ;
24521 PyObject * obj2 = 0 ;
24522 char * kwnames[] = {
24523 (char *) "self",(char *) "id",(char *) "enable", NULL
24524 };
24525
24526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24530 }
24531 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24532 ecode2 = SWIG_AsVal_int(obj1, &val2);
24533 if (!SWIG_IsOK(ecode2)) {
24534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24535 }
24536 arg2 = static_cast< int >(val2);
24537 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24538 if (!SWIG_IsOK(ecode3)) {
24539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24540 }
24541 arg3 = static_cast< bool >(val3);
24542 {
24543 PyThreadState* __tstate = wxPyBeginAllowThreads();
24544 (arg1)->EnableTool(arg2,arg3);
24545 wxPyEndAllowThreads(__tstate);
24546 if (PyErr_Occurred()) SWIG_fail;
24547 }
24548 resultobj = SWIG_Py_Void();
24549 return resultobj;
24550fail:
24551 return NULL;
24552}
24553
24554
24555SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24556 PyObject *resultobj = 0;
24557 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24558 int arg2 ;
24559 bool arg3 ;
24560 void *argp1 = 0 ;
24561 int res1 = 0 ;
24562 int val2 ;
24563 int ecode2 = 0 ;
24564 bool val3 ;
24565 int ecode3 = 0 ;
24566 PyObject * obj0 = 0 ;
24567 PyObject * obj1 = 0 ;
24568 PyObject * obj2 = 0 ;
24569 char * kwnames[] = {
24570 (char *) "self",(char *) "id",(char *) "toggle", NULL
24571 };
24572
24573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24575 if (!SWIG_IsOK(res1)) {
24576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24577 }
24578 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24579 ecode2 = SWIG_AsVal_int(obj1, &val2);
24580 if (!SWIG_IsOK(ecode2)) {
24581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24582 }
24583 arg2 = static_cast< int >(val2);
24584 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24585 if (!SWIG_IsOK(ecode3)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24587 }
24588 arg3 = static_cast< bool >(val3);
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 (arg1)->ToggleTool(arg2,arg3);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_Py_Void();
24596 return resultobj;
24597fail:
24598 return NULL;
24599}
24600
24601
24602SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24603 PyObject *resultobj = 0;
24604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24605 int arg2 ;
24606 bool arg3 ;
24607 void *argp1 = 0 ;
24608 int res1 = 0 ;
24609 int val2 ;
24610 int ecode2 = 0 ;
24611 bool val3 ;
24612 int ecode3 = 0 ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 PyObject * obj2 = 0 ;
24616 char * kwnames[] = {
24617 (char *) "self",(char *) "id",(char *) "toggle", NULL
24618 };
24619
24620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24622 if (!SWIG_IsOK(res1)) {
24623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24624 }
24625 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24626 ecode2 = SWIG_AsVal_int(obj1, &val2);
24627 if (!SWIG_IsOK(ecode2)) {
24628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24629 }
24630 arg2 = static_cast< int >(val2);
24631 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24632 if (!SWIG_IsOK(ecode3)) {
24633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24634 }
24635 arg3 = static_cast< bool >(val3);
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 (arg1)->SetToggle(arg2,arg3);
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 resultobj = SWIG_Py_Void();
24643 return resultobj;
24644fail:
24645 return NULL;
24646}
24647
24648
24649SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24650 PyObject *resultobj = 0;
24651 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24652 int arg2 ;
24653 PyObject *result = 0 ;
24654 void *argp1 = 0 ;
24655 int res1 = 0 ;
24656 int val2 ;
24657 int ecode2 = 0 ;
24658 PyObject * obj0 = 0 ;
24659 PyObject * obj1 = 0 ;
24660 char * kwnames[] = {
24661 (char *) "self",(char *) "id", NULL
24662 };
24663
24664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24666 if (!SWIG_IsOK(res1)) {
24667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24668 }
24669 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24670 ecode2 = SWIG_AsVal_int(obj1, &val2);
24671 if (!SWIG_IsOK(ecode2)) {
24672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24673 }
24674 arg2 = static_cast< int >(val2);
24675 {
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
24677 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = result;
24682 return resultobj;
24683fail:
24684 return NULL;
24685}
24686
24687
24688SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj = 0;
24690 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24691 int arg2 ;
24692 PyObject *arg3 = (PyObject *) 0 ;
24693 void *argp1 = 0 ;
24694 int res1 = 0 ;
24695 int val2 ;
24696 int ecode2 = 0 ;
24697 PyObject * obj0 = 0 ;
24698 PyObject * obj1 = 0 ;
24699 PyObject * obj2 = 0 ;
24700 char * kwnames[] = {
24701 (char *) "self",(char *) "id",(char *) "clientData", NULL
24702 };
24703
24704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24706 if (!SWIG_IsOK(res1)) {
24707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24708 }
24709 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24710 ecode2 = SWIG_AsVal_int(obj1, &val2);
24711 if (!SWIG_IsOK(ecode2)) {
24712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24713 }
24714 arg2 = static_cast< int >(val2);
24715 arg3 = obj2;
24716 {
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 resultobj = SWIG_Py_Void();
24723 return resultobj;
24724fail:
24725 return NULL;
24726}
24727
24728
24729SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24732 int arg2 ;
24733 int result;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 int val2 ;
24737 int ecode2 = 0 ;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "self",(char *) "id", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24748 }
24749 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24750 ecode2 = SWIG_AsVal_int(obj1, &val2);
24751 if (!SWIG_IsOK(ecode2)) {
24752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24753 }
24754 arg2 = static_cast< int >(val2);
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 resultobj = SWIG_From_int(static_cast< int >(result));
24762 return resultobj;
24763fail:
24764 return NULL;
24765}
24766
24767
24768SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24769 PyObject *resultobj = 0;
24770 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24771 int arg2 ;
24772 bool result;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 int val2 ;
24776 int ecode2 = 0 ;
24777 PyObject * obj0 = 0 ;
24778 PyObject * obj1 = 0 ;
24779 char * kwnames[] = {
24780 (char *) "self",(char *) "id", NULL
24781 };
24782
24783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24785 if (!SWIG_IsOK(res1)) {
24786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24787 }
24788 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24789 ecode2 = SWIG_AsVal_int(obj1, &val2);
24790 if (!SWIG_IsOK(ecode2)) {
24791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24792 }
24793 arg2 = static_cast< int >(val2);
24794 {
24795 PyThreadState* __tstate = wxPyBeginAllowThreads();
24796 result = (bool)(arg1)->GetToolState(arg2);
24797 wxPyEndAllowThreads(__tstate);
24798 if (PyErr_Occurred()) SWIG_fail;
24799 }
24800 {
24801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24802 }
24803 return resultobj;
24804fail:
24805 return NULL;
24806}
24807
24808
24809SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24810 PyObject *resultobj = 0;
24811 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24812 int arg2 ;
24813 bool result;
24814 void *argp1 = 0 ;
24815 int res1 = 0 ;
24816 int val2 ;
24817 int ecode2 = 0 ;
24818 PyObject * obj0 = 0 ;
24819 PyObject * obj1 = 0 ;
24820 char * kwnames[] = {
24821 (char *) "self",(char *) "id", NULL
24822 };
24823
24824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24826 if (!SWIG_IsOK(res1)) {
24827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24828 }
24829 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24830 ecode2 = SWIG_AsVal_int(obj1, &val2);
24831 if (!SWIG_IsOK(ecode2)) {
24832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24833 }
24834 arg2 = static_cast< int >(val2);
24835 {
24836 PyThreadState* __tstate = wxPyBeginAllowThreads();
24837 result = (bool)(arg1)->GetToolEnabled(arg2);
24838 wxPyEndAllowThreads(__tstate);
24839 if (PyErr_Occurred()) SWIG_fail;
24840 }
24841 {
24842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24843 }
24844 return resultobj;
24845fail:
24846 return NULL;
24847}
24848
24849
24850SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24851 PyObject *resultobj = 0;
24852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24853 int arg2 ;
24854 wxString *arg3 = 0 ;
24855 void *argp1 = 0 ;
24856 int res1 = 0 ;
24857 int val2 ;
24858 int ecode2 = 0 ;
24859 bool temp3 = false ;
24860 PyObject * obj0 = 0 ;
24861 PyObject * obj1 = 0 ;
24862 PyObject * obj2 = 0 ;
24863 char * kwnames[] = {
24864 (char *) "self",(char *) "id",(char *) "helpString", NULL
24865 };
24866
24867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24871 }
24872 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24873 ecode2 = SWIG_AsVal_int(obj1, &val2);
24874 if (!SWIG_IsOK(ecode2)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24876 }
24877 arg2 = static_cast< int >(val2);
24878 {
24879 arg3 = wxString_in_helper(obj2);
24880 if (arg3 == NULL) SWIG_fail;
24881 temp3 = true;
24882 }
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_Py_Void();
24890 {
24891 if (temp3)
24892 delete arg3;
24893 }
24894 return resultobj;
24895fail:
24896 {
24897 if (temp3)
24898 delete arg3;
24899 }
24900 return NULL;
24901}
24902
24903
24904SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24905 PyObject *resultobj = 0;
24906 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24907 int arg2 ;
24908 wxString result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 int val2 ;
24912 int ecode2 = 0 ;
24913 PyObject * obj0 = 0 ;
24914 PyObject * obj1 = 0 ;
24915 char * kwnames[] = {
24916 (char *) "self",(char *) "id", NULL
24917 };
24918
24919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24921 if (!SWIG_IsOK(res1)) {
24922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24923 }
24924 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24925 ecode2 = SWIG_AsVal_int(obj1, &val2);
24926 if (!SWIG_IsOK(ecode2)) {
24927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24928 }
24929 arg2 = static_cast< int >(val2);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 result = (arg1)->GetToolShortHelp(arg2);
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 {
24937#if wxUSE_UNICODE
24938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24939#else
24940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24941#endif
24942 }
24943 return resultobj;
24944fail:
24945 return NULL;
24946}
24947
24948
24949SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = 0;
24951 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24952 int arg2 ;
24953 wxString *arg3 = 0 ;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 int val2 ;
24957 int ecode2 = 0 ;
24958 bool temp3 = false ;
24959 PyObject * obj0 = 0 ;
24960 PyObject * obj1 = 0 ;
24961 PyObject * obj2 = 0 ;
24962 char * kwnames[] = {
24963 (char *) "self",(char *) "id",(char *) "helpString", NULL
24964 };
24965
24966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24970 }
24971 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24972 ecode2 = SWIG_AsVal_int(obj1, &val2);
24973 if (!SWIG_IsOK(ecode2)) {
24974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24975 }
24976 arg2 = static_cast< int >(val2);
24977 {
24978 arg3 = wxString_in_helper(obj2);
24979 if (arg3 == NULL) SWIG_fail;
24980 temp3 = true;
24981 }
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 resultobj = SWIG_Py_Void();
24989 {
24990 if (temp3)
24991 delete arg3;
24992 }
24993 return resultobj;
24994fail:
24995 {
24996 if (temp3)
24997 delete arg3;
24998 }
24999 return NULL;
25000}
25001
25002
25003SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25004 PyObject *resultobj = 0;
25005 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25006 int arg2 ;
25007 wxString result;
25008 void *argp1 = 0 ;
25009 int res1 = 0 ;
25010 int val2 ;
25011 int ecode2 = 0 ;
25012 PyObject * obj0 = 0 ;
25013 PyObject * obj1 = 0 ;
25014 char * kwnames[] = {
25015 (char *) "self",(char *) "id", NULL
25016 };
25017
25018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25020 if (!SWIG_IsOK(res1)) {
25021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25022 }
25023 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25024 ecode2 = SWIG_AsVal_int(obj1, &val2);
25025 if (!SWIG_IsOK(ecode2)) {
25026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25027 }
25028 arg2 = static_cast< int >(val2);
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 result = (arg1)->GetToolLongHelp(arg2);
25032 wxPyEndAllowThreads(__tstate);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 {
25036#if wxUSE_UNICODE
25037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25038#else
25039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25040#endif
25041 }
25042 return resultobj;
25043fail:
25044 return NULL;
25045}
25046
25047
25048SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25049 PyObject *resultobj = 0;
25050 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25051 int arg2 ;
25052 int arg3 ;
25053 void *argp1 = 0 ;
25054 int res1 = 0 ;
25055 int val2 ;
25056 int ecode2 = 0 ;
25057 int val3 ;
25058 int ecode3 = 0 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 PyObject * obj2 = 0 ;
25062 char * kwnames[] = {
25063 (char *) "self",(char *) "x",(char *) "y", NULL
25064 };
25065
25066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25070 }
25071 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25072 ecode2 = SWIG_AsVal_int(obj1, &val2);
25073 if (!SWIG_IsOK(ecode2)) {
25074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25075 }
25076 arg2 = static_cast< int >(val2);
25077 ecode3 = SWIG_AsVal_int(obj2, &val3);
25078 if (!SWIG_IsOK(ecode3)) {
25079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25080 }
25081 arg3 = static_cast< int >(val3);
25082 {
25083 PyThreadState* __tstate = wxPyBeginAllowThreads();
25084 (arg1)->SetMargins(arg2,arg3);
25085 wxPyEndAllowThreads(__tstate);
25086 if (PyErr_Occurred()) SWIG_fail;
25087 }
25088 resultobj = SWIG_Py_Void();
25089 return resultobj;
25090fail:
25091 return NULL;
25092}
25093
25094
25095SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj = 0;
25097 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25098 wxSize *arg2 = 0 ;
25099 void *argp1 = 0 ;
25100 int res1 = 0 ;
25101 wxSize temp2 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 char * kwnames[] = {
25105 (char *) "self",(char *) "size", NULL
25106 };
25107
25108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25110 if (!SWIG_IsOK(res1)) {
25111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25112 }
25113 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25114 {
25115 arg2 = &temp2;
25116 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25117 }
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 (arg1)->SetMargins((wxSize const &)*arg2);
25121 wxPyEndAllowThreads(__tstate);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_Py_Void();
25125 return resultobj;
25126fail:
25127 return NULL;
25128}
25129
25130
25131SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25132 PyObject *resultobj = 0;
25133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25134 int arg2 ;
25135 void *argp1 = 0 ;
25136 int res1 = 0 ;
25137 int val2 ;
25138 int ecode2 = 0 ;
25139 PyObject * obj0 = 0 ;
25140 PyObject * obj1 = 0 ;
25141 char * kwnames[] = {
25142 (char *) "self",(char *) "packing", NULL
25143 };
25144
25145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25147 if (!SWIG_IsOK(res1)) {
25148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25149 }
25150 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25151 ecode2 = SWIG_AsVal_int(obj1, &val2);
25152 if (!SWIG_IsOK(ecode2)) {
25153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25154 }
25155 arg2 = static_cast< int >(val2);
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 (arg1)->SetToolPacking(arg2);
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_Py_Void();
25163 return resultobj;
25164fail:
25165 return NULL;
25166}
25167
25168
25169SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj = 0;
25171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25172 int arg2 ;
25173 void *argp1 = 0 ;
25174 int res1 = 0 ;
25175 int val2 ;
25176 int ecode2 = 0 ;
25177 PyObject * obj0 = 0 ;
25178 PyObject * obj1 = 0 ;
25179 char * kwnames[] = {
25180 (char *) "self",(char *) "separation", NULL
25181 };
25182
25183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25185 if (!SWIG_IsOK(res1)) {
25186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25187 }
25188 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25189 ecode2 = SWIG_AsVal_int(obj1, &val2);
25190 if (!SWIG_IsOK(ecode2)) {
25191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25192 }
25193 arg2 = static_cast< int >(val2);
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
25196 (arg1)->SetToolSeparation(arg2);
25197 wxPyEndAllowThreads(__tstate);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 resultobj = SWIG_Py_Void();
25201 return resultobj;
25202fail:
25203 return NULL;
d55e5bfc
RD
25204}
25205
25206
1bd55598
RD
25207SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25208 PyObject *resultobj = 0;
25209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25210 wxSize result;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 PyObject *swig_obj[1] ;
25214
25215 if (!args) SWIG_fail;
25216 swig_obj[0] = args;
25217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25218 if (!SWIG_IsOK(res1)) {
25219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25220 }
25221 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 result = (arg1)->GetToolMargins();
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25229 return resultobj;
25230fail:
25231 return NULL;
d55e5bfc
RD
25232}
25233
25234
1bd55598
RD
25235SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25236 PyObject *resultobj = 0;
25237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25238 wxSize result;
25239 void *argp1 = 0 ;
25240 int res1 = 0 ;
25241 PyObject *swig_obj[1] ;
25242
25243 if (!args) SWIG_fail;
25244 swig_obj[0] = args;
25245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25246 if (!SWIG_IsOK(res1)) {
25247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25248 }
25249 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 result = (arg1)->GetMargins();
25253 wxPyEndAllowThreads(__tstate);
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25257 return resultobj;
25258fail:
25259 return NULL;
d55e5bfc
RD
25260}
25261
25262
1bd55598
RD
25263SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25264 PyObject *resultobj = 0;
25265 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25266 int result;
25267 void *argp1 = 0 ;
25268 int res1 = 0 ;
25269 PyObject *swig_obj[1] ;
25270
25271 if (!args) SWIG_fail;
25272 swig_obj[0] = args;
25273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25276 }
25277 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25278 {
25279 PyThreadState* __tstate = wxPyBeginAllowThreads();
25280 result = (int)(arg1)->GetToolPacking();
25281 wxPyEndAllowThreads(__tstate);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_From_int(static_cast< int >(result));
25285 return resultobj;
25286fail:
25287 return NULL;
d55e5bfc
RD
25288}
25289
25290
1bd55598
RD
25291SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25292 PyObject *resultobj = 0;
25293 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25294 int result;
25295 void *argp1 = 0 ;
25296 int res1 = 0 ;
25297 PyObject *swig_obj[1] ;
25298
25299 if (!args) SWIG_fail;
25300 swig_obj[0] = args;
25301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25302 if (!SWIG_IsOK(res1)) {
25303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25304 }
25305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25306 {
25307 PyThreadState* __tstate = wxPyBeginAllowThreads();
25308 result = (int)(arg1)->GetToolSeparation();
25309 wxPyEndAllowThreads(__tstate);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 resultobj = SWIG_From_int(static_cast< int >(result));
25313 return resultobj;
25314fail:
25315 return NULL;
25316}
25317
25318
25319SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj = 0;
25321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25322 int arg2 ;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 int val2 ;
25326 int ecode2 = 0 ;
25327 PyObject * obj0 = 0 ;
25328 PyObject * obj1 = 0 ;
25329 char * kwnames[] = {
25330 (char *) "self",(char *) "nRows", NULL
25331 };
25332
25333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25335 if (!SWIG_IsOK(res1)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25337 }
25338 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25339 ecode2 = SWIG_AsVal_int(obj1, &val2);
25340 if (!SWIG_IsOK(ecode2)) {
25341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25342 }
25343 arg2 = static_cast< int >(val2);
25344 {
25345 PyThreadState* __tstate = wxPyBeginAllowThreads();
25346 (arg1)->SetRows(arg2);
25347 wxPyEndAllowThreads(__tstate);
25348 if (PyErr_Occurred()) SWIG_fail;
25349 }
25350 resultobj = SWIG_Py_Void();
25351 return resultobj;
25352fail:
25353 return NULL;
25354}
25355
25356
25357SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25358 PyObject *resultobj = 0;
25359 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25360 int arg2 ;
25361 int arg3 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 int val2 ;
25365 int ecode2 = 0 ;
25366 int val3 ;
25367 int ecode3 = 0 ;
25368 PyObject * obj0 = 0 ;
25369 PyObject * obj1 = 0 ;
25370 PyObject * obj2 = 0 ;
25371 char * kwnames[] = {
25372 (char *) "self",(char *) "rows",(char *) "cols", NULL
25373 };
25374
25375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25377 if (!SWIG_IsOK(res1)) {
25378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25379 }
25380 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25381 ecode2 = SWIG_AsVal_int(obj1, &val2);
25382 if (!SWIG_IsOK(ecode2)) {
25383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25384 }
25385 arg2 = static_cast< int >(val2);
25386 ecode3 = SWIG_AsVal_int(obj2, &val3);
25387 if (!SWIG_IsOK(ecode3)) {
25388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25389 }
25390 arg3 = static_cast< int >(val3);
25391 {
25392 PyThreadState* __tstate = wxPyBeginAllowThreads();
25393 (arg1)->SetMaxRowsCols(arg2,arg3);
25394 wxPyEndAllowThreads(__tstate);
25395 if (PyErr_Occurred()) SWIG_fail;
25396 }
25397 resultobj = SWIG_Py_Void();
25398 return resultobj;
25399fail:
25400 return NULL;
d55e5bfc
RD
25401}
25402
25403
1bd55598
RD
25404SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25405 PyObject *resultobj = 0;
25406 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25407 int result;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 PyObject *swig_obj[1] ;
25411
25412 if (!args) SWIG_fail;
25413 swig_obj[0] = args;
25414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25415 if (!SWIG_IsOK(res1)) {
25416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25417 }
25418 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25419 {
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 result = (int)(arg1)->GetMaxRows();
25422 wxPyEndAllowThreads(__tstate);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_From_int(static_cast< int >(result));
25426 return resultobj;
25427fail:
25428 return NULL;
d55e5bfc
RD
25429}
25430
25431
1bd55598
RD
25432SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25433 PyObject *resultobj = 0;
25434 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25435 int result;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 PyObject *swig_obj[1] ;
25439
25440 if (!args) SWIG_fail;
25441 swig_obj[0] = args;
25442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25443 if (!SWIG_IsOK(res1)) {
25444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25445 }
25446 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25447 {
25448 PyThreadState* __tstate = wxPyBeginAllowThreads();
25449 result = (int)(arg1)->GetMaxCols();
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_From_int(static_cast< int >(result));
25454 return resultobj;
25455fail:
25456 return NULL;
25457}
25458
25459
25460SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25461 PyObject *resultobj = 0;
25462 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25463 wxSize *arg2 = 0 ;
25464 void *argp1 = 0 ;
25465 int res1 = 0 ;
25466 wxSize temp2 ;
25467 PyObject * obj0 = 0 ;
25468 PyObject * obj1 = 0 ;
25469 char * kwnames[] = {
25470 (char *) "self",(char *) "size", NULL
25471 };
25472
25473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25475 if (!SWIG_IsOK(res1)) {
25476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25477 }
25478 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25479 {
25480 arg2 = &temp2;
25481 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25482 }
25483 {
25484 PyThreadState* __tstate = wxPyBeginAllowThreads();
25485 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25486 wxPyEndAllowThreads(__tstate);
25487 if (PyErr_Occurred()) SWIG_fail;
25488 }
25489 resultobj = SWIG_Py_Void();
25490 return resultobj;
25491fail:
25492 return NULL;
d55e5bfc
RD
25493}
25494
25495
1bd55598
RD
25496SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25497 PyObject *resultobj = 0;
25498 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25499 wxSize result;
25500 void *argp1 = 0 ;
25501 int res1 = 0 ;
25502 PyObject *swig_obj[1] ;
25503
25504 if (!args) SWIG_fail;
25505 swig_obj[0] = args;
25506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25507 if (!SWIG_IsOK(res1)) {
25508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25509 }
25510 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25511 {
25512 PyThreadState* __tstate = wxPyBeginAllowThreads();
25513 result = (arg1)->GetToolBitmapSize();
25514 wxPyEndAllowThreads(__tstate);
25515 if (PyErr_Occurred()) SWIG_fail;
25516 }
25517 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25518 return resultobj;
25519fail:
25520 return NULL;
d55e5bfc
RD
25521}
25522
25523
1bd55598
RD
25524SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25527 wxSize result;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 PyObject *swig_obj[1] ;
25531
25532 if (!args) SWIG_fail;
25533 swig_obj[0] = args;
25534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25537 }
25538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = (arg1)->GetToolSize();
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25546 return resultobj;
25547fail:
25548 return NULL;
25549}
25550
25551
25552SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25555 int arg2 ;
25556 int arg3 ;
25557 wxToolBarToolBase *result = 0 ;
25558 void *argp1 = 0 ;
25559 int res1 = 0 ;
25560 int val2 ;
25561 int ecode2 = 0 ;
25562 int val3 ;
25563 int ecode3 = 0 ;
25564 PyObject * obj0 = 0 ;
25565 PyObject * obj1 = 0 ;
25566 PyObject * obj2 = 0 ;
25567 char * kwnames[] = {
25568 (char *) "self",(char *) "x",(char *) "y", NULL
25569 };
25570
25571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25573 if (!SWIG_IsOK(res1)) {
25574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25575 }
25576 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25577 ecode2 = SWIG_AsVal_int(obj1, &val2);
25578 if (!SWIG_IsOK(ecode2)) {
25579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25580 }
25581 arg2 = static_cast< int >(val2);
25582 ecode3 = SWIG_AsVal_int(obj2, &val3);
25583 if (!SWIG_IsOK(ecode3)) {
25584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25585 }
25586 arg3 = static_cast< int >(val3);
25587 {
25588 PyThreadState* __tstate = wxPyBeginAllowThreads();
25589 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25590 wxPyEndAllowThreads(__tstate);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 {
25594 resultobj = wxPyMake_wxObject(result, (bool)0);
25595 }
25596 return resultobj;
25597fail:
25598 return NULL;
25599}
25600
25601
25602SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25603 PyObject *resultobj = 0;
25604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25605 int arg2 ;
25606 wxToolBarToolBase *result = 0 ;
25607 void *argp1 = 0 ;
25608 int res1 = 0 ;
25609 int val2 ;
25610 int ecode2 = 0 ;
25611 PyObject * obj0 = 0 ;
25612 PyObject * obj1 = 0 ;
25613 char * kwnames[] = {
25614 (char *) "self",(char *) "toolid", NULL
25615 };
25616
25617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25619 if (!SWIG_IsOK(res1)) {
25620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25621 }
25622 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25623 ecode2 = SWIG_AsVal_int(obj1, &val2);
25624 if (!SWIG_IsOK(ecode2)) {
25625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25626 }
25627 arg2 = static_cast< int >(val2);
25628 {
25629 PyThreadState* __tstate = wxPyBeginAllowThreads();
25630 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25631 wxPyEndAllowThreads(__tstate);
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 {
25635 resultobj = wxPyMake_wxObject(result, (bool)0);
25636 }
25637 return resultobj;
25638fail:
25639 return NULL;
d55e5bfc
RD
25640}
25641
25642
1bd55598
RD
25643SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25644 PyObject *resultobj = 0;
25645 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25646 bool result;
25647 void *argp1 = 0 ;
25648 int res1 = 0 ;
25649 PyObject *swig_obj[1] ;
25650
25651 if (!args) SWIG_fail;
25652 swig_obj[0] = args;
25653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25656 }
25657 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25658 {
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 result = (bool)(arg1)->IsVertical();
25661 wxPyEndAllowThreads(__tstate);
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 {
25665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25666 }
25667 return resultobj;
25668fail:
25669 return NULL;
d55e5bfc
RD
25670}
25671
25672
1bd55598
RD
25673SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25674 PyObject *resultobj = 0;
25675 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25676 size_t result;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 PyObject *swig_obj[1] ;
25680
25681 if (!args) SWIG_fail;
25682 swig_obj[0] = args;
25683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25686 }
25687 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25688 {
25689 PyThreadState* __tstate = wxPyBeginAllowThreads();
25690 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25691 wxPyEndAllowThreads(__tstate);
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25695 return resultobj;
25696fail:
25697 return NULL;
25698}
25699
25700
25701SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25702 PyObject *obj;
25703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25704 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25705 return SWIG_Py_Void();
25706}
25707
25708SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj = 0;
25710 wxWindow *arg1 = (wxWindow *) 0 ;
25711 int arg2 = (int) -1 ;
25712 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25713 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25714 wxSize const &arg4_defvalue = wxDefaultSize ;
25715 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25716 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25717 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25718 wxString *arg6 = (wxString *) &arg6_defvalue ;
25719 wxToolBar *result = 0 ;
25720 void *argp1 = 0 ;
25721 int res1 = 0 ;
25722 int val2 ;
25723 int ecode2 = 0 ;
25724 wxPoint temp3 ;
25725 wxSize temp4 ;
25726 long val5 ;
25727 int ecode5 = 0 ;
25728 bool temp6 = false ;
25729 PyObject * obj0 = 0 ;
25730 PyObject * obj1 = 0 ;
25731 PyObject * obj2 = 0 ;
25732 PyObject * obj3 = 0 ;
25733 PyObject * obj4 = 0 ;
25734 PyObject * obj5 = 0 ;
25735 char * kwnames[] = {
25736 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25737 };
25738
25739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25743 }
25744 arg1 = reinterpret_cast< wxWindow * >(argp1);
25745 if (obj1) {
25746 ecode2 = SWIG_AsVal_int(obj1, &val2);
25747 if (!SWIG_IsOK(ecode2)) {
25748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25749 }
25750 arg2 = static_cast< int >(val2);
25751 }
25752 if (obj2) {
d55e5bfc 25753 {
1bd55598
RD
25754 arg3 = &temp3;
25755 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25756 }
1bd55598
RD
25757 }
25758 if (obj3) {
d55e5bfc 25759 {
1bd55598
RD
25760 arg4 = &temp4;
25761 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25762 }
1bd55598
RD
25763 }
25764 if (obj4) {
25765 ecode5 = SWIG_AsVal_long(obj4, &val5);
25766 if (!SWIG_IsOK(ecode5)) {
25767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25768 }
25769 arg5 = static_cast< long >(val5);
25770 }
25771 if (obj5) {
36ed4f51 25772 {
1bd55598
RD
25773 arg6 = wxString_in_helper(obj5);
25774 if (arg6 == NULL) SWIG_fail;
25775 temp6 = true;
36ed4f51 25776 }
1bd55598
RD
25777 }
25778 {
25779 if (!wxPyCheckForApp()) SWIG_fail;
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25782 wxPyEndAllowThreads(__tstate);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25786 {
25787 if (temp6)
25788 delete arg6;
25789 }
25790 return resultobj;
25791fail:
25792 {
25793 if (temp6)
25794 delete arg6;
25795 }
25796 return NULL;
d55e5bfc
RD
25797}
25798
25799
1bd55598
RD
25800SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25801 PyObject *resultobj = 0;
25802 wxToolBar *result = 0 ;
25803
25804 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25805 {
25806 if (!wxPyCheckForApp()) SWIG_fail;
25807 PyThreadState* __tstate = wxPyBeginAllowThreads();
25808 result = (wxToolBar *)new wxToolBar();
25809 wxPyEndAllowThreads(__tstate);
25810 if (PyErr_Occurred()) SWIG_fail;
25811 }
25812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25813 return resultobj;
25814fail:
25815 return NULL;
25816}
25817
25818
25819SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25820 PyObject *resultobj = 0;
25821 wxToolBar *arg1 = (wxToolBar *) 0 ;
25822 wxWindow *arg2 = (wxWindow *) 0 ;
25823 int arg3 = (int) -1 ;
25824 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25825 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25826 wxSize const &arg5_defvalue = wxDefaultSize ;
25827 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25828 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25829 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25830 wxString *arg7 = (wxString *) &arg7_defvalue ;
25831 bool result;
25832 void *argp1 = 0 ;
25833 int res1 = 0 ;
25834 void *argp2 = 0 ;
25835 int res2 = 0 ;
25836 int val3 ;
25837 int ecode3 = 0 ;
25838 wxPoint temp4 ;
25839 wxSize temp5 ;
25840 long val6 ;
25841 int ecode6 = 0 ;
25842 bool temp7 = false ;
25843 PyObject * obj0 = 0 ;
25844 PyObject * obj1 = 0 ;
25845 PyObject * obj2 = 0 ;
25846 PyObject * obj3 = 0 ;
25847 PyObject * obj4 = 0 ;
25848 PyObject * obj5 = 0 ;
25849 PyObject * obj6 = 0 ;
25850 char * kwnames[] = {
25851 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25852 };
25853
25854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25856 if (!SWIG_IsOK(res1)) {
25857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25858 }
25859 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25861 if (!SWIG_IsOK(res2)) {
25862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25863 }
25864 arg2 = reinterpret_cast< wxWindow * >(argp2);
25865 if (obj2) {
25866 ecode3 = SWIG_AsVal_int(obj2, &val3);
25867 if (!SWIG_IsOK(ecode3)) {
25868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25869 }
25870 arg3 = static_cast< int >(val3);
25871 }
25872 if (obj3) {
d55e5bfc 25873 {
1bd55598
RD
25874 arg4 = &temp4;
25875 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25876 }
1bd55598
RD
25877 }
25878 if (obj4) {
d55e5bfc 25879 {
1bd55598
RD
25880 arg5 = &temp5;
25881 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25882 }
1bd55598
RD
25883 }
25884 if (obj5) {
25885 ecode6 = SWIG_AsVal_long(obj5, &val6);
25886 if (!SWIG_IsOK(ecode6)) {
25887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25888 }
25889 arg6 = static_cast< long >(val6);
25890 }
25891 if (obj6) {
36ed4f51 25892 {
1bd55598
RD
25893 arg7 = wxString_in_helper(obj6);
25894 if (arg7 == NULL) SWIG_fail;
25895 temp7 = true;
36ed4f51 25896 }
1bd55598
RD
25897 }
25898 {
25899 PyThreadState* __tstate = wxPyBeginAllowThreads();
25900 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25901 wxPyEndAllowThreads(__tstate);
25902 if (PyErr_Occurred()) SWIG_fail;
25903 }
25904 {
25905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25906 }
25907 {
25908 if (temp7)
25909 delete arg7;
25910 }
25911 return resultobj;
25912fail:
25913 {
25914 if (temp7)
25915 delete arg7;
25916 }
25917 return NULL;
25918}
25919
25920
1bd55598
RD
25921SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25922 PyObject *resultobj = 0;
25923 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25924 SwigValueWrapper<wxVisualAttributes > result;
25925 int val1 ;
25926 int ecode1 = 0 ;
25927 PyObject * obj0 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "variant", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25933 if (obj0) {
25934 ecode1 = SWIG_AsVal_int(obj0, &val1);
25935 if (!SWIG_IsOK(ecode1)) {
25936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25937 }
25938 arg1 = static_cast< wxWindowVariant >(val1);
25939 }
25940 {
25941 if (!wxPyCheckForApp()) SWIG_fail;
25942 PyThreadState* __tstate = wxPyBeginAllowThreads();
25943 result = wxToolBar::GetClassDefaultAttributes(arg1);
25944 wxPyEndAllowThreads(__tstate);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 }
25947 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25948 return resultobj;
25949fail:
25950 return NULL;
d55e5bfc
RD
25951}
25952
25953
1bd55598
RD
25954SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25955 PyObject *obj;
25956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25957 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25958 return SWIG_Py_Void();
d55e5bfc
RD
25959}
25960
1bd55598
RD
25961SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25962 return SWIG_Python_InitShadowInstance(args);
25963}
d55e5bfc 25964
1bd55598
RD
25965SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25966 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25967 return 1;
d55e5bfc
RD
25968}
25969
25970
1bd55598
RD
25971SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25972 PyObject *pyobj = 0;
25973
25974 {
25975#if wxUSE_UNICODE
25976 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25977#else
25978 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25979#endif
25980 }
25981 return pyobj;
25982}
25983
25984
25985SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25986 PyObject *resultobj = 0;
25987 wxColour const &arg1_defvalue = wxNullColour ;
25988 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25989 wxColour const &arg2_defvalue = wxNullColour ;
25990 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25991 wxFont const &arg3_defvalue = wxNullFont ;
25992 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25993 wxListItemAttr *result = 0 ;
25994 wxColour temp1 ;
25995 wxColour temp2 ;
25996 void *argp3 = 0 ;
25997 int res3 = 0 ;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 PyObject * obj2 = 0 ;
26001 char * kwnames[] = {
26002 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26003 };
26004
26005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26006 if (obj0) {
d55e5bfc 26007 {
1bd55598
RD
26008 arg1 = &temp1;
26009 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26010 }
1bd55598
RD
26011 }
26012 if (obj1) {
36ed4f51 26013 {
1bd55598
RD
26014 arg2 = &temp2;
26015 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 26016 }
1bd55598
RD
26017 }
26018 if (obj2) {
26019 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26020 if (!SWIG_IsOK(res3)) {
26021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 26022 }
1bd55598
RD
26023 if (!argp3) {
26024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 26025 }
1bd55598
RD
26026 arg3 = reinterpret_cast< wxFont * >(argp3);
26027 }
26028 {
26029 PyThreadState* __tstate = wxPyBeginAllowThreads();
26030 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26031 wxPyEndAllowThreads(__tstate);
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26035 return resultobj;
26036fail:
26037 return NULL;
d55e5bfc
RD
26038}
26039
26040
1bd55598
RD
26041SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26042 PyObject *resultobj = 0;
26043 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
26046 PyObject *swig_obj[1] ;
26047
26048 if (!args) SWIG_fail;
26049 swig_obj[0] = args;
26050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26051 if (!SWIG_IsOK(res1)) {
26052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26053 }
26054 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26055 {
26056 PyThreadState* __tstate = wxPyBeginAllowThreads();
26057 delete arg1;
d55e5bfc 26058
1bd55598
RD
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 resultobj = SWIG_Py_Void();
26063 return resultobj;
26064fail:
26065 return NULL;
26066}
26067
26068
26069SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26070 PyObject *resultobj = 0;
26071 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26072 wxColour *arg2 = 0 ;
26073 void *argp1 = 0 ;
26074 int res1 = 0 ;
26075 wxColour temp2 ;
26076 PyObject * obj0 = 0 ;
26077 PyObject * obj1 = 0 ;
26078 char * kwnames[] = {
26079 (char *) "self",(char *) "colText", NULL
26080 };
26081
26082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26086 }
26087 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26088 {
26089 arg2 = &temp2;
26090 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26091 }
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 (arg1)->SetTextColour((wxColour const &)*arg2);
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_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj = 0;
26107 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26108 wxColour *arg2 = 0 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 wxColour temp2 ;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 char * kwnames[] = {
26115 (char *) "self",(char *) "colBack", NULL
26116 };
26117
26118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26120 if (!SWIG_IsOK(res1)) {
26121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26122 }
26123 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26124 {
26125 arg2 = &temp2;
26126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26127 }
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26131 wxPyEndAllowThreads(__tstate);
26132 if (PyErr_Occurred()) SWIG_fail;
26133 }
26134 resultobj = SWIG_Py_Void();
26135 return resultobj;
26136fail:
26137 return NULL;
26138}
26139
26140
26141SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26142 PyObject *resultobj = 0;
26143 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26144 wxFont *arg2 = 0 ;
26145 void *argp1 = 0 ;
26146 int res1 = 0 ;
26147 void *argp2 = 0 ;
26148 int res2 = 0 ;
26149 PyObject * obj0 = 0 ;
26150 PyObject * obj1 = 0 ;
26151 char * kwnames[] = {
26152 (char *) "self",(char *) "font", NULL
26153 };
26154
26155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26157 if (!SWIG_IsOK(res1)) {
26158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26159 }
26160 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26162 if (!SWIG_IsOK(res2)) {
26163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26164 }
26165 if (!argp2) {
26166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26167 }
26168 arg2 = reinterpret_cast< wxFont * >(argp2);
26169 {
26170 PyThreadState* __tstate = wxPyBeginAllowThreads();
26171 (arg1)->SetFont((wxFont const &)*arg2);
26172 wxPyEndAllowThreads(__tstate);
26173 if (PyErr_Occurred()) SWIG_fail;
26174 }
26175 resultobj = SWIG_Py_Void();
26176 return resultobj;
26177fail:
26178 return NULL;
d55e5bfc
RD
26179}
26180
26181
1bd55598
RD
26182SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26183 PyObject *resultobj = 0;
26184 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26185 bool result;
26186 void *argp1 = 0 ;
26187 int res1 = 0 ;
26188 PyObject *swig_obj[1] ;
26189
26190 if (!args) SWIG_fail;
26191 swig_obj[0] = args;
26192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26193 if (!SWIG_IsOK(res1)) {
26194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26195 }
26196 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 result = (bool)(arg1)->HasTextColour();
26200 wxPyEndAllowThreads(__tstate);
26201 if (PyErr_Occurred()) SWIG_fail;
26202 }
26203 {
26204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26205 }
26206 return resultobj;
26207fail:
26208 return NULL;
f20a2e1f
RD
26209}
26210
26211
1bd55598
RD
26212SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26213 PyObject *resultobj = 0;
26214 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26215 bool result;
26216 void *argp1 = 0 ;
26217 int res1 = 0 ;
26218 PyObject *swig_obj[1] ;
26219
26220 if (!args) SWIG_fail;
26221 swig_obj[0] = args;
26222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26223 if (!SWIG_IsOK(res1)) {
26224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26225 }
26226 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26227 {
26228 PyThreadState* __tstate = wxPyBeginAllowThreads();
26229 result = (bool)(arg1)->HasBackgroundColour();
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 {
26234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26235 }
26236 return resultobj;
26237fail:
26238 return NULL;
d55e5bfc 26239}
1bd55598
RD
26240
26241
26242SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26243 PyObject *resultobj = 0;
26244 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26245 bool result;
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
26248 PyObject *swig_obj[1] ;
26249
26250 if (!args) SWIG_fail;
26251 swig_obj[0] = args;
26252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26255 }
26256 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = (bool)(arg1)->HasFont();
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
26263 {
26264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26265 }
26266 return resultobj;
26267fail:
26268 return NULL;
d55e5bfc
RD
26269}
26270
26271
1bd55598
RD
26272SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26273 PyObject *resultobj = 0;
26274 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26275 wxColour result;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 PyObject *swig_obj[1] ;
26279
26280 if (!args) SWIG_fail;
26281 swig_obj[0] = args;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26283 if (!SWIG_IsOK(res1)) {
26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26285 }
26286 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26287 {
26288 PyThreadState* __tstate = wxPyBeginAllowThreads();
26289 result = (arg1)->GetTextColour();
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26294 return resultobj;
26295fail:
26296 return NULL;
d55e5bfc
RD
26297}
26298
26299
1bd55598
RD
26300SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26301 PyObject *resultobj = 0;
26302 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26303 wxColour result;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 PyObject *swig_obj[1] ;
26307
26308 if (!args) SWIG_fail;
26309 swig_obj[0] = args;
26310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26311 if (!SWIG_IsOK(res1)) {
26312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26313 }
26314 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 result = (arg1)->GetBackgroundColour();
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26322 return resultobj;
26323fail:
26324 return NULL;
d55e5bfc
RD
26325}
26326
26327
1bd55598
RD
26328SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26329 PyObject *resultobj = 0;
26330 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26331 wxFont result;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26341 }
26342 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26343 {
26344 PyThreadState* __tstate = wxPyBeginAllowThreads();
26345 result = (arg1)->GetFont();
26346 wxPyEndAllowThreads(__tstate);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26350 return resultobj;
26351fail:
26352 return NULL;
26353}
26354
26355
26356SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26357 PyObject *resultobj = 0;
26358 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26359 wxListItemAttr *arg2 = 0 ;
26360 void *argp1 = 0 ;
26361 int res1 = 0 ;
26362 void *argp2 = 0 ;
26363 int res2 = 0 ;
26364 PyObject * obj0 = 0 ;
26365 PyObject * obj1 = 0 ;
26366 char * kwnames[] = {
26367 (char *) "self",(char *) "source", NULL
26368 };
26369
26370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26372 if (!SWIG_IsOK(res1)) {
26373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26374 }
26375 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26377 if (!SWIG_IsOK(res2)) {
26378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26379 }
26380 if (!argp2) {
26381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26382 }
26383 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26384 {
26385 PyThreadState* __tstate = wxPyBeginAllowThreads();
26386 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26387 wxPyEndAllowThreads(__tstate);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_Py_Void();
26391 return resultobj;
26392fail:
26393 return NULL;
121b9a67
RD
26394}
26395
26396
1bd55598
RD
26397SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26398 PyObject *resultobj = 0;
26399 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26400 void *argp1 = 0 ;
26401 int res1 = 0 ;
26402 PyObject *swig_obj[1] ;
26403
26404 if (!args) SWIG_fail;
26405 swig_obj[0] = args;
26406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26407 if (!SWIG_IsOK(res1)) {
26408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26409 }
26410 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26411 {
26412 PyThreadState* __tstate = wxPyBeginAllowThreads();
26413 wxListItemAttr_Destroy(arg1);
26414 wxPyEndAllowThreads(__tstate);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419fail:
26420 return NULL;
121b9a67
RD
26421}
26422
26423
1bd55598
RD
26424SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26425 PyObject *obj;
26426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26427 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26428 return SWIG_Py_Void();
121b9a67
RD
26429}
26430
1bd55598
RD
26431SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26432 return SWIG_Python_InitShadowInstance(args);
26433}
121b9a67 26434
1bd55598
RD
26435SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26436 PyObject *resultobj = 0;
26437 wxListItem *result = 0 ;
26438
26439 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26440 {
26441 PyThreadState* __tstate = wxPyBeginAllowThreads();
26442 result = (wxListItem *)new wxListItem();
26443 wxPyEndAllowThreads(__tstate);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 }
3ecece7e 26446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
26447 return resultobj;
26448fail:
26449 return NULL;
121b9a67
RD
26450}
26451
26452
1bd55598
RD
26453SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26454 PyObject *resultobj = 0;
26455 wxListItem *arg1 = (wxListItem *) 0 ;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 PyObject *swig_obj[1] ;
26459
26460 if (!args) SWIG_fail;
26461 swig_obj[0] = args;
26462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26463 if (!SWIG_IsOK(res1)) {
26464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26465 }
26466 arg1 = reinterpret_cast< wxListItem * >(argp1);
26467 {
26468 PyThreadState* __tstate = wxPyBeginAllowThreads();
26469 delete arg1;
f20a2e1f 26470
1bd55598
RD
26471 wxPyEndAllowThreads(__tstate);
26472 if (PyErr_Occurred()) SWIG_fail;
26473 }
26474 resultobj = SWIG_Py_Void();
26475 return resultobj;
26476fail:
26477 return NULL;
f20a2e1f
RD
26478}
26479
26480
1bd55598
RD
26481SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26482 PyObject *resultobj = 0;
26483 wxListItem *arg1 = (wxListItem *) 0 ;
26484 void *argp1 = 0 ;
26485 int res1 = 0 ;
26486 PyObject *swig_obj[1] ;
26487
26488 if (!args) SWIG_fail;
26489 swig_obj[0] = args;
26490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26491 if (!SWIG_IsOK(res1)) {
26492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26493 }
26494 arg1 = reinterpret_cast< wxListItem * >(argp1);
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 (arg1)->Clear();
26498 wxPyEndAllowThreads(__tstate);
26499 if (PyErr_Occurred()) SWIG_fail;
26500 }
26501 resultobj = SWIG_Py_Void();
26502 return resultobj;
26503fail:
26504 return NULL;
d55e5bfc 26505}
1bd55598
RD
26506
26507
26508SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26509 PyObject *resultobj = 0;
26510 wxListItem *arg1 = (wxListItem *) 0 ;
26511 void *argp1 = 0 ;
26512 int res1 = 0 ;
26513 PyObject *swig_obj[1] ;
26514
26515 if (!args) SWIG_fail;
26516 swig_obj[0] = args;
26517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26518 if (!SWIG_IsOK(res1)) {
26519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26520 }
26521 arg1 = reinterpret_cast< wxListItem * >(argp1);
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 (arg1)->ClearAttributes();
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = SWIG_Py_Void();
26529 return resultobj;
26530fail:
26531 return NULL;
26532}
26533
26534
26535SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj = 0;
26537 wxListItem *arg1 = (wxListItem *) 0 ;
26538 long arg2 ;
26539 void *argp1 = 0 ;
26540 int res1 = 0 ;
26541 long val2 ;
26542 int ecode2 = 0 ;
26543 PyObject * obj0 = 0 ;
26544 PyObject * obj1 = 0 ;
26545 char * kwnames[] = {
26546 (char *) "self",(char *) "mask", NULL
26547 };
26548
26549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26553 }
26554 arg1 = reinterpret_cast< wxListItem * >(argp1);
26555 ecode2 = SWIG_AsVal_long(obj1, &val2);
26556 if (!SWIG_IsOK(ecode2)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26558 }
26559 arg2 = static_cast< long >(val2);
26560 {
26561 PyThreadState* __tstate = wxPyBeginAllowThreads();
26562 (arg1)->SetMask(arg2);
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = SWIG_Py_Void();
26567 return resultobj;
26568fail:
26569 return NULL;
26570}
26571
26572
26573SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj = 0;
26575 wxListItem *arg1 = (wxListItem *) 0 ;
26576 long arg2 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 long val2 ;
26580 int ecode2 = 0 ;
26581 PyObject * obj0 = 0 ;
26582 PyObject * obj1 = 0 ;
26583 char * kwnames[] = {
26584 (char *) "self",(char *) "id", NULL
26585 };
26586
26587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26589 if (!SWIG_IsOK(res1)) {
26590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26591 }
26592 arg1 = reinterpret_cast< wxListItem * >(argp1);
26593 ecode2 = SWIG_AsVal_long(obj1, &val2);
26594 if (!SWIG_IsOK(ecode2)) {
26595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26596 }
26597 arg2 = static_cast< long >(val2);
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 (arg1)->SetId(arg2);
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_Py_Void();
26605 return resultobj;
26606fail:
26607 return NULL;
26608}
26609
26610
26611SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj = 0;
26613 wxListItem *arg1 = (wxListItem *) 0 ;
26614 int arg2 ;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 int val2 ;
26618 int ecode2 = 0 ;
26619 PyObject * obj0 = 0 ;
26620 PyObject * obj1 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "col", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26629 }
26630 arg1 = reinterpret_cast< wxListItem * >(argp1);
26631 ecode2 = SWIG_AsVal_int(obj1, &val2);
26632 if (!SWIG_IsOK(ecode2)) {
26633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26634 }
26635 arg2 = static_cast< int >(val2);
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 (arg1)->SetColumn(arg2);
26639 wxPyEndAllowThreads(__tstate);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 resultobj = SWIG_Py_Void();
26643 return resultobj;
26644fail:
26645 return NULL;
26646}
26647
26648
26649SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26650 PyObject *resultobj = 0;
26651 wxListItem *arg1 = (wxListItem *) 0 ;
26652 long arg2 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 long val2 ;
26656 int ecode2 = 0 ;
26657 PyObject * obj0 = 0 ;
26658 PyObject * obj1 = 0 ;
26659 char * kwnames[] = {
26660 (char *) "self",(char *) "state", NULL
26661 };
26662
26663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26665 if (!SWIG_IsOK(res1)) {
26666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26667 }
26668 arg1 = reinterpret_cast< wxListItem * >(argp1);
26669 ecode2 = SWIG_AsVal_long(obj1, &val2);
26670 if (!SWIG_IsOK(ecode2)) {
26671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26672 }
26673 arg2 = static_cast< long >(val2);
26674 {
26675 PyThreadState* __tstate = wxPyBeginAllowThreads();
26676 (arg1)->SetState(arg2);
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_Py_Void();
26681 return resultobj;
26682fail:
26683 return NULL;
26684}
26685
26686
26687SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26688 PyObject *resultobj = 0;
26689 wxListItem *arg1 = (wxListItem *) 0 ;
26690 long arg2 ;
26691 void *argp1 = 0 ;
26692 int res1 = 0 ;
26693 long val2 ;
26694 int ecode2 = 0 ;
26695 PyObject * obj0 = 0 ;
26696 PyObject * obj1 = 0 ;
26697 char * kwnames[] = {
26698 (char *) "self",(char *) "stateMask", NULL
26699 };
26700
26701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26703 if (!SWIG_IsOK(res1)) {
26704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26705 }
26706 arg1 = reinterpret_cast< wxListItem * >(argp1);
26707 ecode2 = SWIG_AsVal_long(obj1, &val2);
26708 if (!SWIG_IsOK(ecode2)) {
26709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26710 }
26711 arg2 = static_cast< long >(val2);
26712 {
26713 PyThreadState* __tstate = wxPyBeginAllowThreads();
26714 (arg1)->SetStateMask(arg2);
26715 wxPyEndAllowThreads(__tstate);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 resultobj = SWIG_Py_Void();
26719 return resultobj;
26720fail:
26721 return NULL;
26722}
26723
26724
26725SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26726 PyObject *resultobj = 0;
26727 wxListItem *arg1 = (wxListItem *) 0 ;
26728 wxString *arg2 = 0 ;
26729 void *argp1 = 0 ;
26730 int res1 = 0 ;
26731 bool temp2 = false ;
26732 PyObject * obj0 = 0 ;
26733 PyObject * obj1 = 0 ;
26734 char * kwnames[] = {
26735 (char *) "self",(char *) "text", NULL
26736 };
26737
26738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26740 if (!SWIG_IsOK(res1)) {
26741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26742 }
26743 arg1 = reinterpret_cast< wxListItem * >(argp1);
26744 {
26745 arg2 = wxString_in_helper(obj1);
26746 if (arg2 == NULL) SWIG_fail;
26747 temp2 = true;
26748 }
26749 {
26750 PyThreadState* __tstate = wxPyBeginAllowThreads();
26751 (arg1)->SetText((wxString const &)*arg2);
26752 wxPyEndAllowThreads(__tstate);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 resultobj = SWIG_Py_Void();
26756 {
26757 if (temp2)
26758 delete arg2;
26759 }
26760 return resultobj;
26761fail:
26762 {
26763 if (temp2)
26764 delete arg2;
26765 }
26766 return NULL;
26767}
26768
26769
26770SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26771 PyObject *resultobj = 0;
26772 wxListItem *arg1 = (wxListItem *) 0 ;
26773 int arg2 ;
26774 void *argp1 = 0 ;
26775 int res1 = 0 ;
26776 int val2 ;
26777 int ecode2 = 0 ;
26778 PyObject * obj0 = 0 ;
26779 PyObject * obj1 = 0 ;
26780 char * kwnames[] = {
26781 (char *) "self",(char *) "image", NULL
26782 };
26783
26784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26786 if (!SWIG_IsOK(res1)) {
26787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26788 }
26789 arg1 = reinterpret_cast< wxListItem * >(argp1);
26790 ecode2 = SWIG_AsVal_int(obj1, &val2);
26791 if (!SWIG_IsOK(ecode2)) {
26792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26793 }
26794 arg2 = static_cast< int >(val2);
26795 {
26796 PyThreadState* __tstate = wxPyBeginAllowThreads();
26797 (arg1)->SetImage(arg2);
26798 wxPyEndAllowThreads(__tstate);
26799 if (PyErr_Occurred()) SWIG_fail;
26800 }
26801 resultobj = SWIG_Py_Void();
26802 return resultobj;
26803fail:
26804 return NULL;
26805}
26806
26807
26808SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26809 PyObject *resultobj = 0;
26810 wxListItem *arg1 = (wxListItem *) 0 ;
26811 long arg2 ;
26812 void *argp1 = 0 ;
26813 int res1 = 0 ;
26814 long val2 ;
26815 int ecode2 = 0 ;
26816 PyObject * obj0 = 0 ;
26817 PyObject * obj1 = 0 ;
26818 char * kwnames[] = {
26819 (char *) "self",(char *) "data", NULL
26820 };
26821
26822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26824 if (!SWIG_IsOK(res1)) {
26825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26826 }
26827 arg1 = reinterpret_cast< wxListItem * >(argp1);
26828 ecode2 = SWIG_AsVal_long(obj1, &val2);
26829 if (!SWIG_IsOK(ecode2)) {
26830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26831 }
26832 arg2 = static_cast< long >(val2);
26833 {
26834 PyThreadState* __tstate = wxPyBeginAllowThreads();
26835 (arg1)->SetData(arg2);
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 resultobj = SWIG_Py_Void();
26840 return resultobj;
26841fail:
26842 return NULL;
26843}
26844
26845
26846SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26847 PyObject *resultobj = 0;
26848 wxListItem *arg1 = (wxListItem *) 0 ;
26849 int arg2 ;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 int val2 ;
26853 int ecode2 = 0 ;
26854 PyObject * obj0 = 0 ;
26855 PyObject * obj1 = 0 ;
26856 char * kwnames[] = {
26857 (char *) "self",(char *) "width", NULL
26858 };
26859
26860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26862 if (!SWIG_IsOK(res1)) {
26863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26864 }
26865 arg1 = reinterpret_cast< wxListItem * >(argp1);
26866 ecode2 = SWIG_AsVal_int(obj1, &val2);
26867 if (!SWIG_IsOK(ecode2)) {
26868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26869 }
26870 arg2 = static_cast< int >(val2);
26871 {
26872 PyThreadState* __tstate = wxPyBeginAllowThreads();
26873 (arg1)->SetWidth(arg2);
26874 wxPyEndAllowThreads(__tstate);
26875 if (PyErr_Occurred()) SWIG_fail;
26876 }
26877 resultobj = SWIG_Py_Void();
26878 return resultobj;
26879fail:
26880 return NULL;
26881}
26882
26883
26884SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26885 PyObject *resultobj = 0;
26886 wxListItem *arg1 = (wxListItem *) 0 ;
26887 wxListColumnFormat arg2 ;
26888 void *argp1 = 0 ;
26889 int res1 = 0 ;
26890 int val2 ;
26891 int ecode2 = 0 ;
26892 PyObject * obj0 = 0 ;
26893 PyObject * obj1 = 0 ;
26894 char * kwnames[] = {
26895 (char *) "self",(char *) "align", NULL
26896 };
26897
26898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26900 if (!SWIG_IsOK(res1)) {
26901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26902 }
26903 arg1 = reinterpret_cast< wxListItem * >(argp1);
26904 ecode2 = SWIG_AsVal_int(obj1, &val2);
26905 if (!SWIG_IsOK(ecode2)) {
26906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26907 }
26908 arg2 = static_cast< wxListColumnFormat >(val2);
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 (arg1)->SetAlign(arg2);
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 resultobj = SWIG_Py_Void();
26916 return resultobj;
26917fail:
26918 return NULL;
26919}
26920
26921
26922SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26923 PyObject *resultobj = 0;
26924 wxListItem *arg1 = (wxListItem *) 0 ;
26925 wxColour *arg2 = 0 ;
26926 void *argp1 = 0 ;
26927 int res1 = 0 ;
26928 wxColour temp2 ;
26929 PyObject * obj0 = 0 ;
26930 PyObject * obj1 = 0 ;
26931 char * kwnames[] = {
26932 (char *) "self",(char *) "colText", NULL
26933 };
26934
26935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26937 if (!SWIG_IsOK(res1)) {
26938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26939 }
26940 arg1 = reinterpret_cast< wxListItem * >(argp1);
26941 {
26942 arg2 = &temp2;
26943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26944 }
26945 {
26946 PyThreadState* __tstate = wxPyBeginAllowThreads();
26947 (arg1)->SetTextColour((wxColour const &)*arg2);
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 resultobj = SWIG_Py_Void();
26952 return resultobj;
26953fail:
26954 return NULL;
26955}
26956
26957
26958SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj = 0;
26960 wxListItem *arg1 = (wxListItem *) 0 ;
26961 wxColour *arg2 = 0 ;
26962 void *argp1 = 0 ;
26963 int res1 = 0 ;
26964 wxColour temp2 ;
26965 PyObject * obj0 = 0 ;
26966 PyObject * obj1 = 0 ;
26967 char * kwnames[] = {
26968 (char *) "self",(char *) "colBack", NULL
26969 };
26970
26971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26973 if (!SWIG_IsOK(res1)) {
26974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26975 }
26976 arg1 = reinterpret_cast< wxListItem * >(argp1);
26977 {
26978 arg2 = &temp2;
26979 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26980 }
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_Py_Void();
26988 return resultobj;
26989fail:
26990 return NULL;
26991}
26992
26993
26994SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 wxFont *arg2 = 0 ;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 void *argp2 = 0 ;
27001 int res2 = 0 ;
27002 PyObject * obj0 = 0 ;
27003 PyObject * obj1 = 0 ;
27004 char * kwnames[] = {
27005 (char *) "self",(char *) "font", NULL
27006 };
27007
27008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27010 if (!SWIG_IsOK(res1)) {
27011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27012 }
27013 arg1 = reinterpret_cast< wxListItem * >(argp1);
27014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27015 if (!SWIG_IsOK(res2)) {
27016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27017 }
27018 if (!argp2) {
27019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27020 }
27021 arg2 = reinterpret_cast< wxFont * >(argp2);
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 (arg1)->SetFont((wxFont const &)*arg2);
27025 wxPyEndAllowThreads(__tstate);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 resultobj = SWIG_Py_Void();
27029 return resultobj;
27030fail:
27031 return NULL;
d55e5bfc
RD
27032}
27033
27034
1bd55598
RD
27035SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27036 PyObject *resultobj = 0;
27037 wxListItem *arg1 = (wxListItem *) 0 ;
27038 long result;
27039 void *argp1 = 0 ;
27040 int res1 = 0 ;
27041 PyObject *swig_obj[1] ;
27042
27043 if (!args) SWIG_fail;
27044 swig_obj[0] = args;
27045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27046 if (!SWIG_IsOK(res1)) {
27047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27048 }
27049 arg1 = reinterpret_cast< wxListItem * >(argp1);
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 result = (long)(arg1)->GetMask();
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 resultobj = SWIG_From_long(static_cast< long >(result));
27057 return resultobj;
27058fail:
27059 return NULL;
d55e5bfc
RD
27060}
27061
27062
1bd55598
RD
27063SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27064 PyObject *resultobj = 0;
27065 wxListItem *arg1 = (wxListItem *) 0 ;
27066 long result;
27067 void *argp1 = 0 ;
27068 int res1 = 0 ;
27069 PyObject *swig_obj[1] ;
27070
27071 if (!args) SWIG_fail;
27072 swig_obj[0] = args;
27073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27074 if (!SWIG_IsOK(res1)) {
27075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27076 }
27077 arg1 = reinterpret_cast< wxListItem * >(argp1);
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (long)(arg1)->GetId();
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 resultobj = SWIG_From_long(static_cast< long >(result));
27085 return resultobj;
27086fail:
27087 return NULL;
d55e5bfc
RD
27088}
27089
27090
1bd55598
RD
27091SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27092 PyObject *resultobj = 0;
27093 wxListItem *arg1 = (wxListItem *) 0 ;
27094 int 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_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27104 }
27105 arg1 = reinterpret_cast< wxListItem * >(argp1);
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = (int)(arg1)->GetColumn();
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_From_int(static_cast< int >(result));
27113 return resultobj;
27114fail:
27115 return NULL;
d55e5bfc
RD
27116}
27117
27118
1bd55598
RD
27119SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27120 PyObject *resultobj = 0;
27121 wxListItem *arg1 = (wxListItem *) 0 ;
27122 long result;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 PyObject *swig_obj[1] ;
27126
27127 if (!args) SWIG_fail;
27128 swig_obj[0] = args;
27129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27130 if (!SWIG_IsOK(res1)) {
27131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27132 }
27133 arg1 = reinterpret_cast< wxListItem * >(argp1);
27134 {
27135 PyThreadState* __tstate = wxPyBeginAllowThreads();
27136 result = (long)(arg1)->GetState();
27137 wxPyEndAllowThreads(__tstate);
27138 if (PyErr_Occurred()) SWIG_fail;
27139 }
27140 resultobj = SWIG_From_long(static_cast< long >(result));
27141 return resultobj;
27142fail:
27143 return NULL;
8fb0e70a
RD
27144}
27145
27146
1bd55598
RD
27147SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27148 PyObject *resultobj = 0;
27149 wxListItem *arg1 = (wxListItem *) 0 ;
27150 wxString *result = 0 ;
27151 void *argp1 = 0 ;
27152 int res1 = 0 ;
27153 PyObject *swig_obj[1] ;
27154
27155 if (!args) SWIG_fail;
27156 swig_obj[0] = args;
27157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27158 if (!SWIG_IsOK(res1)) {
27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27160 }
27161 arg1 = reinterpret_cast< wxListItem * >(argp1);
27162 {
27163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27164 {
1bd55598
RD
27165 wxString const &_result_ref = (arg1)->GetText();
27166 result = (wxString *) &_result_ref;
36ed4f51 27167 }
1bd55598
RD
27168 wxPyEndAllowThreads(__tstate);
27169 if (PyErr_Occurred()) SWIG_fail;
27170 }
27171 {
27172#if wxUSE_UNICODE
27173 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27174#else
27175 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27176#endif
27177 }
27178 return resultobj;
27179fail:
27180 return NULL;
d55e5bfc
RD
27181}
27182
27183
1bd55598
RD
27184SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27185 PyObject *resultobj = 0;
27186 wxListItem *arg1 = (wxListItem *) 0 ;
27187 int result;
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
27190 PyObject *swig_obj[1] ;
27191
27192 if (!args) SWIG_fail;
27193 swig_obj[0] = args;
27194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27197 }
27198 arg1 = reinterpret_cast< wxListItem * >(argp1);
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (int)(arg1)->GetImage();
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_From_int(static_cast< int >(result));
27206 return resultobj;
27207fail:
27208 return NULL;
d55e5bfc
RD
27209}
27210
27211
1bd55598
RD
27212SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxListItem *arg1 = (wxListItem *) 0 ;
27215 long result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27225 }
27226 arg1 = reinterpret_cast< wxListItem * >(argp1);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 result = (long)(arg1)->GetData();
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_From_long(static_cast< long >(result));
27234 return resultobj;
27235fail:
27236 return NULL;
d55e5bfc
RD
27237}
27238
27239
1bd55598
RD
27240SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 int result;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 PyObject *swig_obj[1] ;
27247
27248 if (!args) SWIG_fail;
27249 swig_obj[0] = args;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27253 }
27254 arg1 = reinterpret_cast< wxListItem * >(argp1);
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 result = (int)(arg1)->GetWidth();
27258 wxPyEndAllowThreads(__tstate);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 }
27261 resultobj = SWIG_From_int(static_cast< int >(result));
27262 return resultobj;
27263fail:
27264 return NULL;
d55e5bfc
RD
27265}
27266
27267
1bd55598
RD
27268SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 wxListColumnFormat result;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 PyObject *swig_obj[1] ;
27275
27276 if (!args) SWIG_fail;
27277 swig_obj[0] = args;
27278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27279 if (!SWIG_IsOK(res1)) {
27280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27281 }
27282 arg1 = reinterpret_cast< wxListItem * >(argp1);
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 result = (wxListColumnFormat)(arg1)->GetAlign();
27286 wxPyEndAllowThreads(__tstate);
27287 if (PyErr_Occurred()) SWIG_fail;
27288 }
27289 resultobj = SWIG_From_int(static_cast< int >(result));
27290 return resultobj;
27291fail:
27292 return NULL;
d55e5bfc
RD
27293}
27294
27295
1bd55598
RD
27296SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27297 PyObject *resultobj = 0;
27298 wxListItem *arg1 = (wxListItem *) 0 ;
27299 wxListItemAttr *result = 0 ;
27300 void *argp1 = 0 ;
27301 int res1 = 0 ;
27302 PyObject *swig_obj[1] ;
27303
27304 if (!args) SWIG_fail;
27305 swig_obj[0] = args;
27306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27307 if (!SWIG_IsOK(res1)) {
27308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27309 }
27310 arg1 = reinterpret_cast< wxListItem * >(argp1);
27311 {
27312 PyThreadState* __tstate = wxPyBeginAllowThreads();
27313 result = (wxListItemAttr *)(arg1)->GetAttributes();
27314 wxPyEndAllowThreads(__tstate);
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27318 return resultobj;
27319fail:
27320 return NULL;
d55e5bfc
RD
27321}
27322
27323
1bd55598
RD
27324SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxListItem *arg1 = (wxListItem *) 0 ;
27327 bool result;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 PyObject *swig_obj[1] ;
27331
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27337 }
27338 arg1 = reinterpret_cast< wxListItem * >(argp1);
27339 {
27340 PyThreadState* __tstate = wxPyBeginAllowThreads();
27341 result = (bool)(arg1)->HasAttributes();
27342 wxPyEndAllowThreads(__tstate);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 {
27346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27347 }
27348 return resultobj;
27349fail:
27350 return NULL;
d55e5bfc
RD
27351}
27352
27353
1bd55598
RD
27354SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27355 PyObject *resultobj = 0;
27356 wxListItem *arg1 = (wxListItem *) 0 ;
27357 wxColour result;
27358 void *argp1 = 0 ;
27359 int res1 = 0 ;
27360 PyObject *swig_obj[1] ;
27361
27362 if (!args) SWIG_fail;
27363 swig_obj[0] = args;
27364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27365 if (!SWIG_IsOK(res1)) {
27366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27367 }
27368 arg1 = reinterpret_cast< wxListItem * >(argp1);
27369 {
27370 PyThreadState* __tstate = wxPyBeginAllowThreads();
27371 result = ((wxListItem const *)arg1)->GetTextColour();
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27376 return resultobj;
27377fail:
27378 return NULL;
d55e5bfc
RD
27379}
27380
27381
1bd55598
RD
27382SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27383 PyObject *resultobj = 0;
27384 wxListItem *arg1 = (wxListItem *) 0 ;
27385 wxColour result;
27386 void *argp1 = 0 ;
27387 int res1 = 0 ;
27388 PyObject *swig_obj[1] ;
27389
27390 if (!args) SWIG_fail;
27391 swig_obj[0] = args;
27392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27393 if (!SWIG_IsOK(res1)) {
27394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27395 }
27396 arg1 = reinterpret_cast< wxListItem * >(argp1);
27397 {
27398 PyThreadState* __tstate = wxPyBeginAllowThreads();
27399 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27400 wxPyEndAllowThreads(__tstate);
27401 if (PyErr_Occurred()) SWIG_fail;
27402 }
27403 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27404 return resultobj;
27405fail:
27406 return NULL;
d55e5bfc
RD
27407}
27408
27409
1bd55598
RD
27410SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27411 PyObject *resultobj = 0;
27412 wxListItem *arg1 = (wxListItem *) 0 ;
27413 wxFont result;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416 PyObject *swig_obj[1] ;
27417
27418 if (!args) SWIG_fail;
27419 swig_obj[0] = args;
27420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27421 if (!SWIG_IsOK(res1)) {
27422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27423 }
27424 arg1 = reinterpret_cast< wxListItem * >(argp1);
27425 {
27426 PyThreadState* __tstate = wxPyBeginAllowThreads();
27427 result = ((wxListItem const *)arg1)->GetFont();
27428 wxPyEndAllowThreads(__tstate);
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
27431 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27432 return resultobj;
27433fail:
27434 return NULL;
27435}
27436
27437
27438SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27439 PyObject *resultobj = 0;
27440 wxListItem *arg1 = (wxListItem *) 0 ;
27441 long arg2 ;
27442 void *argp1 = 0 ;
27443 int res1 = 0 ;
27444 long val2 ;
27445 int ecode2 = 0 ;
27446 PyObject *swig_obj[2] ;
27447
27448 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27450 if (!SWIG_IsOK(res1)) {
27451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27452 }
27453 arg1 = reinterpret_cast< wxListItem * >(argp1);
27454 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27455 if (!SWIG_IsOK(ecode2)) {
27456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27457 }
27458 arg2 = static_cast< long >(val2);
27459 if (arg1) (arg1)->m_mask = arg2;
27460
27461 resultobj = SWIG_Py_Void();
27462 return resultobj;
27463fail:
27464 return NULL;
d55e5bfc
RD
27465}
27466
27467
1bd55598
RD
27468SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27469 PyObject *resultobj = 0;
27470 wxListItem *arg1 = (wxListItem *) 0 ;
27471 long result;
27472 void *argp1 = 0 ;
27473 int res1 = 0 ;
27474 PyObject *swig_obj[1] ;
27475
27476 if (!args) SWIG_fail;
27477 swig_obj[0] = args;
27478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27479 if (!SWIG_IsOK(res1)) {
27480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27481 }
27482 arg1 = reinterpret_cast< wxListItem * >(argp1);
27483 result = (long) ((arg1)->m_mask);
27484 resultobj = SWIG_From_long(static_cast< long >(result));
27485 return resultobj;
27486fail:
27487 return NULL;
27488}
27489
27490
27491SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27492 PyObject *resultobj = 0;
27493 wxListItem *arg1 = (wxListItem *) 0 ;
27494 long arg2 ;
27495 void *argp1 = 0 ;
27496 int res1 = 0 ;
27497 long val2 ;
27498 int ecode2 = 0 ;
27499 PyObject *swig_obj[2] ;
27500
27501 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27505 }
27506 arg1 = reinterpret_cast< wxListItem * >(argp1);
27507 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27508 if (!SWIG_IsOK(ecode2)) {
27509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27510 }
27511 arg2 = static_cast< long >(val2);
27512 if (arg1) (arg1)->m_itemId = arg2;
27513
27514 resultobj = SWIG_Py_Void();
27515 return resultobj;
27516fail:
27517 return NULL;
7e08d4ef
RD
27518}
27519
27520
1bd55598
RD
27521SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27522 PyObject *resultobj = 0;
27523 wxListItem *arg1 = (wxListItem *) 0 ;
27524 long result;
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
27527 PyObject *swig_obj[1] ;
27528
27529 if (!args) SWIG_fail;
27530 swig_obj[0] = args;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 result = (long) ((arg1)->m_itemId);
27537 resultobj = SWIG_From_long(static_cast< long >(result));
27538 return resultobj;
27539fail:
27540 return NULL;
27541}
27542
27543
27544SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27545 PyObject *resultobj = 0;
27546 wxListItem *arg1 = (wxListItem *) 0 ;
27547 int arg2 ;
27548 void *argp1 = 0 ;
27549 int res1 = 0 ;
27550 int val2 ;
27551 int ecode2 = 0 ;
27552 PyObject *swig_obj[2] ;
27553
27554 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27556 if (!SWIG_IsOK(res1)) {
27557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27558 }
27559 arg1 = reinterpret_cast< wxListItem * >(argp1);
27560 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27561 if (!SWIG_IsOK(ecode2)) {
27562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27563 }
27564 arg2 = static_cast< int >(val2);
27565 if (arg1) (arg1)->m_col = arg2;
27566
27567 resultobj = SWIG_Py_Void();
27568 return resultobj;
27569fail:
27570 return NULL;
7e08d4ef
RD
27571}
27572
27573
1bd55598
RD
27574SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27575 PyObject *resultobj = 0;
27576 wxListItem *arg1 = (wxListItem *) 0 ;
27577 int result;
27578 void *argp1 = 0 ;
27579 int res1 = 0 ;
27580 PyObject *swig_obj[1] ;
27581
27582 if (!args) SWIG_fail;
27583 swig_obj[0] = args;
27584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27585 if (!SWIG_IsOK(res1)) {
27586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27587 }
27588 arg1 = reinterpret_cast< wxListItem * >(argp1);
27589 result = (int) ((arg1)->m_col);
27590 resultobj = SWIG_From_int(static_cast< int >(result));
27591 return resultobj;
27592fail:
27593 return NULL;
27594}
27595
27596
27597SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27598 PyObject *resultobj = 0;
27599 wxListItem *arg1 = (wxListItem *) 0 ;
27600 long arg2 ;
27601 void *argp1 = 0 ;
27602 int res1 = 0 ;
27603 long val2 ;
27604 int ecode2 = 0 ;
27605 PyObject *swig_obj[2] ;
27606
27607 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27609 if (!SWIG_IsOK(res1)) {
27610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27611 }
27612 arg1 = reinterpret_cast< wxListItem * >(argp1);
27613 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27614 if (!SWIG_IsOK(ecode2)) {
27615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27616 }
27617 arg2 = static_cast< long >(val2);
27618 if (arg1) (arg1)->m_state = arg2;
27619
27620 resultobj = SWIG_Py_Void();
27621 return resultobj;
27622fail:
27623 return NULL;
7e08d4ef
RD
27624}
27625
27626
1bd55598
RD
27627SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27628 PyObject *resultobj = 0;
27629 wxListItem *arg1 = (wxListItem *) 0 ;
27630 long result;
27631 void *argp1 = 0 ;
27632 int res1 = 0 ;
27633 PyObject *swig_obj[1] ;
27634
27635 if (!args) SWIG_fail;
27636 swig_obj[0] = args;
27637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27638 if (!SWIG_IsOK(res1)) {
27639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27640 }
27641 arg1 = reinterpret_cast< wxListItem * >(argp1);
27642 result = (long) ((arg1)->m_state);
27643 resultobj = SWIG_From_long(static_cast< long >(result));
27644 return resultobj;
27645fail:
27646 return NULL;
27647}
27648
27649
27650SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27651 PyObject *resultobj = 0;
27652 wxListItem *arg1 = (wxListItem *) 0 ;
27653 long arg2 ;
27654 void *argp1 = 0 ;
27655 int res1 = 0 ;
27656 long val2 ;
27657 int ecode2 = 0 ;
27658 PyObject *swig_obj[2] ;
27659
27660 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27662 if (!SWIG_IsOK(res1)) {
27663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27664 }
27665 arg1 = reinterpret_cast< wxListItem * >(argp1);
27666 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27667 if (!SWIG_IsOK(ecode2)) {
27668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27669 }
27670 arg2 = static_cast< long >(val2);
27671 if (arg1) (arg1)->m_stateMask = arg2;
27672
27673 resultobj = SWIG_Py_Void();
27674 return resultobj;
27675fail:
27676 return NULL;
7e08d4ef
RD
27677}
27678
27679
1bd55598
RD
27680SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27681 PyObject *resultobj = 0;
27682 wxListItem *arg1 = (wxListItem *) 0 ;
27683 long result;
27684 void *argp1 = 0 ;
27685 int res1 = 0 ;
27686 PyObject *swig_obj[1] ;
27687
27688 if (!args) SWIG_fail;
27689 swig_obj[0] = args;
27690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27691 if (!SWIG_IsOK(res1)) {
27692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27693 }
27694 arg1 = reinterpret_cast< wxListItem * >(argp1);
27695 result = (long) ((arg1)->m_stateMask);
27696 resultobj = SWIG_From_long(static_cast< long >(result));
27697 return resultobj;
27698fail:
27699 return NULL;
27700}
27701
27702
27703SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27704 PyObject *resultobj = 0;
27705 wxListItem *arg1 = (wxListItem *) 0 ;
27706 wxString *arg2 = (wxString *) 0 ;
27707 void *argp1 = 0 ;
27708 int res1 = 0 ;
27709 bool temp2 = false ;
27710 PyObject *swig_obj[2] ;
27711
27712 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27714 if (!SWIG_IsOK(res1)) {
27715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27716 }
27717 arg1 = reinterpret_cast< wxListItem * >(argp1);
27718 {
27719 arg2 = wxString_in_helper(swig_obj[1]);
27720 if (arg2 == NULL) SWIG_fail;
27721 temp2 = true;
27722 }
27723 if (arg1) (arg1)->m_text = *arg2;
27724
27725 resultobj = SWIG_Py_Void();
27726 {
27727 if (temp2)
27728 delete arg2;
27729 }
27730 return resultobj;
27731fail:
27732 {
27733 if (temp2)
27734 delete arg2;
27735 }
27736 return NULL;
7e08d4ef
RD
27737}
27738
27739
1bd55598
RD
27740SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27741 PyObject *resultobj = 0;
27742 wxListItem *arg1 = (wxListItem *) 0 ;
27743 wxString *result = 0 ;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 PyObject *swig_obj[1] ;
27747
27748 if (!args) SWIG_fail;
27749 swig_obj[0] = args;
27750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27753 }
27754 arg1 = reinterpret_cast< wxListItem * >(argp1);
27755 result = (wxString *)& ((arg1)->m_text);
27756 {
27757#if wxUSE_UNICODE
27758 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27759#else
27760 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27761#endif
27762 }
27763 return resultobj;
27764fail:
27765 return NULL;
d55e5bfc
RD
27766}
27767
27768
1bd55598
RD
27769SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27770 PyObject *resultobj = 0;
27771 wxListItem *arg1 = (wxListItem *) 0 ;
27772 int arg2 ;
27773 void *argp1 = 0 ;
27774 int res1 = 0 ;
27775 int val2 ;
27776 int ecode2 = 0 ;
27777 PyObject *swig_obj[2] ;
27778
27779 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27781 if (!SWIG_IsOK(res1)) {
27782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27783 }
27784 arg1 = reinterpret_cast< wxListItem * >(argp1);
27785 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27786 if (!SWIG_IsOK(ecode2)) {
27787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27788 }
27789 arg2 = static_cast< int >(val2);
27790 if (arg1) (arg1)->m_image = arg2;
27791
27792 resultobj = SWIG_Py_Void();
27793 return resultobj;
27794fail:
27795 return NULL;
d55e5bfc
RD
27796}
27797
27798
1bd55598
RD
27799SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27800 PyObject *resultobj = 0;
27801 wxListItem *arg1 = (wxListItem *) 0 ;
27802 int result;
27803 void *argp1 = 0 ;
27804 int res1 = 0 ;
27805 PyObject *swig_obj[1] ;
27806
27807 if (!args) SWIG_fail;
27808 swig_obj[0] = args;
27809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27810 if (!SWIG_IsOK(res1)) {
27811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27812 }
27813 arg1 = reinterpret_cast< wxListItem * >(argp1);
27814 result = (int) ((arg1)->m_image);
27815 resultobj = SWIG_From_int(static_cast< int >(result));
27816 return resultobj;
27817fail:
27818 return NULL;
27819}
27820
27821
27822SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27823 PyObject *resultobj = 0;
27824 wxListItem *arg1 = (wxListItem *) 0 ;
27825 long arg2 ;
27826 void *argp1 = 0 ;
27827 int res1 = 0 ;
27828 long val2 ;
27829 int ecode2 = 0 ;
27830 PyObject *swig_obj[2] ;
27831
27832 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27834 if (!SWIG_IsOK(res1)) {
27835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27836 }
27837 arg1 = reinterpret_cast< wxListItem * >(argp1);
27838 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27839 if (!SWIG_IsOK(ecode2)) {
27840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27841 }
27842 arg2 = static_cast< long >(val2);
27843 if (arg1) (arg1)->m_data = arg2;
27844
27845 resultobj = SWIG_Py_Void();
27846 return resultobj;
27847fail:
27848 return NULL;
d55e5bfc
RD
27849}
27850
27851
1bd55598
RD
27852SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27853 PyObject *resultobj = 0;
27854 wxListItem *arg1 = (wxListItem *) 0 ;
27855 long result;
27856 void *argp1 = 0 ;
27857 int res1 = 0 ;
27858 PyObject *swig_obj[1] ;
27859
27860 if (!args) SWIG_fail;
27861 swig_obj[0] = args;
27862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27863 if (!SWIG_IsOK(res1)) {
27864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27865 }
27866 arg1 = reinterpret_cast< wxListItem * >(argp1);
27867 result = (long) ((arg1)->m_data);
27868 resultobj = SWIG_From_long(static_cast< long >(result));
27869 return resultobj;
27870fail:
27871 return NULL;
27872}
27873
27874
27875SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27876 PyObject *resultobj = 0;
27877 wxListItem *arg1 = (wxListItem *) 0 ;
27878 int arg2 ;
27879 void *argp1 = 0 ;
27880 int res1 = 0 ;
27881 int val2 ;
27882 int ecode2 = 0 ;
27883 PyObject *swig_obj[2] ;
27884
27885 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27887 if (!SWIG_IsOK(res1)) {
27888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27889 }
27890 arg1 = reinterpret_cast< wxListItem * >(argp1);
27891 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27892 if (!SWIG_IsOK(ecode2)) {
27893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27894 }
27895 arg2 = static_cast< int >(val2);
27896 if (arg1) (arg1)->m_format = arg2;
27897
27898 resultobj = SWIG_Py_Void();
27899 return resultobj;
27900fail:
27901 return NULL;
d55e5bfc
RD
27902}
27903
27904
1bd55598
RD
27905SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27906 PyObject *resultobj = 0;
27907 wxListItem *arg1 = (wxListItem *) 0 ;
27908 int result;
27909 void *argp1 = 0 ;
27910 int res1 = 0 ;
27911 PyObject *swig_obj[1] ;
27912
27913 if (!args) SWIG_fail;
27914 swig_obj[0] = args;
27915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27916 if (!SWIG_IsOK(res1)) {
27917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27918 }
27919 arg1 = reinterpret_cast< wxListItem * >(argp1);
27920 result = (int) ((arg1)->m_format);
27921 resultobj = SWIG_From_int(static_cast< int >(result));
27922 return resultobj;
27923fail:
27924 return NULL;
27925}
27926
27927
27928SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27929 PyObject *resultobj = 0;
27930 wxListItem *arg1 = (wxListItem *) 0 ;
27931 int arg2 ;
27932 void *argp1 = 0 ;
27933 int res1 = 0 ;
27934 int val2 ;
27935 int ecode2 = 0 ;
27936 PyObject *swig_obj[2] ;
27937
27938 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27940 if (!SWIG_IsOK(res1)) {
27941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27942 }
27943 arg1 = reinterpret_cast< wxListItem * >(argp1);
27944 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27945 if (!SWIG_IsOK(ecode2)) {
27946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27947 }
27948 arg2 = static_cast< int >(val2);
27949 if (arg1) (arg1)->m_width = arg2;
27950
27951 resultobj = SWIG_Py_Void();
27952 return resultobj;
27953fail:
27954 return NULL;
d55e5bfc
RD
27955}
27956
27957
1bd55598
RD
27958SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27959 PyObject *resultobj = 0;
27960 wxListItem *arg1 = (wxListItem *) 0 ;
27961 int result;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 PyObject *swig_obj[1] ;
27965
27966 if (!args) SWIG_fail;
27967 swig_obj[0] = args;
27968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27969 if (!SWIG_IsOK(res1)) {
27970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27971 }
27972 arg1 = reinterpret_cast< wxListItem * >(argp1);
27973 result = (int) ((arg1)->m_width);
27974 resultobj = SWIG_From_int(static_cast< int >(result));
27975 return resultobj;
27976fail:
27977 return NULL;
27978}
27979
27980
27981SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27982 PyObject *obj;
27983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27984 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27985 return SWIG_Py_Void();
27986}
27987
27988SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 return SWIG_Python_InitShadowInstance(args);
27990}
27991
27992SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27993 PyObject *resultobj = 0;
27994 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27995 int arg2 = (int) 0 ;
27996 wxListEvent *result = 0 ;
27997 int val1 ;
27998 int ecode1 = 0 ;
27999 int val2 ;
28000 int ecode2 = 0 ;
28001 PyObject * obj0 = 0 ;
28002 PyObject * obj1 = 0 ;
28003 char * kwnames[] = {
28004 (char *) "commandType",(char *) "id", NULL
28005 };
28006
28007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28008 if (obj0) {
28009 ecode1 = SWIG_AsVal_int(obj0, &val1);
28010 if (!SWIG_IsOK(ecode1)) {
28011 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28012 }
28013 arg1 = static_cast< wxEventType >(val1);
28014 }
28015 if (obj1) {
28016 ecode2 = SWIG_AsVal_int(obj1, &val2);
28017 if (!SWIG_IsOK(ecode2)) {
28018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28019 }
28020 arg2 = static_cast< int >(val2);
28021 }
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
28024 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28025 wxPyEndAllowThreads(__tstate);
28026 if (PyErr_Occurred()) SWIG_fail;
28027 }
28028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28029 return resultobj;
28030fail:
28031 return NULL;
28032}
28033
28034
28035SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28036 PyObject *resultobj = 0;
28037 wxListEvent *arg1 = (wxListEvent *) 0 ;
28038 int arg2 ;
28039 void *argp1 = 0 ;
28040 int res1 = 0 ;
28041 int val2 ;
28042 int ecode2 = 0 ;
28043 PyObject *swig_obj[2] ;
28044
28045 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28047 if (!SWIG_IsOK(res1)) {
28048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28049 }
28050 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28051 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28052 if (!SWIG_IsOK(ecode2)) {
28053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28054 }
28055 arg2 = static_cast< int >(val2);
28056 if (arg1) (arg1)->m_code = arg2;
28057
28058 resultobj = SWIG_Py_Void();
28059 return resultobj;
28060fail:
28061 return NULL;
d55e5bfc
RD
28062}
28063
28064
1bd55598
RD
28065SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28066 PyObject *resultobj = 0;
28067 wxListEvent *arg1 = (wxListEvent *) 0 ;
28068 int result;
28069 void *argp1 = 0 ;
28070 int res1 = 0 ;
28071 PyObject *swig_obj[1] ;
28072
28073 if (!args) SWIG_fail;
28074 swig_obj[0] = args;
28075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28076 if (!SWIG_IsOK(res1)) {
28077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28078 }
28079 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28080 result = (int) ((arg1)->m_code);
28081 resultobj = SWIG_From_int(static_cast< int >(result));
28082 return resultobj;
28083fail:
28084 return NULL;
28085}
28086
28087
28088SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28089 PyObject *resultobj = 0;
28090 wxListEvent *arg1 = (wxListEvent *) 0 ;
28091 long arg2 ;
28092 void *argp1 = 0 ;
28093 int res1 = 0 ;
28094 long val2 ;
28095 int ecode2 = 0 ;
28096 PyObject *swig_obj[2] ;
28097
28098 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28100 if (!SWIG_IsOK(res1)) {
28101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28102 }
28103 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28104 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28105 if (!SWIG_IsOK(ecode2)) {
28106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28107 }
28108 arg2 = static_cast< long >(val2);
28109 if (arg1) (arg1)->m_oldItemIndex = arg2;
28110
28111 resultobj = SWIG_Py_Void();
28112 return resultobj;
28113fail:
28114 return NULL;
d55e5bfc
RD
28115}
28116
28117
1bd55598
RD
28118SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28119 PyObject *resultobj = 0;
28120 wxListEvent *arg1 = (wxListEvent *) 0 ;
28121 long result;
28122 void *argp1 = 0 ;
28123 int res1 = 0 ;
28124 PyObject *swig_obj[1] ;
28125
28126 if (!args) SWIG_fail;
28127 swig_obj[0] = args;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28131 }
28132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28133 result = (long) ((arg1)->m_oldItemIndex);
28134 resultobj = SWIG_From_long(static_cast< long >(result));
28135 return resultobj;
28136fail:
28137 return NULL;
28138}
28139
28140
28141SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28142 PyObject *resultobj = 0;
28143 wxListEvent *arg1 = (wxListEvent *) 0 ;
28144 long arg2 ;
28145 void *argp1 = 0 ;
28146 int res1 = 0 ;
28147 long val2 ;
28148 int ecode2 = 0 ;
28149 PyObject *swig_obj[2] ;
28150
28151 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28153 if (!SWIG_IsOK(res1)) {
28154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28155 }
28156 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28157 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28158 if (!SWIG_IsOK(ecode2)) {
28159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28160 }
28161 arg2 = static_cast< long >(val2);
28162 if (arg1) (arg1)->m_itemIndex = arg2;
28163
28164 resultobj = SWIG_Py_Void();
28165 return resultobj;
28166fail:
28167 return NULL;
f20a2e1f
RD
28168}
28169
28170
1bd55598
RD
28171SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28172 PyObject *resultobj = 0;
28173 wxListEvent *arg1 = (wxListEvent *) 0 ;
28174 long result;
28175 void *argp1 = 0 ;
28176 int res1 = 0 ;
28177 PyObject *swig_obj[1] ;
28178
28179 if (!args) SWIG_fail;
28180 swig_obj[0] = args;
28181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28182 if (!SWIG_IsOK(res1)) {
28183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28184 }
28185 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28186 result = (long) ((arg1)->m_itemIndex);
28187 resultobj = SWIG_From_long(static_cast< long >(result));
28188 return resultobj;
28189fail:
28190 return NULL;
28191}
28192
28193
28194SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28195 PyObject *resultobj = 0;
28196 wxListEvent *arg1 = (wxListEvent *) 0 ;
28197 int arg2 ;
28198 void *argp1 = 0 ;
28199 int res1 = 0 ;
28200 int val2 ;
28201 int ecode2 = 0 ;
28202 PyObject *swig_obj[2] ;
28203
28204 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28206 if (!SWIG_IsOK(res1)) {
28207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28208 }
28209 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28210 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28211 if (!SWIG_IsOK(ecode2)) {
28212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28213 }
28214 arg2 = static_cast< int >(val2);
28215 if (arg1) (arg1)->m_col = arg2;
28216
28217 resultobj = SWIG_Py_Void();
28218 return resultobj;
28219fail:
28220 return NULL;
d55e5bfc
RD
28221}
28222
28223
1bd55598
RD
28224SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28225 PyObject *resultobj = 0;
28226 wxListEvent *arg1 = (wxListEvent *) 0 ;
28227 int 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_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28237 }
28238 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28239 result = (int) ((arg1)->m_col);
28240 resultobj = SWIG_From_int(static_cast< int >(result));
28241 return resultobj;
28242fail:
28243 return NULL;
28244}
28245
28246
28247SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28248 PyObject *resultobj = 0;
28249 wxListEvent *arg1 = (wxListEvent *) 0 ;
28250 wxPoint *arg2 = (wxPoint *) 0 ;
28251 void *argp1 = 0 ;
28252 int res1 = 0 ;
28253 void *argp2 = 0 ;
28254 int res2 = 0 ;
28255 PyObject *swig_obj[2] ;
28256
28257 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28259 if (!SWIG_IsOK(res1)) {
28260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28261 }
28262 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28263 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28264 if (!SWIG_IsOK(res2)) {
28265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28266 }
28267 arg2 = reinterpret_cast< wxPoint * >(argp2);
28268 if (arg1) (arg1)->m_pointDrag = *arg2;
28269
28270 resultobj = SWIG_Py_Void();
28271 return resultobj;
28272fail:
28273 return NULL;
d55e5bfc
RD
28274}
28275
28276
1bd55598
RD
28277SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28278 PyObject *resultobj = 0;
28279 wxListEvent *arg1 = (wxListEvent *) 0 ;
28280 wxPoint *result = 0 ;
28281 void *argp1 = 0 ;
28282 int res1 = 0 ;
28283 PyObject *swig_obj[1] ;
28284
28285 if (!args) SWIG_fail;
28286 swig_obj[0] = args;
28287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28288 if (!SWIG_IsOK(res1)) {
28289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28290 }
28291 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28292 result = (wxPoint *)& ((arg1)->m_pointDrag);
28293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28294 return resultobj;
28295fail:
28296 return NULL;
28297}
28298
28299
28300SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28301 PyObject *resultobj = 0;
28302 wxListEvent *arg1 = (wxListEvent *) 0 ;
28303 wxListItem *result = 0 ;
28304 void *argp1 = 0 ;
28305 int res1 = 0 ;
28306 PyObject *swig_obj[1] ;
28307
28308 if (!args) SWIG_fail;
28309 swig_obj[0] = args;
28310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28311 if (!SWIG_IsOK(res1)) {
28312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28313 }
28314 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28315 result = (wxListItem *)& ((arg1)->m_item);
28316 {
3ecece7e 28317 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
28318 }
28319 return resultobj;
28320fail:
28321 return NULL;
d55e5bfc
RD
28322}
28323
28324
1bd55598
RD
28325SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28326 PyObject *resultobj = 0;
28327 wxListEvent *arg1 = (wxListEvent *) 0 ;
28328 int result;
28329 void *argp1 = 0 ;
28330 int res1 = 0 ;
28331 PyObject *swig_obj[1] ;
28332
28333 if (!args) SWIG_fail;
28334 swig_obj[0] = args;
28335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28336 if (!SWIG_IsOK(res1)) {
28337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28338 }
28339 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28340 {
28341 PyThreadState* __tstate = wxPyBeginAllowThreads();
28342 result = (int)(arg1)->GetKeyCode();
28343 wxPyEndAllowThreads(__tstate);
28344 if (PyErr_Occurred()) SWIG_fail;
28345 }
28346 resultobj = SWIG_From_int(static_cast< int >(result));
28347 return resultobj;
28348fail:
28349 return NULL;
d55e5bfc
RD
28350}
28351
28352
1bd55598
RD
28353SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28354 PyObject *resultobj = 0;
28355 wxListEvent *arg1 = (wxListEvent *) 0 ;
28356 long result;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 PyObject *swig_obj[1] ;
28360
28361 if (!args) SWIG_fail;
28362 swig_obj[0] = args;
28363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28364 if (!SWIG_IsOK(res1)) {
28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28366 }
28367 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28368 {
28369 PyThreadState* __tstate = wxPyBeginAllowThreads();
28370 result = (long)(arg1)->GetIndex();
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_From_long(static_cast< long >(result));
28375 return resultobj;
28376fail:
28377 return NULL;
d55e5bfc
RD
28378}
28379
28380
1bd55598
RD
28381SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 int result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (int)(arg1)->GetColumn();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_int(static_cast< int >(result));
28403 return resultobj;
28404fail:
28405 return NULL;
d55e5bfc
RD
28406}
28407
28408
1bd55598
RD
28409SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 wxPoint result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (arg1)->GetPoint();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28431 return resultobj;
28432fail:
28433 return NULL;
d55e5bfc
RD
28434}
28435
28436
1bd55598
RD
28437SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxListEvent *arg1 = (wxListEvent *) 0 ;
28440 wxString *result = 0 ;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 PyObject *swig_obj[1] ;
28444
28445 if (!args) SWIG_fail;
28446 swig_obj[0] = args;
28447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28450 }
28451 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28454 {
1bd55598
RD
28455 wxString const &_result_ref = (arg1)->GetLabel();
28456 result = (wxString *) &_result_ref;
d55e5bfc 28457 }
1bd55598
RD
28458 wxPyEndAllowThreads(__tstate);
28459 if (PyErr_Occurred()) SWIG_fail;
28460 }
28461 {
28462#if wxUSE_UNICODE
28463 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28464#else
28465 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28466#endif
28467 }
28468 return resultobj;
28469fail:
28470 return NULL;
d55e5bfc
RD
28471}
28472
28473
1bd55598
RD
28474SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28475 PyObject *resultobj = 0;
28476 wxListEvent *arg1 = (wxListEvent *) 0 ;
28477 wxString *result = 0 ;
28478 void *argp1 = 0 ;
28479 int res1 = 0 ;
28480 PyObject *swig_obj[1] ;
28481
28482 if (!args) SWIG_fail;
28483 swig_obj[0] = args;
28484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28485 if (!SWIG_IsOK(res1)) {
28486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28487 }
28488 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28489 {
28490 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28491 {
1bd55598
RD
28492 wxString const &_result_ref = (arg1)->GetText();
28493 result = (wxString *) &_result_ref;
36ed4f51 28494 }
1bd55598
RD
28495 wxPyEndAllowThreads(__tstate);
28496 if (PyErr_Occurred()) SWIG_fail;
28497 }
28498 {
28499#if wxUSE_UNICODE
28500 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28501#else
28502 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28503#endif
28504 }
28505 return resultobj;
28506fail:
28507 return NULL;
d55e5bfc
RD
28508}
28509
28510
1bd55598
RD
28511SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28512 PyObject *resultobj = 0;
28513 wxListEvent *arg1 = (wxListEvent *) 0 ;
28514 int result;
28515 void *argp1 = 0 ;
28516 int res1 = 0 ;
28517 PyObject *swig_obj[1] ;
28518
28519 if (!args) SWIG_fail;
28520 swig_obj[0] = args;
28521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28522 if (!SWIG_IsOK(res1)) {
28523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28524 }
28525 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28526 {
28527 PyThreadState* __tstate = wxPyBeginAllowThreads();
28528 result = (int)(arg1)->GetImage();
28529 wxPyEndAllowThreads(__tstate);
28530 if (PyErr_Occurred()) SWIG_fail;
28531 }
28532 resultobj = SWIG_From_int(static_cast< int >(result));
28533 return resultobj;
28534fail:
28535 return NULL;
d55e5bfc
RD
28536}
28537
28538
1bd55598
RD
28539SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28540 PyObject *resultobj = 0;
28541 wxListEvent *arg1 = (wxListEvent *) 0 ;
28542 long result;
28543 void *argp1 = 0 ;
28544 int res1 = 0 ;
28545 PyObject *swig_obj[1] ;
28546
28547 if (!args) SWIG_fail;
28548 swig_obj[0] = args;
28549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28550 if (!SWIG_IsOK(res1)) {
28551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28552 }
28553 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28554 {
28555 PyThreadState* __tstate = wxPyBeginAllowThreads();
28556 result = (long)(arg1)->GetData();
28557 wxPyEndAllowThreads(__tstate);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 resultobj = SWIG_From_long(static_cast< long >(result));
28561 return resultobj;
28562fail:
28563 return NULL;
d55e5bfc
RD
28564}
28565
28566
1bd55598
RD
28567SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 PyObject *resultobj = 0;
28569 wxListEvent *arg1 = (wxListEvent *) 0 ;
28570 long result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 PyObject *swig_obj[1] ;
28574
28575 if (!args) SWIG_fail;
28576 swig_obj[0] = args;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28580 }
28581 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28582 {
28583 PyThreadState* __tstate = wxPyBeginAllowThreads();
28584 result = (long)(arg1)->GetMask();
28585 wxPyEndAllowThreads(__tstate);
28586 if (PyErr_Occurred()) SWIG_fail;
28587 }
28588 resultobj = SWIG_From_long(static_cast< long >(result));
28589 return resultobj;
28590fail:
28591 return NULL;
d55e5bfc
RD
28592}
28593
28594
1bd55598
RD
28595SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28596 PyObject *resultobj = 0;
28597 wxListEvent *arg1 = (wxListEvent *) 0 ;
28598 wxListItem *result = 0 ;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 PyObject *swig_obj[1] ;
28602
28603 if (!args) SWIG_fail;
28604 swig_obj[0] = args;
28605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28606 if (!SWIG_IsOK(res1)) {
28607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28608 }
28609 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28612 {
1bd55598
RD
28613 wxListItem const &_result_ref = (arg1)->GetItem();
28614 result = (wxListItem *) &_result_ref;
d55e5bfc 28615 }
1bd55598
RD
28616 wxPyEndAllowThreads(__tstate);
28617 if (PyErr_Occurred()) SWIG_fail;
28618 }
28619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28620 return resultobj;
28621fail:
28622 return NULL;
d55e5bfc
RD
28623}
28624
28625
1bd55598
RD
28626SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28627 PyObject *resultobj = 0;
28628 wxListEvent *arg1 = (wxListEvent *) 0 ;
28629 long result;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 PyObject *swig_obj[1] ;
28633
28634 if (!args) SWIG_fail;
28635 swig_obj[0] = args;
28636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28637 if (!SWIG_IsOK(res1)) {
28638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28639 }
28640 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28641 {
28642 PyThreadState* __tstate = wxPyBeginAllowThreads();
28643 result = (long)(arg1)->GetCacheFrom();
28644 wxPyEndAllowThreads(__tstate);
28645 if (PyErr_Occurred()) SWIG_fail;
28646 }
28647 resultobj = SWIG_From_long(static_cast< long >(result));
28648 return resultobj;
28649fail:
28650 return NULL;
d55e5bfc
RD
28651}
28652
28653
1bd55598
RD
28654SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28655 PyObject *resultobj = 0;
28656 wxListEvent *arg1 = (wxListEvent *) 0 ;
28657 long result;
28658 void *argp1 = 0 ;
28659 int res1 = 0 ;
28660 PyObject *swig_obj[1] ;
28661
28662 if (!args) SWIG_fail;
28663 swig_obj[0] = args;
28664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28665 if (!SWIG_IsOK(res1)) {
28666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28667 }
28668 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 result = (long)(arg1)->GetCacheTo();
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_From_long(static_cast< long >(result));
28676 return resultobj;
28677fail:
28678 return NULL;
7e08d4ef
RD
28679}
28680
28681
1bd55598
RD
28682SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28683 PyObject *resultobj = 0;
28684 wxListEvent *arg1 = (wxListEvent *) 0 ;
28685 bool result;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 PyObject *swig_obj[1] ;
28689
28690 if (!args) SWIG_fail;
28691 swig_obj[0] = args;
28692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28695 }
28696 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28700 wxPyEndAllowThreads(__tstate);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 {
28704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28705 }
28706 return resultobj;
28707fail:
28708 return NULL;
28709}
28710
28711
28712SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28713 PyObject *resultobj = 0;
28714 wxListEvent *arg1 = (wxListEvent *) 0 ;
28715 bool arg2 ;
28716 void *argp1 = 0 ;
28717 int res1 = 0 ;
28718 bool val2 ;
28719 int ecode2 = 0 ;
28720 PyObject * obj0 = 0 ;
28721 PyObject * obj1 = 0 ;
28722 char * kwnames[] = {
28723 (char *) "self",(char *) "editCancelled", NULL
28724 };
28725
28726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28728 if (!SWIG_IsOK(res1)) {
28729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28730 }
28731 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28733 if (!SWIG_IsOK(ecode2)) {
28734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28735 }
28736 arg2 = static_cast< bool >(val2);
28737 {
28738 PyThreadState* __tstate = wxPyBeginAllowThreads();
28739 (arg1)->SetEditCanceled(arg2);
28740 wxPyEndAllowThreads(__tstate);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_Py_Void();
28744 return resultobj;
28745fail:
28746 return NULL;
28747}
28748
28749
28750SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28751 PyObject *obj;
28752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28753 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28754 return SWIG_Py_Void();
28755}
28756
28757SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28758 return SWIG_Python_InitShadowInstance(args);
28759}
28760
28761SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28762 PyObject *resultobj = 0;
28763 wxWindow *arg1 = (wxWindow *) 0 ;
28764 int arg2 = (int) -1 ;
28765 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28766 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28767 wxSize const &arg4_defvalue = wxDefaultSize ;
28768 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28769 long arg5 = (long) wxLC_ICON ;
28770 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28771 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28772 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28773 wxString *arg7 = (wxString *) &arg7_defvalue ;
28774 wxPyListCtrl *result = 0 ;
28775 void *argp1 = 0 ;
28776 int res1 = 0 ;
28777 int val2 ;
28778 int ecode2 = 0 ;
28779 wxPoint temp3 ;
28780 wxSize temp4 ;
28781 long val5 ;
28782 int ecode5 = 0 ;
28783 void *argp6 = 0 ;
28784 int res6 = 0 ;
28785 bool temp7 = false ;
28786 PyObject * obj0 = 0 ;
28787 PyObject * obj1 = 0 ;
28788 PyObject * obj2 = 0 ;
28789 PyObject * obj3 = 0 ;
28790 PyObject * obj4 = 0 ;
28791 PyObject * obj5 = 0 ;
28792 PyObject * obj6 = 0 ;
28793 char * kwnames[] = {
28794 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28795 };
28796
28797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28799 if (!SWIG_IsOK(res1)) {
28800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28801 }
28802 arg1 = reinterpret_cast< wxWindow * >(argp1);
28803 if (obj1) {
28804 ecode2 = SWIG_AsVal_int(obj1, &val2);
28805 if (!SWIG_IsOK(ecode2)) {
28806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28807 }
28808 arg2 = static_cast< int >(val2);
28809 }
28810 if (obj2) {
7e08d4ef 28811 {
1bd55598
RD
28812 arg3 = &temp3;
28813 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28814 }
1bd55598
RD
28815 }
28816 if (obj3) {
7e08d4ef 28817 {
1bd55598
RD
28818 arg4 = &temp4;
28819 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28820 }
1bd55598
RD
28821 }
28822 if (obj4) {
28823 ecode5 = SWIG_AsVal_long(obj4, &val5);
28824 if (!SWIG_IsOK(ecode5)) {
28825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28826 }
28827 arg5 = static_cast< long >(val5);
28828 }
28829 if (obj5) {
28830 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28831 if (!SWIG_IsOK(res6)) {
28832 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28833 }
1bd55598
RD
28834 if (!argp6) {
28835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28836 }
1bd55598
RD
28837 arg6 = reinterpret_cast< wxValidator * >(argp6);
28838 }
28839 if (obj6) {
7e08d4ef 28840 {
1bd55598
RD
28841 arg7 = wxString_in_helper(obj6);
28842 if (arg7 == NULL) SWIG_fail;
28843 temp7 = true;
7e08d4ef 28844 }
1bd55598
RD
28845 }
28846 {
28847 if (!wxPyCheckForApp()) SWIG_fail;
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28850 wxPyEndAllowThreads(__tstate);
28851 if (PyErr_Occurred()) SWIG_fail;
28852 }
28853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28854 {
28855 if (temp7)
28856 delete arg7;
28857 }
28858 return resultobj;
28859fail:
28860 {
28861 if (temp7)
28862 delete arg7;
28863 }
28864 return NULL;
7e08d4ef
RD
28865}
28866
28867
1bd55598
RD
28868SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28869 PyObject *resultobj = 0;
28870 wxPyListCtrl *result = 0 ;
28871
28872 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28873 {
28874 if (!wxPyCheckForApp()) SWIG_fail;
28875 PyThreadState* __tstate = wxPyBeginAllowThreads();
28876 result = (wxPyListCtrl *)new wxPyListCtrl();
28877 wxPyEndAllowThreads(__tstate);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28881 return resultobj;
28882fail:
28883 return NULL;
28884}
28885
28886
28887SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28888 PyObject *resultobj = 0;
28889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28890 wxWindow *arg2 = (wxWindow *) 0 ;
28891 int arg3 = (int) -1 ;
28892 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28893 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28894 wxSize const &arg5_defvalue = wxDefaultSize ;
28895 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28896 long arg6 = (long) wxLC_ICON ;
28897 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28898 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28899 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28900 wxString *arg8 = (wxString *) &arg8_defvalue ;
28901 bool result;
28902 void *argp1 = 0 ;
28903 int res1 = 0 ;
28904 void *argp2 = 0 ;
28905 int res2 = 0 ;
28906 int val3 ;
28907 int ecode3 = 0 ;
28908 wxPoint temp4 ;
28909 wxSize temp5 ;
28910 long val6 ;
28911 int ecode6 = 0 ;
28912 void *argp7 = 0 ;
28913 int res7 = 0 ;
28914 bool temp8 = false ;
28915 PyObject * obj0 = 0 ;
28916 PyObject * obj1 = 0 ;
28917 PyObject * obj2 = 0 ;
28918 PyObject * obj3 = 0 ;
28919 PyObject * obj4 = 0 ;
28920 PyObject * obj5 = 0 ;
28921 PyObject * obj6 = 0 ;
28922 PyObject * obj7 = 0 ;
28923 char * kwnames[] = {
28924 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28925 };
28926
28927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28929 if (!SWIG_IsOK(res1)) {
28930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28931 }
28932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28934 if (!SWIG_IsOK(res2)) {
28935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28936 }
28937 arg2 = reinterpret_cast< wxWindow * >(argp2);
28938 if (obj2) {
28939 ecode3 = SWIG_AsVal_int(obj2, &val3);
28940 if (!SWIG_IsOK(ecode3)) {
28941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28942 }
28943 arg3 = static_cast< int >(val3);
28944 }
28945 if (obj3) {
7e08d4ef 28946 {
1bd55598
RD
28947 arg4 = &temp4;
28948 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28949 }
1bd55598
RD
28950 }
28951 if (obj4) {
7e08d4ef 28952 {
1bd55598
RD
28953 arg5 = &temp5;
28954 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28955 }
1bd55598
RD
28956 }
28957 if (obj5) {
28958 ecode6 = SWIG_AsVal_long(obj5, &val6);
28959 if (!SWIG_IsOK(ecode6)) {
28960 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28961 }
28962 arg6 = static_cast< long >(val6);
28963 }
28964 if (obj6) {
28965 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28966 if (!SWIG_IsOK(res7)) {
28967 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28968 }
1bd55598
RD
28969 if (!argp7) {
28970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28971 }
1bd55598
RD
28972 arg7 = reinterpret_cast< wxValidator * >(argp7);
28973 }
28974 if (obj7) {
7e08d4ef 28975 {
1bd55598
RD
28976 arg8 = wxString_in_helper(obj7);
28977 if (arg8 == NULL) SWIG_fail;
28978 temp8 = true;
7e08d4ef 28979 }
1bd55598
RD
28980 }
28981 {
28982 PyThreadState* __tstate = wxPyBeginAllowThreads();
28983 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28984 wxPyEndAllowThreads(__tstate);
28985 if (PyErr_Occurred()) SWIG_fail;
28986 }
28987 {
28988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28989 }
28990 {
28991 if (temp8)
28992 delete arg8;
28993 }
28994 return resultobj;
28995fail:
28996 {
28997 if (temp8)
28998 delete arg8;
28999 }
29000 return NULL;
29001}
29002
29003
29004SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29005 PyObject *resultobj = 0;
29006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29007 PyObject *arg2 = (PyObject *) 0 ;
29008 PyObject *arg3 = (PyObject *) 0 ;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 PyObject * obj0 = 0 ;
29012 PyObject * obj1 = 0 ;
29013 PyObject * obj2 = 0 ;
29014 char * kwnames[] = {
29015 (char *) "self",(char *) "self",(char *) "_class", NULL
29016 };
29017
29018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29022 }
29023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29024 arg2 = obj1;
29025 arg3 = obj2;
29026 {
29027 PyThreadState* __tstate = wxPyBeginAllowThreads();
29028 (arg1)->_setCallbackInfo(arg2,arg3);
29029 wxPyEndAllowThreads(__tstate);
29030 if (PyErr_Occurred()) SWIG_fail;
29031 }
29032 resultobj = SWIG_Py_Void();
29033 return resultobj;
29034fail:
29035 return NULL;
29036}
29037
29038
29039SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29040 PyObject *resultobj = 0;
29041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29042 int arg2 ;
29043 wxListItem *result = 0 ;
29044 void *argp1 = 0 ;
29045 int res1 = 0 ;
29046 int val2 ;
29047 int ecode2 = 0 ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 char * kwnames[] = {
29051 (char *) "self",(char *) "col", NULL
29052 };
29053
29054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29058 }
29059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29060 ecode2 = SWIG_AsVal_int(obj1, &val2);
29061 if (!SWIG_IsOK(ecode2)) {
29062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29063 }
29064 arg2 = static_cast< int >(val2);
29065 {
29066 PyThreadState* __tstate = wxPyBeginAllowThreads();
29067 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29068 wxPyEndAllowThreads(__tstate);
29069 if (PyErr_Occurred()) SWIG_fail;
29070 }
29071 {
3ecece7e 29072 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29073 }
29074 return resultobj;
29075fail:
29076 return NULL;
29077}
29078
29079
29080SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29081 PyObject *resultobj = 0;
29082 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29083 int arg2 ;
29084 wxListItem *arg3 = 0 ;
29085 bool result;
29086 void *argp1 = 0 ;
29087 int res1 = 0 ;
29088 int val2 ;
29089 int ecode2 = 0 ;
29090 void *argp3 = 0 ;
29091 int res3 = 0 ;
29092 PyObject * obj0 = 0 ;
29093 PyObject * obj1 = 0 ;
29094 PyObject * obj2 = 0 ;
29095 char * kwnames[] = {
29096 (char *) "self",(char *) "col",(char *) "item", NULL
29097 };
29098
29099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29101 if (!SWIG_IsOK(res1)) {
29102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29103 }
29104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29105 ecode2 = SWIG_AsVal_int(obj1, &val2);
29106 if (!SWIG_IsOK(ecode2)) {
29107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29108 }
29109 arg2 = static_cast< int >(val2);
29110 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29111 if (!SWIG_IsOK(res3)) {
29112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29113 }
29114 if (!argp3) {
29115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29116 }
29117 arg3 = reinterpret_cast< wxListItem * >(argp3);
29118 {
29119 PyThreadState* __tstate = wxPyBeginAllowThreads();
29120 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29121 wxPyEndAllowThreads(__tstate);
29122 if (PyErr_Occurred()) SWIG_fail;
29123 }
29124 {
29125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29126 }
29127 return resultobj;
29128fail:
29129 return NULL;
29130}
29131
29132
29133SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29134 PyObject *resultobj = 0;
29135 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29136 int arg2 ;
29137 int result;
29138 void *argp1 = 0 ;
29139 int res1 = 0 ;
29140 int val2 ;
29141 int ecode2 = 0 ;
29142 PyObject * obj0 = 0 ;
29143 PyObject * obj1 = 0 ;
29144 char * kwnames[] = {
29145 (char *) "self",(char *) "col", NULL
29146 };
29147
29148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29150 if (!SWIG_IsOK(res1)) {
29151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29152 }
29153 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29154 ecode2 = SWIG_AsVal_int(obj1, &val2);
29155 if (!SWIG_IsOK(ecode2)) {
29156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29157 }
29158 arg2 = static_cast< int >(val2);
29159 {
29160 PyThreadState* __tstate = wxPyBeginAllowThreads();
29161 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29162 wxPyEndAllowThreads(__tstate);
29163 if (PyErr_Occurred()) SWIG_fail;
29164 }
29165 resultobj = SWIG_From_int(static_cast< int >(result));
29166 return resultobj;
29167fail:
29168 return NULL;
29169}
29170
29171
29172SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29173 PyObject *resultobj = 0;
29174 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29175 int arg2 ;
29176 int arg3 ;
29177 bool result;
29178 void *argp1 = 0 ;
29179 int res1 = 0 ;
29180 int val2 ;
29181 int ecode2 = 0 ;
29182 int val3 ;
29183 int ecode3 = 0 ;
29184 PyObject * obj0 = 0 ;
29185 PyObject * obj1 = 0 ;
29186 PyObject * obj2 = 0 ;
29187 char * kwnames[] = {
29188 (char *) "self",(char *) "col",(char *) "width", NULL
29189 };
29190
29191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29193 if (!SWIG_IsOK(res1)) {
29194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29195 }
29196 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29197 ecode2 = SWIG_AsVal_int(obj1, &val2);
29198 if (!SWIG_IsOK(ecode2)) {
29199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29200 }
29201 arg2 = static_cast< int >(val2);
29202 ecode3 = SWIG_AsVal_int(obj2, &val3);
29203 if (!SWIG_IsOK(ecode3)) {
29204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29205 }
29206 arg3 = static_cast< int >(val3);
29207 {
29208 PyThreadState* __tstate = wxPyBeginAllowThreads();
29209 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29210 wxPyEndAllowThreads(__tstate);
29211 if (PyErr_Occurred()) SWIG_fail;
29212 }
29213 {
29214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29215 }
29216 return resultobj;
29217fail:
29218 return NULL;
7e08d4ef
RD
29219}
29220
29221
1bd55598
RD
29222SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29223 PyObject *resultobj = 0;
29224 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29225 int result;
29226 void *argp1 = 0 ;
29227 int res1 = 0 ;
29228 PyObject *swig_obj[1] ;
29229
29230 if (!args) SWIG_fail;
29231 swig_obj[0] = args;
29232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29233 if (!SWIG_IsOK(res1)) {
29234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29235 }
29236 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29237 {
29238 PyThreadState* __tstate = wxPyBeginAllowThreads();
29239 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29240 wxPyEndAllowThreads(__tstate);
29241 if (PyErr_Occurred()) SWIG_fail;
29242 }
29243 resultobj = SWIG_From_int(static_cast< int >(result));
29244 return resultobj;
29245fail:
29246 return NULL;
7e08d4ef
RD
29247}
29248
29249
1bd55598
RD
29250SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29251 PyObject *resultobj = 0;
29252 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29253 wxRect result;
29254 void *argp1 = 0 ;
29255 int res1 = 0 ;
29256 PyObject *swig_obj[1] ;
29257
29258 if (!args) SWIG_fail;
29259 swig_obj[0] = args;
29260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29261 if (!SWIG_IsOK(res1)) {
29262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29263 }
29264 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29265 {
29266 PyThreadState* __tstate = wxPyBeginAllowThreads();
29267 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29272 return resultobj;
29273fail:
29274 return NULL;
7e08d4ef
RD
29275}
29276
29277
1bd55598
RD
29278SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29279 PyObject *resultobj = 0;
29280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29281 wxTextCtrl *result = 0 ;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 PyObject *swig_obj[1] ;
29285
29286 if (!args) SWIG_fail;
29287 swig_obj[0] = args;
29288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29291 }
29292 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29293 {
29294 PyThreadState* __tstate = wxPyBeginAllowThreads();
29295 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29296 wxPyEndAllowThreads(__tstate);
29297 if (PyErr_Occurred()) SWIG_fail;
29298 }
29299 {
29300 resultobj = wxPyMake_wxObject(result, 0);
29301 }
29302 return resultobj;
29303fail:
29304 return NULL;
29305}
29306
29307
29308SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29309 PyObject *resultobj = 0;
29310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29311 long arg2 ;
29312 int arg3 = (int) 0 ;
29313 wxListItem *result = 0 ;
29314 void *argp1 = 0 ;
29315 int res1 = 0 ;
29316 long val2 ;
29317 int ecode2 = 0 ;
29318 int val3 ;
29319 int ecode3 = 0 ;
29320 PyObject * obj0 = 0 ;
29321 PyObject * obj1 = 0 ;
29322 PyObject * obj2 = 0 ;
29323 char * kwnames[] = {
29324 (char *) "self",(char *) "itemId",(char *) "col", NULL
29325 };
29326
29327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29329 if (!SWIG_IsOK(res1)) {
29330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29331 }
29332 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29333 ecode2 = SWIG_AsVal_long(obj1, &val2);
29334 if (!SWIG_IsOK(ecode2)) {
29335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29336 }
29337 arg2 = static_cast< long >(val2);
29338 if (obj2) {
29339 ecode3 = SWIG_AsVal_int(obj2, &val3);
29340 if (!SWIG_IsOK(ecode3)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29342 }
29343 arg3 = static_cast< int >(val3);
29344 }
29345 {
29346 PyThreadState* __tstate = wxPyBeginAllowThreads();
29347 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29348 wxPyEndAllowThreads(__tstate);
29349 if (PyErr_Occurred()) SWIG_fail;
29350 }
29351 {
3ecece7e 29352 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29353 }
29354 return resultobj;
29355fail:
29356 return NULL;
29357}
29358
29359
29360SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29361 PyObject *resultobj = 0;
29362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29363 wxListItem *arg2 = 0 ;
29364 bool result;
29365 void *argp1 = 0 ;
29366 int res1 = 0 ;
29367 void *argp2 = 0 ;
29368 int res2 = 0 ;
29369 PyObject * obj0 = 0 ;
29370 PyObject * obj1 = 0 ;
29371 char * kwnames[] = {
29372 (char *) "self",(char *) "info", NULL
29373 };
29374
29375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29377 if (!SWIG_IsOK(res1)) {
29378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29379 }
29380 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29382 if (!SWIG_IsOK(res2)) {
29383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29384 }
29385 if (!argp2) {
29386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29387 }
29388 arg2 = reinterpret_cast< wxListItem * >(argp2);
29389 {
29390 PyThreadState* __tstate = wxPyBeginAllowThreads();
29391 result = (bool)(arg1)->SetItem(*arg2);
29392 wxPyEndAllowThreads(__tstate);
29393 if (PyErr_Occurred()) SWIG_fail;
29394 }
29395 {
29396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29397 }
29398 return resultobj;
29399fail:
29400 return NULL;
29401}
29402
29403
29404SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29405 PyObject *resultobj = 0;
29406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29407 long arg2 ;
29408 int arg3 ;
29409 wxString *arg4 = 0 ;
29410 int arg5 = (int) -1 ;
29411 long result;
29412 void *argp1 = 0 ;
29413 int res1 = 0 ;
29414 long val2 ;
29415 int ecode2 = 0 ;
29416 int val3 ;
29417 int ecode3 = 0 ;
29418 bool temp4 = false ;
29419 int val5 ;
29420 int ecode5 = 0 ;
29421 PyObject * obj0 = 0 ;
29422 PyObject * obj1 = 0 ;
29423 PyObject * obj2 = 0 ;
29424 PyObject * obj3 = 0 ;
29425 PyObject * obj4 = 0 ;
29426 char * kwnames[] = {
29427 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29428 };
29429
29430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29432 if (!SWIG_IsOK(res1)) {
29433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29434 }
29435 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29436 ecode2 = SWIG_AsVal_long(obj1, &val2);
29437 if (!SWIG_IsOK(ecode2)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29439 }
29440 arg2 = static_cast< long >(val2);
29441 ecode3 = SWIG_AsVal_int(obj2, &val3);
29442 if (!SWIG_IsOK(ecode3)) {
29443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29444 }
29445 arg3 = static_cast< int >(val3);
29446 {
29447 arg4 = wxString_in_helper(obj3);
29448 if (arg4 == NULL) SWIG_fail;
29449 temp4 = true;
29450 }
29451 if (obj4) {
29452 ecode5 = SWIG_AsVal_int(obj4, &val5);
29453 if (!SWIG_IsOK(ecode5)) {
29454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29455 }
29456 arg5 = static_cast< int >(val5);
29457 }
29458 {
29459 PyThreadState* __tstate = wxPyBeginAllowThreads();
29460 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29461 wxPyEndAllowThreads(__tstate);
29462 if (PyErr_Occurred()) SWIG_fail;
29463 }
29464 resultobj = SWIG_From_long(static_cast< long >(result));
29465 {
29466 if (temp4)
29467 delete arg4;
29468 }
29469 return resultobj;
29470fail:
29471 {
29472 if (temp4)
29473 delete arg4;
29474 }
29475 return NULL;
29476}
29477
29478
29479SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29480 PyObject *resultobj = 0;
29481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29482 long arg2 ;
29483 long arg3 ;
29484 int result;
29485 void *argp1 = 0 ;
29486 int res1 = 0 ;
29487 long val2 ;
29488 int ecode2 = 0 ;
29489 long val3 ;
29490 int ecode3 = 0 ;
29491 PyObject * obj0 = 0 ;
29492 PyObject * obj1 = 0 ;
29493 PyObject * obj2 = 0 ;
29494 char * kwnames[] = {
29495 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29496 };
29497
29498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29500 if (!SWIG_IsOK(res1)) {
29501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29502 }
29503 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29504 ecode2 = SWIG_AsVal_long(obj1, &val2);
29505 if (!SWIG_IsOK(ecode2)) {
29506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29507 }
29508 arg2 = static_cast< long >(val2);
29509 ecode3 = SWIG_AsVal_long(obj2, &val3);
29510 if (!SWIG_IsOK(ecode3)) {
29511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29512 }
29513 arg3 = static_cast< long >(val3);
29514 {
29515 PyThreadState* __tstate = wxPyBeginAllowThreads();
29516 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29517 wxPyEndAllowThreads(__tstate);
29518 if (PyErr_Occurred()) SWIG_fail;
29519 }
29520 resultobj = SWIG_From_int(static_cast< int >(result));
29521 return resultobj;
29522fail:
29523 return NULL;
29524}
29525
29526
29527SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj = 0;
29529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29530 long arg2 ;
29531 long arg3 ;
29532 long arg4 ;
29533 bool result;
29534 void *argp1 = 0 ;
29535 int res1 = 0 ;
29536 long val2 ;
29537 int ecode2 = 0 ;
29538 long val3 ;
29539 int ecode3 = 0 ;
29540 long val4 ;
29541 int ecode4 = 0 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 PyObject * obj2 = 0 ;
29545 PyObject * obj3 = 0 ;
29546 char * kwnames[] = {
29547 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29548 };
29549
29550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29552 if (!SWIG_IsOK(res1)) {
29553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29554 }
29555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29556 ecode2 = SWIG_AsVal_long(obj1, &val2);
29557 if (!SWIG_IsOK(ecode2)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29559 }
29560 arg2 = static_cast< long >(val2);
29561 ecode3 = SWIG_AsVal_long(obj2, &val3);
29562 if (!SWIG_IsOK(ecode3)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29564 }
29565 arg3 = static_cast< long >(val3);
29566 ecode4 = SWIG_AsVal_long(obj3, &val4);
29567 if (!SWIG_IsOK(ecode4)) {
29568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29569 }
29570 arg4 = static_cast< long >(val4);
29571 {
29572 PyThreadState* __tstate = wxPyBeginAllowThreads();
29573 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29574 wxPyEndAllowThreads(__tstate);
29575 if (PyErr_Occurred()) SWIG_fail;
29576 }
29577 {
29578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29579 }
29580 return resultobj;
29581fail:
29582 return NULL;
29583}
29584
29585
29586SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = 0;
29588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29589 long arg2 ;
29590 int arg3 ;
29591 int arg4 = (int) -1 ;
29592 bool result;
29593 void *argp1 = 0 ;
29594 int res1 = 0 ;
29595 long val2 ;
29596 int ecode2 = 0 ;
29597 int val3 ;
29598 int ecode3 = 0 ;
29599 int val4 ;
29600 int ecode4 = 0 ;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 PyObject * obj3 = 0 ;
29605 char * kwnames[] = {
29606 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29607 };
29608
29609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29611 if (!SWIG_IsOK(res1)) {
29612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29613 }
29614 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29615 ecode2 = SWIG_AsVal_long(obj1, &val2);
29616 if (!SWIG_IsOK(ecode2)) {
29617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29618 }
29619 arg2 = static_cast< long >(val2);
29620 ecode3 = SWIG_AsVal_int(obj2, &val3);
29621 if (!SWIG_IsOK(ecode3)) {
29622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29623 }
29624 arg3 = static_cast< int >(val3);
29625 if (obj3) {
29626 ecode4 = SWIG_AsVal_int(obj3, &val4);
29627 if (!SWIG_IsOK(ecode4)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29629 }
29630 arg4 = static_cast< int >(val4);
29631 }
29632 {
29633 PyThreadState* __tstate = wxPyBeginAllowThreads();
29634 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29635 wxPyEndAllowThreads(__tstate);
29636 if (PyErr_Occurred()) SWIG_fail;
29637 }
29638 {
29639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29640 }
29641 return resultobj;
29642fail:
29643 return NULL;
29644}
29645
29646
29647SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29648 PyObject *resultobj = 0;
29649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29650 long arg2 ;
29651 long arg3 ;
29652 int arg4 ;
29653 bool result;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 long val2 ;
29657 int ecode2 = 0 ;
29658 long val3 ;
29659 int ecode3 = 0 ;
29660 int val4 ;
29661 int ecode4 = 0 ;
29662 PyObject * obj0 = 0 ;
29663 PyObject * obj1 = 0 ;
29664 PyObject * obj2 = 0 ;
29665 PyObject * obj3 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29674 }
29675 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29676 ecode2 = SWIG_AsVal_long(obj1, &val2);
29677 if (!SWIG_IsOK(ecode2)) {
29678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29679 }
29680 arg2 = static_cast< long >(val2);
29681 ecode3 = SWIG_AsVal_long(obj2, &val3);
29682 if (!SWIG_IsOK(ecode3)) {
29683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29684 }
29685 arg3 = static_cast< long >(val3);
29686 ecode4 = SWIG_AsVal_int(obj3, &val4);
29687 if (!SWIG_IsOK(ecode4)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29689 }
29690 arg4 = static_cast< int >(val4);
29691 {
29692 PyThreadState* __tstate = wxPyBeginAllowThreads();
29693 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29694 wxPyEndAllowThreads(__tstate);
29695 if (PyErr_Occurred()) SWIG_fail;
29696 }
29697 {
29698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29699 }
29700 return resultobj;
29701fail:
29702 return NULL;
29703}
29704
29705
29706SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29707 PyObject *resultobj = 0;
29708 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29709 long arg2 ;
29710 wxString result;
29711 void *argp1 = 0 ;
29712 int res1 = 0 ;
29713 long val2 ;
29714 int ecode2 = 0 ;
29715 PyObject * obj0 = 0 ;
29716 PyObject * obj1 = 0 ;
29717 char * kwnames[] = {
29718 (char *) "self",(char *) "item", NULL
29719 };
29720
29721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29723 if (!SWIG_IsOK(res1)) {
29724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29725 }
29726 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29727 ecode2 = SWIG_AsVal_long(obj1, &val2);
29728 if (!SWIG_IsOK(ecode2)) {
29729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29730 }
29731 arg2 = static_cast< long >(val2);
29732 {
29733 PyThreadState* __tstate = wxPyBeginAllowThreads();
29734 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29735 wxPyEndAllowThreads(__tstate);
29736 if (PyErr_Occurred()) SWIG_fail;
29737 }
29738 {
29739#if wxUSE_UNICODE
29740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29741#else
29742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29743#endif
29744 }
29745 return resultobj;
29746fail:
29747 return NULL;
29748}
29749
29750
29751SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29752 PyObject *resultobj = 0;
29753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29754 long arg2 ;
29755 wxString *arg3 = 0 ;
29756 void *argp1 = 0 ;
29757 int res1 = 0 ;
29758 long val2 ;
29759 int ecode2 = 0 ;
29760 bool temp3 = false ;
29761 PyObject * obj0 = 0 ;
29762 PyObject * obj1 = 0 ;
29763 PyObject * obj2 = 0 ;
29764 char * kwnames[] = {
29765 (char *) "self",(char *) "item",(char *) "str", NULL
29766 };
29767
29768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29770 if (!SWIG_IsOK(res1)) {
29771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29772 }
29773 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29774 ecode2 = SWIG_AsVal_long(obj1, &val2);
29775 if (!SWIG_IsOK(ecode2)) {
29776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29777 }
29778 arg2 = static_cast< long >(val2);
29779 {
29780 arg3 = wxString_in_helper(obj2);
29781 if (arg3 == NULL) SWIG_fail;
29782 temp3 = true;
29783 }
29784 {
29785 PyThreadState* __tstate = wxPyBeginAllowThreads();
29786 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29787 wxPyEndAllowThreads(__tstate);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
29790 resultobj = SWIG_Py_Void();
29791 {
29792 if (temp3)
29793 delete arg3;
29794 }
29795 return resultobj;
29796fail:
29797 {
29798 if (temp3)
29799 delete arg3;
29800 }
29801 return NULL;
29802}
29803
29804
29805SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29806 PyObject *resultobj = 0;
29807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29808 long arg2 ;
29809 long result;
29810 void *argp1 = 0 ;
29811 int res1 = 0 ;
29812 long val2 ;
29813 int ecode2 = 0 ;
29814 PyObject * obj0 = 0 ;
29815 PyObject * obj1 = 0 ;
29816 char * kwnames[] = {
29817 (char *) "self",(char *) "item", NULL
29818 };
29819
29820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29822 if (!SWIG_IsOK(res1)) {
29823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29824 }
29825 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29826 ecode2 = SWIG_AsVal_long(obj1, &val2);
29827 if (!SWIG_IsOK(ecode2)) {
29828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29829 }
29830 arg2 = static_cast< long >(val2);
29831 {
29832 PyThreadState* __tstate = wxPyBeginAllowThreads();
29833 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29834 wxPyEndAllowThreads(__tstate);
29835 if (PyErr_Occurred()) SWIG_fail;
29836 }
29837 resultobj = SWIG_From_long(static_cast< long >(result));
29838 return resultobj;
29839fail:
29840 return NULL;
29841}
29842
29843
29844SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29845 PyObject *resultobj = 0;
29846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29847 long arg2 ;
29848 long arg3 ;
29849 bool result;
29850 void *argp1 = 0 ;
29851 int res1 = 0 ;
29852 long val2 ;
29853 int ecode2 = 0 ;
29854 long val3 ;
29855 int ecode3 = 0 ;
29856 PyObject * obj0 = 0 ;
29857 PyObject * obj1 = 0 ;
29858 PyObject * obj2 = 0 ;
29859 char * kwnames[] = {
29860 (char *) "self",(char *) "item",(char *) "data", NULL
29861 };
29862
29863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29865 if (!SWIG_IsOK(res1)) {
29866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29867 }
29868 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29869 ecode2 = SWIG_AsVal_long(obj1, &val2);
29870 if (!SWIG_IsOK(ecode2)) {
29871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29872 }
29873 arg2 = static_cast< long >(val2);
29874 ecode3 = SWIG_AsVal_long(obj2, &val3);
29875 if (!SWIG_IsOK(ecode3)) {
29876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29877 }
29878 arg3 = static_cast< long >(val3);
29879 {
29880 PyThreadState* __tstate = wxPyBeginAllowThreads();
29881 result = (bool)(arg1)->SetItemData(arg2,arg3);
29882 wxPyEndAllowThreads(__tstate);
29883 if (PyErr_Occurred()) SWIG_fail;
29884 }
29885 {
29886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29887 }
29888 return resultobj;
29889fail:
29890 return NULL;
29891}
29892
29893
29894SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29895 PyObject *resultobj = 0;
29896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29897 long arg2 ;
29898 wxPoint result;
29899 void *argp1 = 0 ;
29900 int res1 = 0 ;
29901 long val2 ;
29902 int ecode2 = 0 ;
29903 PyObject * obj0 = 0 ;
29904 PyObject * obj1 = 0 ;
29905 char * kwnames[] = {
29906 (char *) "self",(char *) "item", NULL
29907 };
29908
29909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29911 if (!SWIG_IsOK(res1)) {
29912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29913 }
29914 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29915 ecode2 = SWIG_AsVal_long(obj1, &val2);
29916 if (!SWIG_IsOK(ecode2)) {
29917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29918 }
29919 arg2 = static_cast< long >(val2);
29920 {
29921 PyThreadState* __tstate = wxPyBeginAllowThreads();
29922 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29923 wxPyEndAllowThreads(__tstate);
29924 if (PyErr_Occurred()) SWIG_fail;
29925 }
29926 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29927 return resultobj;
29928fail:
29929 return NULL;
29930}
29931
29932
29933SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29934 PyObject *resultobj = 0;
29935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29936 long arg2 ;
29937 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29938 wxRect result;
29939 void *argp1 = 0 ;
29940 int res1 = 0 ;
29941 long val2 ;
29942 int ecode2 = 0 ;
29943 int val3 ;
29944 int ecode3 = 0 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 char * kwnames[] = {
29949 (char *) "self",(char *) "item",(char *) "code", NULL
29950 };
29951
29952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29954 if (!SWIG_IsOK(res1)) {
29955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29956 }
29957 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29958 ecode2 = SWIG_AsVal_long(obj1, &val2);
29959 if (!SWIG_IsOK(ecode2)) {
29960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29961 }
29962 arg2 = static_cast< long >(val2);
29963 if (obj2) {
29964 ecode3 = SWIG_AsVal_int(obj2, &val3);
29965 if (!SWIG_IsOK(ecode3)) {
29966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29967 }
29968 arg3 = static_cast< int >(val3);
29969 }
29970 {
29971 PyThreadState* __tstate = wxPyBeginAllowThreads();
29972 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29973 wxPyEndAllowThreads(__tstate);
29974 if (PyErr_Occurred()) SWIG_fail;
29975 }
29976 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29977 return resultobj;
29978fail:
29979 return NULL;
29980}
29981
29982
29983SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29984 PyObject *resultobj = 0;
29985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29986 long arg2 ;
29987 wxPoint *arg3 = 0 ;
29988 bool result;
29989 void *argp1 = 0 ;
29990 int res1 = 0 ;
29991 long val2 ;
29992 int ecode2 = 0 ;
29993 wxPoint temp3 ;
29994 PyObject * obj0 = 0 ;
29995 PyObject * obj1 = 0 ;
29996 PyObject * obj2 = 0 ;
29997 char * kwnames[] = {
29998 (char *) "self",(char *) "item",(char *) "pos", NULL
29999 };
30000
30001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30003 if (!SWIG_IsOK(res1)) {
30004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30005 }
30006 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30007 ecode2 = SWIG_AsVal_long(obj1, &val2);
30008 if (!SWIG_IsOK(ecode2)) {
30009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30010 }
30011 arg2 = static_cast< long >(val2);
30012 {
30013 arg3 = &temp3;
30014 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30015 }
30016 {
30017 PyThreadState* __tstate = wxPyBeginAllowThreads();
30018 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30019 wxPyEndAllowThreads(__tstate);
30020 if (PyErr_Occurred()) SWIG_fail;
30021 }
30022 {
30023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30024 }
30025 return resultobj;
30026fail:
30027 return NULL;
7e08d4ef
RD
30028}
30029
30030
1bd55598
RD
30031SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30032 PyObject *resultobj = 0;
30033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30034 int result;
30035 void *argp1 = 0 ;
30036 int res1 = 0 ;
30037 PyObject *swig_obj[1] ;
30038
30039 if (!args) SWIG_fail;
30040 swig_obj[0] = args;
30041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30042 if (!SWIG_IsOK(res1)) {
30043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30044 }
30045 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30046 {
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30049 wxPyEndAllowThreads(__tstate);
30050 if (PyErr_Occurred()) SWIG_fail;
30051 }
30052 resultobj = SWIG_From_int(static_cast< int >(result));
30053 return resultobj;
30054fail:
30055 return NULL;
7e08d4ef
RD
30056}
30057
30058
1bd55598
RD
30059SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30060 PyObject *resultobj = 0;
30061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30062 int result;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 PyObject *swig_obj[1] ;
30066
30067 if (!args) SWIG_fail;
30068 swig_obj[0] = args;
30069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30072 }
30073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30074 {
30075 PyThreadState* __tstate = wxPyBeginAllowThreads();
30076 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30077 wxPyEndAllowThreads(__tstate);
30078 if (PyErr_Occurred()) SWIG_fail;
30079 }
30080 resultobj = SWIG_From_int(static_cast< int >(result));
30081 return resultobj;
30082fail:
30083 return NULL;
7e08d4ef
RD
30084}
30085
30086
1bd55598
RD
30087SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30088 PyObject *resultobj = 0;
30089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30090 wxSize result;
30091 void *argp1 = 0 ;
30092 int res1 = 0 ;
30093 PyObject *swig_obj[1] ;
30094
30095 if (!args) SWIG_fail;
30096 swig_obj[0] = args;
30097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30098 if (!SWIG_IsOK(res1)) {
30099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30100 }
30101 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30102 {
30103 PyThreadState* __tstate = wxPyBeginAllowThreads();
30104 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30105 wxPyEndAllowThreads(__tstate);
30106 if (PyErr_Occurred()) SWIG_fail;
30107 }
30108 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30109 return resultobj;
30110fail:
30111 return NULL;
30112}
30113
30114
30115SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30116 PyObject *resultobj = 0;
30117 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30118 int arg2 ;
30119 bool arg3 = (bool) false ;
30120 void *argp1 = 0 ;
30121 int res1 = 0 ;
30122 int val2 ;
30123 int ecode2 = 0 ;
30124 bool val3 ;
30125 int ecode3 = 0 ;
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
30128 PyObject * obj2 = 0 ;
30129 char * kwnames[] = {
30130 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30131 };
30132
30133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30135 if (!SWIG_IsOK(res1)) {
30136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30137 }
30138 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30139 ecode2 = SWIG_AsVal_int(obj1, &val2);
30140 if (!SWIG_IsOK(ecode2)) {
30141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30142 }
30143 arg2 = static_cast< int >(val2);
30144 if (obj2) {
30145 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30146 if (!SWIG_IsOK(ecode3)) {
30147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30148 }
30149 arg3 = static_cast< bool >(val3);
30150 }
30151 {
30152 PyThreadState* __tstate = wxPyBeginAllowThreads();
30153 (arg1)->SetItemSpacing(arg2,arg3);
30154 wxPyEndAllowThreads(__tstate);
30155 if (PyErr_Occurred()) SWIG_fail;
30156 }
30157 resultobj = SWIG_Py_Void();
30158 return resultobj;
30159fail:
30160 return NULL;
7e08d4ef
RD
30161}
30162
30163
1bd55598
RD
30164SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30165 PyObject *resultobj = 0;
30166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30167 int result;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 PyObject *swig_obj[1] ;
30171
30172 if (!args) SWIG_fail;
30173 swig_obj[0] = args;
30174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30175 if (!SWIG_IsOK(res1)) {
30176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30177 }
30178 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_From_int(static_cast< int >(result));
30186 return resultobj;
30187fail:
30188 return NULL;
7e08d4ef
RD
30189}
30190
30191
1bd55598
RD
30192SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30193 PyObject *resultobj = 0;
30194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30195 wxColour result;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 PyObject *swig_obj[1] ;
30199
30200 if (!args) SWIG_fail;
30201 swig_obj[0] = args;
30202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30203 if (!SWIG_IsOK(res1)) {
30204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30205 }
30206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30207 {
30208 PyThreadState* __tstate = wxPyBeginAllowThreads();
30209 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30214 return resultobj;
30215fail:
30216 return NULL;
30217}
30218
30219
30220SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj = 0;
30222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30223 wxColour *arg2 = 0 ;
30224 void *argp1 = 0 ;
30225 int res1 = 0 ;
30226 wxColour temp2 ;
30227 PyObject * obj0 = 0 ;
30228 PyObject * obj1 = 0 ;
30229 char * kwnames[] = {
30230 (char *) "self",(char *) "col", NULL
30231 };
30232
30233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30235 if (!SWIG_IsOK(res1)) {
30236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30237 }
30238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30239 {
30240 arg2 = &temp2;
30241 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30242 }
30243 {
30244 PyThreadState* __tstate = wxPyBeginAllowThreads();
30245 (arg1)->SetTextColour((wxColour const &)*arg2);
30246 wxPyEndAllowThreads(__tstate);
30247 if (PyErr_Occurred()) SWIG_fail;
30248 }
30249 resultobj = SWIG_Py_Void();
30250 return resultobj;
30251fail:
30252 return NULL;
7e08d4ef
RD
30253}
30254
30255
1bd55598
RD
30256SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30257 PyObject *resultobj = 0;
30258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30259 long result;
30260 void *argp1 = 0 ;
30261 int res1 = 0 ;
30262 PyObject *swig_obj[1] ;
30263
30264 if (!args) SWIG_fail;
30265 swig_obj[0] = args;
30266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30267 if (!SWIG_IsOK(res1)) {
30268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30269 }
30270 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30271 {
30272 PyThreadState* __tstate = wxPyBeginAllowThreads();
30273 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30274 wxPyEndAllowThreads(__tstate);
30275 if (PyErr_Occurred()) SWIG_fail;
30276 }
30277 resultobj = SWIG_From_long(static_cast< long >(result));
30278 return resultobj;
30279fail:
30280 return NULL;
30281}
30282
30283
30284SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30285 PyObject *resultobj = 0;
30286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30287 long arg2 ;
30288 bool arg3 = (bool) true ;
30289 void *argp1 = 0 ;
30290 int res1 = 0 ;
30291 long val2 ;
30292 int ecode2 = 0 ;
30293 bool val3 ;
30294 int ecode3 = 0 ;
30295 PyObject * obj0 = 0 ;
30296 PyObject * obj1 = 0 ;
30297 PyObject * obj2 = 0 ;
30298 char * kwnames[] = {
30299 (char *) "self",(char *) "style",(char *) "add", NULL
30300 };
30301
30302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30304 if (!SWIG_IsOK(res1)) {
30305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30306 }
30307 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30308 ecode2 = SWIG_AsVal_long(obj1, &val2);
30309 if (!SWIG_IsOK(ecode2)) {
30310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30311 }
30312 arg2 = static_cast< long >(val2);
30313 if (obj2) {
30314 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30315 if (!SWIG_IsOK(ecode3)) {
30316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30317 }
30318 arg3 = static_cast< bool >(val3);
30319 }
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 (arg1)->SetSingleStyle(arg2,arg3);
30323 wxPyEndAllowThreads(__tstate);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 resultobj = SWIG_Py_Void();
30327 return resultobj;
30328fail:
30329 return NULL;
30330}
30331
30332
30333SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30334 PyObject *resultobj = 0;
30335 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30336 long arg2 ;
30337 int arg3 = (int) wxLIST_NEXT_ALL ;
30338 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30339 long result;
30340 void *argp1 = 0 ;
30341 int res1 = 0 ;
30342 long val2 ;
30343 int ecode2 = 0 ;
30344 int val3 ;
30345 int ecode3 = 0 ;
30346 int val4 ;
30347 int ecode4 = 0 ;
30348 PyObject * obj0 = 0 ;
30349 PyObject * obj1 = 0 ;
30350 PyObject * obj2 = 0 ;
30351 PyObject * obj3 = 0 ;
30352 char * kwnames[] = {
30353 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30354 };
30355
30356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30358 if (!SWIG_IsOK(res1)) {
30359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30360 }
30361 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30362 ecode2 = SWIG_AsVal_long(obj1, &val2);
30363 if (!SWIG_IsOK(ecode2)) {
30364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30365 }
30366 arg2 = static_cast< long >(val2);
30367 if (obj2) {
30368 ecode3 = SWIG_AsVal_int(obj2, &val3);
30369 if (!SWIG_IsOK(ecode3)) {
30370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30371 }
30372 arg3 = static_cast< int >(val3);
30373 }
30374 if (obj3) {
30375 ecode4 = SWIG_AsVal_int(obj3, &val4);
30376 if (!SWIG_IsOK(ecode4)) {
30377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30378 }
30379 arg4 = static_cast< int >(val4);
30380 }
30381 {
30382 PyThreadState* __tstate = wxPyBeginAllowThreads();
30383 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 resultobj = SWIG_From_long(static_cast< long >(result));
30388 return resultobj;
30389fail:
30390 return NULL;
30391}
30392
30393
30394SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30395 PyObject *resultobj = 0;
30396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30397 int arg2 ;
30398 wxImageList *result = 0 ;
30399 void *argp1 = 0 ;
30400 int res1 = 0 ;
30401 int val2 ;
30402 int ecode2 = 0 ;
30403 PyObject * obj0 = 0 ;
30404 PyObject * obj1 = 0 ;
30405 char * kwnames[] = {
30406 (char *) "self",(char *) "which", NULL
30407 };
30408
30409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30411 if (!SWIG_IsOK(res1)) {
30412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30413 }
30414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30415 ecode2 = SWIG_AsVal_int(obj1, &val2);
30416 if (!SWIG_IsOK(ecode2)) {
30417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30418 }
30419 arg2 = static_cast< int >(val2);
30420 {
30421 PyThreadState* __tstate = wxPyBeginAllowThreads();
30422 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30423 wxPyEndAllowThreads(__tstate);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
3ecece7e
RD
30426 {
30427 resultobj = wxPyMake_wxObject(result, (bool)0);
30428 }
1bd55598
RD
30429 return resultobj;
30430fail:
30431 return NULL;
30432}
30433
30434
30435SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30436 PyObject *resultobj = 0;
30437 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30438 wxImageList *arg2 = (wxImageList *) 0 ;
30439 int arg3 ;
30440 void *argp1 = 0 ;
30441 int res1 = 0 ;
30442 void *argp2 = 0 ;
30443 int res2 = 0 ;
30444 int val3 ;
30445 int ecode3 = 0 ;
30446 PyObject * obj0 = 0 ;
30447 PyObject * obj1 = 0 ;
30448 PyObject * obj2 = 0 ;
30449 char * kwnames[] = {
30450 (char *) "self",(char *) "imageList",(char *) "which", NULL
30451 };
30452
30453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30455 if (!SWIG_IsOK(res1)) {
30456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30457 }
30458 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30460 if (!SWIG_IsOK(res2)) {
30461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30462 }
30463 arg2 = reinterpret_cast< wxImageList * >(argp2);
30464 ecode3 = SWIG_AsVal_int(obj2, &val3);
30465 if (!SWIG_IsOK(ecode3)) {
30466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30467 }
30468 arg3 = static_cast< int >(val3);
30469 {
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 (arg1)->SetImageList(arg2,arg3);
30472 wxPyEndAllowThreads(__tstate);
30473 if (PyErr_Occurred()) SWIG_fail;
30474 }
30475 resultobj = SWIG_Py_Void();
30476 return resultobj;
30477fail:
30478 return NULL;
30479}
30480
30481
30482SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30483 PyObject *resultobj = 0;
30484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30485 wxImageList *arg2 = (wxImageList *) 0 ;
30486 int arg3 ;
30487 void *argp1 = 0 ;
30488 int res1 = 0 ;
30489 int res2 = 0 ;
30490 int val3 ;
30491 int ecode3 = 0 ;
30492 PyObject * obj0 = 0 ;
30493 PyObject * obj1 = 0 ;
30494 PyObject * obj2 = 0 ;
30495 char * kwnames[] = {
30496 (char *) "self",(char *) "imageList",(char *) "which", NULL
30497 };
30498
30499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30501 if (!SWIG_IsOK(res1)) {
30502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30503 }
30504 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30505 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30506 if (!SWIG_IsOK(res2)) {
30507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30508 }
30509 ecode3 = SWIG_AsVal_int(obj2, &val3);
30510 if (!SWIG_IsOK(ecode3)) {
30511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30512 }
30513 arg3 = static_cast< int >(val3);
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 (arg1)->AssignImageList(arg2,arg3);
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_Py_Void();
30521 return resultobj;
30522fail:
30523 return NULL;
7e08d4ef
RD
30524}
30525
30526
1bd55598
RD
30527SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30528 PyObject *resultobj = 0;
30529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30530 bool result;
30531 void *argp1 = 0 ;
30532 int res1 = 0 ;
30533 PyObject *swig_obj[1] ;
30534
30535 if (!args) SWIG_fail;
30536 swig_obj[0] = args;
30537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30538 if (!SWIG_IsOK(res1)) {
30539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30540 }
30541 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30545 wxPyEndAllowThreads(__tstate);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 {
30549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30550 }
30551 return resultobj;
30552fail:
30553 return NULL;
44bf767a
RD
30554}
30555
30556
1bd55598
RD
30557SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30558 PyObject *resultobj = 0;
30559 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30560 bool result;
30561 void *argp1 = 0 ;
30562 int res1 = 0 ;
30563 PyObject *swig_obj[1] ;
30564
30565 if (!args) SWIG_fail;
30566 swig_obj[0] = args;
30567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30570 }
30571 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30575 wxPyEndAllowThreads(__tstate);
30576 if (PyErr_Occurred()) SWIG_fail;
30577 }
30578 {
30579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30580 }
30581 return resultobj;
30582fail:
30583 return NULL;
30584}
30585
30586
30587SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30588 PyObject *resultobj = 0;
30589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30590 long arg2 ;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 long val2 ;
30594 int ecode2 = 0 ;
30595 PyObject * obj0 = 0 ;
30596 PyObject * obj1 = 0 ;
30597 char * kwnames[] = {
30598 (char *) "self",(char *) "item", NULL
30599 };
30600
30601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30603 if (!SWIG_IsOK(res1)) {
30604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30605 }
30606 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30607 ecode2 = SWIG_AsVal_long(obj1, &val2);
30608 if (!SWIG_IsOK(ecode2)) {
30609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30610 }
30611 arg2 = static_cast< long >(val2);
30612 {
30613 PyThreadState* __tstate = wxPyBeginAllowThreads();
30614 (arg1)->RefreshItem(arg2);
30615 wxPyEndAllowThreads(__tstate);
30616 if (PyErr_Occurred()) SWIG_fail;
30617 }
30618 resultobj = SWIG_Py_Void();
30619 return resultobj;
30620fail:
30621 return NULL;
30622}
30623
30624
30625SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30626 PyObject *resultobj = 0;
30627 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30628 long arg2 ;
30629 long arg3 ;
30630 void *argp1 = 0 ;
30631 int res1 = 0 ;
30632 long val2 ;
30633 int ecode2 = 0 ;
30634 long val3 ;
30635 int ecode3 = 0 ;
30636 PyObject * obj0 = 0 ;
30637 PyObject * obj1 = 0 ;
30638 PyObject * obj2 = 0 ;
30639 char * kwnames[] = {
30640 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30641 };
30642
30643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30645 if (!SWIG_IsOK(res1)) {
30646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30647 }
30648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30649 ecode2 = SWIG_AsVal_long(obj1, &val2);
30650 if (!SWIG_IsOK(ecode2)) {
30651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30652 }
30653 arg2 = static_cast< long >(val2);
30654 ecode3 = SWIG_AsVal_long(obj2, &val3);
30655 if (!SWIG_IsOK(ecode3)) {
30656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30657 }
30658 arg3 = static_cast< long >(val3);
30659 {
30660 PyThreadState* __tstate = wxPyBeginAllowThreads();
30661 (arg1)->RefreshItems(arg2,arg3);
30662 wxPyEndAllowThreads(__tstate);
30663 if (PyErr_Occurred()) SWIG_fail;
30664 }
30665 resultobj = SWIG_Py_Void();
30666 return resultobj;
30667fail:
30668 return NULL;
30669}
30670
30671
30672SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30673 PyObject *resultobj = 0;
30674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30675 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30676 bool result;
30677 void *argp1 = 0 ;
30678 int res1 = 0 ;
30679 int val2 ;
30680 int ecode2 = 0 ;
30681 PyObject * obj0 = 0 ;
30682 PyObject * obj1 = 0 ;
30683 char * kwnames[] = {
30684 (char *) "self",(char *) "flag", NULL
30685 };
30686
30687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30689 if (!SWIG_IsOK(res1)) {
30690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30691 }
30692 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30693 if (obj1) {
30694 ecode2 = SWIG_AsVal_int(obj1, &val2);
30695 if (!SWIG_IsOK(ecode2)) {
30696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30697 }
30698 arg2 = static_cast< int >(val2);
30699 }
30700 {
30701 PyThreadState* __tstate = wxPyBeginAllowThreads();
30702 result = (bool)(arg1)->Arrange(arg2);
30703 wxPyEndAllowThreads(__tstate);
30704 if (PyErr_Occurred()) SWIG_fail;
30705 }
30706 {
30707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30708 }
30709 return resultobj;
30710fail:
30711 return NULL;
30712}
30713
30714
30715SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30716 PyObject *resultobj = 0;
30717 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30718 long arg2 ;
30719 bool result;
30720 void *argp1 = 0 ;
30721 int res1 = 0 ;
30722 long val2 ;
30723 int ecode2 = 0 ;
30724 PyObject * obj0 = 0 ;
30725 PyObject * obj1 = 0 ;
30726 char * kwnames[] = {
30727 (char *) "self",(char *) "item", NULL
30728 };
30729
30730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30732 if (!SWIG_IsOK(res1)) {
30733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30734 }
30735 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30736 ecode2 = SWIG_AsVal_long(obj1, &val2);
30737 if (!SWIG_IsOK(ecode2)) {
30738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30739 }
30740 arg2 = static_cast< long >(val2);
30741 {
30742 PyThreadState* __tstate = wxPyBeginAllowThreads();
30743 result = (bool)(arg1)->DeleteItem(arg2);
30744 wxPyEndAllowThreads(__tstate);
30745 if (PyErr_Occurred()) SWIG_fail;
30746 }
30747 {
30748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30749 }
30750 return resultobj;
30751fail:
30752 return NULL;
d55e5bfc
RD
30753}
30754
30755
1bd55598
RD
30756SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30757 PyObject *resultobj = 0;
30758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30759 bool result;
30760 void *argp1 = 0 ;
30761 int res1 = 0 ;
30762 PyObject *swig_obj[1] ;
30763
30764 if (!args) SWIG_fail;
30765 swig_obj[0] = args;
30766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30767 if (!SWIG_IsOK(res1)) {
30768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30769 }
30770 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30771 {
30772 PyThreadState* __tstate = wxPyBeginAllowThreads();
30773 result = (bool)(arg1)->DeleteAllItems();
30774 wxPyEndAllowThreads(__tstate);
30775 if (PyErr_Occurred()) SWIG_fail;
30776 }
30777 {
30778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30779 }
30780 return resultobj;
30781fail:
30782 return NULL;
30783}
30784
30785
30786SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30787 PyObject *resultobj = 0;
30788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30789 int arg2 ;
30790 bool result;
30791 void *argp1 = 0 ;
30792 int res1 = 0 ;
30793 int val2 ;
30794 int ecode2 = 0 ;
30795 PyObject * obj0 = 0 ;
30796 PyObject * obj1 = 0 ;
30797 char * kwnames[] = {
30798 (char *) "self",(char *) "col", NULL
30799 };
30800
30801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30803 if (!SWIG_IsOK(res1)) {
30804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30805 }
30806 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30807 ecode2 = SWIG_AsVal_int(obj1, &val2);
30808 if (!SWIG_IsOK(ecode2)) {
30809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30810 }
30811 arg2 = static_cast< int >(val2);
30812 {
30813 PyThreadState* __tstate = wxPyBeginAllowThreads();
30814 result = (bool)(arg1)->DeleteColumn(arg2);
30815 wxPyEndAllowThreads(__tstate);
30816 if (PyErr_Occurred()) SWIG_fail;
30817 }
30818 {
30819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30820 }
30821 return resultobj;
30822fail:
30823 return NULL;
b411df4a
RD
30824}
30825
30826
1bd55598
RD
30827SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30828 PyObject *resultobj = 0;
30829 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30830 bool result;
30831 void *argp1 = 0 ;
30832 int res1 = 0 ;
30833 PyObject *swig_obj[1] ;
30834
30835 if (!args) SWIG_fail;
30836 swig_obj[0] = args;
30837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30838 if (!SWIG_IsOK(res1)) {
30839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30840 }
30841 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30842 {
30843 PyThreadState* __tstate = wxPyBeginAllowThreads();
30844 result = (bool)(arg1)->DeleteAllColumns();
30845 wxPyEndAllowThreads(__tstate);
30846 if (PyErr_Occurred()) SWIG_fail;
30847 }
30848 {
30849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30850 }
30851 return resultobj;
30852fail:
30853 return NULL;
b411df4a
RD
30854}
30855
30856
1bd55598
RD
30857SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30858 PyObject *resultobj = 0;
30859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30860 void *argp1 = 0 ;
30861 int res1 = 0 ;
30862 PyObject *swig_obj[1] ;
30863
30864 if (!args) SWIG_fail;
30865 swig_obj[0] = args;
30866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30867 if (!SWIG_IsOK(res1)) {
30868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30869 }
30870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30871 {
30872 PyThreadState* __tstate = wxPyBeginAllowThreads();
30873 (arg1)->ClearAll();
30874 wxPyEndAllowThreads(__tstate);
30875 if (PyErr_Occurred()) SWIG_fail;
30876 }
30877 resultobj = SWIG_Py_Void();
30878 return resultobj;
30879fail:
30880 return NULL;
30881}
30882
30883
30884SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30885 PyObject *resultobj = 0;
30886 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30887 long arg2 ;
30888 void *argp1 = 0 ;
30889 int res1 = 0 ;
30890 long val2 ;
30891 int ecode2 = 0 ;
30892 PyObject * obj0 = 0 ;
30893 PyObject * obj1 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "item", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30904 ecode2 = SWIG_AsVal_long(obj1, &val2);
30905 if (!SWIG_IsOK(ecode2)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30907 }
30908 arg2 = static_cast< long >(val2);
30909 {
30910 PyThreadState* __tstate = wxPyBeginAllowThreads();
30911 (arg1)->EditLabel(arg2);
30912 wxPyEndAllowThreads(__tstate);
30913 if (PyErr_Occurred()) SWIG_fail;
30914 }
30915 resultobj = SWIG_Py_Void();
30916 return resultobj;
30917fail:
30918 return NULL;
30919}
30920
30921
30922SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30923 PyObject *resultobj = 0;
30924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30925 long arg2 ;
30926 bool result;
30927 void *argp1 = 0 ;
30928 int res1 = 0 ;
30929 long val2 ;
30930 int ecode2 = 0 ;
30931 PyObject * obj0 = 0 ;
30932 PyObject * obj1 = 0 ;
30933 char * kwnames[] = {
30934 (char *) "self",(char *) "item", NULL
30935 };
30936
30937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30939 if (!SWIG_IsOK(res1)) {
30940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30941 }
30942 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30943 ecode2 = SWIG_AsVal_long(obj1, &val2);
30944 if (!SWIG_IsOK(ecode2)) {
30945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30946 }
30947 arg2 = static_cast< long >(val2);
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (bool)(arg1)->EnsureVisible(arg2);
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 {
30955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30956 }
30957 return resultobj;
30958fail:
30959 return NULL;
30960}
30961
30962
30963SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30964 PyObject *resultobj = 0;
30965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30966 long arg2 ;
30967 wxString *arg3 = 0 ;
30968 bool arg4 = (bool) false ;
30969 long result;
30970 void *argp1 = 0 ;
30971 int res1 = 0 ;
30972 long val2 ;
30973 int ecode2 = 0 ;
30974 bool temp3 = false ;
30975 bool val4 ;
30976 int ecode4 = 0 ;
30977 PyObject * obj0 = 0 ;
30978 PyObject * obj1 = 0 ;
30979 PyObject * obj2 = 0 ;
30980 PyObject * obj3 = 0 ;
30981 char * kwnames[] = {
30982 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30983 };
30984
30985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30987 if (!SWIG_IsOK(res1)) {
30988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30989 }
30990 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30991 ecode2 = SWIG_AsVal_long(obj1, &val2);
30992 if (!SWIG_IsOK(ecode2)) {
30993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30994 }
30995 arg2 = static_cast< long >(val2);
30996 {
30997 arg3 = wxString_in_helper(obj2);
30998 if (arg3 == NULL) SWIG_fail;
30999 temp3 = true;
31000 }
31001 if (obj3) {
31002 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31003 if (!SWIG_IsOK(ecode4)) {
31004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31005 }
31006 arg4 = static_cast< bool >(val4);
31007 }
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 resultobj = SWIG_From_long(static_cast< long >(result));
31015 {
31016 if (temp3)
31017 delete arg3;
31018 }
31019 return resultobj;
31020fail:
31021 {
31022 if (temp3)
31023 delete arg3;
31024 }
31025 return NULL;
31026}
31027
31028
31029SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31030 PyObject *resultobj = 0;
31031 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31032 long arg2 ;
31033 long arg3 ;
31034 long result;
31035 void *argp1 = 0 ;
31036 int res1 = 0 ;
31037 long val2 ;
31038 int ecode2 = 0 ;
31039 long val3 ;
31040 int ecode3 = 0 ;
31041 PyObject * obj0 = 0 ;
31042 PyObject * obj1 = 0 ;
31043 PyObject * obj2 = 0 ;
31044 char * kwnames[] = {
31045 (char *) "self",(char *) "start",(char *) "data", NULL
31046 };
31047
31048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31050 if (!SWIG_IsOK(res1)) {
31051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31052 }
31053 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31054 ecode2 = SWIG_AsVal_long(obj1, &val2);
31055 if (!SWIG_IsOK(ecode2)) {
31056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31057 }
31058 arg2 = static_cast< long >(val2);
31059 ecode3 = SWIG_AsVal_long(obj2, &val3);
31060 if (!SWIG_IsOK(ecode3)) {
31061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31062 }
31063 arg3 = static_cast< long >(val3);
31064 {
31065 PyThreadState* __tstate = wxPyBeginAllowThreads();
31066 result = (long)(arg1)->FindItem(arg2,arg3);
31067 wxPyEndAllowThreads(__tstate);
31068 if (PyErr_Occurred()) SWIG_fail;
31069 }
31070 resultobj = SWIG_From_long(static_cast< long >(result));
31071 return resultobj;
31072fail:
31073 return NULL;
31074}
31075
31076
31077SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31078 PyObject *resultobj = 0;
31079 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31080 long arg2 ;
31081 wxPoint *arg3 = 0 ;
31082 int arg4 ;
31083 long result;
31084 void *argp1 = 0 ;
31085 int res1 = 0 ;
31086 long val2 ;
31087 int ecode2 = 0 ;
31088 wxPoint temp3 ;
31089 int val4 ;
31090 int ecode4 = 0 ;
31091 PyObject * obj0 = 0 ;
31092 PyObject * obj1 = 0 ;
31093 PyObject * obj2 = 0 ;
31094 PyObject * obj3 = 0 ;
31095 char * kwnames[] = {
31096 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31097 };
31098
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31103 }
31104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31105 ecode2 = SWIG_AsVal_long(obj1, &val2);
31106 if (!SWIG_IsOK(ecode2)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31108 }
31109 arg2 = static_cast< long >(val2);
31110 {
31111 arg3 = &temp3;
31112 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31113 }
31114 ecode4 = SWIG_AsVal_int(obj3, &val4);
31115 if (!SWIG_IsOK(ecode4)) {
31116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31117 }
31118 arg4 = static_cast< int >(val4);
31119 {
31120 PyThreadState* __tstate = wxPyBeginAllowThreads();
31121 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31122 wxPyEndAllowThreads(__tstate);
31123 if (PyErr_Occurred()) SWIG_fail;
31124 }
31125 resultobj = SWIG_From_long(static_cast< long >(result));
31126 return resultobj;
31127fail:
31128 return NULL;
31129}
31130
31131
31132SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31133 PyObject *resultobj = 0;
31134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31135 wxPoint *arg2 = 0 ;
31136 int *arg3 = 0 ;
31137 long result;
31138 void *argp1 = 0 ;
31139 int res1 = 0 ;
31140 wxPoint temp2 ;
31141 int temp3 ;
31142 int res3 = SWIG_TMPOBJ ;
31143 PyObject * obj0 = 0 ;
31144 PyObject * obj1 = 0 ;
31145 char * kwnames[] = {
31146 (char *) "self",(char *) "point", NULL
31147 };
31148
31149 arg3 = &temp3;
31150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31152 if (!SWIG_IsOK(res1)) {
31153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31154 }
31155 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31156 {
31157 arg2 = &temp2;
31158 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31159 }
31160 {
31161 PyThreadState* __tstate = wxPyBeginAllowThreads();
31162 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31163 wxPyEndAllowThreads(__tstate);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
31166 resultobj = SWIG_From_long(static_cast< long >(result));
31167 if (SWIG_IsTmpObj(res3)) {
31168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31169 } else {
31170 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31172 }
31173 return resultobj;
31174fail:
31175 return NULL;
31176}
31177
31178
704eda0c
RD
31179SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31180 PyObject *resultobj = 0;
31181 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31182 wxPoint *arg2 = 0 ;
31183 int *arg3 = 0 ;
31184 long *arg4 = (long *) 0 ;
31185 long result;
31186 void *argp1 = 0 ;
31187 int res1 = 0 ;
31188 wxPoint temp2 ;
31189 int temp3 ;
31190 int res3 = SWIG_TMPOBJ ;
31191 long temp4 ;
31192 int res4 = SWIG_TMPOBJ ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 char * kwnames[] = {
31196 (char *) "self",(char *) "point", NULL
31197 };
31198
31199 arg3 = &temp3;
31200 arg4 = &temp4;
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31205 }
31206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31207 {
31208 arg2 = &temp2;
31209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31210 }
31211 {
31212 PyThreadState* __tstate = wxPyBeginAllowThreads();
31213 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31214 wxPyEndAllowThreads(__tstate);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_From_long(static_cast< long >(result));
31218 if (SWIG_IsTmpObj(res3)) {
31219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31220 } else {
31221 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31223 }
31224 if (SWIG_IsTmpObj(res4)) {
31225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31226 } else {
31227 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31229 }
31230 return resultobj;
31231fail:
31232 return NULL;
31233}
31234
31235
1bd55598
RD
31236SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31237 PyObject *resultobj = 0;
31238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31239 wxListItem *arg2 = 0 ;
31240 long result;
31241 void *argp1 = 0 ;
31242 int res1 = 0 ;
31243 void *argp2 = 0 ;
31244 int res2 = 0 ;
31245 PyObject * obj0 = 0 ;
31246 PyObject * obj1 = 0 ;
31247 char * kwnames[] = {
31248 (char *) "self",(char *) "info", NULL
31249 };
31250
31251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31253 if (!SWIG_IsOK(res1)) {
31254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31255 }
31256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31258 if (!SWIG_IsOK(res2)) {
31259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31260 }
31261 if (!argp2) {
31262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31263 }
31264 arg2 = reinterpret_cast< wxListItem * >(argp2);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (long)(arg1)->InsertItem(*arg2);
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 resultobj = SWIG_From_long(static_cast< long >(result));
31272 return resultobj;
31273fail:
31274 return NULL;
31275}
31276
31277
31278SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31279 PyObject *resultobj = 0;
31280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31281 long arg2 ;
31282 wxString *arg3 = 0 ;
31283 int arg4 = (int) -1 ;
31284 long result;
31285 void *argp1 = 0 ;
31286 int res1 = 0 ;
31287 long val2 ;
31288 int ecode2 = 0 ;
31289 bool temp3 = false ;
31290 int val4 ;
31291 int ecode4 = 0 ;
31292 PyObject * obj0 = 0 ;
31293 PyObject * obj1 = 0 ;
31294 PyObject * obj2 = 0 ;
31295 PyObject * obj3 = 0 ;
31296 char * kwnames[] = {
31297 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31298 };
31299
31300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31302 if (!SWIG_IsOK(res1)) {
31303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31304 }
31305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31306 ecode2 = SWIG_AsVal_long(obj1, &val2);
31307 if (!SWIG_IsOK(ecode2)) {
31308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31309 }
31310 arg2 = static_cast< long >(val2);
31311 {
31312 arg3 = wxString_in_helper(obj2);
31313 if (arg3 == NULL) SWIG_fail;
31314 temp3 = true;
31315 }
31316 if (obj3) {
31317 ecode4 = SWIG_AsVal_int(obj3, &val4);
31318 if (!SWIG_IsOK(ecode4)) {
31319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31320 }
31321 arg4 = static_cast< int >(val4);
31322 }
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 resultobj = SWIG_From_long(static_cast< long >(result));
31330 {
31331 if (temp3)
31332 delete arg3;
31333 }
31334 return resultobj;
31335fail:
31336 {
31337 if (temp3)
31338 delete arg3;
31339 }
31340 return NULL;
31341}
31342
31343
31344SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31345 PyObject *resultobj = 0;
31346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31347 long arg2 ;
31348 int arg3 ;
31349 long result;
31350 void *argp1 = 0 ;
31351 int res1 = 0 ;
31352 long val2 ;
31353 int ecode2 = 0 ;
31354 int val3 ;
31355 int ecode3 = 0 ;
31356 PyObject * obj0 = 0 ;
31357 PyObject * obj1 = 0 ;
31358 PyObject * obj2 = 0 ;
31359 char * kwnames[] = {
31360 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31361 };
31362
31363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31365 if (!SWIG_IsOK(res1)) {
31366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31367 }
31368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31369 ecode2 = SWIG_AsVal_long(obj1, &val2);
31370 if (!SWIG_IsOK(ecode2)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31372 }
31373 arg2 = static_cast< long >(val2);
31374 ecode3 = SWIG_AsVal_int(obj2, &val3);
31375 if (!SWIG_IsOK(ecode3)) {
31376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31377 }
31378 arg3 = static_cast< int >(val3);
31379 {
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 result = (long)(arg1)->InsertItem(arg2,arg3);
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 resultobj = SWIG_From_long(static_cast< long >(result));
31386 return resultobj;
31387fail:
31388 return NULL;
31389}
31390
31391
31392SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31393 PyObject *resultobj = 0;
31394 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31395 long arg2 ;
31396 wxString *arg3 = 0 ;
31397 int arg4 ;
31398 long result;
31399 void *argp1 = 0 ;
31400 int res1 = 0 ;
31401 long val2 ;
31402 int ecode2 = 0 ;
31403 bool temp3 = false ;
31404 int val4 ;
31405 int ecode4 = 0 ;
31406 PyObject * obj0 = 0 ;
31407 PyObject * obj1 = 0 ;
31408 PyObject * obj2 = 0 ;
31409 PyObject * obj3 = 0 ;
31410 char * kwnames[] = {
31411 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31412 };
31413
31414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31416 if (!SWIG_IsOK(res1)) {
31417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31418 }
31419 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31420 ecode2 = SWIG_AsVal_long(obj1, &val2);
31421 if (!SWIG_IsOK(ecode2)) {
31422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31423 }
31424 arg2 = static_cast< long >(val2);
31425 {
31426 arg3 = wxString_in_helper(obj2);
31427 if (arg3 == NULL) SWIG_fail;
31428 temp3 = true;
31429 }
31430 ecode4 = SWIG_AsVal_int(obj3, &val4);
31431 if (!SWIG_IsOK(ecode4)) {
31432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31433 }
31434 arg4 = static_cast< int >(val4);
31435 {
31436 PyThreadState* __tstate = wxPyBeginAllowThreads();
31437 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31438 wxPyEndAllowThreads(__tstate);
31439 if (PyErr_Occurred()) SWIG_fail;
31440 }
31441 resultobj = SWIG_From_long(static_cast< long >(result));
31442 {
31443 if (temp3)
31444 delete arg3;
31445 }
31446 return resultobj;
31447fail:
31448 {
31449 if (temp3)
31450 delete arg3;
31451 }
31452 return NULL;
31453}
31454
31455
31456SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31457 PyObject *resultobj = 0;
31458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31459 long arg2 ;
31460 wxListItem *arg3 = 0 ;
31461 long result;
31462 void *argp1 = 0 ;
31463 int res1 = 0 ;
31464 long val2 ;
31465 int ecode2 = 0 ;
31466 void *argp3 = 0 ;
31467 int res3 = 0 ;
31468 PyObject * obj0 = 0 ;
31469 PyObject * obj1 = 0 ;
31470 PyObject * obj2 = 0 ;
31471 char * kwnames[] = {
31472 (char *) "self",(char *) "col",(char *) "info", NULL
31473 };
31474
31475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31477 if (!SWIG_IsOK(res1)) {
31478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31479 }
31480 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31481 ecode2 = SWIG_AsVal_long(obj1, &val2);
31482 if (!SWIG_IsOK(ecode2)) {
31483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31484 }
31485 arg2 = static_cast< long >(val2);
31486 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31487 if (!SWIG_IsOK(res3)) {
31488 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31489 }
31490 if (!argp3) {
31491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31492 }
31493 arg3 = reinterpret_cast< wxListItem * >(argp3);
31494 {
31495 PyThreadState* __tstate = wxPyBeginAllowThreads();
31496 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31497 wxPyEndAllowThreads(__tstate);
31498 if (PyErr_Occurred()) SWIG_fail;
31499 }
31500 resultobj = SWIG_From_long(static_cast< long >(result));
31501 return resultobj;
31502fail:
31503 return NULL;
31504}
31505
31506
31507SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31508 PyObject *resultobj = 0;
31509 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31510 long arg2 ;
31511 wxString *arg3 = 0 ;
31512 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31513 int arg5 = (int) -1 ;
31514 long result;
31515 void *argp1 = 0 ;
31516 int res1 = 0 ;
31517 long val2 ;
31518 int ecode2 = 0 ;
31519 bool temp3 = false ;
31520 int val4 ;
31521 int ecode4 = 0 ;
31522 int val5 ;
31523 int ecode5 = 0 ;
31524 PyObject * obj0 = 0 ;
31525 PyObject * obj1 = 0 ;
31526 PyObject * obj2 = 0 ;
31527 PyObject * obj3 = 0 ;
31528 PyObject * obj4 = 0 ;
31529 char * kwnames[] = {
31530 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31531 };
31532
31533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31535 if (!SWIG_IsOK(res1)) {
31536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31537 }
31538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31539 ecode2 = SWIG_AsVal_long(obj1, &val2);
31540 if (!SWIG_IsOK(ecode2)) {
31541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31542 }
31543 arg2 = static_cast< long >(val2);
31544 {
31545 arg3 = wxString_in_helper(obj2);
31546 if (arg3 == NULL) SWIG_fail;
31547 temp3 = true;
31548 }
31549 if (obj3) {
31550 ecode4 = SWIG_AsVal_int(obj3, &val4);
31551 if (!SWIG_IsOK(ecode4)) {
31552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31553 }
31554 arg4 = static_cast< int >(val4);
31555 }
31556 if (obj4) {
31557 ecode5 = SWIG_AsVal_int(obj4, &val5);
31558 if (!SWIG_IsOK(ecode5)) {
31559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31560 }
31561 arg5 = static_cast< int >(val5);
31562 }
31563 {
31564 PyThreadState* __tstate = wxPyBeginAllowThreads();
31565 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31566 wxPyEndAllowThreads(__tstate);
31567 if (PyErr_Occurred()) SWIG_fail;
31568 }
31569 resultobj = SWIG_From_long(static_cast< long >(result));
31570 {
31571 if (temp3)
31572 delete arg3;
31573 }
31574 return resultobj;
31575fail:
31576 {
31577 if (temp3)
31578 delete arg3;
31579 }
31580 return NULL;
31581}
31582
31583
31584SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31585 PyObject *resultobj = 0;
31586 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31587 long arg2 ;
31588 void *argp1 = 0 ;
31589 int res1 = 0 ;
31590 long val2 ;
31591 int ecode2 = 0 ;
31592 PyObject * obj0 = 0 ;
31593 PyObject * obj1 = 0 ;
31594 char * kwnames[] = {
31595 (char *) "self",(char *) "count", NULL
31596 };
31597
31598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31600 if (!SWIG_IsOK(res1)) {
31601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31602 }
31603 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31604 ecode2 = SWIG_AsVal_long(obj1, &val2);
31605 if (!SWIG_IsOK(ecode2)) {
31606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31607 }
31608 arg2 = static_cast< long >(val2);
31609 {
31610 PyThreadState* __tstate = wxPyBeginAllowThreads();
31611 (arg1)->SetItemCount(arg2);
31612 wxPyEndAllowThreads(__tstate);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_Py_Void();
31616 return resultobj;
31617fail:
31618 return NULL;
31619}
31620
31621
31622SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31623 PyObject *resultobj = 0;
31624 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31625 int arg2 ;
31626 int arg3 ;
31627 bool result;
31628 void *argp1 = 0 ;
31629 int res1 = 0 ;
31630 int val2 ;
31631 int ecode2 = 0 ;
31632 int val3 ;
31633 int ecode3 = 0 ;
31634 PyObject * obj0 = 0 ;
31635 PyObject * obj1 = 0 ;
31636 PyObject * obj2 = 0 ;
31637 char * kwnames[] = {
31638 (char *) "self",(char *) "dx",(char *) "dy", NULL
31639 };
31640
31641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31643 if (!SWIG_IsOK(res1)) {
31644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31645 }
31646 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31647 ecode2 = SWIG_AsVal_int(obj1, &val2);
31648 if (!SWIG_IsOK(ecode2)) {
31649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31650 }
31651 arg2 = static_cast< int >(val2);
31652 ecode3 = SWIG_AsVal_int(obj2, &val3);
31653 if (!SWIG_IsOK(ecode3)) {
31654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31655 }
31656 arg3 = static_cast< int >(val3);
31657 {
31658 PyThreadState* __tstate = wxPyBeginAllowThreads();
31659 result = (bool)(arg1)->ScrollList(arg2,arg3);
31660 wxPyEndAllowThreads(__tstate);
31661 if (PyErr_Occurred()) SWIG_fail;
31662 }
31663 {
31664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31665 }
31666 return resultobj;
31667fail:
31668 return NULL;
31669}
31670
31671
31672SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31675 long arg2 ;
31676 wxColour *arg3 = 0 ;
31677 void *argp1 = 0 ;
31678 int res1 = 0 ;
31679 long val2 ;
31680 int ecode2 = 0 ;
31681 wxColour temp3 ;
31682 PyObject * obj0 = 0 ;
31683 PyObject * obj1 = 0 ;
31684 PyObject * obj2 = 0 ;
31685 char * kwnames[] = {
31686 (char *) "self",(char *) "item",(char *) "col", NULL
31687 };
31688
31689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31691 if (!SWIG_IsOK(res1)) {
31692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31693 }
31694 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31695 ecode2 = SWIG_AsVal_long(obj1, &val2);
31696 if (!SWIG_IsOK(ecode2)) {
31697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31698 }
31699 arg2 = static_cast< long >(val2);
31700 {
31701 arg3 = &temp3;
31702 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31703 }
31704 {
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 resultobj = SWIG_Py_Void();
31711 return resultobj;
31712fail:
31713 return NULL;
31714}
31715
31716
31717SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31718 PyObject *resultobj = 0;
31719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31720 long arg2 ;
31721 wxColour result;
31722 void *argp1 = 0 ;
31723 int res1 = 0 ;
31724 long val2 ;
31725 int ecode2 = 0 ;
31726 PyObject * obj0 = 0 ;
31727 PyObject * obj1 = 0 ;
31728 char * kwnames[] = {
31729 (char *) "self",(char *) "item", NULL
31730 };
31731
31732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31734 if (!SWIG_IsOK(res1)) {
31735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31736 }
31737 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31738 ecode2 = SWIG_AsVal_long(obj1, &val2);
31739 if (!SWIG_IsOK(ecode2)) {
31740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31741 }
31742 arg2 = static_cast< long >(val2);
31743 {
31744 PyThreadState* __tstate = wxPyBeginAllowThreads();
31745 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31746 wxPyEndAllowThreads(__tstate);
31747 if (PyErr_Occurred()) SWIG_fail;
31748 }
31749 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31750 return resultobj;
31751fail:
31752 return NULL;
31753}
31754
31755
31756SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31757 PyObject *resultobj = 0;
31758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31759 long arg2 ;
31760 wxColour *arg3 = 0 ;
31761 void *argp1 = 0 ;
31762 int res1 = 0 ;
31763 long val2 ;
31764 int ecode2 = 0 ;
31765 wxColour temp3 ;
31766 PyObject * obj0 = 0 ;
31767 PyObject * obj1 = 0 ;
31768 PyObject * obj2 = 0 ;
31769 char * kwnames[] = {
31770 (char *) "self",(char *) "item",(char *) "col", NULL
31771 };
31772
31773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31775 if (!SWIG_IsOK(res1)) {
31776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31777 }
31778 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31779 ecode2 = SWIG_AsVal_long(obj1, &val2);
31780 if (!SWIG_IsOK(ecode2)) {
31781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31782 }
31783 arg2 = static_cast< long >(val2);
31784 {
31785 arg3 = &temp3;
31786 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31787 }
31788 {
31789 PyThreadState* __tstate = wxPyBeginAllowThreads();
31790 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31791 wxPyEndAllowThreads(__tstate);
31792 if (PyErr_Occurred()) SWIG_fail;
31793 }
31794 resultobj = SWIG_Py_Void();
31795 return resultobj;
31796fail:
31797 return NULL;
31798}
31799
31800
31801SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31802 PyObject *resultobj = 0;
31803 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31804 long arg2 ;
31805 wxColour result;
31806 void *argp1 = 0 ;
31807 int res1 = 0 ;
31808 long val2 ;
31809 int ecode2 = 0 ;
31810 PyObject * obj0 = 0 ;
31811 PyObject * obj1 = 0 ;
31812 char * kwnames[] = {
31813 (char *) "self",(char *) "item", NULL
31814 };
31815
31816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31818 if (!SWIG_IsOK(res1)) {
31819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31820 }
31821 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31822 ecode2 = SWIG_AsVal_long(obj1, &val2);
31823 if (!SWIG_IsOK(ecode2)) {
31824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31825 }
31826 arg2 = static_cast< long >(val2);
31827 {
31828 PyThreadState* __tstate = wxPyBeginAllowThreads();
31829 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31830 wxPyEndAllowThreads(__tstate);
31831 if (PyErr_Occurred()) SWIG_fail;
31832 }
31833 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31834 return resultobj;
31835fail:
31836 return NULL;
31837}
31838
31839
31840SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31841 PyObject *resultobj = 0;
31842 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31843 long arg2 ;
31844 wxFont *arg3 = 0 ;
31845 void *argp1 = 0 ;
31846 int res1 = 0 ;
31847 long val2 ;
31848 int ecode2 = 0 ;
31849 void *argp3 = 0 ;
31850 int res3 = 0 ;
31851 PyObject * obj0 = 0 ;
31852 PyObject * obj1 = 0 ;
31853 PyObject * obj2 = 0 ;
31854 char * kwnames[] = {
31855 (char *) "self",(char *) "item",(char *) "f", NULL
31856 };
31857
31858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31860 if (!SWIG_IsOK(res1)) {
31861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31862 }
31863 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31864 ecode2 = SWIG_AsVal_long(obj1, &val2);
31865 if (!SWIG_IsOK(ecode2)) {
31866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31867 }
31868 arg2 = static_cast< long >(val2);
31869 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31870 if (!SWIG_IsOK(res3)) {
31871 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31872 }
31873 if (!argp3) {
31874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31875 }
31876 arg3 = reinterpret_cast< wxFont * >(argp3);
31877 {
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 resultobj = SWIG_Py_Void();
31884 return resultobj;
31885fail:
31886 return NULL;
31887}
31888
31889
31890SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31891 PyObject *resultobj = 0;
31892 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31893 long arg2 ;
31894 wxFont result;
31895 void *argp1 = 0 ;
31896 int res1 = 0 ;
31897 long val2 ;
31898 int ecode2 = 0 ;
31899 PyObject * obj0 = 0 ;
31900 PyObject * obj1 = 0 ;
31901 char * kwnames[] = {
31902 (char *) "self",(char *) "item", NULL
31903 };
31904
31905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31907 if (!SWIG_IsOK(res1)) {
31908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31909 }
31910 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31911 ecode2 = SWIG_AsVal_long(obj1, &val2);
31912 if (!SWIG_IsOK(ecode2)) {
31913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31914 }
31915 arg2 = static_cast< long >(val2);
31916 {
31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
31918 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31919 wxPyEndAllowThreads(__tstate);
31920 if (PyErr_Occurred()) SWIG_fail;
31921 }
31922 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31923 return resultobj;
31924fail:
31925 return NULL;
31926}
31927
31928
31929SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31930 PyObject *resultobj = 0;
31931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31932 PyObject *arg2 = (PyObject *) 0 ;
31933 bool result;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 PyObject * obj0 = 0 ;
31937 PyObject * obj1 = 0 ;
31938 char * kwnames[] = {
31939 (char *) "self",(char *) "func", NULL
31940 };
31941
31942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31944 if (!SWIG_IsOK(res1)) {
31945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31946 }
31947 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31948 arg2 = obj1;
31949 {
31950 PyThreadState* __tstate = wxPyBeginAllowThreads();
31951 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31952 wxPyEndAllowThreads(__tstate);
31953 if (PyErr_Occurred()) SWIG_fail;
31954 }
31955 {
31956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31957 }
31958 return resultobj;
31959fail:
31960 return NULL;
b411df4a
RD
31961}
31962
31963
1bd55598
RD
31964SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31965 PyObject *resultobj = 0;
31966 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31967 wxWindow *result = 0 ;
31968 void *argp1 = 0 ;
31969 int res1 = 0 ;
31970 PyObject *swig_obj[1] ;
31971
31972 if (!args) SWIG_fail;
31973 swig_obj[0] = args;
31974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31975 if (!SWIG_IsOK(res1)) {
31976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31977 }
31978 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31979 {
31980 PyThreadState* __tstate = wxPyBeginAllowThreads();
31981 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 {
31986 resultobj = wxPyMake_wxObject(result, 0);
31987 }
31988 return resultobj;
31989fail:
31990 return NULL;
7993762b
RD
31991}
31992
31993
1bd55598
RD
31994SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31995 PyObject *resultobj = 0;
31996 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31997 SwigValueWrapper<wxVisualAttributes > result;
31998 int val1 ;
31999 int ecode1 = 0 ;
32000 PyObject * obj0 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "variant", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32006 if (obj0) {
32007 ecode1 = SWIG_AsVal_int(obj0, &val1);
32008 if (!SWIG_IsOK(ecode1)) {
32009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32010 }
32011 arg1 = static_cast< wxWindowVariant >(val1);
32012 }
32013 {
32014 if (!wxPyCheckForApp()) SWIG_fail;
32015 PyThreadState* __tstate = wxPyBeginAllowThreads();
32016 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32017 wxPyEndAllowThreads(__tstate);
32018 if (PyErr_Occurred()) SWIG_fail;
32019 }
32020 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32021 return resultobj;
32022fail:
32023 return NULL;
32024}
32025
32026
32027SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32028 PyObject *obj;
32029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32030 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32031 return SWIG_Py_Void();
32032}
32033
32034SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32035 return SWIG_Python_InitShadowInstance(args);
32036}
32037
32038SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32039 PyObject *resultobj = 0;
32040 wxWindow *arg1 = (wxWindow *) 0 ;
32041 int arg2 = (int) -1 ;
32042 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32043 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32044 wxSize const &arg4_defvalue = wxDefaultSize ;
32045 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32046 long arg5 = (long) wxLC_REPORT ;
32047 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32048 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32049 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32050 wxString *arg7 = (wxString *) &arg7_defvalue ;
32051 wxListView *result = 0 ;
32052 void *argp1 = 0 ;
32053 int res1 = 0 ;
32054 int val2 ;
32055 int ecode2 = 0 ;
32056 wxPoint temp3 ;
32057 wxSize temp4 ;
32058 long val5 ;
32059 int ecode5 = 0 ;
32060 void *argp6 = 0 ;
32061 int res6 = 0 ;
32062 bool temp7 = false ;
32063 PyObject * obj0 = 0 ;
32064 PyObject * obj1 = 0 ;
32065 PyObject * obj2 = 0 ;
32066 PyObject * obj3 = 0 ;
32067 PyObject * obj4 = 0 ;
32068 PyObject * obj5 = 0 ;
32069 PyObject * obj6 = 0 ;
32070 char * kwnames[] = {
32071 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32072 };
32073
32074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32076 if (!SWIG_IsOK(res1)) {
32077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32078 }
32079 arg1 = reinterpret_cast< wxWindow * >(argp1);
32080 if (obj1) {
32081 ecode2 = SWIG_AsVal_int(obj1, &val2);
32082 if (!SWIG_IsOK(ecode2)) {
32083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32084 }
32085 arg2 = static_cast< int >(val2);
32086 }
32087 if (obj2) {
b411df4a 32088 {
1bd55598
RD
32089 arg3 = &temp3;
32090 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 32091 }
1bd55598
RD
32092 }
32093 if (obj3) {
32094 {
32095 arg4 = &temp4;
32096 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 32097 }
1bd55598
RD
32098 }
32099 if (obj4) {
32100 ecode5 = SWIG_AsVal_long(obj4, &val5);
32101 if (!SWIG_IsOK(ecode5)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32103 }
32104 arg5 = static_cast< long >(val5);
32105 }
32106 if (obj5) {
32107 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32108 if (!SWIG_IsOK(res6)) {
32109 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32110 }
1bd55598
RD
32111 if (!argp6) {
32112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32113 }
1bd55598
RD
32114 arg6 = reinterpret_cast< wxValidator * >(argp6);
32115 }
32116 if (obj6) {
b411df4a 32117 {
1bd55598
RD
32118 arg7 = wxString_in_helper(obj6);
32119 if (arg7 == NULL) SWIG_fail;
32120 temp7 = true;
b411df4a 32121 }
1bd55598
RD
32122 }
32123 {
32124 if (!wxPyCheckForApp()) SWIG_fail;
32125 PyThreadState* __tstate = wxPyBeginAllowThreads();
32126 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32127 wxPyEndAllowThreads(__tstate);
32128 if (PyErr_Occurred()) SWIG_fail;
32129 }
32130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32131 {
32132 if (temp7)
32133 delete arg7;
32134 }
32135 return resultobj;
32136fail:
32137 {
32138 if (temp7)
32139 delete arg7;
32140 }
32141 return NULL;
b411df4a
RD
32142}
32143
32144
1bd55598
RD
32145SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32146 PyObject *resultobj = 0;
32147 wxListView *result = 0 ;
32148
32149 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32150 {
32151 if (!wxPyCheckForApp()) SWIG_fail;
32152 PyThreadState* __tstate = wxPyBeginAllowThreads();
32153 result = (wxListView *)new wxListView();
32154 wxPyEndAllowThreads(__tstate);
32155 if (PyErr_Occurred()) SWIG_fail;
32156 }
32157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32158 return resultobj;
32159fail:
32160 return NULL;
32161}
32162
32163
32164SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32165 PyObject *resultobj = 0;
32166 wxListView *arg1 = (wxListView *) 0 ;
32167 wxWindow *arg2 = (wxWindow *) 0 ;
32168 int arg3 = (int) -1 ;
32169 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32170 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32171 wxSize const &arg5_defvalue = wxDefaultSize ;
32172 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32173 long arg6 = (long) wxLC_REPORT ;
32174 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32175 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32176 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32177 wxString *arg8 = (wxString *) &arg8_defvalue ;
32178 bool result;
32179 void *argp1 = 0 ;
32180 int res1 = 0 ;
32181 void *argp2 = 0 ;
32182 int res2 = 0 ;
32183 int val3 ;
32184 int ecode3 = 0 ;
32185 wxPoint temp4 ;
32186 wxSize temp5 ;
32187 long val6 ;
32188 int ecode6 = 0 ;
32189 void *argp7 = 0 ;
32190 int res7 = 0 ;
32191 bool temp8 = false ;
32192 PyObject * obj0 = 0 ;
32193 PyObject * obj1 = 0 ;
32194 PyObject * obj2 = 0 ;
32195 PyObject * obj3 = 0 ;
32196 PyObject * obj4 = 0 ;
32197 PyObject * obj5 = 0 ;
32198 PyObject * obj6 = 0 ;
32199 PyObject * obj7 = 0 ;
32200 char * kwnames[] = {
32201 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32202 };
32203
32204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32206 if (!SWIG_IsOK(res1)) {
32207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32208 }
32209 arg1 = reinterpret_cast< wxListView * >(argp1);
32210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32211 if (!SWIG_IsOK(res2)) {
32212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32213 }
32214 arg2 = reinterpret_cast< wxWindow * >(argp2);
32215 if (obj2) {
32216 ecode3 = SWIG_AsVal_int(obj2, &val3);
32217 if (!SWIG_IsOK(ecode3)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32219 }
32220 arg3 = static_cast< int >(val3);
32221 }
32222 if (obj3) {
d55e5bfc 32223 {
1bd55598
RD
32224 arg4 = &temp4;
32225 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32226 }
1bd55598
RD
32227 }
32228 if (obj4) {
36ed4f51 32229 {
1bd55598
RD
32230 arg5 = &temp5;
32231 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 32232 }
1bd55598
RD
32233 }
32234 if (obj5) {
32235 ecode6 = SWIG_AsVal_long(obj5, &val6);
32236 if (!SWIG_IsOK(ecode6)) {
32237 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32238 }
32239 arg6 = static_cast< long >(val6);
32240 }
32241 if (obj6) {
32242 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32243 if (!SWIG_IsOK(res7)) {
32244 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 32245 }
1bd55598
RD
32246 if (!argp7) {
32247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32248 }
32249 arg7 = reinterpret_cast< wxValidator * >(argp7);
32250 }
32251 if (obj7) {
d55e5bfc 32252 {
1bd55598
RD
32253 arg8 = wxString_in_helper(obj7);
32254 if (arg8 == NULL) SWIG_fail;
32255 temp8 = true;
d55e5bfc 32256 }
1bd55598
RD
32257 }
32258 {
32259 PyThreadState* __tstate = wxPyBeginAllowThreads();
32260 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32261 wxPyEndAllowThreads(__tstate);
32262 if (PyErr_Occurred()) SWIG_fail;
32263 }
32264 {
32265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32266 }
32267 {
32268 if (temp8)
32269 delete arg8;
32270 }
32271 return resultobj;
32272fail:
32273 {
32274 if (temp8)
32275 delete arg8;
32276 }
32277 return NULL;
32278}
32279
32280
32281SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj = 0;
32283 wxListView *arg1 = (wxListView *) 0 ;
32284 long arg2 ;
32285 bool arg3 = (bool) true ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 long val2 ;
32289 int ecode2 = 0 ;
32290 bool val3 ;
32291 int ecode3 = 0 ;
32292 PyObject * obj0 = 0 ;
32293 PyObject * obj1 = 0 ;
32294 PyObject * obj2 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "n",(char *) "on", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32303 }
32304 arg1 = reinterpret_cast< wxListView * >(argp1);
32305 ecode2 = SWIG_AsVal_long(obj1, &val2);
32306 if (!SWIG_IsOK(ecode2)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32308 }
32309 arg2 = static_cast< long >(val2);
32310 if (obj2) {
32311 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32312 if (!SWIG_IsOK(ecode3)) {
32313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32314 }
32315 arg3 = static_cast< bool >(val3);
32316 }
32317 {
32318 PyThreadState* __tstate = wxPyBeginAllowThreads();
32319 (arg1)->Select(arg2,arg3);
32320 wxPyEndAllowThreads(__tstate);
32321 if (PyErr_Occurred()) SWIG_fail;
32322 }
32323 resultobj = SWIG_Py_Void();
32324 return resultobj;
32325fail:
32326 return NULL;
32327}
32328
32329
32330SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32331 PyObject *resultobj = 0;
32332 wxListView *arg1 = (wxListView *) 0 ;
32333 long arg2 ;
32334 void *argp1 = 0 ;
32335 int res1 = 0 ;
32336 long val2 ;
32337 int ecode2 = 0 ;
32338 PyObject * obj0 = 0 ;
32339 PyObject * obj1 = 0 ;
32340 char * kwnames[] = {
32341 (char *) "self",(char *) "index", NULL
32342 };
32343
32344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32346 if (!SWIG_IsOK(res1)) {
32347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32348 }
32349 arg1 = reinterpret_cast< wxListView * >(argp1);
32350 ecode2 = SWIG_AsVal_long(obj1, &val2);
32351 if (!SWIG_IsOK(ecode2)) {
32352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32353 }
32354 arg2 = static_cast< long >(val2);
32355 {
32356 PyThreadState* __tstate = wxPyBeginAllowThreads();
32357 (arg1)->Focus(arg2);
32358 wxPyEndAllowThreads(__tstate);
32359 if (PyErr_Occurred()) SWIG_fail;
32360 }
32361 resultobj = SWIG_Py_Void();
32362 return resultobj;
32363fail:
32364 return NULL;
d55e5bfc
RD
32365}
32366
32367
1bd55598
RD
32368SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32369 PyObject *resultobj = 0;
32370 wxListView *arg1 = (wxListView *) 0 ;
32371 long result;
32372 void *argp1 = 0 ;
32373 int res1 = 0 ;
32374 PyObject *swig_obj[1] ;
32375
32376 if (!args) SWIG_fail;
32377 swig_obj[0] = args;
32378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32379 if (!SWIG_IsOK(res1)) {
32380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32381 }
32382 arg1 = reinterpret_cast< wxListView * >(argp1);
32383 {
32384 PyThreadState* __tstate = wxPyBeginAllowThreads();
32385 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32386 wxPyEndAllowThreads(__tstate);
32387 if (PyErr_Occurred()) SWIG_fail;
32388 }
32389 resultobj = SWIG_From_long(static_cast< long >(result));
32390 return resultobj;
32391fail:
32392 return NULL;
32393}
32394
32395
32396SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32397 PyObject *resultobj = 0;
32398 wxListView *arg1 = (wxListView *) 0 ;
32399 long arg2 ;
32400 long result;
32401 void *argp1 = 0 ;
32402 int res1 = 0 ;
32403 long val2 ;
32404 int ecode2 = 0 ;
32405 PyObject * obj0 = 0 ;
32406 PyObject * obj1 = 0 ;
32407 char * kwnames[] = {
32408 (char *) "self",(char *) "item", NULL
32409 };
32410
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32413 if (!SWIG_IsOK(res1)) {
32414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32415 }
32416 arg1 = reinterpret_cast< wxListView * >(argp1);
32417 ecode2 = SWIG_AsVal_long(obj1, &val2);
32418 if (!SWIG_IsOK(ecode2)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32420 }
32421 arg2 = static_cast< long >(val2);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_From_long(static_cast< long >(result));
32429 return resultobj;
32430fail:
32431 return NULL;
d55e5bfc
RD
32432}
32433
32434
1bd55598
RD
32435SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32436 PyObject *resultobj = 0;
32437 wxListView *arg1 = (wxListView *) 0 ;
32438 long result;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 PyObject *swig_obj[1] ;
32442
32443 if (!args) SWIG_fail;
32444 swig_obj[0] = args;
32445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32446 if (!SWIG_IsOK(res1)) {
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32448 }
32449 arg1 = reinterpret_cast< wxListView * >(argp1);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = SWIG_From_long(static_cast< long >(result));
32457 return resultobj;
32458fail:
32459 return NULL;
32460}
32461
32462
32463SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32464 PyObject *resultobj = 0;
32465 wxListView *arg1 = (wxListView *) 0 ;
32466 long arg2 ;
32467 bool result;
32468 void *argp1 = 0 ;
32469 int res1 = 0 ;
32470 long val2 ;
32471 int ecode2 = 0 ;
32472 PyObject * obj0 = 0 ;
32473 PyObject * obj1 = 0 ;
32474 char * kwnames[] = {
32475 (char *) "self",(char *) "index", NULL
32476 };
32477
32478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32480 if (!SWIG_IsOK(res1)) {
32481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32482 }
32483 arg1 = reinterpret_cast< wxListView * >(argp1);
32484 ecode2 = SWIG_AsVal_long(obj1, &val2);
32485 if (!SWIG_IsOK(ecode2)) {
32486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32487 }
32488 arg2 = static_cast< long >(val2);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = (bool)(arg1)->IsSelected(arg2);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 {
32496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32497 }
32498 return resultobj;
32499fail:
32500 return NULL;
32501}
32502
32503
32504SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32505 PyObject *resultobj = 0;
32506 wxListView *arg1 = (wxListView *) 0 ;
32507 int arg2 ;
32508 int arg3 ;
32509 void *argp1 = 0 ;
32510 int res1 = 0 ;
32511 int val2 ;
32512 int ecode2 = 0 ;
32513 int val3 ;
32514 int ecode3 = 0 ;
32515 PyObject * obj0 = 0 ;
32516 PyObject * obj1 = 0 ;
32517 PyObject * obj2 = 0 ;
32518 char * kwnames[] = {
32519 (char *) "self",(char *) "col",(char *) "image", NULL
32520 };
32521
32522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32524 if (!SWIG_IsOK(res1)) {
32525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32526 }
32527 arg1 = reinterpret_cast< wxListView * >(argp1);
32528 ecode2 = SWIG_AsVal_int(obj1, &val2);
32529 if (!SWIG_IsOK(ecode2)) {
32530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32531 }
32532 arg2 = static_cast< int >(val2);
32533 ecode3 = SWIG_AsVal_int(obj2, &val3);
32534 if (!SWIG_IsOK(ecode3)) {
32535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32536 }
32537 arg3 = static_cast< int >(val3);
32538 {
32539 PyThreadState* __tstate = wxPyBeginAllowThreads();
32540 (arg1)->SetColumnImage(arg2,arg3);
32541 wxPyEndAllowThreads(__tstate);
32542 if (PyErr_Occurred()) SWIG_fail;
32543 }
32544 resultobj = SWIG_Py_Void();
32545 return resultobj;
32546fail:
32547 return NULL;
32548}
32549
32550
32551SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32552 PyObject *resultobj = 0;
32553 wxListView *arg1 = (wxListView *) 0 ;
32554 int arg2 ;
32555 void *argp1 = 0 ;
32556 int res1 = 0 ;
32557 int val2 ;
32558 int ecode2 = 0 ;
32559 PyObject * obj0 = 0 ;
32560 PyObject * obj1 = 0 ;
32561 char * kwnames[] = {
32562 (char *) "self",(char *) "col", NULL
32563 };
32564
32565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32567 if (!SWIG_IsOK(res1)) {
32568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32569 }
32570 arg1 = reinterpret_cast< wxListView * >(argp1);
32571 ecode2 = SWIG_AsVal_int(obj1, &val2);
32572 if (!SWIG_IsOK(ecode2)) {
32573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32574 }
32575 arg2 = static_cast< int >(val2);
32576 {
32577 PyThreadState* __tstate = wxPyBeginAllowThreads();
32578 (arg1)->ClearColumnImage(arg2);
32579 wxPyEndAllowThreads(__tstate);
32580 if (PyErr_Occurred()) SWIG_fail;
32581 }
32582 resultobj = SWIG_Py_Void();
32583 return resultobj;
32584fail:
32585 return NULL;
d55e5bfc
RD
32586}
32587
32588
1bd55598
RD
32589SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32590 PyObject *obj;
32591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32592 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32593 return SWIG_Py_Void();
d55e5bfc
RD
32594}
32595
1bd55598
RD
32596SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32597 return SWIG_Python_InitShadowInstance(args);
32598}
d55e5bfc 32599
1bd55598
RD
32600SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32601 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32602 return 1;
d55e5bfc
RD
32603}
32604
32605
1bd55598
RD
32606SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32607 PyObject *pyobj = 0;
32608
32609 {
32610#if wxUSE_UNICODE
32611 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32612#else
32613 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32614#endif
32615 }
32616 return pyobj;
d55e5bfc
RD
32617}
32618
32619
1bd55598
RD
32620SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32621 PyObject *resultobj = 0;
32622 wxTreeItemId *result = 0 ;
32623
32624 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32625 {
32626 PyThreadState* __tstate = wxPyBeginAllowThreads();
32627 result = (wxTreeItemId *)new wxTreeItemId();
32628 wxPyEndAllowThreads(__tstate);
32629 if (PyErr_Occurred()) SWIG_fail;
32630 }
32631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32632 return resultobj;
32633fail:
32634 return NULL;
d55e5bfc
RD
32635}
32636
32637
1bd55598
RD
32638SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32639 PyObject *resultobj = 0;
32640 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32641 void *argp1 = 0 ;
32642 int res1 = 0 ;
32643 PyObject *swig_obj[1] ;
32644
32645 if (!args) SWIG_fail;
32646 swig_obj[0] = args;
32647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32648 if (!SWIG_IsOK(res1)) {
32649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32650 }
32651 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32652 {
32653 PyThreadState* __tstate = wxPyBeginAllowThreads();
32654 delete arg1;
d55e5bfc 32655
1bd55598
RD
32656 wxPyEndAllowThreads(__tstate);
32657 if (PyErr_Occurred()) SWIG_fail;
32658 }
32659 resultobj = SWIG_Py_Void();
32660 return resultobj;
32661fail:
32662 return NULL;
d55e5bfc
RD
32663}
32664
32665
1bd55598
RD
32666SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32667 PyObject *resultobj = 0;
32668 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32669 bool result;
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
32672 PyObject *swig_obj[1] ;
32673
32674 if (!args) SWIG_fail;
32675 swig_obj[0] = args;
32676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32679 }
32680 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 {
32688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32689 }
32690 return resultobj;
32691fail:
32692 return NULL;
32693}
32694
32695
32696SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32697 PyObject *resultobj = 0;
32698 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32699 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32700 bool result;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 void *argp2 = 0 ;
32704 int res2 = 0 ;
32705 PyObject * obj0 = 0 ;
32706 PyObject * obj1 = 0 ;
32707 char * kwnames[] = {
32708 (char *) "self",(char *) "other", NULL
32709 };
32710
32711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32713 if (!SWIG_IsOK(res1)) {
32714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32715 }
32716 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32718 if (!SWIG_IsOK(res2)) {
32719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32720 }
32721 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32722 {
32723 PyThreadState* __tstate = wxPyBeginAllowThreads();
32724 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32725 wxPyEndAllowThreads(__tstate);
32726 if (PyErr_Occurred()) SWIG_fail;
32727 }
32728 {
32729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32730 }
32731 return resultobj;
32732fail:
32733 return NULL;
32734}
32735
32736
32737SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32738 PyObject *resultobj = 0;
32739 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32740 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32741 bool result;
32742 void *argp1 = 0 ;
32743 int res1 = 0 ;
32744 void *argp2 = 0 ;
32745 int res2 = 0 ;
32746 PyObject * obj0 = 0 ;
32747 PyObject * obj1 = 0 ;
32748 char * kwnames[] = {
32749 (char *) "self",(char *) "other", NULL
32750 };
32751
32752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32754 if (!SWIG_IsOK(res1)) {
32755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32756 }
32757 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32758 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32759 if (!SWIG_IsOK(res2)) {
32760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32761 }
32762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 {
32770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32771 }
32772 return resultobj;
32773fail:
32774 return NULL;
d55e5bfc
RD
32775}
32776
32777
1bd55598
RD
32778SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32779 PyObject *resultobj = 0;
32780 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32781 void *arg2 = (void *) 0 ;
32782 void *argp1 = 0 ;
32783 int res1 = 0 ;
32784 int res2 ;
32785 PyObject *swig_obj[2] ;
32786
32787 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32789 if (!SWIG_IsOK(res1)) {
32790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32791 }
32792 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32793 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32794 if (!SWIG_IsOK(res2)) {
32795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32796 }
32797 if (arg1) (arg1)->m_pItem = arg2;
32798
32799 resultobj = SWIG_Py_Void();
32800 return resultobj;
32801fail:
32802 return NULL;
d55e5bfc
RD
32803}
32804
32805
1bd55598
RD
32806SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32807 PyObject *resultobj = 0;
32808 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32809 void *result = 0 ;
32810 void *argp1 = 0 ;
32811 int res1 = 0 ;
32812 PyObject *swig_obj[1] ;
32813
32814 if (!args) SWIG_fail;
32815 swig_obj[0] = args;
32816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32817 if (!SWIG_IsOK(res1)) {
32818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32819 }
32820 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32821 result = (void *) ((arg1)->m_pItem);
32822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32823 return resultobj;
32824fail:
32825 return NULL;
d55e5bfc
RD
32826}
32827
32828
1bd55598
RD
32829SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32830 PyObject *obj;
32831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32832 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32833 return SWIG_Py_Void();
d55e5bfc
RD
32834}
32835
1bd55598
RD
32836SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32837 return SWIG_Python_InitShadowInstance(args);
32838}
d55e5bfc 32839
1bd55598
RD
32840SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32841 PyObject *resultobj = 0;
32842 PyObject *arg1 = (PyObject *) NULL ;
32843 wxPyTreeItemData *result = 0 ;
32844 PyObject * obj0 = 0 ;
32845 char * kwnames[] = {
32846 (char *) "obj", NULL
32847 };
32848
32849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32850 if (obj0) {
32851 arg1 = obj0;
32852 }
32853 {
32854 PyThreadState* __tstate = wxPyBeginAllowThreads();
32855 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32856 wxPyEndAllowThreads(__tstate);
32857 if (PyErr_Occurred()) SWIG_fail;
32858 }
32859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32860 return resultobj;
32861fail:
32862 return NULL;
d55e5bfc
RD
32863}
32864
32865
1bd55598
RD
32866SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32867 PyObject *resultobj = 0;
32868 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32869 void *argp1 = 0 ;
32870 int res1 = 0 ;
32871 PyObject *swig_obj[1] ;
32872
32873 if (!args) SWIG_fail;
32874 swig_obj[0] = args;
32875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32876 if (!SWIG_IsOK(res1)) {
32877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32878 }
32879 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32880 {
32881 PyThreadState* __tstate = wxPyBeginAllowThreads();
32882 delete arg1;
d55e5bfc 32883
1bd55598
RD
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_Py_Void();
32888 return resultobj;
32889fail:
32890 return NULL;
d55e5bfc
RD
32891}
32892
32893
1bd55598
RD
32894SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32895 PyObject *resultobj = 0;
32896 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32897 PyObject *result = 0 ;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 PyObject *swig_obj[1] ;
32901
32902 if (!args) SWIG_fail;
32903 swig_obj[0] = args;
32904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32905 if (!SWIG_IsOK(res1)) {
32906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32907 }
32908 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32909 {
32910 PyThreadState* __tstate = wxPyBeginAllowThreads();
32911 result = (PyObject *)(arg1)->GetData();
32912 wxPyEndAllowThreads(__tstate);
32913 if (PyErr_Occurred()) SWIG_fail;
32914 }
32915 resultobj = result;
32916 return resultobj;
32917fail:
32918 return NULL;
32919}
32920
32921
32922SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32925 PyObject *arg2 = (PyObject *) 0 ;
32926 void *argp1 = 0 ;
32927 int res1 = 0 ;
32928 PyObject * obj0 = 0 ;
32929 PyObject * obj1 = 0 ;
32930 char * kwnames[] = {
32931 (char *) "self",(char *) "obj", NULL
32932 };
32933
32934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32936 if (!SWIG_IsOK(res1)) {
32937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32938 }
32939 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32940 arg2 = obj1;
32941 {
32942 PyThreadState* __tstate = wxPyBeginAllowThreads();
32943 (arg1)->SetData(arg2);
32944 wxPyEndAllowThreads(__tstate);
32945 if (PyErr_Occurred()) SWIG_fail;
32946 }
32947 resultobj = SWIG_Py_Void();
32948 return resultobj;
32949fail:
32950 return NULL;
d55e5bfc
RD
32951}
32952
32953
1bd55598
RD
32954SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32955 PyObject *resultobj = 0;
32956 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32957 wxTreeItemId *result = 0 ;
32958 void *argp1 = 0 ;
32959 int res1 = 0 ;
32960 PyObject *swig_obj[1] ;
32961
32962 if (!args) SWIG_fail;
32963 swig_obj[0] = args;
32964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32965 if (!SWIG_IsOK(res1)) {
32966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32967 }
32968 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32971 {
1bd55598
RD
32972 wxTreeItemId const &_result_ref = (arg1)->GetId();
32973 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32974 }
1bd55598
RD
32975 wxPyEndAllowThreads(__tstate);
32976 if (PyErr_Occurred()) SWIG_fail;
32977 }
32978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32979 return resultobj;
32980fail:
32981 return NULL;
32982}
32983
32984
32985SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32986 PyObject *resultobj = 0;
32987 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32988 wxTreeItemId *arg2 = 0 ;
32989 void *argp1 = 0 ;
32990 int res1 = 0 ;
32991 void *argp2 = 0 ;
32992 int res2 = 0 ;
32993 PyObject * obj0 = 0 ;
32994 PyObject * obj1 = 0 ;
32995 char * kwnames[] = {
32996 (char *) "self",(char *) "id", NULL
32997 };
32998
32999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33001 if (!SWIG_IsOK(res1)) {
33002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33003 }
33004 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33006 if (!SWIG_IsOK(res2)) {
33007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33008 }
33009 if (!argp2) {
33010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33011 }
33012 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33013 {
33014 PyThreadState* __tstate = wxPyBeginAllowThreads();
33015 (arg1)->SetId((wxTreeItemId const &)*arg2);
33016 wxPyEndAllowThreads(__tstate);
33017 if (PyErr_Occurred()) SWIG_fail;
33018 }
33019 resultobj = SWIG_Py_Void();
33020 return resultobj;
33021fail:
33022 return NULL;
d55e5bfc
RD
33023}
33024
33025
1bd55598
RD
33026SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33027 PyObject *resultobj = 0;
33028 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33029 void *argp1 = 0 ;
33030 int res1 = 0 ;
33031 PyObject *swig_obj[1] ;
33032
33033 if (!args) SWIG_fail;
33034 swig_obj[0] = args;
33035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33036 if (!SWIG_IsOK(res1)) {
33037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33038 }
33039 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 wxPyTreeItemData_Destroy(arg1);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_Py_Void();
33047 return resultobj;
33048fail:
33049 return NULL;
d55e5bfc
RD
33050}
33051
33052
1bd55598
RD
33053SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33054 PyObject *obj;
33055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33056 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33057 return SWIG_Py_Void();
d55e5bfc
RD
33058}
33059
1bd55598
RD
33060SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33061 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
33062}
33063
b02396e8
RD
33064SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33065 {
33066 void *argp = 0;
33067 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33068 if (!SWIG_IsOK(res)) {
33069 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33070 }
33071 if (!argp) {
33072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33073 } else {
33074 wxTreeItemId * temp;
33075 temp = reinterpret_cast< wxTreeItemId * >(argp);
33076 wxNullTreeItemId = *temp;
33077 if (SWIG_IsNewObj(res)) delete temp;
33078 }
33079 }
33080 return 0;
33081fail:
33082 return 1;
33083}
33084
33085
33086SWIGINTERN PyObject *NullTreeItemId_get(void) {
33087 PyObject *pyobj = 0;
33088
33089 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33090 return pyobj;
33091}
33092
33093
33094SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
33095 PyObject *resultobj = 0;
33096 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33097 int arg2 = (int) 0 ;
33098 wxTreeEvent *result = 0 ;
33099 int val1 ;
33100 int ecode1 = 0 ;
33101 int val2 ;
33102 int ecode2 = 0 ;
1bd55598 33103
b02396e8
RD
33104 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33105 if (swig_obj[0]) {
33106 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
33107 if (!SWIG_IsOK(ecode1)) {
33108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33109 }
33110 arg1 = static_cast< wxEventType >(val1);
33111 }
b02396e8
RD
33112 if (swig_obj[1]) {
33113 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
33114 if (!SWIG_IsOK(ecode2)) {
33115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33116 }
33117 arg2 = static_cast< int >(val2);
33118 }
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33122 wxPyEndAllowThreads(__tstate);
33123 if (PyErr_Occurred()) SWIG_fail;
33124 }
33125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33126 return resultobj;
33127fail:
33128 return NULL;
d55e5bfc
RD
33129}
33130
33131
b02396e8
RD
33132SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33133 PyObject *resultobj = 0;
33134 wxEventType arg1 ;
33135 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33136 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33137 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33138 wxTreeEvent *result = 0 ;
33139 int val1 ;
33140 int ecode1 = 0 ;
33141 void *argp2 = 0 ;
33142 int res2 = 0 ;
33143 void *argp3 = 0 ;
33144 int res3 = 0 ;
33145
33146 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33147 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33148 if (!SWIG_IsOK(ecode1)) {
33149 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33150 }
33151 arg1 = static_cast< wxEventType >(val1);
33152 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33153 if (!SWIG_IsOK(res2)) {
33154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33155 }
33156 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33157 if (swig_obj[2]) {
33158 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33159 if (!SWIG_IsOK(res3)) {
33160 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33161 }
33162 if (!argp3) {
33163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33164 }
33165 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33166 }
33167 {
33168 PyThreadState* __tstate = wxPyBeginAllowThreads();
33169 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33170 wxPyEndAllowThreads(__tstate);
33171 if (PyErr_Occurred()) SWIG_fail;
33172 }
33173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33174 return resultobj;
33175fail:
33176 return NULL;
33177}
33178
33179
33180SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33181 int argc;
33182 PyObject *argv[4];
33183
33184 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33185 --argc;
33186 if ((argc >= 0) && (argc <= 2)) {
33187 int _v = 0;
33188 if (argc > 1) {
33189 {
33190 {
33191 int res = SWIG_AsVal_int(argv[1], NULL);
33192 _v = SWIG_CheckState(res);
33193 }
33194 }
33195 if (!_v) goto check_1;
33196 }
33197 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33198 }
33199check_1:
33200
33201 if ((argc >= 2) && (argc <= 3)) {
33202 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33203 }
33204
33205fail:
33206 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33207 return NULL;
33208}
33209
33210
1bd55598
RD
33211SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33212 PyObject *resultobj = 0;
33213 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33214 wxTreeItemId result;
33215 void *argp1 = 0 ;
33216 int res1 = 0 ;
33217 PyObject *swig_obj[1] ;
33218
33219 if (!args) SWIG_fail;
33220 swig_obj[0] = args;
33221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33224 }
33225 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33226 {
33227 PyThreadState* __tstate = wxPyBeginAllowThreads();
33228 result = ((wxTreeEvent const *)arg1)->GetItem();
33229 wxPyEndAllowThreads(__tstate);
33230 if (PyErr_Occurred()) SWIG_fail;
33231 }
33232 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33233 return resultobj;
33234fail:
33235 return NULL;
33236}
33237
33238
33239SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33240 PyObject *resultobj = 0;
33241 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33242 wxTreeItemId *arg2 = 0 ;
33243 void *argp1 = 0 ;
33244 int res1 = 0 ;
33245 void *argp2 = 0 ;
33246 int res2 = 0 ;
33247 PyObject * obj0 = 0 ;
33248 PyObject * obj1 = 0 ;
33249 char * kwnames[] = {
33250 (char *) "self",(char *) "item", NULL
33251 };
33252
33253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33255 if (!SWIG_IsOK(res1)) {
33256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33257 }
33258 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33260 if (!SWIG_IsOK(res2)) {
33261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33262 }
33263 if (!argp2) {
33264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33265 }
33266 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33267 {
33268 PyThreadState* __tstate = wxPyBeginAllowThreads();
33269 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33270 wxPyEndAllowThreads(__tstate);
33271 if (PyErr_Occurred()) SWIG_fail;
33272 }
33273 resultobj = SWIG_Py_Void();
33274 return resultobj;
33275fail:
33276 return NULL;
d55e5bfc
RD
33277}
33278
33279
1bd55598
RD
33280SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33281 PyObject *resultobj = 0;
33282 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33283 wxTreeItemId result;
33284 void *argp1 = 0 ;
33285 int res1 = 0 ;
33286 PyObject *swig_obj[1] ;
33287
33288 if (!args) SWIG_fail;
33289 swig_obj[0] = args;
33290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33291 if (!SWIG_IsOK(res1)) {
33292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33293 }
33294 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33295 {
33296 PyThreadState* __tstate = wxPyBeginAllowThreads();
33297 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33298 wxPyEndAllowThreads(__tstate);
33299 if (PyErr_Occurred()) SWIG_fail;
33300 }
33301 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33302 return resultobj;
33303fail:
33304 return NULL;
33305}
33306
33307
33308SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33309 PyObject *resultobj = 0;
33310 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33311 wxTreeItemId *arg2 = 0 ;
33312 void *argp1 = 0 ;
33313 int res1 = 0 ;
33314 void *argp2 = 0 ;
33315 int res2 = 0 ;
33316 PyObject * obj0 = 0 ;
33317 PyObject * obj1 = 0 ;
33318 char * kwnames[] = {
33319 (char *) "self",(char *) "item", NULL
33320 };
33321
33322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33324 if (!SWIG_IsOK(res1)) {
33325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33326 }
33327 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33329 if (!SWIG_IsOK(res2)) {
33330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33331 }
33332 if (!argp2) {
33333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33334 }
33335 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33336 {
33337 PyThreadState* __tstate = wxPyBeginAllowThreads();
33338 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33339 wxPyEndAllowThreads(__tstate);
33340 if (PyErr_Occurred()) SWIG_fail;
33341 }
33342 resultobj = SWIG_Py_Void();
33343 return resultobj;
33344fail:
33345 return NULL;
d55e5bfc
RD
33346}
33347
33348
1bd55598
RD
33349SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33350 PyObject *resultobj = 0;
33351 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33352 wxPoint result;
33353 void *argp1 = 0 ;
33354 int res1 = 0 ;
33355 PyObject *swig_obj[1] ;
33356
33357 if (!args) SWIG_fail;
33358 swig_obj[0] = args;
33359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33360 if (!SWIG_IsOK(res1)) {
33361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33362 }
33363 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33364 {
33365 PyThreadState* __tstate = wxPyBeginAllowThreads();
33366 result = ((wxTreeEvent const *)arg1)->GetPoint();
33367 wxPyEndAllowThreads(__tstate);
33368 if (PyErr_Occurred()) SWIG_fail;
33369 }
33370 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33371 return resultobj;
33372fail:
33373 return NULL;
33374}
33375
33376
33377SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33378 PyObject *resultobj = 0;
33379 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33380 wxPoint *arg2 = 0 ;
33381 void *argp1 = 0 ;
33382 int res1 = 0 ;
33383 wxPoint temp2 ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 char * kwnames[] = {
33387 (char *) "self",(char *) "pt", NULL
33388 };
33389
33390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33394 }
33395 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33396 {
33397 arg2 = &temp2;
33398 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33399 }
33400 {
33401 PyThreadState* __tstate = wxPyBeginAllowThreads();
33402 (arg1)->SetPoint((wxPoint const &)*arg2);
33403 wxPyEndAllowThreads(__tstate);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 resultobj = SWIG_Py_Void();
33407 return resultobj;
33408fail:
33409 return NULL;
d55e5bfc
RD
33410}
33411
33412
1bd55598
RD
33413SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 PyObject *resultobj = 0;
33415 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33416 wxKeyEvent *result = 0 ;
33417 void *argp1 = 0 ;
33418 int res1 = 0 ;
33419 PyObject *swig_obj[1] ;
33420
33421 if (!args) SWIG_fail;
33422 swig_obj[0] = args;
33423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33426 }
33427 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33428 {
33429 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33430 {
1bd55598
RD
33431 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33432 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33433 }
1bd55598
RD
33434 wxPyEndAllowThreads(__tstate);
33435 if (PyErr_Occurred()) SWIG_fail;
33436 }
33437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33438 return resultobj;
33439fail:
33440 return NULL;
d55e5bfc
RD
33441}
33442
33443
1bd55598
RD
33444SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33445 PyObject *resultobj = 0;
33446 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33447 int result;
33448 void *argp1 = 0 ;
33449 int res1 = 0 ;
33450 PyObject *swig_obj[1] ;
33451
33452 if (!args) SWIG_fail;
33453 swig_obj[0] = args;
33454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33455 if (!SWIG_IsOK(res1)) {
33456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33457 }
33458 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33459 {
33460 PyThreadState* __tstate = wxPyBeginAllowThreads();
33461 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33462 wxPyEndAllowThreads(__tstate);
33463 if (PyErr_Occurred()) SWIG_fail;
33464 }
33465 resultobj = SWIG_From_int(static_cast< int >(result));
33466 return resultobj;
33467fail:
33468 return NULL;
33469}
33470
33471
33472SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33473 PyObject *resultobj = 0;
33474 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33475 wxKeyEvent *arg2 = 0 ;
33476 void *argp1 = 0 ;
33477 int res1 = 0 ;
33478 void *argp2 = 0 ;
33479 int res2 = 0 ;
33480 PyObject * obj0 = 0 ;
33481 PyObject * obj1 = 0 ;
33482 char * kwnames[] = {
33483 (char *) "self",(char *) "evt", NULL
33484 };
33485
33486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33488 if (!SWIG_IsOK(res1)) {
33489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33490 }
33491 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33493 if (!SWIG_IsOK(res2)) {
33494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33495 }
33496 if (!argp2) {
33497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33498 }
33499 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33500 {
33501 PyThreadState* __tstate = wxPyBeginAllowThreads();
33502 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33503 wxPyEndAllowThreads(__tstate);
33504 if (PyErr_Occurred()) SWIG_fail;
33505 }
33506 resultobj = SWIG_Py_Void();
33507 return resultobj;
33508fail:
33509 return NULL;
d55e5bfc
RD
33510}
33511
33512
1bd55598
RD
33513SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33514 PyObject *resultobj = 0;
33515 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33516 wxString *result = 0 ;
33517 void *argp1 = 0 ;
33518 int res1 = 0 ;
33519 PyObject *swig_obj[1] ;
33520
33521 if (!args) SWIG_fail;
33522 swig_obj[0] = args;
33523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33524 if (!SWIG_IsOK(res1)) {
33525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33526 }
33527 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33528 {
33529 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33530 {
1bd55598
RD
33531 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33532 result = (wxString *) &_result_ref;
d55e5bfc 33533 }
1bd55598
RD
33534 wxPyEndAllowThreads(__tstate);
33535 if (PyErr_Occurred()) SWIG_fail;
33536 }
33537 {
33538#if wxUSE_UNICODE
33539 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33540#else
33541 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33542#endif
33543 }
33544 return resultobj;
33545fail:
33546 return NULL;
33547}
33548
33549
33550SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33551 PyObject *resultobj = 0;
33552 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33553 wxString *arg2 = 0 ;
33554 void *argp1 = 0 ;
33555 int res1 = 0 ;
33556 bool temp2 = false ;
33557 PyObject * obj0 = 0 ;
33558 PyObject * obj1 = 0 ;
33559 char * kwnames[] = {
33560 (char *) "self",(char *) "label", NULL
33561 };
33562
33563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33567 }
33568 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33569 {
33570 arg2 = wxString_in_helper(obj1);
33571 if (arg2 == NULL) SWIG_fail;
33572 temp2 = true;
33573 }
33574 {
33575 PyThreadState* __tstate = wxPyBeginAllowThreads();
33576 (arg1)->SetLabel((wxString const &)*arg2);
33577 wxPyEndAllowThreads(__tstate);
33578 if (PyErr_Occurred()) SWIG_fail;
33579 }
33580 resultobj = SWIG_Py_Void();
33581 {
33582 if (temp2)
33583 delete arg2;
33584 }
33585 return resultobj;
33586fail:
33587 {
33588 if (temp2)
33589 delete arg2;
33590 }
33591 return NULL;
d55e5bfc
RD
33592}
33593
33594
1bd55598
RD
33595SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33596 PyObject *resultobj = 0;
33597 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33598 bool result;
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_wxTreeEvent, 0 | 0 );
33606 if (!SWIG_IsOK(res1)) {
33607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33608 }
33609 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33610 {
33611 PyThreadState* __tstate = wxPyBeginAllowThreads();
33612 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33613 wxPyEndAllowThreads(__tstate);
33614 if (PyErr_Occurred()) SWIG_fail;
33615 }
33616 {
33617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33618 }
33619 return resultobj;
33620fail:
33621 return NULL;
33622}
33623
33624
33625SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33626 PyObject *resultobj = 0;
33627 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33628 bool arg2 ;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 bool val2 ;
33632 int ecode2 = 0 ;
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 char * kwnames[] = {
33636 (char *) "self",(char *) "editCancelled", NULL
33637 };
33638
33639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33641 if (!SWIG_IsOK(res1)) {
33642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33643 }
33644 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33645 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33646 if (!SWIG_IsOK(ecode2)) {
33647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33648 }
33649 arg2 = static_cast< bool >(val2);
33650 {
33651 PyThreadState* __tstate = wxPyBeginAllowThreads();
33652 (arg1)->SetEditCanceled(arg2);
33653 wxPyEndAllowThreads(__tstate);
33654 if (PyErr_Occurred()) SWIG_fail;
33655 }
33656 resultobj = SWIG_Py_Void();
33657 return resultobj;
33658fail:
33659 return NULL;
33660}
33661
33662
33663SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33664 PyObject *resultobj = 0;
33665 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33666 wxString *arg2 = 0 ;
33667 void *argp1 = 0 ;
33668 int res1 = 0 ;
33669 bool temp2 = false ;
33670 PyObject * obj0 = 0 ;
33671 PyObject * obj1 = 0 ;
33672 char * kwnames[] = {
33673 (char *) "self",(char *) "toolTip", NULL
33674 };
33675
33676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33680 }
33681 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33682 {
33683 arg2 = wxString_in_helper(obj1);
33684 if (arg2 == NULL) SWIG_fail;
33685 temp2 = true;
33686 }
33687 {
33688 PyThreadState* __tstate = wxPyBeginAllowThreads();
33689 (arg1)->SetToolTip((wxString const &)*arg2);
33690 wxPyEndAllowThreads(__tstate);
33691 if (PyErr_Occurred()) SWIG_fail;
33692 }
33693 resultobj = SWIG_Py_Void();
33694 {
33695 if (temp2)
33696 delete arg2;
33697 }
33698 return resultobj;
33699fail:
33700 {
33701 if (temp2)
33702 delete arg2;
33703 }
33704 return NULL;
d55e5bfc
RD
33705}
33706
33707
1bd55598
RD
33708SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33709 PyObject *resultobj = 0;
33710 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33711 wxString result;
33712 void *argp1 = 0 ;
33713 int res1 = 0 ;
33714 PyObject *swig_obj[1] ;
33715
33716 if (!args) SWIG_fail;
33717 swig_obj[0] = args;
33718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33719 if (!SWIG_IsOK(res1)) {
33720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33721 }
33722 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33723 {
33724 PyThreadState* __tstate = wxPyBeginAllowThreads();
33725 result = (arg1)->GetToolTip();
33726 wxPyEndAllowThreads(__tstate);
33727 if (PyErr_Occurred()) SWIG_fail;
33728 }
33729 {
33730#if wxUSE_UNICODE
33731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33732#else
33733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33734#endif
33735 }
33736 return resultobj;
33737fail:
33738 return NULL;
33739}
33740
33741
33742SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33743 PyObject *obj;
33744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33745 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33746 return SWIG_Py_Void();
33747}
33748
33749SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33750 return SWIG_Python_InitShadowInstance(args);
33751}
33752
33753SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33754 PyObject *resultobj = 0;
33755 wxWindow *arg1 = (wxWindow *) 0 ;
33756 int arg2 = (int) -1 ;
33757 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33758 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33759 wxSize const &arg4_defvalue = wxDefaultSize ;
33760 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33761 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33762 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33763 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33764 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33765 wxString *arg7 = (wxString *) &arg7_defvalue ;
33766 wxPyTreeCtrl *result = 0 ;
33767 void *argp1 = 0 ;
33768 int res1 = 0 ;
33769 int val2 ;
33770 int ecode2 = 0 ;
33771 wxPoint temp3 ;
33772 wxSize temp4 ;
33773 long val5 ;
33774 int ecode5 = 0 ;
33775 void *argp6 = 0 ;
33776 int res6 = 0 ;
33777 bool temp7 = false ;
33778 PyObject * obj0 = 0 ;
33779 PyObject * obj1 = 0 ;
33780 PyObject * obj2 = 0 ;
33781 PyObject * obj3 = 0 ;
33782 PyObject * obj4 = 0 ;
33783 PyObject * obj5 = 0 ;
33784 PyObject * obj6 = 0 ;
33785 char * kwnames[] = {
33786 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33787 };
33788
33789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33793 }
33794 arg1 = reinterpret_cast< wxWindow * >(argp1);
33795 if (obj1) {
33796 ecode2 = SWIG_AsVal_int(obj1, &val2);
33797 if (!SWIG_IsOK(ecode2)) {
33798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33799 }
33800 arg2 = static_cast< int >(val2);
33801 }
33802 if (obj2) {
d55e5bfc 33803 {
1bd55598
RD
33804 arg3 = &temp3;
33805 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33806 }
1bd55598
RD
33807 }
33808 if (obj3) {
36ed4f51 33809 {
1bd55598
RD
33810 arg4 = &temp4;
33811 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33812 }
1bd55598
RD
33813 }
33814 if (obj4) {
33815 ecode5 = SWIG_AsVal_long(obj4, &val5);
33816 if (!SWIG_IsOK(ecode5)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33818 }
33819 arg5 = static_cast< long >(val5);
33820 }
33821 if (obj5) {
33822 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33823 if (!SWIG_IsOK(res6)) {
33824 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33825 }
1bd55598
RD
33826 if (!argp6) {
33827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33828 }
1bd55598
RD
33829 arg6 = reinterpret_cast< wxValidator * >(argp6);
33830 }
33831 if (obj6) {
d55e5bfc 33832 {
1bd55598
RD
33833 arg7 = wxString_in_helper(obj6);
33834 if (arg7 == NULL) SWIG_fail;
33835 temp7 = true;
d55e5bfc 33836 }
1bd55598
RD
33837 }
33838 {
33839 if (!wxPyCheckForApp()) SWIG_fail;
33840 PyThreadState* __tstate = wxPyBeginAllowThreads();
33841 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33842 wxPyEndAllowThreads(__tstate);
33843 if (PyErr_Occurred()) SWIG_fail;
33844 }
33845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33846 {
33847 if (temp7)
33848 delete arg7;
33849 }
33850 return resultobj;
33851fail:
33852 {
33853 if (temp7)
33854 delete arg7;
33855 }
33856 return NULL;
33857}
33858
33859
33860SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33861 PyObject *resultobj = 0;
33862 wxPyTreeCtrl *result = 0 ;
33863
33864 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33865 {
33866 if (!wxPyCheckForApp()) SWIG_fail;
33867 PyThreadState* __tstate = wxPyBeginAllowThreads();
33868 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33869 wxPyEndAllowThreads(__tstate);
33870 if (PyErr_Occurred()) SWIG_fail;
33871 }
33872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33873 return resultobj;
33874fail:
33875 return NULL;
33876}
33877
33878
33879SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33880 PyObject *resultobj = 0;
33881 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33882 wxWindow *arg2 = (wxWindow *) 0 ;
33883 int arg3 = (int) -1 ;
33884 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33885 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33886 wxSize const &arg5_defvalue = wxDefaultSize ;
33887 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33888 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33889 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33890 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33891 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33892 wxString *arg8 = (wxString *) &arg8_defvalue ;
33893 bool result;
33894 void *argp1 = 0 ;
33895 int res1 = 0 ;
33896 void *argp2 = 0 ;
33897 int res2 = 0 ;
33898 int val3 ;
33899 int ecode3 = 0 ;
33900 wxPoint temp4 ;
33901 wxSize temp5 ;
33902 long val6 ;
33903 int ecode6 = 0 ;
33904 void *argp7 = 0 ;
33905 int res7 = 0 ;
33906 bool temp8 = false ;
33907 PyObject * obj0 = 0 ;
33908 PyObject * obj1 = 0 ;
33909 PyObject * obj2 = 0 ;
33910 PyObject * obj3 = 0 ;
33911 PyObject * obj4 = 0 ;
33912 PyObject * obj5 = 0 ;
33913 PyObject * obj6 = 0 ;
33914 PyObject * obj7 = 0 ;
33915 char * kwnames[] = {
33916 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33917 };
33918
33919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33923 }
33924 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33925 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33926 if (!SWIG_IsOK(res2)) {
33927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33928 }
33929 arg2 = reinterpret_cast< wxWindow * >(argp2);
33930 if (obj2) {
33931 ecode3 = SWIG_AsVal_int(obj2, &val3);
33932 if (!SWIG_IsOK(ecode3)) {
33933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33934 }
33935 arg3 = static_cast< int >(val3);
33936 }
33937 if (obj3) {
d55e5bfc 33938 {
1bd55598
RD
33939 arg4 = &temp4;
33940 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33941 }
1bd55598
RD
33942 }
33943 if (obj4) {
d55e5bfc 33944 {
1bd55598
RD
33945 arg5 = &temp5;
33946 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33947 }
1bd55598
RD
33948 }
33949 if (obj5) {
33950 ecode6 = SWIG_AsVal_long(obj5, &val6);
33951 if (!SWIG_IsOK(ecode6)) {
33952 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33953 }
33954 arg6 = static_cast< long >(val6);
33955 }
33956 if (obj6) {
33957 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33958 if (!SWIG_IsOK(res7)) {
33959 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33960 }
1bd55598
RD
33961 if (!argp7) {
33962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33963 }
1bd55598
RD
33964 arg7 = reinterpret_cast< wxValidator * >(argp7);
33965 }
33966 if (obj7) {
d55e5bfc 33967 {
1bd55598
RD
33968 arg8 = wxString_in_helper(obj7);
33969 if (arg8 == NULL) SWIG_fail;
33970 temp8 = true;
d55e5bfc 33971 }
1bd55598
RD
33972 }
33973 {
33974 PyThreadState* __tstate = wxPyBeginAllowThreads();
33975 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33976 wxPyEndAllowThreads(__tstate);
33977 if (PyErr_Occurred()) SWIG_fail;
33978 }
33979 {
33980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33981 }
33982 {
33983 if (temp8)
33984 delete arg8;
33985 }
33986 return resultobj;
33987fail:
33988 {
33989 if (temp8)
33990 delete arg8;
33991 }
33992 return NULL;
33993}
33994
33995
33996SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33997 PyObject *resultobj = 0;
33998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33999 PyObject *arg2 = (PyObject *) 0 ;
34000 PyObject *arg3 = (PyObject *) 0 ;
34001 void *argp1 = 0 ;
34002 int res1 = 0 ;
34003 PyObject * obj0 = 0 ;
34004 PyObject * obj1 = 0 ;
34005 PyObject * obj2 = 0 ;
34006 char * kwnames[] = {
34007 (char *) "self",(char *) "self",(char *) "_class", NULL
34008 };
34009
34010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34012 if (!SWIG_IsOK(res1)) {
34013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34014 }
34015 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34016 arg2 = obj1;
34017 arg3 = obj2;
34018 {
34019 PyThreadState* __tstate = wxPyBeginAllowThreads();
34020 (arg1)->_setCallbackInfo(arg2,arg3);
34021 wxPyEndAllowThreads(__tstate);
34022 if (PyErr_Occurred()) SWIG_fail;
34023 }
34024 resultobj = SWIG_Py_Void();
34025 return resultobj;
34026fail:
34027 return NULL;
d55e5bfc
RD
34028}
34029
34030
1bd55598
RD
34031SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34032 PyObject *resultobj = 0;
34033 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34034 unsigned int result;
1bd55598
RD
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 PyObject *swig_obj[1] ;
34038
34039 if (!args) SWIG_fail;
34040 swig_obj[0] = args;
34041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34042 if (!SWIG_IsOK(res1)) {
34043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34044 }
34045 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34046 {
34047 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34048 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
34049 wxPyEndAllowThreads(__tstate);
34050 if (PyErr_Occurred()) SWIG_fail;
34051 }
e9d6f3a4 34052 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
34053 return resultobj;
34054fail:
34055 return NULL;
d55e5bfc
RD
34056}
34057
34058
1bd55598
RD
34059SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34060 PyObject *resultobj = 0;
34061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34062 unsigned int result;
34063 void *argp1 = 0 ;
34064 int res1 = 0 ;
34065 PyObject *swig_obj[1] ;
34066
34067 if (!args) SWIG_fail;
34068 swig_obj[0] = args;
34069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34070 if (!SWIG_IsOK(res1)) {
34071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34072 }
34073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34074 {
34075 PyThreadState* __tstate = wxPyBeginAllowThreads();
34076 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34077 wxPyEndAllowThreads(__tstate);
34078 if (PyErr_Occurred()) SWIG_fail;
34079 }
34080 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34081 return resultobj;
34082fail:
34083 return NULL;
34084}
34085
34086
34087SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34088 PyObject *resultobj = 0;
34089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34090 unsigned int arg2 ;
34091 void *argp1 = 0 ;
34092 int res1 = 0 ;
34093 unsigned int val2 ;
34094 int ecode2 = 0 ;
34095 PyObject * obj0 = 0 ;
34096 PyObject * obj1 = 0 ;
34097 char * kwnames[] = {
34098 (char *) "self",(char *) "indent", NULL
34099 };
34100
34101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34103 if (!SWIG_IsOK(res1)) {
34104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34105 }
34106 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34107 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34108 if (!SWIG_IsOK(ecode2)) {
34109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34110 }
34111 arg2 = static_cast< unsigned int >(val2);
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 (arg1)->SetIndent(arg2);
34115 wxPyEndAllowThreads(__tstate);
34116 if (PyErr_Occurred()) SWIG_fail;
34117 }
34118 resultobj = SWIG_Py_Void();
34119 return resultobj;
34120fail:
34121 return NULL;
d55e5bfc
RD
34122}
34123
34124
1bd55598
RD
34125SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34126 PyObject *resultobj = 0;
34127 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34128 unsigned int result;
34129 void *argp1 = 0 ;
34130 int res1 = 0 ;
34131 PyObject *swig_obj[1] ;
34132
34133 if (!args) SWIG_fail;
34134 swig_obj[0] = args;
34135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34136 if (!SWIG_IsOK(res1)) {
34137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34138 }
34139 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34140 {
34141 PyThreadState* __tstate = wxPyBeginAllowThreads();
34142 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34143 wxPyEndAllowThreads(__tstate);
34144 if (PyErr_Occurred()) SWIG_fail;
34145 }
34146 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34147 return resultobj;
34148fail:
34149 return NULL;
34150}
34151
34152
34153SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34154 PyObject *resultobj = 0;
34155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34156 unsigned int arg2 ;
34157 void *argp1 = 0 ;
34158 int res1 = 0 ;
34159 unsigned int val2 ;
34160 int ecode2 = 0 ;
34161 PyObject * obj0 = 0 ;
34162 PyObject * obj1 = 0 ;
34163 char * kwnames[] = {
34164 (char *) "self",(char *) "spacing", NULL
34165 };
34166
34167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34169 if (!SWIG_IsOK(res1)) {
34170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34171 }
34172 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34173 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34174 if (!SWIG_IsOK(ecode2)) {
34175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34176 }
34177 arg2 = static_cast< unsigned int >(val2);
34178 {
34179 PyThreadState* __tstate = wxPyBeginAllowThreads();
34180 (arg1)->SetSpacing(arg2);
34181 wxPyEndAllowThreads(__tstate);
34182 if (PyErr_Occurred()) SWIG_fail;
34183 }
34184 resultobj = SWIG_Py_Void();
34185 return resultobj;
34186fail:
34187 return NULL;
d55e5bfc
RD
34188}
34189
34190
1bd55598
RD
34191SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34192 PyObject *resultobj = 0;
34193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34194 wxImageList *result = 0 ;
34195 void *argp1 = 0 ;
34196 int res1 = 0 ;
34197 PyObject *swig_obj[1] ;
34198
34199 if (!args) SWIG_fail;
34200 swig_obj[0] = args;
34201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34202 if (!SWIG_IsOK(res1)) {
34203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34204 }
34205 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34206 {
34207 PyThreadState* __tstate = wxPyBeginAllowThreads();
34208 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34209 wxPyEndAllowThreads(__tstate);
34210 if (PyErr_Occurred()) SWIG_fail;
34211 }
3ecece7e
RD
34212 {
34213 resultobj = wxPyMake_wxObject(result, (bool)0);
34214 }
1bd55598
RD
34215 return resultobj;
34216fail:
34217 return NULL;
d55e5bfc
RD
34218}
34219
34220
1bd55598
RD
34221SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34222 PyObject *resultobj = 0;
34223 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34224 wxImageList *result = 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 PyObject *swig_obj[1] ;
34228
34229 if (!args) SWIG_fail;
34230 swig_obj[0] = args;
34231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34232 if (!SWIG_IsOK(res1)) {
34233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34234 }
34235 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34236 {
34237 PyThreadState* __tstate = wxPyBeginAllowThreads();
34238 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34239 wxPyEndAllowThreads(__tstate);
34240 if (PyErr_Occurred()) SWIG_fail;
34241 }
3ecece7e
RD
34242 {
34243 resultobj = wxPyMake_wxObject(result, (bool)0);
34244 }
1bd55598
RD
34245 return resultobj;
34246fail:
34247 return NULL;
34248}
34249
34250
34251SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34252 PyObject *resultobj = 0;
34253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34254 wxImageList *arg2 = (wxImageList *) 0 ;
34255 void *argp1 = 0 ;
34256 int res1 = 0 ;
34257 void *argp2 = 0 ;
34258 int res2 = 0 ;
34259 PyObject * obj0 = 0 ;
34260 PyObject * obj1 = 0 ;
34261 char * kwnames[] = {
34262 (char *) "self",(char *) "imageList", NULL
34263 };
34264
34265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34267 if (!SWIG_IsOK(res1)) {
34268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34269 }
34270 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34272 if (!SWIG_IsOK(res2)) {
34273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34274 }
34275 arg2 = reinterpret_cast< wxImageList * >(argp2);
34276 {
34277 PyThreadState* __tstate = wxPyBeginAllowThreads();
34278 (arg1)->SetImageList(arg2);
34279 wxPyEndAllowThreads(__tstate);
34280 if (PyErr_Occurred()) SWIG_fail;
34281 }
34282 resultobj = SWIG_Py_Void();
34283 return resultobj;
34284fail:
34285 return NULL;
34286}
34287
34288
34289SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34290 PyObject *resultobj = 0;
34291 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34292 wxImageList *arg2 = (wxImageList *) 0 ;
34293 void *argp1 = 0 ;
34294 int res1 = 0 ;
34295 void *argp2 = 0 ;
34296 int res2 = 0 ;
34297 PyObject * obj0 = 0 ;
34298 PyObject * obj1 = 0 ;
34299 char * kwnames[] = {
34300 (char *) "self",(char *) "imageList", NULL
34301 };
34302
34303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34305 if (!SWIG_IsOK(res1)) {
34306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34307 }
34308 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34310 if (!SWIG_IsOK(res2)) {
34311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34312 }
34313 arg2 = reinterpret_cast< wxImageList * >(argp2);
34314 {
34315 PyThreadState* __tstate = wxPyBeginAllowThreads();
34316 (arg1)->SetStateImageList(arg2);
34317 wxPyEndAllowThreads(__tstate);
34318 if (PyErr_Occurred()) SWIG_fail;
34319 }
34320 resultobj = SWIG_Py_Void();
34321 return resultobj;
34322fail:
34323 return NULL;
34324}
34325
34326
34327SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34328 PyObject *resultobj = 0;
34329 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34330 wxImageList *arg2 = (wxImageList *) 0 ;
34331 void *argp1 = 0 ;
34332 int res1 = 0 ;
34333 int res2 = 0 ;
34334 PyObject * obj0 = 0 ;
34335 PyObject * obj1 = 0 ;
34336 char * kwnames[] = {
34337 (char *) "self",(char *) "imageList", NULL
34338 };
34339
34340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34342 if (!SWIG_IsOK(res1)) {
34343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34344 }
34345 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34346 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34347 if (!SWIG_IsOK(res2)) {
34348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34349 }
34350 {
34351 PyThreadState* __tstate = wxPyBeginAllowThreads();
34352 (arg1)->AssignImageList(arg2);
34353 wxPyEndAllowThreads(__tstate);
34354 if (PyErr_Occurred()) SWIG_fail;
34355 }
34356 resultobj = SWIG_Py_Void();
34357 return resultobj;
34358fail:
34359 return NULL;
34360}
34361
34362
34363SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34364 PyObject *resultobj = 0;
34365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34366 wxImageList *arg2 = (wxImageList *) 0 ;
34367 void *argp1 = 0 ;
34368 int res1 = 0 ;
34369 int res2 = 0 ;
34370 PyObject * obj0 = 0 ;
34371 PyObject * obj1 = 0 ;
34372 char * kwnames[] = {
34373 (char *) "self",(char *) "imageList", NULL
34374 };
34375
34376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34378 if (!SWIG_IsOK(res1)) {
34379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34380 }
34381 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34382 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34383 if (!SWIG_IsOK(res2)) {
34384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34385 }
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 (arg1)->AssignStateImageList(arg2);
34389 wxPyEndAllowThreads(__tstate);
34390 if (PyErr_Occurred()) SWIG_fail;
34391 }
34392 resultobj = SWIG_Py_Void();
34393 return resultobj;
34394fail:
34395 return NULL;
34396}
34397
34398
34399SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34400 PyObject *resultobj = 0;
34401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34402 wxTreeItemId *arg2 = 0 ;
34403 wxString result;
34404 void *argp1 = 0 ;
34405 int res1 = 0 ;
34406 void *argp2 = 0 ;
34407 int res2 = 0 ;
34408 PyObject * obj0 = 0 ;
34409 PyObject * obj1 = 0 ;
34410 char * kwnames[] = {
34411 (char *) "self",(char *) "item", NULL
34412 };
34413
34414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34416 if (!SWIG_IsOK(res1)) {
34417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34418 }
34419 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34421 if (!SWIG_IsOK(res2)) {
34422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34423 }
34424 if (!argp2) {
34425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34426 }
34427 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34428 {
34429 PyThreadState* __tstate = wxPyBeginAllowThreads();
34430 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34431 wxPyEndAllowThreads(__tstate);
34432 if (PyErr_Occurred()) SWIG_fail;
34433 }
34434 {
34435#if wxUSE_UNICODE
34436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34437#else
34438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34439#endif
34440 }
34441 return resultobj;
34442fail:
34443 return NULL;
34444}
34445
34446
34447SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34448 PyObject *resultobj = 0;
34449 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34450 wxTreeItemId *arg2 = 0 ;
34451 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34452 int result;
34453 void *argp1 = 0 ;
34454 int res1 = 0 ;
34455 void *argp2 = 0 ;
34456 int res2 = 0 ;
34457 int val3 ;
34458 int ecode3 = 0 ;
34459 PyObject * obj0 = 0 ;
34460 PyObject * obj1 = 0 ;
34461 PyObject * obj2 = 0 ;
34462 char * kwnames[] = {
34463 (char *) "self",(char *) "item",(char *) "which", NULL
34464 };
34465
34466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34468 if (!SWIG_IsOK(res1)) {
34469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34470 }
34471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34473 if (!SWIG_IsOK(res2)) {
34474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34475 }
34476 if (!argp2) {
34477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34478 }
34479 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34480 if (obj2) {
34481 ecode3 = SWIG_AsVal_int(obj2, &val3);
34482 if (!SWIG_IsOK(ecode3)) {
34483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34484 }
34485 arg3 = static_cast< wxTreeItemIcon >(val3);
34486 }
34487 {
34488 PyThreadState* __tstate = wxPyBeginAllowThreads();
34489 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34490 wxPyEndAllowThreads(__tstate);
34491 if (PyErr_Occurred()) SWIG_fail;
34492 }
34493 resultobj = SWIG_From_int(static_cast< int >(result));
34494 return resultobj;
34495fail:
34496 return NULL;
34497}
34498
34499
34500SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34501 PyObject *resultobj = 0;
34502 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34503 wxTreeItemId *arg2 = 0 ;
34504 wxPyTreeItemData *result = 0 ;
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 void *argp2 = 0 ;
34508 int res2 = 0 ;
34509 PyObject * obj0 = 0 ;
34510 PyObject * obj1 = 0 ;
34511 char * kwnames[] = {
34512 (char *) "self",(char *) "item", NULL
34513 };
34514
34515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34517 if (!SWIG_IsOK(res1)) {
34518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34519 }
34520 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34522 if (!SWIG_IsOK(res2)) {
34523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34524 }
34525 if (!argp2) {
34526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34527 }
34528 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34529 {
34530 PyThreadState* __tstate = wxPyBeginAllowThreads();
34531 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34532 wxPyEndAllowThreads(__tstate);
34533 if (PyErr_Occurred()) SWIG_fail;
34534 }
34535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34536 return resultobj;
34537fail:
34538 return NULL;
34539}
34540
34541
34542SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34543 PyObject *resultobj = 0;
34544 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34545 wxTreeItemId *arg2 = 0 ;
34546 PyObject *result = 0 ;
34547 void *argp1 = 0 ;
34548 int res1 = 0 ;
34549 void *argp2 = 0 ;
34550 int res2 = 0 ;
34551 PyObject * obj0 = 0 ;
34552 PyObject * obj1 = 0 ;
34553 char * kwnames[] = {
34554 (char *) "self",(char *) "item", NULL
34555 };
34556
34557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34559 if (!SWIG_IsOK(res1)) {
34560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34561 }
34562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34564 if (!SWIG_IsOK(res2)) {
34565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34566 }
34567 if (!argp2) {
34568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34569 }
34570 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34571 {
34572 PyThreadState* __tstate = wxPyBeginAllowThreads();
34573 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34574 wxPyEndAllowThreads(__tstate);
34575 if (PyErr_Occurred()) SWIG_fail;
34576 }
34577 resultobj = result;
34578 return resultobj;
34579fail:
34580 return NULL;
34581}
34582
34583
34584SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34585 PyObject *resultobj = 0;
34586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34587 wxTreeItemId *arg2 = 0 ;
34588 wxColour result;
34589 void *argp1 = 0 ;
34590 int res1 = 0 ;
34591 void *argp2 = 0 ;
34592 int res2 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 char * kwnames[] = {
34596 (char *) "self",(char *) "item", NULL
34597 };
34598
34599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34601 if (!SWIG_IsOK(res1)) {
34602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34603 }
34604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34606 if (!SWIG_IsOK(res2)) {
34607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34608 }
34609 if (!argp2) {
34610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34611 }
34612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34613 {
34614 PyThreadState* __tstate = wxPyBeginAllowThreads();
34615 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34616 wxPyEndAllowThreads(__tstate);
34617 if (PyErr_Occurred()) SWIG_fail;
34618 }
34619 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34620 return resultobj;
34621fail:
34622 return NULL;
34623}
34624
34625
34626SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34627 PyObject *resultobj = 0;
34628 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34629 wxTreeItemId *arg2 = 0 ;
34630 wxColour result;
34631 void *argp1 = 0 ;
34632 int res1 = 0 ;
34633 void *argp2 = 0 ;
34634 int res2 = 0 ;
34635 PyObject * obj0 = 0 ;
34636 PyObject * obj1 = 0 ;
34637 char * kwnames[] = {
34638 (char *) "self",(char *) "item", NULL
34639 };
34640
34641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34643 if (!SWIG_IsOK(res1)) {
34644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34645 }
34646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34648 if (!SWIG_IsOK(res2)) {
34649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34650 }
34651 if (!argp2) {
34652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34653 }
34654 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34655 {
34656 PyThreadState* __tstate = wxPyBeginAllowThreads();
34657 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34658 wxPyEndAllowThreads(__tstate);
34659 if (PyErr_Occurred()) SWIG_fail;
34660 }
34661 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34662 return resultobj;
34663fail:
34664 return NULL;
34665}
34666
34667
34668SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34669 PyObject *resultobj = 0;
34670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34671 wxTreeItemId *arg2 = 0 ;
34672 wxFont result;
34673 void *argp1 = 0 ;
34674 int res1 = 0 ;
34675 void *argp2 = 0 ;
34676 int res2 = 0 ;
34677 PyObject * obj0 = 0 ;
34678 PyObject * obj1 = 0 ;
34679 char * kwnames[] = {
34680 (char *) "self",(char *) "item", NULL
34681 };
34682
34683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34685 if (!SWIG_IsOK(res1)) {
34686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34687 }
34688 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34690 if (!SWIG_IsOK(res2)) {
34691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34692 }
34693 if (!argp2) {
34694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34695 }
34696 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34697 {
34698 PyThreadState* __tstate = wxPyBeginAllowThreads();
34699 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34700 wxPyEndAllowThreads(__tstate);
34701 if (PyErr_Occurred()) SWIG_fail;
34702 }
34703 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34704 return resultobj;
34705fail:
34706 return NULL;
34707}
34708
34709
34710SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34711 PyObject *resultobj = 0;
34712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34713 wxTreeItemId *arg2 = 0 ;
34714 wxString *arg3 = 0 ;
34715 void *argp1 = 0 ;
34716 int res1 = 0 ;
34717 void *argp2 = 0 ;
34718 int res2 = 0 ;
34719 bool temp3 = false ;
34720 PyObject * obj0 = 0 ;
34721 PyObject * obj1 = 0 ;
34722 PyObject * obj2 = 0 ;
34723 char * kwnames[] = {
34724 (char *) "self",(char *) "item",(char *) "text", NULL
34725 };
34726
34727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34729 if (!SWIG_IsOK(res1)) {
34730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34731 }
34732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34734 if (!SWIG_IsOK(res2)) {
34735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34736 }
34737 if (!argp2) {
34738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34739 }
34740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34741 {
34742 arg3 = wxString_in_helper(obj2);
34743 if (arg3 == NULL) SWIG_fail;
34744 temp3 = true;
34745 }
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 resultobj = SWIG_Py_Void();
34753 {
34754 if (temp3)
34755 delete arg3;
34756 }
34757 return resultobj;
34758fail:
34759 {
34760 if (temp3)
34761 delete arg3;
34762 }
34763 return NULL;
34764}
34765
34766
34767SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34768 PyObject *resultobj = 0;
34769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34770 wxTreeItemId *arg2 = 0 ;
34771 int arg3 ;
34772 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34773 void *argp1 = 0 ;
34774 int res1 = 0 ;
34775 void *argp2 = 0 ;
34776 int res2 = 0 ;
34777 int val3 ;
34778 int ecode3 = 0 ;
34779 int val4 ;
34780 int ecode4 = 0 ;
34781 PyObject * obj0 = 0 ;
34782 PyObject * obj1 = 0 ;
34783 PyObject * obj2 = 0 ;
34784 PyObject * obj3 = 0 ;
34785 char * kwnames[] = {
34786 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34787 };
34788
34789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34791 if (!SWIG_IsOK(res1)) {
34792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34793 }
34794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34796 if (!SWIG_IsOK(res2)) {
34797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34798 }
34799 if (!argp2) {
34800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34801 }
34802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34803 ecode3 = SWIG_AsVal_int(obj2, &val3);
34804 if (!SWIG_IsOK(ecode3)) {
34805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34806 }
34807 arg3 = static_cast< int >(val3);
34808 if (obj3) {
34809 ecode4 = SWIG_AsVal_int(obj3, &val4);
34810 if (!SWIG_IsOK(ecode4)) {
34811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34812 }
34813 arg4 = static_cast< wxTreeItemIcon >(val4);
34814 }
34815 {
34816 PyThreadState* __tstate = wxPyBeginAllowThreads();
34817 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34818 wxPyEndAllowThreads(__tstate);
34819 if (PyErr_Occurred()) SWIG_fail;
34820 }
34821 resultobj = SWIG_Py_Void();
34822 return resultobj;
34823fail:
34824 return NULL;
34825}
34826
34827
34828SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34829 PyObject *resultobj = 0;
34830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34831 wxTreeItemId *arg2 = 0 ;
34832 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34833 void *argp1 = 0 ;
34834 int res1 = 0 ;
34835 void *argp2 = 0 ;
34836 int res2 = 0 ;
34837 int res3 = 0 ;
34838 PyObject * obj0 = 0 ;
34839 PyObject * obj1 = 0 ;
34840 PyObject * obj2 = 0 ;
34841 char * kwnames[] = {
34842 (char *) "self",(char *) "item",(char *) "data", NULL
34843 };
34844
34845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34847 if (!SWIG_IsOK(res1)) {
34848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34849 }
34850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34852 if (!SWIG_IsOK(res2)) {
34853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34854 }
34855 if (!argp2) {
34856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34859 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34860 if (!SWIG_IsOK(res3)) {
34861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34862 }
34863 {
34864 PyThreadState* __tstate = wxPyBeginAllowThreads();
34865 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34866 wxPyEndAllowThreads(__tstate);
34867 if (PyErr_Occurred()) SWIG_fail;
34868 }
34869 resultobj = SWIG_Py_Void();
34870 return resultobj;
34871fail:
34872 return NULL;
34873}
34874
34875
34876SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34877 PyObject *resultobj = 0;
34878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34879 wxTreeItemId *arg2 = 0 ;
34880 PyObject *arg3 = (PyObject *) 0 ;
34881 void *argp1 = 0 ;
34882 int res1 = 0 ;
34883 void *argp2 = 0 ;
34884 int res2 = 0 ;
34885 PyObject * obj0 = 0 ;
34886 PyObject * obj1 = 0 ;
34887 PyObject * obj2 = 0 ;
34888 char * kwnames[] = {
34889 (char *) "self",(char *) "item",(char *) "obj", NULL
34890 };
34891
34892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34894 if (!SWIG_IsOK(res1)) {
34895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34896 }
34897 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34899 if (!SWIG_IsOK(res2)) {
34900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34901 }
34902 if (!argp2) {
34903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34904 }
34905 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34906 arg3 = obj2;
34907 {
34908 PyThreadState* __tstate = wxPyBeginAllowThreads();
34909 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34910 wxPyEndAllowThreads(__tstate);
34911 if (PyErr_Occurred()) SWIG_fail;
34912 }
34913 resultobj = SWIG_Py_Void();
34914 return resultobj;
34915fail:
34916 return NULL;
34917}
34918
34919
34920SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34921 PyObject *resultobj = 0;
34922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34923 wxTreeItemId *arg2 = 0 ;
34924 bool arg3 = (bool) true ;
34925 void *argp1 = 0 ;
34926 int res1 = 0 ;
34927 void *argp2 = 0 ;
34928 int res2 = 0 ;
34929 bool val3 ;
34930 int ecode3 = 0 ;
34931 PyObject * obj0 = 0 ;
34932 PyObject * obj1 = 0 ;
34933 PyObject * obj2 = 0 ;
34934 char * kwnames[] = {
34935 (char *) "self",(char *) "item",(char *) "has", NULL
34936 };
34937
34938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34940 if (!SWIG_IsOK(res1)) {
34941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34942 }
34943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34945 if (!SWIG_IsOK(res2)) {
34946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34947 }
34948 if (!argp2) {
34949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34950 }
34951 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34952 if (obj2) {
34953 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34954 if (!SWIG_IsOK(ecode3)) {
34955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34956 }
34957 arg3 = static_cast< bool >(val3);
34958 }
34959 {
34960 PyThreadState* __tstate = wxPyBeginAllowThreads();
34961 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34962 wxPyEndAllowThreads(__tstate);
34963 if (PyErr_Occurred()) SWIG_fail;
34964 }
34965 resultobj = SWIG_Py_Void();
34966 return resultobj;
34967fail:
34968 return NULL;
34969}
34970
34971
34972SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34973 PyObject *resultobj = 0;
34974 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34975 wxTreeItemId *arg2 = 0 ;
34976 bool arg3 = (bool) true ;
34977 void *argp1 = 0 ;
34978 int res1 = 0 ;
34979 void *argp2 = 0 ;
34980 int res2 = 0 ;
34981 bool val3 ;
34982 int ecode3 = 0 ;
34983 PyObject * obj0 = 0 ;
34984 PyObject * obj1 = 0 ;
34985 PyObject * obj2 = 0 ;
34986 char * kwnames[] = {
34987 (char *) "self",(char *) "item",(char *) "bold", NULL
34988 };
34989
34990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34992 if (!SWIG_IsOK(res1)) {
34993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34994 }
34995 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34997 if (!SWIG_IsOK(res2)) {
34998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34999 }
35000 if (!argp2) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35004 if (obj2) {
35005 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35006 if (!SWIG_IsOK(ecode3)) {
35007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35008 }
35009 arg3 = static_cast< bool >(val3);
35010 }
35011 {
35012 PyThreadState* __tstate = wxPyBeginAllowThreads();
35013 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35014 wxPyEndAllowThreads(__tstate);
35015 if (PyErr_Occurred()) SWIG_fail;
35016 }
35017 resultobj = SWIG_Py_Void();
35018 return resultobj;
35019fail:
35020 return NULL;
35021}
35022
35023
35024SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35025 PyObject *resultobj = 0;
35026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35027 wxTreeItemId *arg2 = 0 ;
35028 bool arg3 = (bool) true ;
35029 void *argp1 = 0 ;
35030 int res1 = 0 ;
35031 void *argp2 = 0 ;
35032 int res2 = 0 ;
35033 bool val3 ;
35034 int ecode3 = 0 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 PyObject * obj2 = 0 ;
35038 char * kwnames[] = {
35039 (char *) "self",(char *) "item",(char *) "highlight", NULL
35040 };
35041
35042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35044 if (!SWIG_IsOK(res1)) {
35045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35046 }
35047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35049 if (!SWIG_IsOK(res2)) {
35050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35051 }
35052 if (!argp2) {
35053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35054 }
35055 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35056 if (obj2) {
35057 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35058 if (!SWIG_IsOK(ecode3)) {
35059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35060 }
35061 arg3 = static_cast< bool >(val3);
35062 }
35063 {
35064 PyThreadState* __tstate = wxPyBeginAllowThreads();
35065 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35066 wxPyEndAllowThreads(__tstate);
35067 if (PyErr_Occurred()) SWIG_fail;
35068 }
35069 resultobj = SWIG_Py_Void();
35070 return resultobj;
35071fail:
35072 return NULL;
35073}
35074
35075
35076SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35077 PyObject *resultobj = 0;
35078 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35079 wxTreeItemId *arg2 = 0 ;
35080 wxColour *arg3 = 0 ;
35081 void *argp1 = 0 ;
35082 int res1 = 0 ;
35083 void *argp2 = 0 ;
35084 int res2 = 0 ;
35085 wxColour temp3 ;
35086 PyObject * obj0 = 0 ;
35087 PyObject * obj1 = 0 ;
35088 PyObject * obj2 = 0 ;
35089 char * kwnames[] = {
35090 (char *) "self",(char *) "item",(char *) "col", NULL
35091 };
35092
35093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35095 if (!SWIG_IsOK(res1)) {
35096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35097 }
35098 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35100 if (!SWIG_IsOK(res2)) {
35101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35102 }
35103 if (!argp2) {
35104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35105 }
35106 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35107 {
35108 arg3 = &temp3;
35109 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35110 }
35111 {
35112 PyThreadState* __tstate = wxPyBeginAllowThreads();
35113 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35114 wxPyEndAllowThreads(__tstate);
35115 if (PyErr_Occurred()) SWIG_fail;
35116 }
35117 resultobj = SWIG_Py_Void();
35118 return resultobj;
35119fail:
35120 return NULL;
35121}
35122
35123
35124SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35125 PyObject *resultobj = 0;
35126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35127 wxTreeItemId *arg2 = 0 ;
35128 wxColour *arg3 = 0 ;
35129 void *argp1 = 0 ;
35130 int res1 = 0 ;
35131 void *argp2 = 0 ;
35132 int res2 = 0 ;
35133 wxColour temp3 ;
35134 PyObject * obj0 = 0 ;
35135 PyObject * obj1 = 0 ;
35136 PyObject * obj2 = 0 ;
35137 char * kwnames[] = {
35138 (char *) "self",(char *) "item",(char *) "col", NULL
35139 };
35140
35141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35143 if (!SWIG_IsOK(res1)) {
35144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35145 }
35146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35148 if (!SWIG_IsOK(res2)) {
35149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35150 }
35151 if (!argp2) {
35152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35153 }
35154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35155 {
35156 arg3 = &temp3;
35157 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35158 }
35159 {
35160 PyThreadState* __tstate = wxPyBeginAllowThreads();
35161 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35162 wxPyEndAllowThreads(__tstate);
35163 if (PyErr_Occurred()) SWIG_fail;
35164 }
35165 resultobj = SWIG_Py_Void();
35166 return resultobj;
35167fail:
35168 return NULL;
35169}
35170
35171
35172SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35173 PyObject *resultobj = 0;
35174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35175 wxTreeItemId *arg2 = 0 ;
35176 wxFont *arg3 = 0 ;
35177 void *argp1 = 0 ;
35178 int res1 = 0 ;
35179 void *argp2 = 0 ;
35180 int res2 = 0 ;
35181 void *argp3 = 0 ;
35182 int res3 = 0 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 PyObject * obj2 = 0 ;
35186 char * kwnames[] = {
35187 (char *) "self",(char *) "item",(char *) "font", NULL
35188 };
35189
35190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35192 if (!SWIG_IsOK(res1)) {
35193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35194 }
35195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35197 if (!SWIG_IsOK(res2)) {
35198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35199 }
35200 if (!argp2) {
35201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35202 }
35203 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35204 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35205 if (!SWIG_IsOK(res3)) {
35206 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35207 }
35208 if (!argp3) {
35209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35210 }
35211 arg3 = reinterpret_cast< wxFont * >(argp3);
35212 {
35213 PyThreadState* __tstate = wxPyBeginAllowThreads();
35214 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 resultobj = SWIG_Py_Void();
35219 return resultobj;
35220fail:
35221 return NULL;
35222}
35223
35224
35225SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35226 PyObject *resultobj = 0;
35227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35228 wxTreeItemId *arg2 = 0 ;
35229 bool result;
35230 void *argp1 = 0 ;
35231 int res1 = 0 ;
35232 void *argp2 = 0 ;
35233 int res2 = 0 ;
35234 PyObject * obj0 = 0 ;
35235 PyObject * obj1 = 0 ;
35236 char * kwnames[] = {
35237 (char *) "self",(char *) "item", NULL
35238 };
35239
35240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35242 if (!SWIG_IsOK(res1)) {
35243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35244 }
35245 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35247 if (!SWIG_IsOK(res2)) {
35248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35249 }
35250 if (!argp2) {
35251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35252 }
35253 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35254 {
35255 PyThreadState* __tstate = wxPyBeginAllowThreads();
35256 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 {
35261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35262 }
35263 return resultobj;
35264fail:
35265 return NULL;
35266}
35267
35268
35269SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35270 PyObject *resultobj = 0;
35271 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35272 wxTreeItemId *arg2 = 0 ;
35273 bool result;
35274 void *argp1 = 0 ;
35275 int res1 = 0 ;
35276 void *argp2 = 0 ;
35277 int res2 = 0 ;
35278 PyObject * obj0 = 0 ;
35279 PyObject * obj1 = 0 ;
35280 char * kwnames[] = {
35281 (char *) "self",(char *) "item", NULL
35282 };
35283
35284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35286 if (!SWIG_IsOK(res1)) {
35287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35288 }
35289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35291 if (!SWIG_IsOK(res2)) {
35292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35293 }
35294 if (!argp2) {
35295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35296 }
35297 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35298 {
35299 PyThreadState* __tstate = wxPyBeginAllowThreads();
35300 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35301 wxPyEndAllowThreads(__tstate);
35302 if (PyErr_Occurred()) SWIG_fail;
35303 }
35304 {
35305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35306 }
35307 return resultobj;
35308fail:
35309 return NULL;
35310}
35311
35312
35313SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35314 PyObject *resultobj = 0;
35315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35316 wxTreeItemId *arg2 = 0 ;
35317 bool result;
35318 void *argp1 = 0 ;
35319 int res1 = 0 ;
35320 void *argp2 = 0 ;
35321 int res2 = 0 ;
35322 PyObject * obj0 = 0 ;
35323 PyObject * obj1 = 0 ;
35324 char * kwnames[] = {
35325 (char *) "self",(char *) "item", NULL
35326 };
35327
35328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35330 if (!SWIG_IsOK(res1)) {
35331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35332 }
35333 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35335 if (!SWIG_IsOK(res2)) {
35336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35337 }
35338 if (!argp2) {
35339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35340 }
35341 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35342 {
35343 PyThreadState* __tstate = wxPyBeginAllowThreads();
35344 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35345 wxPyEndAllowThreads(__tstate);
35346 if (PyErr_Occurred()) SWIG_fail;
35347 }
35348 {
35349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35350 }
35351 return resultobj;
35352fail:
35353 return NULL;
35354}
35355
35356
35357SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35358 PyObject *resultobj = 0;
35359 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35360 wxTreeItemId *arg2 = 0 ;
35361 bool result;
35362 void *argp1 = 0 ;
35363 int res1 = 0 ;
35364 void *argp2 = 0 ;
35365 int res2 = 0 ;
35366 PyObject * obj0 = 0 ;
35367 PyObject * obj1 = 0 ;
35368 char * kwnames[] = {
35369 (char *) "self",(char *) "item", NULL
35370 };
35371
35372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35374 if (!SWIG_IsOK(res1)) {
35375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35376 }
35377 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35379 if (!SWIG_IsOK(res2)) {
35380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35381 }
35382 if (!argp2) {
35383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35384 }
35385 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35386 {
35387 PyThreadState* __tstate = wxPyBeginAllowThreads();
35388 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35389 wxPyEndAllowThreads(__tstate);
35390 if (PyErr_Occurred()) SWIG_fail;
35391 }
35392 {
35393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35394 }
35395 return resultobj;
35396fail:
35397 return NULL;
35398}
35399
35400
35401SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35402 PyObject *resultobj = 0;
35403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35404 wxTreeItemId *arg2 = 0 ;
35405 bool result;
35406 void *argp1 = 0 ;
35407 int res1 = 0 ;
35408 void *argp2 = 0 ;
35409 int res2 = 0 ;
35410 PyObject * obj0 = 0 ;
35411 PyObject * obj1 = 0 ;
35412 char * kwnames[] = {
35413 (char *) "self",(char *) "item", NULL
35414 };
35415
35416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35418 if (!SWIG_IsOK(res1)) {
35419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35420 }
35421 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35423 if (!SWIG_IsOK(res2)) {
35424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35425 }
35426 if (!argp2) {
35427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35428 }
35429 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35430 {
35431 PyThreadState* __tstate = wxPyBeginAllowThreads();
35432 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35433 wxPyEndAllowThreads(__tstate);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 {
35437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35438 }
35439 return resultobj;
35440fail:
35441 return NULL;
35442}
35443
35444
35445SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35446 PyObject *resultobj = 0;
35447 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35448 wxTreeItemId *arg2 = 0 ;
35449 bool arg3 = (bool) true ;
35450 size_t result;
35451 void *argp1 = 0 ;
35452 int res1 = 0 ;
35453 void *argp2 = 0 ;
35454 int res2 = 0 ;
35455 bool val3 ;
35456 int ecode3 = 0 ;
35457 PyObject * obj0 = 0 ;
35458 PyObject * obj1 = 0 ;
35459 PyObject * obj2 = 0 ;
35460 char * kwnames[] = {
35461 (char *) "self",(char *) "item",(char *) "recursively", NULL
35462 };
35463
35464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35466 if (!SWIG_IsOK(res1)) {
35467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35468 }
35469 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35471 if (!SWIG_IsOK(res2)) {
35472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35473 }
35474 if (!argp2) {
35475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35476 }
35477 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35478 if (obj2) {
35479 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35480 if (!SWIG_IsOK(ecode3)) {
35481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35482 }
35483 arg3 = static_cast< bool >(val3);
35484 }
35485 {
35486 PyThreadState* __tstate = wxPyBeginAllowThreads();
35487 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35488 wxPyEndAllowThreads(__tstate);
35489 if (PyErr_Occurred()) SWIG_fail;
35490 }
35491 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35492 return resultobj;
35493fail:
35494 return NULL;
d55e5bfc
RD
35495}
35496
35497
1bd55598
RD
35498SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35499 PyObject *resultobj = 0;
35500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35501 wxTreeItemId result;
35502 void *argp1 = 0 ;
35503 int res1 = 0 ;
35504 PyObject *swig_obj[1] ;
35505
35506 if (!args) SWIG_fail;
35507 swig_obj[0] = args;
35508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35509 if (!SWIG_IsOK(res1)) {
35510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35511 }
35512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35513 {
35514 PyThreadState* __tstate = wxPyBeginAllowThreads();
35515 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35516 wxPyEndAllowThreads(__tstate);
35517 if (PyErr_Occurred()) SWIG_fail;
35518 }
35519 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35520 return resultobj;
35521fail:
35522 return NULL;
d55e5bfc
RD
35523}
35524
35525
1bd55598
RD
35526SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35527 PyObject *resultobj = 0;
35528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35529 wxTreeItemId result;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 PyObject *swig_obj[1] ;
35533
35534 if (!args) SWIG_fail;
35535 swig_obj[0] = args;
35536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35539 }
35540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35548 return resultobj;
35549fail:
35550 return NULL;
d55e5bfc
RD
35551}
35552
35553
1bd55598
RD
35554SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35555 PyObject *resultobj = 0;
35556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35557 PyObject *result = 0 ;
35558 void *argp1 = 0 ;
35559 int res1 = 0 ;
35560 PyObject *swig_obj[1] ;
35561
35562 if (!args) SWIG_fail;
35563 swig_obj[0] = args;
35564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35565 if (!SWIG_IsOK(res1)) {
35566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35567 }
35568 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35569 {
35570 PyThreadState* __tstate = wxPyBeginAllowThreads();
35571 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35572 wxPyEndAllowThreads(__tstate);
35573 if (PyErr_Occurred()) SWIG_fail;
35574 }
35575 resultobj = result;
35576 return resultobj;
35577fail:
35578 return NULL;
35579}
35580
35581
35582SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35583 PyObject *resultobj = 0;
35584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35585 wxTreeItemId *arg2 = 0 ;
35586 wxTreeItemId result;
35587 void *argp1 = 0 ;
35588 int res1 = 0 ;
35589 void *argp2 = 0 ;
35590 int res2 = 0 ;
35591 PyObject * obj0 = 0 ;
35592 PyObject * obj1 = 0 ;
35593 char * kwnames[] = {
35594 (char *) "self",(char *) "item", NULL
35595 };
35596
35597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35599 if (!SWIG_IsOK(res1)) {
35600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35601 }
35602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35604 if (!SWIG_IsOK(res2)) {
35605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35606 }
35607 if (!argp2) {
35608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35609 }
35610 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35611 {
35612 PyThreadState* __tstate = wxPyBeginAllowThreads();
35613 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35614 wxPyEndAllowThreads(__tstate);
35615 if (PyErr_Occurred()) SWIG_fail;
35616 }
35617 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35618 return resultobj;
35619fail:
35620 return NULL;
35621}
35622
35623
35624SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35625 PyObject *resultobj = 0;
35626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35627 wxTreeItemId *arg2 = 0 ;
35628 PyObject *result = 0 ;
35629 void *argp1 = 0 ;
35630 int res1 = 0 ;
35631 void *argp2 = 0 ;
35632 int res2 = 0 ;
35633 PyObject * obj0 = 0 ;
35634 PyObject * obj1 = 0 ;
35635 char * kwnames[] = {
35636 (char *) "self",(char *) "item", NULL
35637 };
35638
35639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35641 if (!SWIG_IsOK(res1)) {
35642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35643 }
35644 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35646 if (!SWIG_IsOK(res2)) {
35647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35648 }
35649 if (!argp2) {
35650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35651 }
35652 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35653 {
35654 PyThreadState* __tstate = wxPyBeginAllowThreads();
35655 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35656 wxPyEndAllowThreads(__tstate);
35657 if (PyErr_Occurred()) SWIG_fail;
35658 }
35659 resultobj = result;
35660 return resultobj;
35661fail:
35662 return NULL;
35663}
35664
35665
35666SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35667 PyObject *resultobj = 0;
35668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35669 wxTreeItemId *arg2 = 0 ;
35670 void *arg3 = (void *) 0 ;
35671 PyObject *result = 0 ;
35672 void *argp1 = 0 ;
35673 int res1 = 0 ;
35674 void *argp2 = 0 ;
35675 int res2 = 0 ;
35676 int res3 ;
35677 PyObject * obj0 = 0 ;
35678 PyObject * obj1 = 0 ;
35679 PyObject * obj2 = 0 ;
35680 char * kwnames[] = {
35681 (char *) "self",(char *) "item",(char *) "cookie", NULL
35682 };
35683
35684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35686 if (!SWIG_IsOK(res1)) {
35687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35688 }
35689 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35691 if (!SWIG_IsOK(res2)) {
35692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35693 }
35694 if (!argp2) {
35695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35696 }
35697 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35698 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35699 if (!SWIG_IsOK(res3)) {
35700 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35701 }
35702 {
35703 PyThreadState* __tstate = wxPyBeginAllowThreads();
35704 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35705 wxPyEndAllowThreads(__tstate);
35706 if (PyErr_Occurred()) SWIG_fail;
35707 }
35708 resultobj = result;
35709 return resultobj;
35710fail:
35711 return NULL;
35712}
35713
35714
35715SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35716 PyObject *resultobj = 0;
35717 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35718 wxTreeItemId *arg2 = 0 ;
35719 wxTreeItemId result;
35720 void *argp1 = 0 ;
35721 int res1 = 0 ;
35722 void *argp2 = 0 ;
35723 int res2 = 0 ;
35724 PyObject * obj0 = 0 ;
35725 PyObject * obj1 = 0 ;
35726 char * kwnames[] = {
35727 (char *) "self",(char *) "item", NULL
35728 };
35729
35730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35732 if (!SWIG_IsOK(res1)) {
35733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35734 }
35735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35737 if (!SWIG_IsOK(res2)) {
35738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35739 }
35740 if (!argp2) {
35741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35742 }
35743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35744 {
35745 PyThreadState* __tstate = wxPyBeginAllowThreads();
35746 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35747 wxPyEndAllowThreads(__tstate);
35748 if (PyErr_Occurred()) SWIG_fail;
35749 }
35750 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35751 return resultobj;
35752fail:
35753 return NULL;
35754}
35755
35756
35757SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35758 PyObject *resultobj = 0;
35759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35760 wxTreeItemId *arg2 = 0 ;
35761 wxTreeItemId result;
35762 void *argp1 = 0 ;
35763 int res1 = 0 ;
35764 void *argp2 = 0 ;
35765 int res2 = 0 ;
35766 PyObject * obj0 = 0 ;
35767 PyObject * obj1 = 0 ;
35768 char * kwnames[] = {
35769 (char *) "self",(char *) "item", NULL
35770 };
35771
35772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35774 if (!SWIG_IsOK(res1)) {
35775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35776 }
35777 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35779 if (!SWIG_IsOK(res2)) {
35780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35781 }
35782 if (!argp2) {
35783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35784 }
35785 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35786 {
35787 PyThreadState* __tstate = wxPyBeginAllowThreads();
35788 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35789 wxPyEndAllowThreads(__tstate);
35790 if (PyErr_Occurred()) SWIG_fail;
35791 }
35792 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35793 return resultobj;
35794fail:
35795 return NULL;
35796}
35797
35798
35799SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35800 PyObject *resultobj = 0;
35801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35802 wxTreeItemId *arg2 = 0 ;
35803 wxTreeItemId result;
35804 void *argp1 = 0 ;
35805 int res1 = 0 ;
35806 void *argp2 = 0 ;
35807 int res2 = 0 ;
35808 PyObject * obj0 = 0 ;
35809 PyObject * obj1 = 0 ;
35810 char * kwnames[] = {
35811 (char *) "self",(char *) "item", NULL
35812 };
35813
35814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35816 if (!SWIG_IsOK(res1)) {
35817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35818 }
35819 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35821 if (!SWIG_IsOK(res2)) {
35822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35823 }
35824 if (!argp2) {
35825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35826 }
35827 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35828 {
35829 PyThreadState* __tstate = wxPyBeginAllowThreads();
35830 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35831 wxPyEndAllowThreads(__tstate);
35832 if (PyErr_Occurred()) SWIG_fail;
35833 }
35834 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35835 return resultobj;
35836fail:
35837 return NULL;
d55e5bfc
RD
35838}
35839
35840
1bd55598
RD
35841SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35842 PyObject *resultobj = 0;
35843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35844 wxTreeItemId result;
35845 void *argp1 = 0 ;
35846 int res1 = 0 ;
35847 PyObject *swig_obj[1] ;
35848
35849 if (!args) SWIG_fail;
35850 swig_obj[0] = args;
35851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35852 if (!SWIG_IsOK(res1)) {
35853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35854 }
35855 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35856 {
35857 PyThreadState* __tstate = wxPyBeginAllowThreads();
35858 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35859 wxPyEndAllowThreads(__tstate);
35860 if (PyErr_Occurred()) SWIG_fail;
35861 }
35862 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35863 return resultobj;
35864fail:
35865 return NULL;
35866}
35867
35868
35869SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35870 PyObject *resultobj = 0;
35871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35872 wxTreeItemId *arg2 = 0 ;
35873 wxTreeItemId result;
35874 void *argp1 = 0 ;
35875 int res1 = 0 ;
35876 void *argp2 = 0 ;
35877 int res2 = 0 ;
35878 PyObject * obj0 = 0 ;
35879 PyObject * obj1 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "item", NULL
35882 };
35883
35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35888 }
35889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35891 if (!SWIG_IsOK(res2)) {
35892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35893 }
35894 if (!argp2) {
35895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35896 }
35897 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35898 {
35899 PyThreadState* __tstate = wxPyBeginAllowThreads();
35900 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35901 wxPyEndAllowThreads(__tstate);
35902 if (PyErr_Occurred()) SWIG_fail;
35903 }
35904 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35905 return resultobj;
35906fail:
35907 return NULL;
35908}
35909
35910
35911SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35912 PyObject *resultobj = 0;
35913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35914 wxTreeItemId *arg2 = 0 ;
35915 wxTreeItemId result;
35916 void *argp1 = 0 ;
35917 int res1 = 0 ;
35918 void *argp2 = 0 ;
35919 int res2 = 0 ;
35920 PyObject * obj0 = 0 ;
35921 PyObject * obj1 = 0 ;
35922 char * kwnames[] = {
35923 (char *) "self",(char *) "item", NULL
35924 };
35925
35926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35928 if (!SWIG_IsOK(res1)) {
35929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35930 }
35931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35933 if (!SWIG_IsOK(res2)) {
35934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35935 }
35936 if (!argp2) {
35937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35938 }
35939 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35940 {
35941 PyThreadState* __tstate = wxPyBeginAllowThreads();
35942 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35943 wxPyEndAllowThreads(__tstate);
35944 if (PyErr_Occurred()) SWIG_fail;
35945 }
35946 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35947 return resultobj;
35948fail:
35949 return NULL;
35950}
35951
35952
35953SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35954 PyObject *resultobj = 0;
35955 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35956 wxString *arg2 = 0 ;
35957 int arg3 = (int) -1 ;
35958 int arg4 = (int) -1 ;
35959 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35960 wxTreeItemId result;
35961 void *argp1 = 0 ;
35962 int res1 = 0 ;
35963 bool temp2 = false ;
35964 int val3 ;
35965 int ecode3 = 0 ;
35966 int val4 ;
35967 int ecode4 = 0 ;
35968 int res5 = 0 ;
35969 PyObject * obj0 = 0 ;
35970 PyObject * obj1 = 0 ;
35971 PyObject * obj2 = 0 ;
35972 PyObject * obj3 = 0 ;
35973 PyObject * obj4 = 0 ;
35974 char * kwnames[] = {
35975 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35976 };
35977
35978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35980 if (!SWIG_IsOK(res1)) {
35981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35982 }
35983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35984 {
35985 arg2 = wxString_in_helper(obj1);
35986 if (arg2 == NULL) SWIG_fail;
35987 temp2 = true;
35988 }
35989 if (obj2) {
35990 ecode3 = SWIG_AsVal_int(obj2, &val3);
35991 if (!SWIG_IsOK(ecode3)) {
35992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35993 }
35994 arg3 = static_cast< int >(val3);
35995 }
35996 if (obj3) {
35997 ecode4 = SWIG_AsVal_int(obj3, &val4);
35998 if (!SWIG_IsOK(ecode4)) {
35999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36000 }
36001 arg4 = static_cast< int >(val4);
36002 }
36003 if (obj4) {
36004 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36005 if (!SWIG_IsOK(res5)) {
36006 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 36007 }
1bd55598
RD
36008 }
36009 {
36010 PyThreadState* __tstate = wxPyBeginAllowThreads();
36011 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36012 wxPyEndAllowThreads(__tstate);
36013 if (PyErr_Occurred()) SWIG_fail;
36014 }
36015 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36016 {
36017 if (temp2)
36018 delete arg2;
36019 }
36020 return resultobj;
36021fail:
36022 {
36023 if (temp2)
36024 delete arg2;
36025 }
36026 return NULL;
36027}
36028
36029
36030SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36031 PyObject *resultobj = 0;
36032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36033 wxTreeItemId *arg2 = 0 ;
36034 wxString *arg3 = 0 ;
36035 int arg4 = (int) -1 ;
36036 int arg5 = (int) -1 ;
36037 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36038 wxTreeItemId result;
36039 void *argp1 = 0 ;
36040 int res1 = 0 ;
36041 void *argp2 = 0 ;
36042 int res2 = 0 ;
36043 bool temp3 = false ;
36044 int val4 ;
36045 int ecode4 = 0 ;
36046 int val5 ;
36047 int ecode5 = 0 ;
36048 int res6 = 0 ;
36049 PyObject * obj0 = 0 ;
36050 PyObject * obj1 = 0 ;
36051 PyObject * obj2 = 0 ;
36052 PyObject * obj3 = 0 ;
36053 PyObject * obj4 = 0 ;
36054 PyObject * obj5 = 0 ;
36055 char * kwnames[] = {
36056 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36057 };
36058
36059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36061 if (!SWIG_IsOK(res1)) {
36062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36063 }
36064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36066 if (!SWIG_IsOK(res2)) {
36067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36068 }
36069 if (!argp2) {
36070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36071 }
36072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36073 {
36074 arg3 = wxString_in_helper(obj2);
36075 if (arg3 == NULL) SWIG_fail;
36076 temp3 = true;
36077 }
36078 if (obj3) {
36079 ecode4 = SWIG_AsVal_int(obj3, &val4);
36080 if (!SWIG_IsOK(ecode4)) {
36081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36082 }
36083 arg4 = static_cast< int >(val4);
36084 }
36085 if (obj4) {
36086 ecode5 = SWIG_AsVal_int(obj4, &val5);
36087 if (!SWIG_IsOK(ecode5)) {
36088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36089 }
36090 arg5 = static_cast< int >(val5);
36091 }
36092 if (obj5) {
36093 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36094 if (!SWIG_IsOK(res6)) {
36095 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36096 }
1bd55598
RD
36097 }
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36105 {
36106 if (temp3)
36107 delete arg3;
36108 }
36109 return resultobj;
36110fail:
36111 {
36112 if (temp3)
36113 delete arg3;
36114 }
36115 return NULL;
36116}
36117
36118
36119SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36120 PyObject *resultobj = 0;
36121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36122 wxTreeItemId *arg2 = 0 ;
36123 wxTreeItemId *arg3 = 0 ;
36124 wxString *arg4 = 0 ;
36125 int arg5 = (int) -1 ;
36126 int arg6 = (int) -1 ;
36127 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36128 wxTreeItemId result;
36129 void *argp1 = 0 ;
36130 int res1 = 0 ;
36131 void *argp2 = 0 ;
36132 int res2 = 0 ;
36133 void *argp3 = 0 ;
36134 int res3 = 0 ;
36135 bool temp4 = false ;
36136 int val5 ;
36137 int ecode5 = 0 ;
36138 int val6 ;
36139 int ecode6 = 0 ;
36140 int res7 = 0 ;
36141 PyObject * obj0 = 0 ;
36142 PyObject * obj1 = 0 ;
36143 PyObject * obj2 = 0 ;
36144 PyObject * obj3 = 0 ;
36145 PyObject * obj4 = 0 ;
36146 PyObject * obj5 = 0 ;
36147 PyObject * obj6 = 0 ;
36148 char * kwnames[] = {
36149 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36150 };
36151
36152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36154 if (!SWIG_IsOK(res1)) {
36155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36156 }
36157 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36159 if (!SWIG_IsOK(res2)) {
36160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 if (!argp2) {
36163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36164 }
36165 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36166 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36167 if (!SWIG_IsOK(res3)) {
36168 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36169 }
36170 if (!argp3) {
36171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36172 }
36173 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36174 {
36175 arg4 = wxString_in_helper(obj3);
36176 if (arg4 == NULL) SWIG_fail;
36177 temp4 = true;
36178 }
36179 if (obj4) {
36180 ecode5 = SWIG_AsVal_int(obj4, &val5);
36181 if (!SWIG_IsOK(ecode5)) {
36182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36183 }
36184 arg5 = static_cast< int >(val5);
36185 }
36186 if (obj5) {
36187 ecode6 = SWIG_AsVal_int(obj5, &val6);
36188 if (!SWIG_IsOK(ecode6)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36190 }
36191 arg6 = static_cast< int >(val6);
36192 }
36193 if (obj6) {
36194 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36195 if (!SWIG_IsOK(res7)) {
36196 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36197 }
1bd55598
RD
36198 }
36199 {
36200 PyThreadState* __tstate = wxPyBeginAllowThreads();
36201 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36202 wxPyEndAllowThreads(__tstate);
36203 if (PyErr_Occurred()) SWIG_fail;
36204 }
36205 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36206 {
36207 if (temp4)
36208 delete arg4;
36209 }
36210 return resultobj;
36211fail:
36212 {
36213 if (temp4)
36214 delete arg4;
36215 }
36216 return NULL;
36217}
36218
36219
36220SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36221 PyObject *resultobj = 0;
36222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36223 wxTreeItemId *arg2 = 0 ;
36224 size_t arg3 ;
36225 wxString *arg4 = 0 ;
36226 int arg5 = (int) -1 ;
36227 int arg6 = (int) -1 ;
36228 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36229 wxTreeItemId result;
36230 void *argp1 = 0 ;
36231 int res1 = 0 ;
36232 void *argp2 = 0 ;
36233 int res2 = 0 ;
36234 size_t val3 ;
36235 int ecode3 = 0 ;
36236 bool temp4 = false ;
36237 int val5 ;
36238 int ecode5 = 0 ;
36239 int val6 ;
36240 int ecode6 = 0 ;
36241 int res7 = 0 ;
36242 PyObject * obj0 = 0 ;
36243 PyObject * obj1 = 0 ;
36244 PyObject * obj2 = 0 ;
36245 PyObject * obj3 = 0 ;
36246 PyObject * obj4 = 0 ;
36247 PyObject * obj5 = 0 ;
36248 PyObject * obj6 = 0 ;
36249 char * kwnames[] = {
36250 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36251 };
36252
36253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36255 if (!SWIG_IsOK(res1)) {
36256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36257 }
36258 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36260 if (!SWIG_IsOK(res2)) {
36261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36262 }
36263 if (!argp2) {
36264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36265 }
36266 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36267 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36268 if (!SWIG_IsOK(ecode3)) {
36269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36270 }
36271 arg3 = static_cast< size_t >(val3);
36272 {
36273 arg4 = wxString_in_helper(obj3);
36274 if (arg4 == NULL) SWIG_fail;
36275 temp4 = true;
36276 }
36277 if (obj4) {
36278 ecode5 = SWIG_AsVal_int(obj4, &val5);
36279 if (!SWIG_IsOK(ecode5)) {
36280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36281 }
36282 arg5 = static_cast< int >(val5);
36283 }
36284 if (obj5) {
36285 ecode6 = SWIG_AsVal_int(obj5, &val6);
36286 if (!SWIG_IsOK(ecode6)) {
36287 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36288 }
36289 arg6 = static_cast< int >(val6);
36290 }
36291 if (obj6) {
36292 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36293 if (!SWIG_IsOK(res7)) {
36294 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36295 }
1bd55598
RD
36296 }
36297 {
36298 PyThreadState* __tstate = wxPyBeginAllowThreads();
36299 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36300 wxPyEndAllowThreads(__tstate);
36301 if (PyErr_Occurred()) SWIG_fail;
36302 }
36303 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36304 {
36305 if (temp4)
36306 delete arg4;
36307 }
36308 return resultobj;
36309fail:
36310 {
36311 if (temp4)
36312 delete arg4;
36313 }
36314 return NULL;
36315}
36316
36317
36318SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36319 PyObject *resultobj = 0;
36320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36321 wxTreeItemId *arg2 = 0 ;
36322 wxString *arg3 = 0 ;
36323 int arg4 = (int) -1 ;
36324 int arg5 = (int) -1 ;
36325 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36326 wxTreeItemId result;
36327 void *argp1 = 0 ;
36328 int res1 = 0 ;
36329 void *argp2 = 0 ;
36330 int res2 = 0 ;
36331 bool temp3 = false ;
36332 int val4 ;
36333 int ecode4 = 0 ;
36334 int val5 ;
36335 int ecode5 = 0 ;
36336 int res6 = 0 ;
36337 PyObject * obj0 = 0 ;
36338 PyObject * obj1 = 0 ;
36339 PyObject * obj2 = 0 ;
36340 PyObject * obj3 = 0 ;
36341 PyObject * obj4 = 0 ;
36342 PyObject * obj5 = 0 ;
36343 char * kwnames[] = {
36344 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36345 };
36346
36347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36349 if (!SWIG_IsOK(res1)) {
36350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36351 }
36352 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36354 if (!SWIG_IsOK(res2)) {
36355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36356 }
36357 if (!argp2) {
36358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36359 }
36360 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36361 {
36362 arg3 = wxString_in_helper(obj2);
36363 if (arg3 == NULL) SWIG_fail;
36364 temp3 = true;
36365 }
36366 if (obj3) {
36367 ecode4 = SWIG_AsVal_int(obj3, &val4);
36368 if (!SWIG_IsOK(ecode4)) {
36369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36370 }
36371 arg4 = static_cast< int >(val4);
36372 }
36373 if (obj4) {
36374 ecode5 = SWIG_AsVal_int(obj4, &val5);
36375 if (!SWIG_IsOK(ecode5)) {
36376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36377 }
36378 arg5 = static_cast< int >(val5);
36379 }
36380 if (obj5) {
36381 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36382 if (!SWIG_IsOK(res6)) {
36383 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36384 }
1bd55598
RD
36385 }
36386 {
36387 PyThreadState* __tstate = wxPyBeginAllowThreads();
36388 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36389 wxPyEndAllowThreads(__tstate);
36390 if (PyErr_Occurred()) SWIG_fail;
36391 }
36392 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36393 {
36394 if (temp3)
36395 delete arg3;
36396 }
36397 return resultobj;
36398fail:
36399 {
36400 if (temp3)
36401 delete arg3;
36402 }
36403 return NULL;
36404}
36405
36406
36407SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36408 PyObject *resultobj = 0;
36409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36410 wxTreeItemId *arg2 = 0 ;
36411 void *argp1 = 0 ;
36412 int res1 = 0 ;
36413 void *argp2 = 0 ;
36414 int res2 = 0 ;
36415 PyObject * obj0 = 0 ;
36416 PyObject * obj1 = 0 ;
36417 char * kwnames[] = {
36418 (char *) "self",(char *) "item", NULL
36419 };
36420
36421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36423 if (!SWIG_IsOK(res1)) {
36424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36425 }
36426 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36428 if (!SWIG_IsOK(res2)) {
36429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36430 }
36431 if (!argp2) {
36432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36433 }
36434 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36435 {
36436 PyThreadState* __tstate = wxPyBeginAllowThreads();
36437 (arg1)->Delete((wxTreeItemId const &)*arg2);
36438 wxPyEndAllowThreads(__tstate);
36439 if (PyErr_Occurred()) SWIG_fail;
36440 }
36441 resultobj = SWIG_Py_Void();
36442 return resultobj;
36443fail:
36444 return NULL;
36445}
36446
36447
36448SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36449 PyObject *resultobj = 0;
36450 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36451 wxTreeItemId *arg2 = 0 ;
36452 void *argp1 = 0 ;
36453 int res1 = 0 ;
36454 void *argp2 = 0 ;
36455 int res2 = 0 ;
36456 PyObject * obj0 = 0 ;
36457 PyObject * obj1 = 0 ;
36458 char * kwnames[] = {
36459 (char *) "self",(char *) "item", NULL
36460 };
36461
36462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36464 if (!SWIG_IsOK(res1)) {
36465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36466 }
36467 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36469 if (!SWIG_IsOK(res2)) {
36470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36471 }
36472 if (!argp2) {
36473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36474 }
36475 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36476 {
36477 PyThreadState* __tstate = wxPyBeginAllowThreads();
36478 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36479 wxPyEndAllowThreads(__tstate);
36480 if (PyErr_Occurred()) SWIG_fail;
36481 }
36482 resultobj = SWIG_Py_Void();
36483 return resultobj;
36484fail:
36485 return NULL;
d55e5bfc
RD
36486}
36487
36488
1bd55598
RD
36489SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36490 PyObject *resultobj = 0;
36491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36492 void *argp1 = 0 ;
36493 int res1 = 0 ;
36494 PyObject *swig_obj[1] ;
36495
36496 if (!args) SWIG_fail;
36497 swig_obj[0] = args;
36498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36499 if (!SWIG_IsOK(res1)) {
36500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36501 }
36502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36503 {
36504 PyThreadState* __tstate = wxPyBeginAllowThreads();
36505 (arg1)->DeleteAllItems();
36506 wxPyEndAllowThreads(__tstate);
36507 if (PyErr_Occurred()) SWIG_fail;
36508 }
36509 resultobj = SWIG_Py_Void();
36510 return resultobj;
36511fail:
36512 return NULL;
36513}
36514
36515
36516SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36517 PyObject *resultobj = 0;
36518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36519 wxTreeItemId *arg2 = 0 ;
36520 void *argp1 = 0 ;
36521 int res1 = 0 ;
36522 void *argp2 = 0 ;
36523 int res2 = 0 ;
36524 PyObject * obj0 = 0 ;
36525 PyObject * obj1 = 0 ;
36526 char * kwnames[] = {
36527 (char *) "self",(char *) "item", NULL
36528 };
36529
36530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36532 if (!SWIG_IsOK(res1)) {
36533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36534 }
36535 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36537 if (!SWIG_IsOK(res2)) {
36538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36539 }
36540 if (!argp2) {
36541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36542 }
36543 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36544 {
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 (arg1)->Expand((wxTreeItemId const &)*arg2);
36547 wxPyEndAllowThreads(__tstate);
36548 if (PyErr_Occurred()) SWIG_fail;
36549 }
36550 resultobj = SWIG_Py_Void();
36551 return resultobj;
36552fail:
36553 return NULL;
36554}
36555
36556
3d6c9062
RD
36557SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36558 PyObject *resultobj = 0;
36559 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36560 wxTreeItemId *arg2 = 0 ;
36561 void *argp1 = 0 ;
36562 int res1 = 0 ;
36563 void *argp2 = 0 ;
36564 int res2 = 0 ;
36565 PyObject * obj0 = 0 ;
36566 PyObject * obj1 = 0 ;
36567 char * kwnames[] = {
36568 (char *) "self",(char *) "item", NULL
36569 };
36570
36571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36573 if (!SWIG_IsOK(res1)) {
36574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36575 }
36576 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36578 if (!SWIG_IsOK(res2)) {
36579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36580 }
36581 if (!argp2) {
36582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36583 }
36584 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36585 {
36586 PyThreadState* __tstate = wxPyBeginAllowThreads();
36587 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36588 wxPyEndAllowThreads(__tstate);
36589 if (PyErr_Occurred()) SWIG_fail;
36590 }
36591 resultobj = SWIG_Py_Void();
36592 return resultobj;
36593fail:
36594 return NULL;
36595}
36596
36597
36598SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36599 PyObject *resultobj = 0;
36600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36601 void *argp1 = 0 ;
36602 int res1 = 0 ;
36603 PyObject *swig_obj[1] ;
36604
36605 if (!args) SWIG_fail;
36606 swig_obj[0] = args;
36607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36608 if (!SWIG_IsOK(res1)) {
36609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36610 }
36611 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36612 {
36613 PyThreadState* __tstate = wxPyBeginAllowThreads();
36614 (arg1)->ExpandAll();
36615 wxPyEndAllowThreads(__tstate);
36616 if (PyErr_Occurred()) SWIG_fail;
36617 }
36618 resultobj = SWIG_Py_Void();
36619 return resultobj;
36620fail:
36621 return NULL;
36622}
36623
36624
1bd55598
RD
36625SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36626 PyObject *resultobj = 0;
36627 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36628 wxTreeItemId *arg2 = 0 ;
36629 void *argp1 = 0 ;
36630 int res1 = 0 ;
36631 void *argp2 = 0 ;
36632 int res2 = 0 ;
36633 PyObject * obj0 = 0 ;
36634 PyObject * obj1 = 0 ;
36635 char * kwnames[] = {
36636 (char *) "self",(char *) "item", NULL
36637 };
36638
36639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36641 if (!SWIG_IsOK(res1)) {
36642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36643 }
36644 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36646 if (!SWIG_IsOK(res2)) {
36647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36648 }
36649 if (!argp2) {
36650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36651 }
36652 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36653 {
36654 PyThreadState* __tstate = wxPyBeginAllowThreads();
36655 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36656 wxPyEndAllowThreads(__tstate);
36657 if (PyErr_Occurred()) SWIG_fail;
36658 }
36659 resultobj = SWIG_Py_Void();
36660 return resultobj;
36661fail:
36662 return NULL;
36663}
36664
36665
36666SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36667 PyObject *resultobj = 0;
36668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36669 wxTreeItemId *arg2 = 0 ;
36670 void *argp1 = 0 ;
36671 int res1 = 0 ;
36672 void *argp2 = 0 ;
36673 int res2 = 0 ;
36674 PyObject * obj0 = 0 ;
36675 PyObject * obj1 = 0 ;
36676 char * kwnames[] = {
36677 (char *) "self",(char *) "item", NULL
36678 };
36679
36680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36682 if (!SWIG_IsOK(res1)) {
36683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36684 }
36685 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36687 if (!SWIG_IsOK(res2)) {
36688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36689 }
36690 if (!argp2) {
36691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36692 }
36693 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36694 {
36695 PyThreadState* __tstate = wxPyBeginAllowThreads();
36696 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36697 wxPyEndAllowThreads(__tstate);
36698 if (PyErr_Occurred()) SWIG_fail;
36699 }
36700 resultobj = SWIG_Py_Void();
36701 return resultobj;
36702fail:
36703 return NULL;
36704}
36705
36706
36707SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36708 PyObject *resultobj = 0;
36709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36710 wxTreeItemId *arg2 = 0 ;
36711 void *argp1 = 0 ;
36712 int res1 = 0 ;
36713 void *argp2 = 0 ;
36714 int res2 = 0 ;
36715 PyObject * obj0 = 0 ;
36716 PyObject * obj1 = 0 ;
36717 char * kwnames[] = {
36718 (char *) "self",(char *) "item", NULL
36719 };
36720
36721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36723 if (!SWIG_IsOK(res1)) {
36724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36725 }
36726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36728 if (!SWIG_IsOK(res2)) {
36729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36730 }
36731 if (!argp2) {
36732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36733 }
36734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36735 {
36736 PyThreadState* __tstate = wxPyBeginAllowThreads();
36737 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36738 wxPyEndAllowThreads(__tstate);
36739 if (PyErr_Occurred()) SWIG_fail;
36740 }
36741 resultobj = SWIG_Py_Void();
36742 return resultobj;
36743fail:
36744 return NULL;
d55e5bfc
RD
36745}
36746
36747
1bd55598
RD
36748SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36749 PyObject *resultobj = 0;
36750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 PyObject *swig_obj[1] ;
36754
36755 if (!args) SWIG_fail;
36756 swig_obj[0] = args;
36757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36762 {
36763 PyThreadState* __tstate = wxPyBeginAllowThreads();
36764 (arg1)->Unselect();
36765 wxPyEndAllowThreads(__tstate);
36766 if (PyErr_Occurred()) SWIG_fail;
36767 }
36768 resultobj = SWIG_Py_Void();
36769 return resultobj;
36770fail:
36771 return NULL;
36772}
36773
36774
36775SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36776 PyObject *resultobj = 0;
36777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36778 wxTreeItemId *arg2 = 0 ;
36779 void *argp1 = 0 ;
36780 int res1 = 0 ;
36781 void *argp2 = 0 ;
36782 int res2 = 0 ;
36783 PyObject * obj0 = 0 ;
36784 PyObject * obj1 = 0 ;
36785 char * kwnames[] = {
36786 (char *) "self",(char *) "item", NULL
36787 };
36788
36789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36791 if (!SWIG_IsOK(res1)) {
36792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36793 }
36794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36796 if (!SWIG_IsOK(res2)) {
36797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36798 }
36799 if (!argp2) {
36800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36801 }
36802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36803 {
36804 PyThreadState* __tstate = wxPyBeginAllowThreads();
36805 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36806 wxPyEndAllowThreads(__tstate);
36807 if (PyErr_Occurred()) SWIG_fail;
36808 }
36809 resultobj = SWIG_Py_Void();
36810 return resultobj;
36811fail:
36812 return NULL;
d55e5bfc
RD
36813}
36814
36815
1bd55598
RD
36816SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36817 PyObject *resultobj = 0;
36818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36819 void *argp1 = 0 ;
36820 int res1 = 0 ;
36821 PyObject *swig_obj[1] ;
36822
36823 if (!args) SWIG_fail;
36824 swig_obj[0] = args;
36825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36826 if (!SWIG_IsOK(res1)) {
36827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36828 }
36829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36830 {
36831 PyThreadState* __tstate = wxPyBeginAllowThreads();
36832 (arg1)->UnselectAll();
36833 wxPyEndAllowThreads(__tstate);
36834 if (PyErr_Occurred()) SWIG_fail;
36835 }
36836 resultobj = SWIG_Py_Void();
36837 return resultobj;
36838fail:
36839 return NULL;
36840}
36841
36842
36843SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36844 PyObject *resultobj = 0;
36845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36846 wxTreeItemId *arg2 = 0 ;
36847 bool arg3 = (bool) true ;
36848 void *argp1 = 0 ;
36849 int res1 = 0 ;
36850 void *argp2 = 0 ;
36851 int res2 = 0 ;
36852 bool val3 ;
36853 int ecode3 = 0 ;
36854 PyObject * obj0 = 0 ;
36855 PyObject * obj1 = 0 ;
36856 PyObject * obj2 = 0 ;
36857 char * kwnames[] = {
36858 (char *) "self",(char *) "item",(char *) "select", NULL
36859 };
36860
36861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36863 if (!SWIG_IsOK(res1)) {
36864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36865 }
36866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36868 if (!SWIG_IsOK(res2)) {
36869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36870 }
36871 if (!argp2) {
36872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36873 }
36874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36875 if (obj2) {
36876 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36877 if (!SWIG_IsOK(ecode3)) {
36878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36879 }
36880 arg3 = static_cast< bool >(val3);
36881 }
36882 {
36883 PyThreadState* __tstate = wxPyBeginAllowThreads();
36884 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36885 wxPyEndAllowThreads(__tstate);
36886 if (PyErr_Occurred()) SWIG_fail;
36887 }
36888 resultobj = SWIG_Py_Void();
36889 return resultobj;
36890fail:
36891 return NULL;
36892}
36893
36894
36895SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36896 PyObject *resultobj = 0;
36897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36898 wxTreeItemId *arg2 = 0 ;
36899 void *argp1 = 0 ;
36900 int res1 = 0 ;
36901 void *argp2 = 0 ;
36902 int res2 = 0 ;
36903 PyObject * obj0 = 0 ;
36904 PyObject * obj1 = 0 ;
36905 char * kwnames[] = {
36906 (char *) "self",(char *) "item", NULL
36907 };
36908
36909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36911 if (!SWIG_IsOK(res1)) {
36912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36913 }
36914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36916 if (!SWIG_IsOK(res2)) {
36917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36918 }
36919 if (!argp2) {
36920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36921 }
36922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36923 {
36924 PyThreadState* __tstate = wxPyBeginAllowThreads();
36925 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36926 wxPyEndAllowThreads(__tstate);
36927 if (PyErr_Occurred()) SWIG_fail;
36928 }
36929 resultobj = SWIG_Py_Void();
36930 return resultobj;
36931fail:
36932 return NULL;
36933}
36934
36935
36936SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36937 PyObject *resultobj = 0;
36938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36939 wxTreeItemId *arg2 = 0 ;
36940 void *argp1 = 0 ;
36941 int res1 = 0 ;
36942 void *argp2 = 0 ;
36943 int res2 = 0 ;
36944 PyObject * obj0 = 0 ;
36945 PyObject * obj1 = 0 ;
36946 char * kwnames[] = {
36947 (char *) "self",(char *) "item", NULL
36948 };
36949
36950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36952 if (!SWIG_IsOK(res1)) {
36953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36954 }
36955 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36957 if (!SWIG_IsOK(res2)) {
36958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36959 }
36960 if (!argp2) {
36961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36962 }
36963 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36964 {
36965 PyThreadState* __tstate = wxPyBeginAllowThreads();
36966 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36967 wxPyEndAllowThreads(__tstate);
36968 if (PyErr_Occurred()) SWIG_fail;
36969 }
36970 resultobj = SWIG_Py_Void();
36971 return resultobj;
36972fail:
36973 return NULL;
36974}
36975
36976
36977SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36978 PyObject *resultobj = 0;
36979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36980 wxTreeItemId *arg2 = 0 ;
36981 void *argp1 = 0 ;
36982 int res1 = 0 ;
36983 void *argp2 = 0 ;
36984 int res2 = 0 ;
36985 PyObject * obj0 = 0 ;
36986 PyObject * obj1 = 0 ;
36987 char * kwnames[] = {
36988 (char *) "self",(char *) "item", NULL
36989 };
36990
36991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36993 if (!SWIG_IsOK(res1)) {
36994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36995 }
36996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36998 if (!SWIG_IsOK(res2)) {
36999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37000 }
37001 if (!argp2) {
37002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37003 }
37004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 resultobj = SWIG_Py_Void();
37012 return resultobj;
37013fail:
37014 return NULL;
37015}
37016
37017
37018SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37019 PyObject *resultobj = 0;
37020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37021 wxTreeItemId *arg2 = 0 ;
37022 void *argp1 = 0 ;
37023 int res1 = 0 ;
37024 void *argp2 = 0 ;
37025 int res2 = 0 ;
37026 PyObject * obj0 = 0 ;
37027 PyObject * obj1 = 0 ;
37028 char * kwnames[] = {
37029 (char *) "self",(char *) "item", NULL
37030 };
37031
37032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37039 if (!SWIG_IsOK(res2)) {
37040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37041 }
37042 if (!argp2) {
37043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37044 }
37045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37046 {
37047 PyThreadState* __tstate = wxPyBeginAllowThreads();
37048 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37049 wxPyEndAllowThreads(__tstate);
37050 if (PyErr_Occurred()) SWIG_fail;
37051 }
37052 resultobj = SWIG_Py_Void();
37053 return resultobj;
37054fail:
37055 return NULL;
d55e5bfc
RD
37056}
37057
37058
1bd55598
RD
37059SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37060 PyObject *resultobj = 0;
37061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37062 wxTextCtrl *result = 0 ;
37063 void *argp1 = 0 ;
37064 int res1 = 0 ;
37065 PyObject *swig_obj[1] ;
37066
37067 if (!args) SWIG_fail;
37068 swig_obj[0] = args;
37069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37070 if (!SWIG_IsOK(res1)) {
37071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37072 }
37073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37074 {
37075 PyThreadState* __tstate = wxPyBeginAllowThreads();
37076 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37077 wxPyEndAllowThreads(__tstate);
37078 if (PyErr_Occurred()) SWIG_fail;
37079 }
37080 {
37081 resultobj = wxPyMake_wxObject(result, 0);
37082 }
37083 return resultobj;
37084fail:
37085 return NULL;
37086}
37087
37088
37089SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37090 PyObject *resultobj = 0;
37091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37092 wxTreeItemId *arg2 = 0 ;
37093 void *argp1 = 0 ;
37094 int res1 = 0 ;
37095 void *argp2 = 0 ;
37096 int res2 = 0 ;
37097 PyObject * obj0 = 0 ;
37098 PyObject * obj1 = 0 ;
37099 char * kwnames[] = {
37100 (char *) "self",(char *) "item", NULL
37101 };
37102
37103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37105 if (!SWIG_IsOK(res1)) {
37106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37107 }
37108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37110 if (!SWIG_IsOK(res2)) {
37111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37112 }
37113 if (!argp2) {
37114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37115 }
37116 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37117 {
37118 PyThreadState* __tstate = wxPyBeginAllowThreads();
37119 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37120 wxPyEndAllowThreads(__tstate);
37121 if (PyErr_Occurred()) SWIG_fail;
37122 }
37123 resultobj = SWIG_Py_Void();
37124 return resultobj;
37125fail:
37126 return NULL;
37127}
37128
37129
37130SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37131 PyObject *resultobj = 0;
37132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37133 wxPoint *arg2 = 0 ;
37134 int *arg3 = 0 ;
37135 wxTreeItemId result;
37136 void *argp1 = 0 ;
37137 int res1 = 0 ;
37138 wxPoint temp2 ;
37139 int temp3 ;
37140 int res3 = SWIG_TMPOBJ ;
37141 PyObject * obj0 = 0 ;
37142 PyObject * obj1 = 0 ;
37143 char * kwnames[] = {
37144 (char *) "self",(char *) "point", NULL
37145 };
37146
37147 arg3 = &temp3;
37148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37150 if (!SWIG_IsOK(res1)) {
37151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37152 }
37153 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37154 {
37155 arg2 = &temp2;
37156 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37157 }
37158 {
37159 PyThreadState* __tstate = wxPyBeginAllowThreads();
37160 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37161 wxPyEndAllowThreads(__tstate);
37162 if (PyErr_Occurred()) SWIG_fail;
37163 }
37164 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37165 if (SWIG_IsTmpObj(res3)) {
37166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37167 } else {
37168 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37170 }
37171 return resultobj;
37172fail:
37173 return NULL;
37174}
37175
37176
37177SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37178 PyObject *resultobj = 0;
37179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37180 wxTreeItemId *arg2 = 0 ;
37181 bool arg3 = (bool) false ;
37182 PyObject *result = 0 ;
37183 void *argp1 = 0 ;
37184 int res1 = 0 ;
37185 void *argp2 = 0 ;
37186 int res2 = 0 ;
37187 bool val3 ;
37188 int ecode3 = 0 ;
37189 PyObject * obj0 = 0 ;
37190 PyObject * obj1 = 0 ;
37191 PyObject * obj2 = 0 ;
37192 char * kwnames[] = {
37193 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37194 };
37195
37196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37198 if (!SWIG_IsOK(res1)) {
37199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37200 }
37201 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37203 if (!SWIG_IsOK(res2)) {
37204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37205 }
37206 if (!argp2) {
37207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37208 }
37209 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37210 if (obj2) {
37211 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37212 if (!SWIG_IsOK(ecode3)) {
37213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37214 }
37215 arg3 = static_cast< bool >(val3);
37216 }
37217 {
37218 PyThreadState* __tstate = wxPyBeginAllowThreads();
37219 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37220 wxPyEndAllowThreads(__tstate);
37221 if (PyErr_Occurred()) SWIG_fail;
37222 }
37223 resultobj = result;
37224 return resultobj;
37225fail:
37226 return NULL;
37227}
37228
37229
37230SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37231 PyObject *resultobj = 0;
37232 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37233 SwigValueWrapper<wxVisualAttributes > result;
37234 int val1 ;
37235 int ecode1 = 0 ;
37236 PyObject * obj0 = 0 ;
37237 char * kwnames[] = {
37238 (char *) "variant", NULL
37239 };
37240
37241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37242 if (obj0) {
37243 ecode1 = SWIG_AsVal_int(obj0, &val1);
37244 if (!SWIG_IsOK(ecode1)) {
37245 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37246 }
37247 arg1 = static_cast< wxWindowVariant >(val1);
37248 }
37249 {
37250 if (!wxPyCheckForApp()) SWIG_fail;
37251 PyThreadState* __tstate = wxPyBeginAllowThreads();
37252 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37253 wxPyEndAllowThreads(__tstate);
37254 if (PyErr_Occurred()) SWIG_fail;
37255 }
37256 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37257 return resultobj;
37258fail:
37259 return NULL;
d55e5bfc
RD
37260}
37261
37262
2131d850
RD
37263SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37264 PyObject *resultobj = 0;
37265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37266 bool arg2 ;
37267 void *argp1 = 0 ;
37268 int res1 = 0 ;
37269 bool val2 ;
37270 int ecode2 = 0 ;
37271 PyObject * obj0 = 0 ;
37272 PyObject * obj1 = 0 ;
37273 char * kwnames[] = {
37274 (char *) "self",(char *) "q", NULL
37275 };
37276
37277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37279 if (!SWIG_IsOK(res1)) {
37280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37281 }
37282 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37283 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37284 if (!SWIG_IsOK(ecode2)) {
37285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37286 }
37287 arg2 = static_cast< bool >(val2);
37288 {
37289 PyThreadState* __tstate = wxPyBeginAllowThreads();
37290 (arg1)->SetQuickBestSize(arg2);
37291 wxPyEndAllowThreads(__tstate);
37292 if (PyErr_Occurred()) SWIG_fail;
37293 }
37294 resultobj = SWIG_Py_Void();
37295 return resultobj;
37296fail:
37297 return NULL;
37298}
37299
37300
37301SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37302 PyObject *resultobj = 0;
37303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37304 bool result;
37305 void *argp1 = 0 ;
37306 int res1 = 0 ;
37307 PyObject *swig_obj[1] ;
37308
37309 if (!args) SWIG_fail;
37310 swig_obj[0] = args;
37311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37312 if (!SWIG_IsOK(res1)) {
37313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37314 }
37315 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 {
37323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37324 }
37325 return resultobj;
37326fail:
37327 return NULL;
37328}
37329
37330
1bd55598
RD
37331SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37332 PyObject *obj;
37333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37334 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37335 return SWIG_Py_Void();
d55e5bfc
RD
37336}
37337
1bd55598
RD
37338SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37339 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37340}
37341
1bd55598
RD
37342SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37343 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37344 return 1;
d55e5bfc
RD
37345}
37346
37347
1bd55598
RD
37348SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37349 PyObject *pyobj = 0;
37350
37351 {
37352#if wxUSE_UNICODE
37353 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37354#else
37355 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37356#endif
37357 }
37358 return pyobj;
37359}
37360
37361
37362SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37363 PyObject *resultobj = 0;
37364 wxWindow *arg1 = (wxWindow *) 0 ;
37365 int arg2 = (int) (int)-1 ;
37366 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37367 wxString *arg3 = (wxString *) &arg3_defvalue ;
37368 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37369 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37370 wxSize const &arg5_defvalue = wxDefaultSize ;
37371 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37372 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37373 wxString const &arg7_defvalue = wxPyEmptyString ;
37374 wxString *arg7 = (wxString *) &arg7_defvalue ;
37375 int arg8 = (int) 0 ;
37376 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37377 wxString *arg9 = (wxString *) &arg9_defvalue ;
37378 wxGenericDirCtrl *result = 0 ;
37379 void *argp1 = 0 ;
37380 int res1 = 0 ;
37381 int val2 ;
37382 int ecode2 = 0 ;
37383 bool temp3 = false ;
37384 wxPoint temp4 ;
37385 wxSize temp5 ;
37386 long val6 ;
37387 int ecode6 = 0 ;
37388 bool temp7 = false ;
37389 int val8 ;
37390 int ecode8 = 0 ;
37391 bool temp9 = false ;
37392 PyObject * obj0 = 0 ;
37393 PyObject * obj1 = 0 ;
37394 PyObject * obj2 = 0 ;
37395 PyObject * obj3 = 0 ;
37396 PyObject * obj4 = 0 ;
37397 PyObject * obj5 = 0 ;
37398 PyObject * obj6 = 0 ;
37399 PyObject * obj7 = 0 ;
37400 PyObject * obj8 = 0 ;
37401 char * kwnames[] = {
37402 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37403 };
37404
37405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37407 if (!SWIG_IsOK(res1)) {
37408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37409 }
37410 arg1 = reinterpret_cast< wxWindow * >(argp1);
37411 if (obj1) {
37412 ecode2 = SWIG_AsVal_int(obj1, &val2);
37413 if (!SWIG_IsOK(ecode2)) {
37414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37415 }
37416 arg2 = static_cast< int >(val2);
37417 }
37418 if (obj2) {
36ed4f51 37419 {
1bd55598
RD
37420 arg3 = wxString_in_helper(obj2);
37421 if (arg3 == NULL) SWIG_fail;
37422 temp3 = true;
36ed4f51 37423 }
1bd55598
RD
37424 }
37425 if (obj3) {
d55e5bfc 37426 {
1bd55598
RD
37427 arg4 = &temp4;
37428 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37429 }
1bd55598
RD
37430 }
37431 if (obj4) {
36ed4f51 37432 {
1bd55598
RD
37433 arg5 = &temp5;
37434 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37435 }
1bd55598
RD
37436 }
37437 if (obj5) {
37438 ecode6 = SWIG_AsVal_long(obj5, &val6);
37439 if (!SWIG_IsOK(ecode6)) {
37440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37441 }
37442 arg6 = static_cast< long >(val6);
37443 }
37444 if (obj6) {
36ed4f51 37445 {
1bd55598
RD
37446 arg7 = wxString_in_helper(obj6);
37447 if (arg7 == NULL) SWIG_fail;
37448 temp7 = true;
36ed4f51 37449 }
1bd55598
RD
37450 }
37451 if (obj7) {
37452 ecode8 = SWIG_AsVal_int(obj7, &val8);
37453 if (!SWIG_IsOK(ecode8)) {
37454 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37455 }
37456 arg8 = static_cast< int >(val8);
37457 }
37458 if (obj8) {
d55e5bfc 37459 {
1bd55598
RD
37460 arg9 = wxString_in_helper(obj8);
37461 if (arg9 == NULL) SWIG_fail;
37462 temp9 = true;
d55e5bfc 37463 }
1bd55598
RD
37464 }
37465 {
37466 if (!wxPyCheckForApp()) SWIG_fail;
37467 PyThreadState* __tstate = wxPyBeginAllowThreads();
37468 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37469 wxPyEndAllowThreads(__tstate);
37470 if (PyErr_Occurred()) SWIG_fail;
37471 }
37472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37473 {
37474 if (temp3)
37475 delete arg3;
37476 }
37477 {
37478 if (temp7)
37479 delete arg7;
37480 }
37481 {
37482 if (temp9)
37483 delete arg9;
37484 }
37485 return resultobj;
37486fail:
37487 {
37488 if (temp3)
37489 delete arg3;
37490 }
37491 {
37492 if (temp7)
37493 delete arg7;
37494 }
37495 {
37496 if (temp9)
37497 delete arg9;
37498 }
37499 return NULL;
d55e5bfc
RD
37500}
37501
37502
1bd55598
RD
37503SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37504 PyObject *resultobj = 0;
37505 wxGenericDirCtrl *result = 0 ;
37506
37507 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37508 {
37509 if (!wxPyCheckForApp()) SWIG_fail;
37510 PyThreadState* __tstate = wxPyBeginAllowThreads();
37511 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37512 wxPyEndAllowThreads(__tstate);
37513 if (PyErr_Occurred()) SWIG_fail;
37514 }
37515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37516 return resultobj;
37517fail:
37518 return NULL;
37519}
37520
37521
37522SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37523 PyObject *resultobj = 0;
37524 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37525 wxWindow *arg2 = (wxWindow *) 0 ;
37526 int arg3 = (int) (int)-1 ;
37527 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37528 wxString *arg4 = (wxString *) &arg4_defvalue ;
37529 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37530 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37531 wxSize const &arg6_defvalue = wxDefaultSize ;
37532 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37533 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37534 wxString const &arg8_defvalue = wxPyEmptyString ;
37535 wxString *arg8 = (wxString *) &arg8_defvalue ;
37536 int arg9 = (int) 0 ;
37537 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37538 wxString *arg10 = (wxString *) &arg10_defvalue ;
37539 bool result;
37540 void *argp1 = 0 ;
37541 int res1 = 0 ;
37542 void *argp2 = 0 ;
37543 int res2 = 0 ;
37544 int val3 ;
37545 int ecode3 = 0 ;
37546 bool temp4 = false ;
37547 wxPoint temp5 ;
37548 wxSize temp6 ;
37549 long val7 ;
37550 int ecode7 = 0 ;
37551 bool temp8 = false ;
37552 int val9 ;
37553 int ecode9 = 0 ;
37554 bool temp10 = false ;
37555 PyObject * obj0 = 0 ;
37556 PyObject * obj1 = 0 ;
37557 PyObject * obj2 = 0 ;
37558 PyObject * obj3 = 0 ;
37559 PyObject * obj4 = 0 ;
37560 PyObject * obj5 = 0 ;
37561 PyObject * obj6 = 0 ;
37562 PyObject * obj7 = 0 ;
37563 PyObject * obj8 = 0 ;
37564 PyObject * obj9 = 0 ;
37565 char * kwnames[] = {
37566 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37567 };
37568
37569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37571 if (!SWIG_IsOK(res1)) {
37572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37573 }
37574 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37575 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37576 if (!SWIG_IsOK(res2)) {
37577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37578 }
37579 arg2 = reinterpret_cast< wxWindow * >(argp2);
37580 if (obj2) {
37581 ecode3 = SWIG_AsVal_int(obj2, &val3);
37582 if (!SWIG_IsOK(ecode3)) {
37583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37584 }
37585 arg3 = static_cast< int >(val3);
37586 }
37587 if (obj3) {
36ed4f51 37588 {
1bd55598
RD
37589 arg4 = wxString_in_helper(obj3);
37590 if (arg4 == NULL) SWIG_fail;
37591 temp4 = true;
36ed4f51 37592 }
1bd55598
RD
37593 }
37594 if (obj4) {
36ed4f51 37595 {
1bd55598
RD
37596 arg5 = &temp5;
37597 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37598 }
1bd55598
RD
37599 }
37600 if (obj5) {
d55e5bfc 37601 {
1bd55598
RD
37602 arg6 = &temp6;
37603 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37604 }
1bd55598
RD
37605 }
37606 if (obj6) {
37607 ecode7 = SWIG_AsVal_long(obj6, &val7);
37608 if (!SWIG_IsOK(ecode7)) {
37609 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37610 }
37611 arg7 = static_cast< long >(val7);
37612 }
37613 if (obj7) {
d55e5bfc 37614 {
1bd55598
RD
37615 arg8 = wxString_in_helper(obj7);
37616 if (arg8 == NULL) SWIG_fail;
37617 temp8 = true;
d55e5bfc 37618 }
1bd55598
RD
37619 }
37620 if (obj8) {
37621 ecode9 = SWIG_AsVal_int(obj8, &val9);
37622 if (!SWIG_IsOK(ecode9)) {
37623 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37624 }
37625 arg9 = static_cast< int >(val9);
37626 }
37627 if (obj9) {
36ed4f51 37628 {
1bd55598
RD
37629 arg10 = wxString_in_helper(obj9);
37630 if (arg10 == NULL) SWIG_fail;
37631 temp10 = true;
36ed4f51 37632 }
1bd55598
RD
37633 }
37634 {
37635 PyThreadState* __tstate = wxPyBeginAllowThreads();
37636 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37637 wxPyEndAllowThreads(__tstate);
37638 if (PyErr_Occurred()) SWIG_fail;
37639 }
37640 {
37641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37642 }
37643 {
37644 if (temp4)
37645 delete arg4;
37646 }
37647 {
37648 if (temp8)
37649 delete arg8;
37650 }
37651 {
37652 if (temp10)
37653 delete arg10;
37654 }
37655 return resultobj;
37656fail:
37657 {
37658 if (temp4)
37659 delete arg4;
37660 }
37661 {
37662 if (temp8)
37663 delete arg8;
37664 }
37665 {
37666 if (temp10)
37667 delete arg10;
37668 }
37669 return NULL;
37670}
37671
37672
37673SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37674 PyObject *resultobj = 0;
37675 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37676 wxString *arg2 = 0 ;
37677 bool result;
37678 void *argp1 = 0 ;
37679 int res1 = 0 ;
37680 bool temp2 = false ;
37681 PyObject * obj0 = 0 ;
37682 PyObject * obj1 = 0 ;
37683 char * kwnames[] = {
37684 (char *) "self",(char *) "path", NULL
37685 };
37686
37687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37689 if (!SWIG_IsOK(res1)) {
37690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37691 }
37692 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37693 {
37694 arg2 = wxString_in_helper(obj1);
37695 if (arg2 == NULL) SWIG_fail;
37696 temp2 = true;
37697 }
37698 {
37699 PyThreadState* __tstate = wxPyBeginAllowThreads();
37700 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37701 wxPyEndAllowThreads(__tstate);
37702 if (PyErr_Occurred()) SWIG_fail;
37703 }
37704 {
37705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37706 }
37707 {
37708 if (temp2)
37709 delete arg2;
37710 }
37711 return resultobj;
37712fail:
37713 {
37714 if (temp2)
37715 delete arg2;
37716 }
37717 return NULL;
d55e5bfc
RD
37718}
37719
37720
704eda0c
RD
37721SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37722 PyObject *resultobj = 0;
37723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37724 wxString *arg2 = 0 ;
37725 bool result;
37726 void *argp1 = 0 ;
37727 int res1 = 0 ;
37728 bool temp2 = false ;
37729 PyObject * obj0 = 0 ;
37730 PyObject * obj1 = 0 ;
37731 char * kwnames[] = {
37732 (char *) "self",(char *) "path", NULL
37733 };
37734
37735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37739 }
37740 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37741 {
37742 arg2 = wxString_in_helper(obj1);
37743 if (arg2 == NULL) SWIG_fail;
37744 temp2 = true;
37745 }
37746 {
37747 PyThreadState* __tstate = wxPyBeginAllowThreads();
37748 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37749 wxPyEndAllowThreads(__tstate);
37750 if (PyErr_Occurred()) SWIG_fail;
37751 }
37752 {
37753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37754 }
37755 {
37756 if (temp2)
37757 delete arg2;
37758 }
37759 return resultobj;
37760fail:
37761 {
37762 if (temp2)
37763 delete arg2;
37764 }
37765 return NULL;
37766}
37767
37768
1bd55598
RD
37769SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37770 PyObject *resultobj = 0;
37771 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37772 wxString result;
37773 void *argp1 = 0 ;
37774 int res1 = 0 ;
37775 PyObject *swig_obj[1] ;
37776
37777 if (!args) SWIG_fail;
37778 swig_obj[0] = args;
37779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37780 if (!SWIG_IsOK(res1)) {
37781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37782 }
37783 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37784 {
37785 PyThreadState* __tstate = wxPyBeginAllowThreads();
37786 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37787 wxPyEndAllowThreads(__tstate);
37788 if (PyErr_Occurred()) SWIG_fail;
37789 }
37790 {
37791#if wxUSE_UNICODE
37792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37793#else
37794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37795#endif
37796 }
37797 return resultobj;
37798fail:
37799 return NULL;
37800}
37801
37802
37803SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37806 wxString *arg2 = 0 ;
37807 void *argp1 = 0 ;
37808 int res1 = 0 ;
37809 bool temp2 = false ;
37810 PyObject * obj0 = 0 ;
37811 PyObject * obj1 = 0 ;
37812 char * kwnames[] = {
37813 (char *) "self",(char *) "path", NULL
37814 };
37815
37816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37818 if (!SWIG_IsOK(res1)) {
37819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37820 }
37821 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37822 {
37823 arg2 = wxString_in_helper(obj1);
37824 if (arg2 == NULL) SWIG_fail;
37825 temp2 = true;
37826 }
37827 {
37828 PyThreadState* __tstate = wxPyBeginAllowThreads();
37829 (arg1)->SetDefaultPath((wxString const &)*arg2);
37830 wxPyEndAllowThreads(__tstate);
37831 if (PyErr_Occurred()) SWIG_fail;
37832 }
37833 resultobj = SWIG_Py_Void();
37834 {
37835 if (temp2)
37836 delete arg2;
37837 }
37838 return resultobj;
37839fail:
37840 {
37841 if (temp2)
37842 delete arg2;
37843 }
37844 return NULL;
d55e5bfc
RD
37845}
37846
37847
1bd55598
RD
37848SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37849 PyObject *resultobj = 0;
37850 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37851 wxString result;
37852 void *argp1 = 0 ;
37853 int res1 = 0 ;
37854 PyObject *swig_obj[1] ;
37855
37856 if (!args) SWIG_fail;
37857 swig_obj[0] = args;
37858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37861 }
37862 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37863 {
37864 PyThreadState* __tstate = wxPyBeginAllowThreads();
37865 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37866 wxPyEndAllowThreads(__tstate);
37867 if (PyErr_Occurred()) SWIG_fail;
37868 }
37869 {
37870#if wxUSE_UNICODE
37871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37872#else
37873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37874#endif
37875 }
37876 return resultobj;
37877fail:
37878 return NULL;
d55e5bfc
RD
37879}
37880
37881
1bd55598
RD
37882SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37883 PyObject *resultobj = 0;
37884 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37885 wxString result;
37886 void *argp1 = 0 ;
37887 int res1 = 0 ;
37888 PyObject *swig_obj[1] ;
37889
37890 if (!args) SWIG_fail;
37891 swig_obj[0] = args;
37892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37893 if (!SWIG_IsOK(res1)) {
37894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37895 }
37896 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37897 {
37898 PyThreadState* __tstate = wxPyBeginAllowThreads();
37899 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37900 wxPyEndAllowThreads(__tstate);
37901 if (PyErr_Occurred()) SWIG_fail;
37902 }
37903 {
37904#if wxUSE_UNICODE
37905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37906#else
37907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37908#endif
37909 }
37910 return resultobj;
37911fail:
37912 return NULL;
37913}
37914
37915
37916SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37917 PyObject *resultobj = 0;
37918 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37919 wxString *arg2 = 0 ;
37920 void *argp1 = 0 ;
37921 int res1 = 0 ;
37922 bool temp2 = false ;
37923 PyObject * obj0 = 0 ;
37924 PyObject * obj1 = 0 ;
37925 char * kwnames[] = {
37926 (char *) "self",(char *) "path", NULL
37927 };
37928
37929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37931 if (!SWIG_IsOK(res1)) {
37932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37933 }
37934 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37935 {
37936 arg2 = wxString_in_helper(obj1);
37937 if (arg2 == NULL) SWIG_fail;
37938 temp2 = true;
37939 }
37940 {
37941 PyThreadState* __tstate = wxPyBeginAllowThreads();
37942 (arg1)->SetPath((wxString const &)*arg2);
37943 wxPyEndAllowThreads(__tstate);
37944 if (PyErr_Occurred()) SWIG_fail;
37945 }
37946 resultobj = SWIG_Py_Void();
37947 {
37948 if (temp2)
37949 delete arg2;
37950 }
37951 return resultobj;
37952fail:
37953 {
37954 if (temp2)
37955 delete arg2;
37956 }
37957 return NULL;
37958}
37959
37960
37961SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37962 PyObject *resultobj = 0;
37963 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37964 bool arg2 ;
37965 void *argp1 = 0 ;
37966 int res1 = 0 ;
37967 bool val2 ;
37968 int ecode2 = 0 ;
37969 PyObject * obj0 = 0 ;
37970 PyObject * obj1 = 0 ;
37971 char * kwnames[] = {
37972 (char *) "self",(char *) "show", NULL
37973 };
37974
37975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37977 if (!SWIG_IsOK(res1)) {
37978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37979 }
37980 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37981 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37982 if (!SWIG_IsOK(ecode2)) {
37983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37984 }
37985 arg2 = static_cast< bool >(val2);
37986 {
37987 PyThreadState* __tstate = wxPyBeginAllowThreads();
37988 (arg1)->ShowHidden(arg2);
37989 wxPyEndAllowThreads(__tstate);
37990 if (PyErr_Occurred()) SWIG_fail;
37991 }
37992 resultobj = SWIG_Py_Void();
37993 return resultobj;
37994fail:
37995 return NULL;
d55e5bfc
RD
37996}
37997
37998
1bd55598
RD
37999SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38000 PyObject *resultobj = 0;
38001 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38002 bool result;
38003 void *argp1 = 0 ;
38004 int res1 = 0 ;
38005 PyObject *swig_obj[1] ;
38006
38007 if (!args) SWIG_fail;
38008 swig_obj[0] = args;
38009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38010 if (!SWIG_IsOK(res1)) {
38011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38012 }
38013 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38014 {
38015 PyThreadState* __tstate = wxPyBeginAllowThreads();
38016 result = (bool)(arg1)->GetShowHidden();
38017 wxPyEndAllowThreads(__tstate);
38018 if (PyErr_Occurred()) SWIG_fail;
38019 }
38020 {
38021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38022 }
38023 return resultobj;
38024fail:
38025 return NULL;
d55e5bfc
RD
38026}
38027
38028
1bd55598
RD
38029SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38030 PyObject *resultobj = 0;
38031 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38032 wxString result;
38033 void *argp1 = 0 ;
38034 int res1 = 0 ;
38035 PyObject *swig_obj[1] ;
38036
38037 if (!args) SWIG_fail;
38038 swig_obj[0] = args;
38039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38040 if (!SWIG_IsOK(res1)) {
38041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38042 }
38043 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38044 {
38045 PyThreadState* __tstate = wxPyBeginAllowThreads();
38046 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38047 wxPyEndAllowThreads(__tstate);
38048 if (PyErr_Occurred()) SWIG_fail;
38049 }
38050 {
38051#if wxUSE_UNICODE
38052 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38053#else
38054 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38055#endif
38056 }
38057 return resultobj;
38058fail:
38059 return NULL;
38060}
38061
38062
38063SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38064 PyObject *resultobj = 0;
38065 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38066 wxString *arg2 = 0 ;
38067 void *argp1 = 0 ;
38068 int res1 = 0 ;
38069 bool temp2 = false ;
38070 PyObject * obj0 = 0 ;
38071 PyObject * obj1 = 0 ;
38072 char * kwnames[] = {
38073 (char *) "self",(char *) "filter", NULL
38074 };
38075
38076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38078 if (!SWIG_IsOK(res1)) {
38079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38080 }
38081 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38082 {
38083 arg2 = wxString_in_helper(obj1);
38084 if (arg2 == NULL) SWIG_fail;
38085 temp2 = true;
38086 }
38087 {
38088 PyThreadState* __tstate = wxPyBeginAllowThreads();
38089 (arg1)->SetFilter((wxString const &)*arg2);
38090 wxPyEndAllowThreads(__tstate);
38091 if (PyErr_Occurred()) SWIG_fail;
38092 }
38093 resultobj = SWIG_Py_Void();
38094 {
38095 if (temp2)
38096 delete arg2;
38097 }
38098 return resultobj;
38099fail:
38100 {
38101 if (temp2)
38102 delete arg2;
38103 }
38104 return NULL;
d55e5bfc
RD
38105}
38106
38107
1bd55598
RD
38108SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38109 PyObject *resultobj = 0;
38110 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38111 int result;
38112 void *argp1 = 0 ;
38113 int res1 = 0 ;
38114 PyObject *swig_obj[1] ;
38115
38116 if (!args) SWIG_fail;
38117 swig_obj[0] = args;
38118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38119 if (!SWIG_IsOK(res1)) {
38120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38121 }
38122 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38123 {
38124 PyThreadState* __tstate = wxPyBeginAllowThreads();
38125 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38126 wxPyEndAllowThreads(__tstate);
38127 if (PyErr_Occurred()) SWIG_fail;
38128 }
38129 resultobj = SWIG_From_int(static_cast< int >(result));
38130 return resultobj;
38131fail:
38132 return NULL;
38133}
38134
38135
38136SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38137 PyObject *resultobj = 0;
38138 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38139 int arg2 ;
38140 void *argp1 = 0 ;
38141 int res1 = 0 ;
38142 int val2 ;
38143 int ecode2 = 0 ;
38144 PyObject * obj0 = 0 ;
38145 PyObject * obj1 = 0 ;
38146 char * kwnames[] = {
38147 (char *) "self",(char *) "n", NULL
38148 };
38149
38150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38152 if (!SWIG_IsOK(res1)) {
38153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38154 }
38155 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38156 ecode2 = SWIG_AsVal_int(obj1, &val2);
38157 if (!SWIG_IsOK(ecode2)) {
38158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38159 }
38160 arg2 = static_cast< int >(val2);
38161 {
38162 PyThreadState* __tstate = wxPyBeginAllowThreads();
38163 (arg1)->SetFilterIndex(arg2);
38164 wxPyEndAllowThreads(__tstate);
38165 if (PyErr_Occurred()) SWIG_fail;
38166 }
38167 resultobj = SWIG_Py_Void();
38168 return resultobj;
38169fail:
38170 return NULL;
d55e5bfc
RD
38171}
38172
38173
1bd55598
RD
38174SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38175 PyObject *resultobj = 0;
38176 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38177 wxTreeItemId result;
38178 void *argp1 = 0 ;
38179 int res1 = 0 ;
38180 PyObject *swig_obj[1] ;
38181
38182 if (!args) SWIG_fail;
38183 swig_obj[0] = args;
38184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38185 if (!SWIG_IsOK(res1)) {
38186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38187 }
38188 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38189 {
38190 PyThreadState* __tstate = wxPyBeginAllowThreads();
38191 result = (arg1)->GetRootId();
38192 wxPyEndAllowThreads(__tstate);
38193 if (PyErr_Occurred()) SWIG_fail;
38194 }
38195 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38196 return resultobj;
38197fail:
38198 return NULL;
d55e5bfc
RD
38199}
38200
38201
1bd55598
RD
38202SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38203 PyObject *resultobj = 0;
38204 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38205 wxPyTreeCtrl *result = 0 ;
38206 void *argp1 = 0 ;
38207 int res1 = 0 ;
38208 PyObject *swig_obj[1] ;
38209
38210 if (!args) SWIG_fail;
38211 swig_obj[0] = args;
38212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38213 if (!SWIG_IsOK(res1)) {
38214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38215 }
38216 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38217 {
38218 PyThreadState* __tstate = wxPyBeginAllowThreads();
38219 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38220 wxPyEndAllowThreads(__tstate);
38221 if (PyErr_Occurred()) SWIG_fail;
38222 }
38223 {
38224 resultobj = wxPyMake_wxObject(result, 0);
38225 }
38226 return resultobj;
38227fail:
38228 return NULL;
d55e5bfc
RD
38229}
38230
38231
1bd55598
RD
38232SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38233 PyObject *resultobj = 0;
38234 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38235 wxDirFilterListCtrl *result = 0 ;
38236 void *argp1 = 0 ;
38237 int res1 = 0 ;
38238 PyObject *swig_obj[1] ;
38239
38240 if (!args) SWIG_fail;
38241 swig_obj[0] = args;
38242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38243 if (!SWIG_IsOK(res1)) {
38244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38245 }
38246 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38247 {
38248 PyThreadState* __tstate = wxPyBeginAllowThreads();
38249 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38250 wxPyEndAllowThreads(__tstate);
38251 if (PyErr_Occurred()) SWIG_fail;
38252 }
38253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38254 return resultobj;
38255fail:
38256 return NULL;
38257}
38258
38259
38260SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38261 PyObject *resultobj = 0;
38262 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38263 wxTreeItemId arg2 ;
38264 wxString *arg3 = 0 ;
38265 bool *arg4 = 0 ;
38266 wxTreeItemId result;
38267 void *argp1 = 0 ;
38268 int res1 = 0 ;
38269 void *argp2 ;
38270 int res2 = 0 ;
38271 bool temp3 = false ;
38272 bool temp4 ;
38273 int res4 = SWIG_TMPOBJ ;
38274 PyObject * obj0 = 0 ;
38275 PyObject * obj1 = 0 ;
38276 PyObject * obj2 = 0 ;
38277 char * kwnames[] = {
38278 (char *) "self",(char *) "parentId",(char *) "path", NULL
38279 };
38280
38281 arg4 = &temp4;
38282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38284 if (!SWIG_IsOK(res1)) {
38285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38286 }
38287 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38288 {
38289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38290 if (!SWIG_IsOK(res2)) {
38291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38292 }
38293 if (!argp2) {
38294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38295 } else {
38296 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38297 arg2 = *temp;
38298 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38299 }
1bd55598
RD
38300 }
38301 {
38302 arg3 = wxString_in_helper(obj2);
38303 if (arg3 == NULL) SWIG_fail;
38304 temp3 = true;
38305 }
38306 {
38307 PyThreadState* __tstate = wxPyBeginAllowThreads();
38308 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38309 wxPyEndAllowThreads(__tstate);
38310 if (PyErr_Occurred()) SWIG_fail;
38311 }
38312 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38313 if (SWIG_IsTmpObj(res4)) {
38314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38315 } else {
38316 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38317 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38318 }
38319 {
38320 if (temp3)
38321 delete arg3;
38322 }
38323 return resultobj;
38324fail:
38325 {
38326 if (temp3)
38327 delete arg3;
38328 }
38329 return NULL;
d55e5bfc
RD
38330}
38331
38332
1bd55598
RD
38333SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38334 PyObject *resultobj = 0;
38335 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38336 void *argp1 = 0 ;
38337 int res1 = 0 ;
38338 PyObject *swig_obj[1] ;
38339
38340 if (!args) SWIG_fail;
38341 swig_obj[0] = args;
38342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38343 if (!SWIG_IsOK(res1)) {
38344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38345 }
38346 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38347 {
38348 PyThreadState* __tstate = wxPyBeginAllowThreads();
38349 (arg1)->DoResize();
38350 wxPyEndAllowThreads(__tstate);
38351 if (PyErr_Occurred()) SWIG_fail;
38352 }
38353 resultobj = SWIG_Py_Void();
38354 return resultobj;
38355fail:
38356 return NULL;
38357}
38358
38359
38360SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38361 PyObject *resultobj = 0;
38362 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38363 void *argp1 = 0 ;
38364 int res1 = 0 ;
38365 PyObject *swig_obj[1] ;
38366
38367 if (!args) SWIG_fail;
38368 swig_obj[0] = args;
38369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38370 if (!SWIG_IsOK(res1)) {
38371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38372 }
38373 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38374 {
38375 PyThreadState* __tstate = wxPyBeginAllowThreads();
38376 (arg1)->ReCreateTree();
38377 wxPyEndAllowThreads(__tstate);
38378 if (PyErr_Occurred()) SWIG_fail;
38379 }
38380 resultobj = SWIG_Py_Void();
38381 return resultobj;
38382fail:
38383 return NULL;
38384}
38385
38386
38387SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38388 PyObject *obj;
38389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38390 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38391 return SWIG_Py_Void();
38392}
38393
38394SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38395 return SWIG_Python_InitShadowInstance(args);
38396}
38397
38398SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38399 PyObject *resultobj = 0;
38400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38401 int arg2 = (int) (int)-1 ;
38402 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38403 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38404 wxSize const &arg4_defvalue = wxDefaultSize ;
38405 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38406 long arg5 = (long) 0 ;
38407 wxDirFilterListCtrl *result = 0 ;
38408 void *argp1 = 0 ;
38409 int res1 = 0 ;
38410 int val2 ;
38411 int ecode2 = 0 ;
38412 wxPoint temp3 ;
38413 wxSize temp4 ;
38414 long val5 ;
38415 int ecode5 = 0 ;
38416 PyObject * obj0 = 0 ;
38417 PyObject * obj1 = 0 ;
38418 PyObject * obj2 = 0 ;
38419 PyObject * obj3 = 0 ;
38420 PyObject * obj4 = 0 ;
38421 char * kwnames[] = {
38422 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38423 };
38424
38425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38427 if (!SWIG_IsOK(res1)) {
38428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38429 }
38430 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38431 if (obj1) {
38432 ecode2 = SWIG_AsVal_int(obj1, &val2);
38433 if (!SWIG_IsOK(ecode2)) {
38434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38435 }
38436 arg2 = static_cast< int >(val2);
38437 }
38438 if (obj2) {
d55e5bfc 38439 {
1bd55598
RD
38440 arg3 = &temp3;
38441 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38442 }
1bd55598
RD
38443 }
38444 if (obj3) {
d55e5bfc 38445 {
1bd55598
RD
38446 arg4 = &temp4;
38447 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38448 }
1bd55598
RD
38449 }
38450 if (obj4) {
38451 ecode5 = SWIG_AsVal_long(obj4, &val5);
38452 if (!SWIG_IsOK(ecode5)) {
38453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38454 }
38455 arg5 = static_cast< long >(val5);
38456 }
38457 {
38458 if (!wxPyCheckForApp()) SWIG_fail;
38459 PyThreadState* __tstate = wxPyBeginAllowThreads();
38460 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38461 wxPyEndAllowThreads(__tstate);
38462 if (PyErr_Occurred()) SWIG_fail;
38463 }
38464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38465 return resultobj;
38466fail:
38467 return NULL;
d55e5bfc
RD
38468}
38469
38470
1bd55598
RD
38471SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38472 PyObject *resultobj = 0;
38473 wxDirFilterListCtrl *result = 0 ;
38474
38475 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38476 {
38477 if (!wxPyCheckForApp()) SWIG_fail;
38478 PyThreadState* __tstate = wxPyBeginAllowThreads();
38479 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38480 wxPyEndAllowThreads(__tstate);
38481 if (PyErr_Occurred()) SWIG_fail;
38482 }
38483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38484 return resultobj;
38485fail:
38486 return NULL;
38487}
38488
38489
38490SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38491 PyObject *resultobj = 0;
38492 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38493 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38494 int arg3 = (int) (int)-1 ;
38495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38497 wxSize const &arg5_defvalue = wxDefaultSize ;
38498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38499 long arg6 = (long) 0 ;
38500 bool result;
38501 void *argp1 = 0 ;
38502 int res1 = 0 ;
38503 void *argp2 = 0 ;
38504 int res2 = 0 ;
38505 int val3 ;
38506 int ecode3 = 0 ;
38507 wxPoint temp4 ;
38508 wxSize temp5 ;
38509 long val6 ;
38510 int ecode6 = 0 ;
38511 PyObject * obj0 = 0 ;
38512 PyObject * obj1 = 0 ;
38513 PyObject * obj2 = 0 ;
38514 PyObject * obj3 = 0 ;
38515 PyObject * obj4 = 0 ;
38516 PyObject * obj5 = 0 ;
38517 char * kwnames[] = {
38518 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38519 };
38520
38521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38523 if (!SWIG_IsOK(res1)) {
38524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38525 }
38526 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38528 if (!SWIG_IsOK(res2)) {
38529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38530 }
38531 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38532 if (obj2) {
38533 ecode3 = SWIG_AsVal_int(obj2, &val3);
38534 if (!SWIG_IsOK(ecode3)) {
38535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38536 }
38537 arg3 = static_cast< int >(val3);
38538 }
38539 if (obj3) {
36ed4f51 38540 {
1bd55598
RD
38541 arg4 = &temp4;
38542 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38543 }
1bd55598
RD
38544 }
38545 if (obj4) {
36ed4f51 38546 {
1bd55598
RD
38547 arg5 = &temp5;
38548 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38549 }
1bd55598
RD
38550 }
38551 if (obj5) {
38552 ecode6 = SWIG_AsVal_long(obj5, &val6);
38553 if (!SWIG_IsOK(ecode6)) {
38554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38555 }
38556 arg6 = static_cast< long >(val6);
38557 }
38558 {
38559 PyThreadState* __tstate = wxPyBeginAllowThreads();
38560 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38561 wxPyEndAllowThreads(__tstate);
38562 if (PyErr_Occurred()) SWIG_fail;
38563 }
38564 {
38565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38566 }
38567 return resultobj;
38568fail:
38569 return NULL;
38570}
38571
38572
38573SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38574 PyObject *resultobj = 0;
38575 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38576 wxString *arg2 = 0 ;
38577 int arg3 ;
38578 void *argp1 = 0 ;
38579 int res1 = 0 ;
38580 bool temp2 = false ;
38581 int val3 ;
38582 int ecode3 = 0 ;
38583 PyObject * obj0 = 0 ;
38584 PyObject * obj1 = 0 ;
38585 PyObject * obj2 = 0 ;
38586 char * kwnames[] = {
38587 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38588 };
38589
38590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38592 if (!SWIG_IsOK(res1)) {
38593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38594 }
38595 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38596 {
38597 arg2 = wxString_in_helper(obj1);
38598 if (arg2 == NULL) SWIG_fail;
38599 temp2 = true;
38600 }
38601 ecode3 = SWIG_AsVal_int(obj2, &val3);
38602 if (!SWIG_IsOK(ecode3)) {
38603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38604 }
38605 arg3 = static_cast< int >(val3);
38606 {
38607 PyThreadState* __tstate = wxPyBeginAllowThreads();
38608 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38609 wxPyEndAllowThreads(__tstate);
38610 if (PyErr_Occurred()) SWIG_fail;
38611 }
38612 resultobj = SWIG_Py_Void();
38613 {
38614 if (temp2)
38615 delete arg2;
38616 }
38617 return resultobj;
38618fail:
38619 {
38620 if (temp2)
38621 delete arg2;
38622 }
38623 return NULL;
38624}
38625
38626
38627SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38628 PyObject *obj;
38629 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38630 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38631 return SWIG_Py_Void();
38632}
38633
38634SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38635 return SWIG_Python_InitShadowInstance(args);
38636}
38637
38638SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38639 PyObject *resultobj = 0;
38640 wxWindow *arg1 = (wxWindow *) 0 ;
38641 int arg2 = (int) (int)-1 ;
38642 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38643 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38644 wxSize const &arg4_defvalue = wxDefaultSize ;
38645 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38646 long arg5 = (long) 0 ;
38647 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38648 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38649 wxString const &arg7_defvalue = wxPyControlNameStr ;
38650 wxString *arg7 = (wxString *) &arg7_defvalue ;
38651 wxPyControl *result = 0 ;
38652 void *argp1 = 0 ;
38653 int res1 = 0 ;
38654 int val2 ;
38655 int ecode2 = 0 ;
38656 wxPoint temp3 ;
38657 wxSize temp4 ;
38658 long val5 ;
38659 int ecode5 = 0 ;
38660 void *argp6 = 0 ;
38661 int res6 = 0 ;
38662 bool temp7 = false ;
38663 PyObject * obj0 = 0 ;
38664 PyObject * obj1 = 0 ;
38665 PyObject * obj2 = 0 ;
38666 PyObject * obj3 = 0 ;
38667 PyObject * obj4 = 0 ;
38668 PyObject * obj5 = 0 ;
38669 PyObject * obj6 = 0 ;
38670 char * kwnames[] = {
38671 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38672 };
38673
38674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38676 if (!SWIG_IsOK(res1)) {
38677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38678 }
38679 arg1 = reinterpret_cast< wxWindow * >(argp1);
38680 if (obj1) {
38681 ecode2 = SWIG_AsVal_int(obj1, &val2);
38682 if (!SWIG_IsOK(ecode2)) {
38683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38684 }
38685 arg2 = static_cast< int >(val2);
38686 }
38687 if (obj2) {
d55e5bfc 38688 {
1bd55598
RD
38689 arg3 = &temp3;
38690 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38691 }
1bd55598
RD
38692 }
38693 if (obj3) {
d55e5bfc 38694 {
1bd55598
RD
38695 arg4 = &temp4;
38696 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38697 }
1bd55598
RD
38698 }
38699 if (obj4) {
38700 ecode5 = SWIG_AsVal_long(obj4, &val5);
38701 if (!SWIG_IsOK(ecode5)) {
38702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38703 }
38704 arg5 = static_cast< long >(val5);
38705 }
38706 if (obj5) {
38707 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38708 if (!SWIG_IsOK(res6)) {
38709 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38710 }
1bd55598
RD
38711 if (!argp6) {
38712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38713 }
1bd55598
RD
38714 arg6 = reinterpret_cast< wxValidator * >(argp6);
38715 }
38716 if (obj6) {
f20a2e1f 38717 {
1bd55598
RD
38718 arg7 = wxString_in_helper(obj6);
38719 if (arg7 == NULL) SWIG_fail;
38720 temp7 = true;
f20a2e1f 38721 }
1bd55598
RD
38722 }
38723 {
38724 if (!wxPyCheckForApp()) SWIG_fail;
38725 PyThreadState* __tstate = wxPyBeginAllowThreads();
38726 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38727 wxPyEndAllowThreads(__tstate);
38728 if (PyErr_Occurred()) SWIG_fail;
38729 }
38730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38731 {
38732 if (temp7)
38733 delete arg7;
38734 }
38735 return resultobj;
38736fail:
38737 {
38738 if (temp7)
38739 delete arg7;
38740 }
38741 return NULL;
d55e5bfc
RD
38742}
38743
38744
1bd55598
RD
38745SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38746 PyObject *resultobj = 0;
38747 wxPyControl *result = 0 ;
38748
38749 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38750 {
38751 if (!wxPyCheckForApp()) SWIG_fail;
38752 PyThreadState* __tstate = wxPyBeginAllowThreads();
38753 result = (wxPyControl *)new wxPyControl();
38754 wxPyEndAllowThreads(__tstate);
38755 if (PyErr_Occurred()) SWIG_fail;
38756 }
38757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38758 return resultobj;
38759fail:
38760 return NULL;
38761}
38762
38763
38764SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38765 PyObject *resultobj = 0;
38766 wxPyControl *arg1 = (wxPyControl *) 0 ;
38767 PyObject *arg2 = (PyObject *) 0 ;
38768 PyObject *arg3 = (PyObject *) 0 ;
38769 void *argp1 = 0 ;
38770 int res1 = 0 ;
38771 PyObject * obj0 = 0 ;
38772 PyObject * obj1 = 0 ;
38773 PyObject * obj2 = 0 ;
38774 char * kwnames[] = {
38775 (char *) "self",(char *) "self",(char *) "_class", NULL
38776 };
38777
38778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38780 if (!SWIG_IsOK(res1)) {
38781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38782 }
38783 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38784 arg2 = obj1;
38785 arg3 = obj2;
38786 {
38787 PyThreadState* __tstate = wxPyBeginAllowThreads();
38788 (arg1)->_setCallbackInfo(arg2,arg3);
38789 wxPyEndAllowThreads(__tstate);
38790 if (PyErr_Occurred()) SWIG_fail;
38791 }
38792 resultobj = SWIG_Py_Void();
38793 return resultobj;
38794fail:
38795 return NULL;
38796}
38797
38798
1bd55598
RD
38799SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38800 PyObject *resultobj = 0;
38801 wxPyControl *arg1 = (wxPyControl *) 0 ;
38802 wxDC *arg2 = (wxDC *) 0 ;
38803 bool result;
38804 void *argp1 = 0 ;
38805 int res1 = 0 ;
38806 void *argp2 = 0 ;
38807 int res2 = 0 ;
38808 PyObject * obj0 = 0 ;
38809 PyObject * obj1 = 0 ;
38810 char * kwnames[] = {
38811 (char *) "self",(char *) "dc", NULL
38812 };
38813
38814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38816 if (!SWIG_IsOK(res1)) {
38817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38818 }
38819 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38820 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38821 if (!SWIG_IsOK(res2)) {
38822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38823 }
38824 arg2 = reinterpret_cast< wxDC * >(argp2);
38825 {
38826 PyThreadState* __tstate = wxPyBeginAllowThreads();
38827 result = (bool)(arg1)->DoEraseBackground(arg2);
38828 wxPyEndAllowThreads(__tstate);
38829 if (PyErr_Occurred()) SWIG_fail;
38830 }
38831 {
38832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38833 }
38834 return resultobj;
38835fail:
38836 return NULL;
38837}
38838
38839
38840SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38841 PyObject *resultobj = 0;
38842 wxPyControl *arg1 = (wxPyControl *) 0 ;
38843 int arg2 ;
38844 int arg3 ;
38845 int arg4 ;
38846 int arg5 ;
38847 void *argp1 = 0 ;
38848 int res1 = 0 ;
38849 int val2 ;
38850 int ecode2 = 0 ;
38851 int val3 ;
38852 int ecode3 = 0 ;
38853 int val4 ;
38854 int ecode4 = 0 ;
38855 int val5 ;
38856 int ecode5 = 0 ;
38857 PyObject * obj0 = 0 ;
38858 PyObject * obj1 = 0 ;
38859 PyObject * obj2 = 0 ;
38860 PyObject * obj3 = 0 ;
38861 PyObject * obj4 = 0 ;
38862 char * kwnames[] = {
38863 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38864 };
38865
38866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38868 if (!SWIG_IsOK(res1)) {
38869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38870 }
38871 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38872 ecode2 = SWIG_AsVal_int(obj1, &val2);
38873 if (!SWIG_IsOK(ecode2)) {
38874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38875 }
38876 arg2 = static_cast< int >(val2);
38877 ecode3 = SWIG_AsVal_int(obj2, &val3);
38878 if (!SWIG_IsOK(ecode3)) {
38879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38880 }
38881 arg3 = static_cast< int >(val3);
38882 ecode4 = SWIG_AsVal_int(obj3, &val4);
38883 if (!SWIG_IsOK(ecode4)) {
38884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38885 }
38886 arg4 = static_cast< int >(val4);
38887 ecode5 = SWIG_AsVal_int(obj4, &val5);
38888 if (!SWIG_IsOK(ecode5)) {
38889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38890 }
38891 arg5 = static_cast< int >(val5);
38892 {
38893 PyThreadState* __tstate = wxPyBeginAllowThreads();
38894 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38895 wxPyEndAllowThreads(__tstate);
38896 if (PyErr_Occurred()) SWIG_fail;
38897 }
38898 resultobj = SWIG_Py_Void();
38899 return resultobj;
38900fail:
38901 return NULL;
38902}
38903
38904
38905SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38906 PyObject *resultobj = 0;
38907 wxPyControl *arg1 = (wxPyControl *) 0 ;
38908 int arg2 ;
38909 int arg3 ;
38910 int arg4 ;
38911 int arg5 ;
38912 int arg6 = (int) wxSIZE_AUTO ;
38913 void *argp1 = 0 ;
38914 int res1 = 0 ;
38915 int val2 ;
38916 int ecode2 = 0 ;
38917 int val3 ;
38918 int ecode3 = 0 ;
38919 int val4 ;
38920 int ecode4 = 0 ;
38921 int val5 ;
38922 int ecode5 = 0 ;
38923 int val6 ;
38924 int ecode6 = 0 ;
38925 PyObject * obj0 = 0 ;
38926 PyObject * obj1 = 0 ;
38927 PyObject * obj2 = 0 ;
38928 PyObject * obj3 = 0 ;
38929 PyObject * obj4 = 0 ;
38930 PyObject * obj5 = 0 ;
38931 char * kwnames[] = {
38932 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38933 };
38934
38935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38937 if (!SWIG_IsOK(res1)) {
38938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38939 }
38940 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38941 ecode2 = SWIG_AsVal_int(obj1, &val2);
38942 if (!SWIG_IsOK(ecode2)) {
38943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38944 }
38945 arg2 = static_cast< int >(val2);
38946 ecode3 = SWIG_AsVal_int(obj2, &val3);
38947 if (!SWIG_IsOK(ecode3)) {
38948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38949 }
38950 arg3 = static_cast< int >(val3);
38951 ecode4 = SWIG_AsVal_int(obj3, &val4);
38952 if (!SWIG_IsOK(ecode4)) {
38953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38954 }
38955 arg4 = static_cast< int >(val4);
38956 ecode5 = SWIG_AsVal_int(obj4, &val5);
38957 if (!SWIG_IsOK(ecode5)) {
38958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38959 }
38960 arg5 = static_cast< int >(val5);
38961 if (obj5) {
38962 ecode6 = SWIG_AsVal_int(obj5, &val6);
38963 if (!SWIG_IsOK(ecode6)) {
38964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38965 }
38966 arg6 = static_cast< int >(val6);
38967 }
38968 {
38969 PyThreadState* __tstate = wxPyBeginAllowThreads();
38970 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38971 wxPyEndAllowThreads(__tstate);
38972 if (PyErr_Occurred()) SWIG_fail;
38973 }
38974 resultobj = SWIG_Py_Void();
38975 return resultobj;
38976fail:
38977 return NULL;
38978}
38979
38980
38981SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38982 PyObject *resultobj = 0;
38983 wxPyControl *arg1 = (wxPyControl *) 0 ;
38984 int arg2 ;
38985 int arg3 ;
38986 void *argp1 = 0 ;
38987 int res1 = 0 ;
38988 int val2 ;
38989 int ecode2 = 0 ;
38990 int val3 ;
38991 int ecode3 = 0 ;
38992 PyObject * obj0 = 0 ;
38993 PyObject * obj1 = 0 ;
38994 PyObject * obj2 = 0 ;
38995 char * kwnames[] = {
38996 (char *) "self",(char *) "width",(char *) "height", NULL
38997 };
38998
38999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39001 if (!SWIG_IsOK(res1)) {
39002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39003 }
39004 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39005 ecode2 = SWIG_AsVal_int(obj1, &val2);
39006 if (!SWIG_IsOK(ecode2)) {
39007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39008 }
39009 arg2 = static_cast< int >(val2);
39010 ecode3 = SWIG_AsVal_int(obj2, &val3);
39011 if (!SWIG_IsOK(ecode3)) {
39012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39013 }
39014 arg3 = static_cast< int >(val3);
39015 {
39016 PyThreadState* __tstate = wxPyBeginAllowThreads();
39017 (arg1)->DoSetClientSize(arg2,arg3);
39018 wxPyEndAllowThreads(__tstate);
39019 if (PyErr_Occurred()) SWIG_fail;
39020 }
39021 resultobj = SWIG_Py_Void();
39022 return resultobj;
39023fail:
39024 return NULL;
39025}
39026
39027
39028SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39029 PyObject *resultobj = 0;
39030 wxPyControl *arg1 = (wxPyControl *) 0 ;
39031 int arg2 ;
39032 int arg3 ;
39033 void *argp1 = 0 ;
39034 int res1 = 0 ;
39035 int val2 ;
39036 int ecode2 = 0 ;
39037 int val3 ;
39038 int ecode3 = 0 ;
39039 PyObject * obj0 = 0 ;
39040 PyObject * obj1 = 0 ;
39041 PyObject * obj2 = 0 ;
39042 char * kwnames[] = {
39043 (char *) "self",(char *) "x",(char *) "y", NULL
39044 };
39045
39046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39048 if (!SWIG_IsOK(res1)) {
39049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39050 }
39051 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39052 ecode2 = SWIG_AsVal_int(obj1, &val2);
39053 if (!SWIG_IsOK(ecode2)) {
39054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39055 }
39056 arg2 = static_cast< int >(val2);
39057 ecode3 = SWIG_AsVal_int(obj2, &val3);
39058 if (!SWIG_IsOK(ecode3)) {
39059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39060 }
39061 arg3 = static_cast< int >(val3);
39062 {
39063 PyThreadState* __tstate = wxPyBeginAllowThreads();
39064 (arg1)->DoSetVirtualSize(arg2,arg3);
39065 wxPyEndAllowThreads(__tstate);
39066 if (PyErr_Occurred()) SWIG_fail;
39067 }
39068 resultobj = SWIG_Py_Void();
39069 return resultobj;
39070fail:
39071 return NULL;
39072}
39073
39074
39075SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39076 PyObject *resultobj = 0;
39077 wxPyControl *arg1 = (wxPyControl *) 0 ;
39078 int *arg2 = (int *) 0 ;
39079 int *arg3 = (int *) 0 ;
39080 void *argp1 = 0 ;
39081 int res1 = 0 ;
39082 int temp2 ;
39083 int res2 = SWIG_TMPOBJ ;
39084 int temp3 ;
39085 int res3 = SWIG_TMPOBJ ;
39086 PyObject *swig_obj[1] ;
39087
39088 arg2 = &temp2;
39089 arg3 = &temp3;
39090 if (!args) SWIG_fail;
39091 swig_obj[0] = args;
39092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39093 if (!SWIG_IsOK(res1)) {
39094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39095 }
39096 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39097 {
39098 PyThreadState* __tstate = wxPyBeginAllowThreads();
39099 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39100 wxPyEndAllowThreads(__tstate);
39101 if (PyErr_Occurred()) SWIG_fail;
39102 }
39103 resultobj = SWIG_Py_Void();
39104 if (SWIG_IsTmpObj(res2)) {
39105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39106 } else {
39107 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39109 }
39110 if (SWIG_IsTmpObj(res3)) {
39111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39112 } else {
39113 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39115 }
39116 return resultobj;
39117fail:
39118 return NULL;
39119}
39120
39121
39122SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39123 PyObject *resultobj = 0;
39124 wxPyControl *arg1 = (wxPyControl *) 0 ;
39125 int *arg2 = (int *) 0 ;
39126 int *arg3 = (int *) 0 ;
39127 void *argp1 = 0 ;
39128 int res1 = 0 ;
39129 int temp2 ;
39130 int res2 = SWIG_TMPOBJ ;
39131 int temp3 ;
39132 int res3 = SWIG_TMPOBJ ;
39133 PyObject *swig_obj[1] ;
39134
39135 arg2 = &temp2;
39136 arg3 = &temp3;
39137 if (!args) SWIG_fail;
39138 swig_obj[0] = args;
39139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39140 if (!SWIG_IsOK(res1)) {
39141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39142 }
39143 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39144 {
39145 PyThreadState* __tstate = wxPyBeginAllowThreads();
39146 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39147 wxPyEndAllowThreads(__tstate);
39148 if (PyErr_Occurred()) SWIG_fail;
39149 }
39150 resultobj = SWIG_Py_Void();
39151 if (SWIG_IsTmpObj(res2)) {
39152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39153 } else {
39154 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39156 }
39157 if (SWIG_IsTmpObj(res3)) {
39158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39159 } else {
39160 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39162 }
39163 return resultobj;
39164fail:
39165 return NULL;
39166}
39167
39168
39169SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39170 PyObject *resultobj = 0;
39171 wxPyControl *arg1 = (wxPyControl *) 0 ;
39172 int *arg2 = (int *) 0 ;
39173 int *arg3 = (int *) 0 ;
39174 void *argp1 = 0 ;
39175 int res1 = 0 ;
39176 int temp2 ;
39177 int res2 = SWIG_TMPOBJ ;
39178 int temp3 ;
39179 int res3 = SWIG_TMPOBJ ;
39180 PyObject *swig_obj[1] ;
39181
39182 arg2 = &temp2;
39183 arg3 = &temp3;
39184 if (!args) SWIG_fail;
39185 swig_obj[0] = args;
39186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39187 if (!SWIG_IsOK(res1)) {
39188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39189 }
39190 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39191 {
39192 PyThreadState* __tstate = wxPyBeginAllowThreads();
39193 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39194 wxPyEndAllowThreads(__tstate);
39195 if (PyErr_Occurred()) SWIG_fail;
39196 }
39197 resultobj = SWIG_Py_Void();
39198 if (SWIG_IsTmpObj(res2)) {
39199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39200 } else {
39201 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39203 }
39204 if (SWIG_IsTmpObj(res3)) {
39205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39206 } else {
39207 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39209 }
39210 return resultobj;
39211fail:
39212 return NULL;
d55e5bfc
RD
39213}
39214
39215
1bd55598
RD
39216SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39217 PyObject *resultobj = 0;
39218 wxPyControl *arg1 = (wxPyControl *) 0 ;
39219 wxSize result;
39220 void *argp1 = 0 ;
39221 int res1 = 0 ;
39222 PyObject *swig_obj[1] ;
39223
39224 if (!args) SWIG_fail;
39225 swig_obj[0] = args;
39226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39227 if (!SWIG_IsOK(res1)) {
39228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39229 }
39230 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39231 {
39232 PyThreadState* __tstate = wxPyBeginAllowThreads();
39233 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39234 wxPyEndAllowThreads(__tstate);
39235 if (PyErr_Occurred()) SWIG_fail;
39236 }
39237 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39238 return resultobj;
39239fail:
39240 return NULL;
7e08d4ef
RD
39241}
39242
39243
1bd55598
RD
39244SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39245 PyObject *resultobj = 0;
39246 wxPyControl *arg1 = (wxPyControl *) 0 ;
39247 wxSize result;
39248 void *argp1 = 0 ;
39249 int res1 = 0 ;
39250 PyObject *swig_obj[1] ;
39251
39252 if (!args) SWIG_fail;
39253 swig_obj[0] = args;
39254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39255 if (!SWIG_IsOK(res1)) {
39256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39257 }
39258 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39262 wxPyEndAllowThreads(__tstate);
39263 if (PyErr_Occurred()) SWIG_fail;
39264 }
39265 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39266 return resultobj;
39267fail:
39268 return NULL;
d55e5bfc
RD
39269}
39270
39271
1bd55598
RD
39272SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39273 PyObject *resultobj = 0;
39274 wxPyControl *arg1 = (wxPyControl *) 0 ;
39275 SwigValueWrapper<wxVisualAttributes > result;
39276 void *argp1 = 0 ;
39277 int res1 = 0 ;
39278 PyObject *swig_obj[1] ;
39279
39280 if (!args) SWIG_fail;
39281 swig_obj[0] = args;
39282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39283 if (!SWIG_IsOK(res1)) {
39284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39285 }
39286 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39287 {
39288 PyThreadState* __tstate = wxPyBeginAllowThreads();
39289 result = (arg1)->GetDefaultAttributes();
39290 wxPyEndAllowThreads(__tstate);
39291 if (PyErr_Occurred()) SWIG_fail;
39292 }
39293 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39294 return resultobj;
39295fail:
39296 return NULL;
d55e5bfc
RD
39297}
39298
39299
1bd55598
RD
39300SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39301 PyObject *resultobj = 0;
39302 wxPyControl *arg1 = (wxPyControl *) 0 ;
39303 void *argp1 = 0 ;
39304 int res1 = 0 ;
39305 PyObject *swig_obj[1] ;
39306
39307 if (!args) SWIG_fail;
39308 swig_obj[0] = args;
39309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39310 if (!SWIG_IsOK(res1)) {
39311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39312 }
39313 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39314 {
39315 PyThreadState* __tstate = wxPyBeginAllowThreads();
39316 (arg1)->OnInternalIdle();
39317 wxPyEndAllowThreads(__tstate);
39318 if (PyErr_Occurred()) SWIG_fail;
39319 }
39320 resultobj = SWIG_Py_Void();
39321 return resultobj;
39322fail:
39323 return NULL;
39324}
39325
39326
39327SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39328 PyObject *obj;
39329 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39330 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39331 return SWIG_Py_Void();
39332}
39333
39334SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39335 return SWIG_Python_InitShadowInstance(args);
39336}
39337
39338SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39339 PyObject *resultobj = 0;
39340 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39341 int arg2 = (int) 0 ;
39342 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39343 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39344 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39345 wxHelpEvent *result = 0 ;
39346 int val1 ;
39347 int ecode1 = 0 ;
39348 int val2 ;
39349 int ecode2 = 0 ;
39350 wxPoint temp3 ;
704eda0c
RD
39351 int val4 ;
39352 int ecode4 = 0 ;
1bd55598
RD
39353 PyObject * obj0 = 0 ;
39354 PyObject * obj1 = 0 ;
39355 PyObject * obj2 = 0 ;
704eda0c 39356 PyObject * obj3 = 0 ;
1bd55598 39357 char * kwnames[] = {
704eda0c 39358 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39359 };
39360
704eda0c 39361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39362 if (obj0) {
39363 ecode1 = SWIG_AsVal_int(obj0, &val1);
39364 if (!SWIG_IsOK(ecode1)) {
39365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39366 }
39367 arg1 = static_cast< wxEventType >(val1);
39368 }
39369 if (obj1) {
39370 ecode2 = SWIG_AsVal_int(obj1, &val2);
39371 if (!SWIG_IsOK(ecode2)) {
39372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39373 }
39374 arg2 = static_cast< int >(val2);
39375 }
39376 if (obj2) {
d55e5bfc 39377 {
1bd55598
RD
39378 arg3 = &temp3;
39379 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39380 }
1bd55598 39381 }
704eda0c
RD
39382 if (obj3) {
39383 ecode4 = SWIG_AsVal_int(obj3, &val4);
39384 if (!SWIG_IsOK(ecode4)) {
39385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39386 }
39387 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39388 }
1bd55598
RD
39389 {
39390 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39391 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39392 wxPyEndAllowThreads(__tstate);
39393 if (PyErr_Occurred()) SWIG_fail;
39394 }
39395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39396 return resultobj;
39397fail:
39398 return NULL;
d55e5bfc
RD
39399}
39400
39401
1bd55598
RD
39402SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39403 PyObject *resultobj = 0;
39404 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39405 wxPoint result;
39406 void *argp1 = 0 ;
39407 int res1 = 0 ;
39408 PyObject *swig_obj[1] ;
39409
39410 if (!args) SWIG_fail;
39411 swig_obj[0] = args;
39412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39413 if (!SWIG_IsOK(res1)) {
39414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39415 }
39416 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39417 {
39418 PyThreadState* __tstate = wxPyBeginAllowThreads();
39419 result = ((wxHelpEvent const *)arg1)->GetPosition();
39420 wxPyEndAllowThreads(__tstate);
39421 if (PyErr_Occurred()) SWIG_fail;
39422 }
39423 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39424 return resultobj;
39425fail:
39426 return NULL;
39427}
39428
39429
39430SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39431 PyObject *resultobj = 0;
39432 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39433 wxPoint *arg2 = 0 ;
39434 void *argp1 = 0 ;
39435 int res1 = 0 ;
39436 wxPoint temp2 ;
39437 PyObject * obj0 = 0 ;
39438 PyObject * obj1 = 0 ;
39439 char * kwnames[] = {
39440 (char *) "self",(char *) "pos", NULL
39441 };
39442
39443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39445 if (!SWIG_IsOK(res1)) {
39446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39447 }
39448 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39449 {
39450 arg2 = &temp2;
39451 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39452 }
39453 {
39454 PyThreadState* __tstate = wxPyBeginAllowThreads();
39455 (arg1)->SetPosition((wxPoint const &)*arg2);
39456 wxPyEndAllowThreads(__tstate);
39457 if (PyErr_Occurred()) SWIG_fail;
39458 }
39459 resultobj = SWIG_Py_Void();
39460 return resultobj;
39461fail:
39462 return NULL;
d55e5bfc
RD
39463}
39464
39465
1bd55598
RD
39466SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39467 PyObject *resultobj = 0;
39468 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39469 wxString *result = 0 ;
39470 void *argp1 = 0 ;
39471 int res1 = 0 ;
39472 PyObject *swig_obj[1] ;
39473
39474 if (!args) SWIG_fail;
39475 swig_obj[0] = args;
39476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39477 if (!SWIG_IsOK(res1)) {
39478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39479 }
39480 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39481 {
39482 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39483 {
1bd55598
RD
39484 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39485 result = (wxString *) &_result_ref;
d55e5bfc 39486 }
1bd55598
RD
39487 wxPyEndAllowThreads(__tstate);
39488 if (PyErr_Occurred()) SWIG_fail;
39489 }
39490 {
39491#if wxUSE_UNICODE
39492 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39493#else
39494 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39495#endif
39496 }
39497 return resultobj;
39498fail:
39499 return NULL;
39500}
39501
39502
39503SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39504 PyObject *resultobj = 0;
39505 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39506 wxString *arg2 = 0 ;
39507 void *argp1 = 0 ;
39508 int res1 = 0 ;
39509 bool temp2 = false ;
39510 PyObject * obj0 = 0 ;
39511 PyObject * obj1 = 0 ;
39512 char * kwnames[] = {
39513 (char *) "self",(char *) "link", NULL
39514 };
39515
39516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39518 if (!SWIG_IsOK(res1)) {
39519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39520 }
39521 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39522 {
39523 arg2 = wxString_in_helper(obj1);
39524 if (arg2 == NULL) SWIG_fail;
39525 temp2 = true;
39526 }
39527 {
39528 PyThreadState* __tstate = wxPyBeginAllowThreads();
39529 (arg1)->SetLink((wxString const &)*arg2);
39530 wxPyEndAllowThreads(__tstate);
39531 if (PyErr_Occurred()) SWIG_fail;
39532 }
39533 resultobj = SWIG_Py_Void();
39534 {
39535 if (temp2)
39536 delete arg2;
39537 }
39538 return resultobj;
39539fail:
39540 {
39541 if (temp2)
39542 delete arg2;
39543 }
39544 return NULL;
d55e5bfc
RD
39545}
39546
39547
1bd55598
RD
39548SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39549 PyObject *resultobj = 0;
39550 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39551 wxString *result = 0 ;
39552 void *argp1 = 0 ;
39553 int res1 = 0 ;
39554 PyObject *swig_obj[1] ;
39555
39556 if (!args) SWIG_fail;
39557 swig_obj[0] = args;
39558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39559 if (!SWIG_IsOK(res1)) {
39560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39561 }
39562 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39563 {
39564 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39565 {
1bd55598
RD
39566 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39567 result = (wxString *) &_result_ref;
d55e5bfc 39568 }
1bd55598
RD
39569 wxPyEndAllowThreads(__tstate);
39570 if (PyErr_Occurred()) SWIG_fail;
39571 }
39572 {
39573#if wxUSE_UNICODE
39574 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39575#else
39576 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39577#endif
39578 }
39579 return resultobj;
39580fail:
39581 return NULL;
39582}
39583
39584
39585SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39586 PyObject *resultobj = 0;
39587 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39588 wxString *arg2 = 0 ;
39589 void *argp1 = 0 ;
39590 int res1 = 0 ;
39591 bool temp2 = false ;
39592 PyObject * obj0 = 0 ;
39593 PyObject * obj1 = 0 ;
39594 char * kwnames[] = {
39595 (char *) "self",(char *) "target", NULL
39596 };
39597
39598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39600 if (!SWIG_IsOK(res1)) {
39601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39602 }
39603 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39604 {
39605 arg2 = wxString_in_helper(obj1);
39606 if (arg2 == NULL) SWIG_fail;
39607 temp2 = true;
39608 }
39609 {
39610 PyThreadState* __tstate = wxPyBeginAllowThreads();
39611 (arg1)->SetTarget((wxString const &)*arg2);
39612 wxPyEndAllowThreads(__tstate);
39613 if (PyErr_Occurred()) SWIG_fail;
39614 }
39615 resultobj = SWIG_Py_Void();
39616 {
39617 if (temp2)
39618 delete arg2;
39619 }
39620 return resultobj;
39621fail:
39622 {
39623 if (temp2)
39624 delete arg2;
39625 }
39626 return NULL;
d55e5bfc
RD
39627}
39628
39629
704eda0c
RD
39630SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39631 PyObject *resultobj = 0;
39632 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39633 wxHelpEvent::Origin result;
39634 void *argp1 = 0 ;
39635 int res1 = 0 ;
39636 PyObject *swig_obj[1] ;
39637
39638 if (!args) SWIG_fail;
39639 swig_obj[0] = args;
39640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39641 if (!SWIG_IsOK(res1)) {
39642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39643 }
39644 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39645 {
39646 PyThreadState* __tstate = wxPyBeginAllowThreads();
39647 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39648 wxPyEndAllowThreads(__tstate);
39649 if (PyErr_Occurred()) SWIG_fail;
39650 }
39651 resultobj = SWIG_From_int(static_cast< int >(result));
39652 return resultobj;
39653fail:
39654 return NULL;
39655}
39656
39657
39658SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39659 PyObject *resultobj = 0;
39660 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39661 wxHelpEvent::Origin arg2 ;
39662 void *argp1 = 0 ;
39663 int res1 = 0 ;
39664 int val2 ;
39665 int ecode2 = 0 ;
39666 PyObject * obj0 = 0 ;
39667 PyObject * obj1 = 0 ;
39668 char * kwnames[] = {
39669 (char *) "self",(char *) "origin", NULL
39670 };
39671
39672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39674 if (!SWIG_IsOK(res1)) {
39675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39676 }
39677 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39678 ecode2 = SWIG_AsVal_int(obj1, &val2);
39679 if (!SWIG_IsOK(ecode2)) {
39680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39681 }
39682 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39683 {
39684 PyThreadState* __tstate = wxPyBeginAllowThreads();
39685 (arg1)->SetOrigin(arg2);
39686 wxPyEndAllowThreads(__tstate);
39687 if (PyErr_Occurred()) SWIG_fail;
39688 }
39689 resultobj = SWIG_Py_Void();
39690 return resultobj;
39691fail:
39692 return NULL;
39693}
39694
39695
1bd55598
RD
39696SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39697 PyObject *obj;
39698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39699 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39700 return SWIG_Py_Void();
39701}
39702
39703SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39704 return SWIG_Python_InitShadowInstance(args);
39705}
39706
39707SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39708 PyObject *resultobj = 0;
39709 wxWindow *arg1 = (wxWindow *) NULL ;
39710 bool arg2 = (bool) true ;
39711 wxContextHelp *result = 0 ;
39712 void *argp1 = 0 ;
39713 int res1 = 0 ;
39714 bool val2 ;
39715 int ecode2 = 0 ;
39716 PyObject * obj0 = 0 ;
39717 PyObject * obj1 = 0 ;
39718 char * kwnames[] = {
39719 (char *) "window",(char *) "doNow", NULL
39720 };
39721
39722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39723 if (obj0) {
39724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39725 if (!SWIG_IsOK(res1)) {
39726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39727 }
1bd55598
RD
39728 arg1 = reinterpret_cast< wxWindow * >(argp1);
39729 }
39730 if (obj1) {
39731 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39732 if (!SWIG_IsOK(ecode2)) {
39733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39734 }
39735 arg2 = static_cast< bool >(val2);
39736 }
39737 {
39738 if (!wxPyCheckForApp()) SWIG_fail;
39739 PyThreadState* __tstate = wxPyBeginAllowThreads();
39740 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39741 wxPyEndAllowThreads(__tstate);
39742 if (PyErr_Occurred()) SWIG_fail;
39743 }
39744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39745 return resultobj;
39746fail:
39747 return NULL;
d55e5bfc
RD
39748}
39749
39750
1bd55598
RD
39751SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39752 PyObject *resultobj = 0;
39753 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39754 void *argp1 = 0 ;
39755 int res1 = 0 ;
39756 PyObject *swig_obj[1] ;
39757
39758 if (!args) SWIG_fail;
39759 swig_obj[0] = args;
39760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39761 if (!SWIG_IsOK(res1)) {
39762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39763 }
39764 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39765 {
39766 PyThreadState* __tstate = wxPyBeginAllowThreads();
39767 delete arg1;
d55e5bfc 39768
1bd55598
RD
39769 wxPyEndAllowThreads(__tstate);
39770 if (PyErr_Occurred()) SWIG_fail;
39771 }
39772 resultobj = SWIG_Py_Void();
39773 return resultobj;
39774fail:
39775 return NULL;
39776}
39777
39778
39779SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39780 PyObject *resultobj = 0;
39781 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39782 wxWindow *arg2 = (wxWindow *) NULL ;
39783 bool result;
39784 void *argp1 = 0 ;
39785 int res1 = 0 ;
39786 void *argp2 = 0 ;
39787 int res2 = 0 ;
39788 PyObject * obj0 = 0 ;
39789 PyObject * obj1 = 0 ;
39790 char * kwnames[] = {
39791 (char *) "self",(char *) "window", NULL
39792 };
39793
39794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39796 if (!SWIG_IsOK(res1)) {
39797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39798 }
39799 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39800 if (obj1) {
39801 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39802 if (!SWIG_IsOK(res2)) {
39803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39804 }
1bd55598
RD
39805 arg2 = reinterpret_cast< wxWindow * >(argp2);
39806 }
39807 {
39808 PyThreadState* __tstate = wxPyBeginAllowThreads();
39809 result = (bool)(arg1)->BeginContextHelp(arg2);
39810 wxPyEndAllowThreads(__tstate);
39811 if (PyErr_Occurred()) SWIG_fail;
39812 }
39813 {
39814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39815 }
39816 return resultobj;
39817fail:
39818 return NULL;
d55e5bfc
RD
39819}
39820
39821
1bd55598
RD
39822SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39823 PyObject *resultobj = 0;
39824 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39825 bool result;
39826 void *argp1 = 0 ;
39827 int res1 = 0 ;
39828 PyObject *swig_obj[1] ;
39829
39830 if (!args) SWIG_fail;
39831 swig_obj[0] = args;
39832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39833 if (!SWIG_IsOK(res1)) {
39834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39835 }
39836 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39837 {
39838 PyThreadState* __tstate = wxPyBeginAllowThreads();
39839 result = (bool)(arg1)->EndContextHelp();
39840 wxPyEndAllowThreads(__tstate);
39841 if (PyErr_Occurred()) SWIG_fail;
39842 }
39843 {
39844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39845 }
39846 return resultobj;
39847fail:
39848 return NULL;
39849}
39850
39851
39852SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39853 PyObject *obj;
39854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39855 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39856 return SWIG_Py_Void();
39857}
39858
39859SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39860 return SWIG_Python_InitShadowInstance(args);
39861}
39862
39863SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39864 PyObject *resultobj = 0;
39865 wxWindow *arg1 = (wxWindow *) 0 ;
39866 int arg2 = (int) wxID_CONTEXT_HELP ;
39867 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39868 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39869 wxSize const &arg4_defvalue = wxDefaultSize ;
39870 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39871 long arg5 = (long) wxBU_AUTODRAW ;
39872 wxContextHelpButton *result = 0 ;
39873 void *argp1 = 0 ;
39874 int res1 = 0 ;
39875 int val2 ;
39876 int ecode2 = 0 ;
39877 wxPoint temp3 ;
39878 wxSize temp4 ;
39879 long val5 ;
39880 int ecode5 = 0 ;
39881 PyObject * obj0 = 0 ;
39882 PyObject * obj1 = 0 ;
39883 PyObject * obj2 = 0 ;
39884 PyObject * obj3 = 0 ;
39885 PyObject * obj4 = 0 ;
39886 char * kwnames[] = {
39887 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39888 };
39889
39890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39892 if (!SWIG_IsOK(res1)) {
39893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39894 }
39895 arg1 = reinterpret_cast< wxWindow * >(argp1);
39896 if (obj1) {
39897 ecode2 = SWIG_AsVal_int(obj1, &val2);
39898 if (!SWIG_IsOK(ecode2)) {
39899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39900 }
39901 arg2 = static_cast< int >(val2);
39902 }
39903 if (obj2) {
d55e5bfc 39904 {
1bd55598
RD
39905 arg3 = &temp3;
39906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39907 }
1bd55598
RD
39908 }
39909 if (obj3) {
d55e5bfc 39910 {
1bd55598
RD
39911 arg4 = &temp4;
39912 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39913 }
1bd55598
RD
39914 }
39915 if (obj4) {
39916 ecode5 = SWIG_AsVal_long(obj4, &val5);
39917 if (!SWIG_IsOK(ecode5)) {
39918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39919 }
39920 arg5 = static_cast< long >(val5);
39921 }
39922 {
39923 if (!wxPyCheckForApp()) SWIG_fail;
39924 PyThreadState* __tstate = wxPyBeginAllowThreads();
39925 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39926 wxPyEndAllowThreads(__tstate);
39927 if (PyErr_Occurred()) SWIG_fail;
39928 }
39929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39930 return resultobj;
39931fail:
39932 return NULL;
d55e5bfc
RD
39933}
39934
39935
1bd55598
RD
39936SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39937 PyObject *obj;
39938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39939 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39940 return SWIG_Py_Void();
d55e5bfc
RD
39941}
39942
1bd55598
RD
39943SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39944 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39945}
39946
f52cbe90
RD
39947SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39948 PyObject *resultobj = 0;
39949 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39950 void *argp1 = 0 ;
39951 int res1 = 0 ;
39952 PyObject *swig_obj[1] ;
39953
39954 if (!args) SWIG_fail;
39955 swig_obj[0] = args;
39956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39957 if (!SWIG_IsOK(res1)) {
39958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39959 }
39960 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39961 {
39962 PyThreadState* __tstate = wxPyBeginAllowThreads();
39963 delete arg1;
39964
39965 wxPyEndAllowThreads(__tstate);
39966 if (PyErr_Occurred()) SWIG_fail;
39967 }
39968 resultobj = SWIG_Py_Void();
39969 return resultobj;
39970fail:
39971 return NULL;
39972}
39973
39974
1bd55598
RD
39975SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39976 PyObject *resultobj = 0;
39977 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39978 wxHelpProvider *result = 0 ;
39979 int res1 = 0 ;
39980 PyObject * obj0 = 0 ;
39981 char * kwnames[] = {
39982 (char *) "helpProvider", NULL
39983 };
39984
39985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39986 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39987 if (!SWIG_IsOK(res1)) {
39988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39989 }
39990 {
39991 PyThreadState* __tstate = wxPyBeginAllowThreads();
39992 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39993 wxPyEndAllowThreads(__tstate);
39994 if (PyErr_Occurred()) SWIG_fail;
39995 }
39996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39997 return resultobj;
39998fail:
39999 return NULL;
d55e5bfc
RD
40000}
40001
40002
1bd55598
RD
40003SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40004 PyObject *resultobj = 0;
40005 wxHelpProvider *result = 0 ;
40006
40007 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40008 {
40009 PyThreadState* __tstate = wxPyBeginAllowThreads();
40010 result = (wxHelpProvider *)wxHelpProvider::Get();
40011 wxPyEndAllowThreads(__tstate);
40012 if (PyErr_Occurred()) SWIG_fail;
40013 }
40014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40015 return resultobj;
40016fail:
40017 return NULL;
40018}
40019
40020
40021SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40022 PyObject *resultobj = 0;
40023 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40024 wxWindow *arg2 = (wxWindow *) 0 ;
40025 wxString result;
40026 void *argp1 = 0 ;
40027 int res1 = 0 ;
40028 void *argp2 = 0 ;
40029 int res2 = 0 ;
40030 PyObject * obj0 = 0 ;
40031 PyObject * obj1 = 0 ;
40032 char * kwnames[] = {
40033 (char *) "self",(char *) "window", NULL
40034 };
40035
40036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40038 if (!SWIG_IsOK(res1)) {
40039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40040 }
40041 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40043 if (!SWIG_IsOK(res2)) {
40044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40045 }
40046 arg2 = reinterpret_cast< wxWindow * >(argp2);
40047 {
40048 PyThreadState* __tstate = wxPyBeginAllowThreads();
40049 result = (arg1)->GetHelp((wxWindow const *)arg2);
40050 wxPyEndAllowThreads(__tstate);
40051 if (PyErr_Occurred()) SWIG_fail;
40052 }
40053 {
40054#if wxUSE_UNICODE
40055 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40056#else
40057 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40058#endif
40059 }
40060 return resultobj;
40061fail:
40062 return NULL;
40063}
40064
40065
40066SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40067 PyObject *resultobj = 0;
40068 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40069 wxWindow *arg2 = (wxWindow *) 0 ;
40070 bool result;
40071 void *argp1 = 0 ;
40072 int res1 = 0 ;
40073 void *argp2 = 0 ;
40074 int res2 = 0 ;
40075 PyObject * obj0 = 0 ;
40076 PyObject * obj1 = 0 ;
40077 char * kwnames[] = {
40078 (char *) "self",(char *) "window", NULL
40079 };
40080
40081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40083 if (!SWIG_IsOK(res1)) {
40084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40085 }
40086 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40088 if (!SWIG_IsOK(res2)) {
40089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40090 }
40091 arg2 = reinterpret_cast< wxWindow * >(argp2);
40092 {
40093 PyThreadState* __tstate = wxPyBeginAllowThreads();
40094 result = (bool)(arg1)->ShowHelp(arg2);
40095 wxPyEndAllowThreads(__tstate);
40096 if (PyErr_Occurred()) SWIG_fail;
40097 }
40098 {
40099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40100 }
40101 return resultobj;
40102fail:
40103 return NULL;
40104}
40105
40106
b850e7f3
RD
40107SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40108 PyObject *resultobj = 0;
40109 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40110 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40111 wxPoint *arg3 = 0 ;
40112 wxHelpEvent::Origin arg4 ;
40113 bool result;
40114 void *argp1 = 0 ;
40115 int res1 = 0 ;
40116 void *argp2 = 0 ;
40117 int res2 = 0 ;
40118 wxPoint temp3 ;
40119 int val4 ;
40120 int ecode4 = 0 ;
40121 PyObject * obj0 = 0 ;
40122 PyObject * obj1 = 0 ;
40123 PyObject * obj2 = 0 ;
40124 PyObject * obj3 = 0 ;
40125 char * kwnames[] = {
40126 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40127 };
40128
40129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40131 if (!SWIG_IsOK(res1)) {
40132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40133 }
40134 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40136 if (!SWIG_IsOK(res2)) {
40137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40138 }
40139 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40140 {
40141 arg3 = &temp3;
40142 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40143 }
40144 ecode4 = SWIG_AsVal_int(obj3, &val4);
40145 if (!SWIG_IsOK(ecode4)) {
40146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40147 }
40148 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40149 {
40150 PyThreadState* __tstate = wxPyBeginAllowThreads();
40151 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40152 wxPyEndAllowThreads(__tstate);
40153 if (PyErr_Occurred()) SWIG_fail;
40154 }
40155 {
40156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40157 }
40158 return resultobj;
40159fail:
40160 return NULL;
40161}
40162
40163
1bd55598
RD
40164SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40165 PyObject *resultobj = 0;
40166 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40167 wxWindow *arg2 = (wxWindow *) 0 ;
40168 wxString *arg3 = 0 ;
40169 void *argp1 = 0 ;
40170 int res1 = 0 ;
40171 void *argp2 = 0 ;
40172 int res2 = 0 ;
40173 bool temp3 = false ;
40174 PyObject * obj0 = 0 ;
40175 PyObject * obj1 = 0 ;
40176 PyObject * obj2 = 0 ;
40177 char * kwnames[] = {
40178 (char *) "self",(char *) "window",(char *) "text", NULL
40179 };
40180
40181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40183 if (!SWIG_IsOK(res1)) {
40184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40185 }
40186 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40187 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40188 if (!SWIG_IsOK(res2)) {
40189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40190 }
40191 arg2 = reinterpret_cast< wxWindow * >(argp2);
40192 {
40193 arg3 = wxString_in_helper(obj2);
40194 if (arg3 == NULL) SWIG_fail;
40195 temp3 = true;
40196 }
40197 {
40198 PyThreadState* __tstate = wxPyBeginAllowThreads();
40199 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40200 wxPyEndAllowThreads(__tstate);
40201 if (PyErr_Occurred()) SWIG_fail;
40202 }
40203 resultobj = SWIG_Py_Void();
40204 {
40205 if (temp3)
40206 delete arg3;
40207 }
40208 return resultobj;
40209fail:
40210 {
40211 if (temp3)
40212 delete arg3;
40213 }
40214 return NULL;
40215}
40216
40217
40218SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40219 PyObject *resultobj = 0;
40220 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40221 int arg2 ;
40222 wxString *arg3 = 0 ;
40223 void *argp1 = 0 ;
40224 int res1 = 0 ;
40225 int val2 ;
40226 int ecode2 = 0 ;
40227 bool temp3 = false ;
40228 PyObject * obj0 = 0 ;
40229 PyObject * obj1 = 0 ;
40230 PyObject * obj2 = 0 ;
40231 char * kwnames[] = {
40232 (char *) "self",(char *) "id",(char *) "text", NULL
40233 };
40234
40235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40237 if (!SWIG_IsOK(res1)) {
40238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40239 }
40240 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40241 ecode2 = SWIG_AsVal_int(obj1, &val2);
40242 if (!SWIG_IsOK(ecode2)) {
40243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40244 }
40245 arg2 = static_cast< int >(val2);
40246 {
40247 arg3 = wxString_in_helper(obj2);
40248 if (arg3 == NULL) SWIG_fail;
40249 temp3 = true;
40250 }
40251 {
40252 PyThreadState* __tstate = wxPyBeginAllowThreads();
40253 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40254 wxPyEndAllowThreads(__tstate);
40255 if (PyErr_Occurred()) SWIG_fail;
40256 }
40257 resultobj = SWIG_Py_Void();
40258 {
40259 if (temp3)
40260 delete arg3;
40261 }
40262 return resultobj;
40263fail:
40264 {
40265 if (temp3)
40266 delete arg3;
40267 }
40268 return NULL;
40269}
40270
40271
40272SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40273 PyObject *resultobj = 0;
40274 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40275 wxWindow *arg2 = (wxWindow *) 0 ;
40276 void *argp1 = 0 ;
40277 int res1 = 0 ;
40278 void *argp2 = 0 ;
40279 int res2 = 0 ;
40280 PyObject * obj0 = 0 ;
40281 PyObject * obj1 = 0 ;
40282 char * kwnames[] = {
40283 (char *) "self",(char *) "window", NULL
40284 };
40285
40286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40288 if (!SWIG_IsOK(res1)) {
40289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40290 }
40291 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40293 if (!SWIG_IsOK(res2)) {
40294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40295 }
40296 arg2 = reinterpret_cast< wxWindow * >(argp2);
40297 {
40298 PyThreadState* __tstate = wxPyBeginAllowThreads();
40299 (arg1)->RemoveHelp(arg2);
40300 wxPyEndAllowThreads(__tstate);
40301 if (PyErr_Occurred()) SWIG_fail;
40302 }
40303 resultobj = SWIG_Py_Void();
40304 return resultobj;
40305fail:
40306 return NULL;
d55e5bfc
RD
40307}
40308
40309
1bd55598
RD
40310SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40311 PyObject *resultobj = 0;
40312 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40313 void *argp1 = 0 ;
40314 int res1 = 0 ;
40315 PyObject *swig_obj[1] ;
40316
40317 if (!args) SWIG_fail;
40318 swig_obj[0] = args;
40319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40320 if (!SWIG_IsOK(res1)) {
40321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40322 }
40323 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40324 {
40325 PyThreadState* __tstate = wxPyBeginAllowThreads();
40326 wxHelpProvider_Destroy(arg1);
40327 wxPyEndAllowThreads(__tstate);
40328 if (PyErr_Occurred()) SWIG_fail;
40329 }
40330 resultobj = SWIG_Py_Void();
40331 return resultobj;
40332fail:
40333 return NULL;
d55e5bfc
RD
40334}
40335
40336
1bd55598
RD
40337SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40338 PyObject *obj;
40339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40340 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40341 return SWIG_Py_Void();
d55e5bfc
RD
40342}
40343
1bd55598
RD
40344SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40345 PyObject *resultobj = 0;
40346 wxSimpleHelpProvider *result = 0 ;
40347
40348 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40349 {
40350 PyThreadState* __tstate = wxPyBeginAllowThreads();
40351 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40352 wxPyEndAllowThreads(__tstate);
40353 if (PyErr_Occurred()) SWIG_fail;
40354 }
40355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40356 return resultobj;
40357fail:
40358 return NULL;
40359}
40360
40361
40362SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40363 PyObject *obj;
40364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40365 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40366 return SWIG_Py_Void();
40367}
40368
40369SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40370 return SWIG_Python_InitShadowInstance(args);
40371}
40372
40373SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40374 PyObject *resultobj = 0;
40375 wxBitmap *arg1 = 0 ;
40376 wxCursor const &arg2_defvalue = wxNullCursor ;
40377 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40378 wxGenericDragImage *result = 0 ;
40379 void *argp1 = 0 ;
40380 int res1 = 0 ;
40381 void *argp2 = 0 ;
40382 int res2 = 0 ;
40383 PyObject * obj0 = 0 ;
40384 PyObject * obj1 = 0 ;
40385 char * kwnames[] = {
40386 (char *) "image",(char *) "cursor", NULL
40387 };
40388
40389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40390 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40391 if (!SWIG_IsOK(res1)) {
40392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40393 }
40394 if (!argp1) {
40395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40396 }
40397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40398 if (obj1) {
40399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40400 if (!SWIG_IsOK(res2)) {
40401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40402 }
1bd55598
RD
40403 if (!argp2) {
40404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40405 }
1bd55598
RD
40406 arg2 = reinterpret_cast< wxCursor * >(argp2);
40407 }
40408 {
40409 if (!wxPyCheckForApp()) SWIG_fail;
40410 PyThreadState* __tstate = wxPyBeginAllowThreads();
40411 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40412 wxPyEndAllowThreads(__tstate);
40413 if (PyErr_Occurred()) SWIG_fail;
40414 }
40415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40416 return resultobj;
40417fail:
40418 return NULL;
40419}
40420
40421
40422SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40423 PyObject *resultobj = 0;
40424 wxIcon *arg1 = 0 ;
40425 wxCursor const &arg2_defvalue = wxNullCursor ;
40426 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40427 wxGenericDragImage *result = 0 ;
40428 void *argp1 = 0 ;
40429 int res1 = 0 ;
40430 void *argp2 = 0 ;
40431 int res2 = 0 ;
40432 PyObject * obj0 = 0 ;
40433 PyObject * obj1 = 0 ;
40434 char * kwnames[] = {
40435 (char *) "image",(char *) "cursor", NULL
40436 };
40437
40438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40439 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40440 if (!SWIG_IsOK(res1)) {
40441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40442 }
40443 if (!argp1) {
40444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40445 }
40446 arg1 = reinterpret_cast< wxIcon * >(argp1);
40447 if (obj1) {
40448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40449 if (!SWIG_IsOK(res2)) {
40450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40451 }
1bd55598
RD
40452 if (!argp2) {
40453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40454 }
1bd55598
RD
40455 arg2 = reinterpret_cast< wxCursor * >(argp2);
40456 }
40457 {
40458 if (!wxPyCheckForApp()) SWIG_fail;
40459 PyThreadState* __tstate = wxPyBeginAllowThreads();
40460 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40461 wxPyEndAllowThreads(__tstate);
40462 if (PyErr_Occurred()) SWIG_fail;
40463 }
40464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40465 return resultobj;
40466fail:
40467 return NULL;
40468}
40469
40470
40471SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40472 PyObject *resultobj = 0;
40473 wxString *arg1 = 0 ;
40474 wxCursor const &arg2_defvalue = wxNullCursor ;
40475 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40476 wxGenericDragImage *result = 0 ;
40477 bool temp1 = false ;
40478 void *argp2 = 0 ;
40479 int res2 = 0 ;
40480 PyObject * obj0 = 0 ;
40481 PyObject * obj1 = 0 ;
40482 char * kwnames[] = {
40483 (char *) "str",(char *) "cursor", NULL
40484 };
40485
40486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40487 {
40488 arg1 = wxString_in_helper(obj0);
40489 if (arg1 == NULL) SWIG_fail;
40490 temp1 = true;
40491 }
40492 if (obj1) {
40493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40494 if (!SWIG_IsOK(res2)) {
40495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40496 }
1bd55598
RD
40497 if (!argp2) {
40498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40499 }
1bd55598
RD
40500 arg2 = reinterpret_cast< wxCursor * >(argp2);
40501 }
40502 {
40503 if (!wxPyCheckForApp()) SWIG_fail;
40504 PyThreadState* __tstate = wxPyBeginAllowThreads();
40505 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40506 wxPyEndAllowThreads(__tstate);
40507 if (PyErr_Occurred()) SWIG_fail;
40508 }
40509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40510 {
40511 if (temp1)
40512 delete arg1;
40513 }
40514 return resultobj;
40515fail:
40516 {
40517 if (temp1)
40518 delete arg1;
40519 }
40520 return NULL;
40521}
40522
40523
40524SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40525 PyObject *resultobj = 0;
40526 wxPyTreeCtrl *arg1 = 0 ;
40527 wxTreeItemId *arg2 = 0 ;
40528 wxGenericDragImage *result = 0 ;
40529 void *argp1 = 0 ;
40530 int res1 = 0 ;
40531 void *argp2 = 0 ;
40532 int res2 = 0 ;
40533 PyObject * obj0 = 0 ;
40534 PyObject * obj1 = 0 ;
40535 char * kwnames[] = {
40536 (char *) "treeCtrl",(char *) "id", NULL
40537 };
40538
40539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40540 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40541 if (!SWIG_IsOK(res1)) {
40542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40543 }
40544 if (!argp1) {
40545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40546 }
40547 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40549 if (!SWIG_IsOK(res2)) {
40550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40551 }
40552 if (!argp2) {
40553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40554 }
40555 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40556 {
40557 if (!wxPyCheckForApp()) SWIG_fail;
40558 PyThreadState* __tstate = wxPyBeginAllowThreads();
40559 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40560 wxPyEndAllowThreads(__tstate);
40561 if (PyErr_Occurred()) SWIG_fail;
40562 }
40563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40564 return resultobj;
40565fail:
40566 return NULL;
40567}
40568
40569
40570SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40571 PyObject *resultobj = 0;
40572 wxPyListCtrl *arg1 = 0 ;
40573 long arg2 ;
40574 wxGenericDragImage *result = 0 ;
40575 void *argp1 = 0 ;
40576 int res1 = 0 ;
40577 long val2 ;
40578 int ecode2 = 0 ;
40579 PyObject * obj0 = 0 ;
40580 PyObject * obj1 = 0 ;
40581 char * kwnames[] = {
40582 (char *) "listCtrl",(char *) "id", NULL
40583 };
40584
40585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40586 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40587 if (!SWIG_IsOK(res1)) {
40588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40589 }
40590 if (!argp1) {
40591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40592 }
40593 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40594 ecode2 = SWIG_AsVal_long(obj1, &val2);
40595 if (!SWIG_IsOK(ecode2)) {
40596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40597 }
40598 arg2 = static_cast< long >(val2);
40599 {
40600 if (!wxPyCheckForApp()) SWIG_fail;
40601 PyThreadState* __tstate = wxPyBeginAllowThreads();
40602 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40603 wxPyEndAllowThreads(__tstate);
40604 if (PyErr_Occurred()) SWIG_fail;
40605 }
40606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40607 return resultobj;
40608fail:
40609 return NULL;
d55e5bfc
RD
40610}
40611
40612
1bd55598
RD
40613SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40614 PyObject *resultobj = 0;
40615 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40616 void *argp1 = 0 ;
40617 int res1 = 0 ;
40618 PyObject *swig_obj[1] ;
40619
40620 if (!args) SWIG_fail;
40621 swig_obj[0] = args;
40622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40623 if (!SWIG_IsOK(res1)) {
40624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40625 }
40626 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40627 {
40628 PyThreadState* __tstate = wxPyBeginAllowThreads();
40629 delete arg1;
d55e5bfc 40630
1bd55598
RD
40631 wxPyEndAllowThreads(__tstate);
40632 if (PyErr_Occurred()) SWIG_fail;
40633 }
40634 resultobj = SWIG_Py_Void();
40635 return resultobj;
40636fail:
40637 return NULL;
40638}
40639
40640
40641SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40642 PyObject *resultobj = 0;
40643 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40644 wxBitmap *arg2 = (wxBitmap *) 0 ;
40645 void *argp1 = 0 ;
40646 int res1 = 0 ;
40647 void *argp2 = 0 ;
40648 int res2 = 0 ;
40649 PyObject * obj0 = 0 ;
40650 PyObject * obj1 = 0 ;
40651 char * kwnames[] = {
40652 (char *) "self",(char *) "bitmap", NULL
40653 };
40654
40655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40657 if (!SWIG_IsOK(res1)) {
40658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40659 }
40660 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40662 if (!SWIG_IsOK(res2)) {
40663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40664 }
40665 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40666 {
40667 PyThreadState* __tstate = wxPyBeginAllowThreads();
40668 (arg1)->SetBackingBitmap(arg2);
40669 wxPyEndAllowThreads(__tstate);
40670 if (PyErr_Occurred()) SWIG_fail;
40671 }
40672 resultobj = SWIG_Py_Void();
40673 return resultobj;
40674fail:
40675 return NULL;
40676}
40677
40678
40679SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40680 PyObject *resultobj = 0;
40681 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40682 wxPoint *arg2 = 0 ;
40683 wxWindow *arg3 = (wxWindow *) 0 ;
40684 bool arg4 = (bool) false ;
40685 wxRect *arg5 = (wxRect *) NULL ;
40686 bool result;
40687 void *argp1 = 0 ;
40688 int res1 = 0 ;
40689 wxPoint temp2 ;
40690 void *argp3 = 0 ;
40691 int res3 = 0 ;
40692 bool val4 ;
40693 int ecode4 = 0 ;
40694 void *argp5 = 0 ;
40695 int res5 = 0 ;
40696 PyObject * obj0 = 0 ;
40697 PyObject * obj1 = 0 ;
40698 PyObject * obj2 = 0 ;
40699 PyObject * obj3 = 0 ;
40700 PyObject * obj4 = 0 ;
40701 char * kwnames[] = {
40702 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40703 };
40704
40705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40707 if (!SWIG_IsOK(res1)) {
40708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40709 }
40710 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40711 {
40712 arg2 = &temp2;
40713 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40714 }
40715 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40716 if (!SWIG_IsOK(res3)) {
40717 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40718 }
40719 arg3 = reinterpret_cast< wxWindow * >(argp3);
40720 if (obj3) {
40721 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40722 if (!SWIG_IsOK(ecode4)) {
40723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40724 }
40725 arg4 = static_cast< bool >(val4);
40726 }
40727 if (obj4) {
40728 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40729 if (!SWIG_IsOK(res5)) {
40730 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40731 }
1bd55598
RD
40732 arg5 = reinterpret_cast< wxRect * >(argp5);
40733 }
40734 {
40735 PyThreadState* __tstate = wxPyBeginAllowThreads();
40736 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40737 wxPyEndAllowThreads(__tstate);
40738 if (PyErr_Occurred()) SWIG_fail;
40739 }
40740 {
40741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40742 }
40743 return resultobj;
40744fail:
40745 return NULL;
40746}
40747
40748
40749SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40750 PyObject *resultobj = 0;
40751 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40752 wxPoint *arg2 = 0 ;
40753 wxWindow *arg3 = (wxWindow *) 0 ;
40754 wxWindow *arg4 = (wxWindow *) 0 ;
40755 bool result;
40756 void *argp1 = 0 ;
40757 int res1 = 0 ;
40758 wxPoint temp2 ;
40759 void *argp3 = 0 ;
40760 int res3 = 0 ;
40761 void *argp4 = 0 ;
40762 int res4 = 0 ;
40763 PyObject * obj0 = 0 ;
40764 PyObject * obj1 = 0 ;
40765 PyObject * obj2 = 0 ;
40766 PyObject * obj3 = 0 ;
40767 char * kwnames[] = {
40768 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40769 };
40770
40771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40773 if (!SWIG_IsOK(res1)) {
40774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40775 }
40776 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40777 {
40778 arg2 = &temp2;
40779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40780 }
40781 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40782 if (!SWIG_IsOK(res3)) {
40783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40784 }
40785 arg3 = reinterpret_cast< wxWindow * >(argp3);
40786 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40787 if (!SWIG_IsOK(res4)) {
40788 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40789 }
40790 arg4 = reinterpret_cast< wxWindow * >(argp4);
40791 {
40792 PyThreadState* __tstate = wxPyBeginAllowThreads();
40793 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40794 wxPyEndAllowThreads(__tstate);
40795 if (PyErr_Occurred()) SWIG_fail;
40796 }
40797 {
40798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40799 }
40800 return resultobj;
40801fail:
40802 return NULL;
d55e5bfc
RD
40803}
40804
40805
1bd55598
RD
40806SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40807 PyObject *resultobj = 0;
40808 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40809 bool result;
40810 void *argp1 = 0 ;
40811 int res1 = 0 ;
40812 PyObject *swig_obj[1] ;
40813
40814 if (!args) SWIG_fail;
40815 swig_obj[0] = args;
40816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40817 if (!SWIG_IsOK(res1)) {
40818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40819 }
40820 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40821 {
40822 PyThreadState* __tstate = wxPyBeginAllowThreads();
40823 result = (bool)(arg1)->EndDrag();
40824 wxPyEndAllowThreads(__tstate);
40825 if (PyErr_Occurred()) SWIG_fail;
40826 }
40827 {
40828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40829 }
40830 return resultobj;
40831fail:
40832 return NULL;
40833}
40834
40835
40836SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40837 PyObject *resultobj = 0;
40838 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40839 wxPoint *arg2 = 0 ;
40840 bool result;
40841 void *argp1 = 0 ;
40842 int res1 = 0 ;
40843 wxPoint temp2 ;
40844 PyObject * obj0 = 0 ;
40845 PyObject * obj1 = 0 ;
40846 char * kwnames[] = {
40847 (char *) "self",(char *) "pt", NULL
40848 };
40849
40850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40852 if (!SWIG_IsOK(res1)) {
40853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40854 }
40855 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40856 {
40857 arg2 = &temp2;
40858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40859 }
40860 {
40861 PyThreadState* __tstate = wxPyBeginAllowThreads();
40862 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40863 wxPyEndAllowThreads(__tstate);
40864 if (PyErr_Occurred()) SWIG_fail;
40865 }
40866 {
40867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40868 }
40869 return resultobj;
40870fail:
40871 return NULL;
d55e5bfc
RD
40872}
40873
40874
1bd55598
RD
40875SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40876 PyObject *resultobj = 0;
40877 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40878 bool result;
40879 void *argp1 = 0 ;
40880 int res1 = 0 ;
40881 PyObject *swig_obj[1] ;
40882
40883 if (!args) SWIG_fail;
40884 swig_obj[0] = args;
40885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40886 if (!SWIG_IsOK(res1)) {
40887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40888 }
40889 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40890 {
40891 PyThreadState* __tstate = wxPyBeginAllowThreads();
40892 result = (bool)(arg1)->Show();
40893 wxPyEndAllowThreads(__tstate);
40894 if (PyErr_Occurred()) SWIG_fail;
40895 }
40896 {
40897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40898 }
40899 return resultobj;
40900fail:
40901 return NULL;
d55e5bfc
RD
40902}
40903
40904
1bd55598
RD
40905SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40906 PyObject *resultobj = 0;
40907 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40908 bool result;
40909 void *argp1 = 0 ;
40910 int res1 = 0 ;
40911 PyObject *swig_obj[1] ;
40912
40913 if (!args) SWIG_fail;
40914 swig_obj[0] = args;
40915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40916 if (!SWIG_IsOK(res1)) {
40917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40918 }
40919 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40920 {
40921 PyThreadState* __tstate = wxPyBeginAllowThreads();
40922 result = (bool)(arg1)->Hide();
40923 wxPyEndAllowThreads(__tstate);
40924 if (PyErr_Occurred()) SWIG_fail;
40925 }
40926 {
40927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40928 }
40929 return resultobj;
40930fail:
40931 return NULL;
40932}
40933
40934
40935SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40936 PyObject *resultobj = 0;
40937 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40938 wxPoint *arg2 = 0 ;
40939 wxRect result;
40940 void *argp1 = 0 ;
40941 int res1 = 0 ;
40942 wxPoint temp2 ;
40943 PyObject * obj0 = 0 ;
40944 PyObject * obj1 = 0 ;
40945 char * kwnames[] = {
40946 (char *) "self",(char *) "pos", NULL
40947 };
40948
40949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40951 if (!SWIG_IsOK(res1)) {
40952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40953 }
40954 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40955 {
40956 arg2 = &temp2;
40957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40958 }
40959 {
40960 PyThreadState* __tstate = wxPyBeginAllowThreads();
40961 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40962 wxPyEndAllowThreads(__tstate);
40963 if (PyErr_Occurred()) SWIG_fail;
40964 }
40965 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40966 return resultobj;
40967fail:
40968 return NULL;
40969}
40970
40971
40972SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40973 PyObject *resultobj = 0;
40974 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40975 wxDC *arg2 = 0 ;
40976 wxPoint *arg3 = 0 ;
40977 bool result;
40978 void *argp1 = 0 ;
40979 int res1 = 0 ;
40980 void *argp2 = 0 ;
40981 int res2 = 0 ;
40982 wxPoint temp3 ;
40983 PyObject * obj0 = 0 ;
40984 PyObject * obj1 = 0 ;
40985 PyObject * obj2 = 0 ;
40986 char * kwnames[] = {
40987 (char *) "self",(char *) "dc",(char *) "pos", NULL
40988 };
40989
40990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40992 if (!SWIG_IsOK(res1)) {
40993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40994 }
40995 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40997 if (!SWIG_IsOK(res2)) {
40998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40999 }
41000 if (!argp2) {
41001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41002 }
41003 arg2 = reinterpret_cast< wxDC * >(argp2);
41004 {
41005 arg3 = &temp3;
41006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41007 }
41008 {
41009 PyThreadState* __tstate = wxPyBeginAllowThreads();
41010 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41011 wxPyEndAllowThreads(__tstate);
41012 if (PyErr_Occurred()) SWIG_fail;
41013 }
41014 {
41015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41016 }
41017 return resultobj;
41018fail:
41019 return NULL;
41020}
41021
41022
41023SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41024 PyObject *resultobj = 0;
41025 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41026 wxDC *arg2 = 0 ;
41027 wxMemoryDC *arg3 = 0 ;
41028 wxRect *arg4 = 0 ;
41029 wxRect *arg5 = 0 ;
41030 bool result;
41031 void *argp1 = 0 ;
41032 int res1 = 0 ;
41033 void *argp2 = 0 ;
41034 int res2 = 0 ;
41035 void *argp3 = 0 ;
41036 int res3 = 0 ;
41037 wxRect temp4 ;
41038 wxRect temp5 ;
41039 PyObject * obj0 = 0 ;
41040 PyObject * obj1 = 0 ;
41041 PyObject * obj2 = 0 ;
41042 PyObject * obj3 = 0 ;
41043 PyObject * obj4 = 0 ;
41044 char * kwnames[] = {
41045 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41046 };
41047
41048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41050 if (!SWIG_IsOK(res1)) {
41051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41052 }
41053 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41055 if (!SWIG_IsOK(res2)) {
41056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41057 }
41058 if (!argp2) {
41059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41060 }
41061 arg2 = reinterpret_cast< wxDC * >(argp2);
41062 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41063 if (!SWIG_IsOK(res3)) {
41064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41065 }
41066 if (!argp3) {
41067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41068 }
41069 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41070 {
41071 arg4 = &temp4;
41072 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41073 }
41074 {
41075 arg5 = &temp5;
41076 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41077 }
41078 {
41079 PyThreadState* __tstate = wxPyBeginAllowThreads();
41080 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41081 wxPyEndAllowThreads(__tstate);
41082 if (PyErr_Occurred()) SWIG_fail;
41083 }
41084 {
41085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41086 }
41087 return resultobj;
41088fail:
41089 return NULL;
41090}
41091
41092
41093SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41094 PyObject *resultobj = 0;
41095 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41096 wxPoint *arg2 = 0 ;
41097 wxPoint *arg3 = 0 ;
41098 bool arg4 ;
41099 bool arg5 ;
41100 bool result;
41101 void *argp1 = 0 ;
41102 int res1 = 0 ;
41103 wxPoint temp2 ;
41104 wxPoint temp3 ;
41105 bool val4 ;
41106 int ecode4 = 0 ;
41107 bool val5 ;
41108 int ecode5 = 0 ;
41109 PyObject * obj0 = 0 ;
41110 PyObject * obj1 = 0 ;
41111 PyObject * obj2 = 0 ;
41112 PyObject * obj3 = 0 ;
41113 PyObject * obj4 = 0 ;
41114 char * kwnames[] = {
41115 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41116 };
41117
41118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41120 if (!SWIG_IsOK(res1)) {
41121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41122 }
41123 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41124 {
41125 arg2 = &temp2;
41126 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41127 }
41128 {
41129 arg3 = &temp3;
41130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41131 }
41132 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41133 if (!SWIG_IsOK(ecode4)) {
41134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41135 }
41136 arg4 = static_cast< bool >(val4);
41137 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41138 if (!SWIG_IsOK(ecode5)) {
41139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41140 }
41141 arg5 = static_cast< bool >(val5);
41142 {
41143 PyThreadState* __tstate = wxPyBeginAllowThreads();
41144 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41145 wxPyEndAllowThreads(__tstate);
41146 if (PyErr_Occurred()) SWIG_fail;
41147 }
41148 {
41149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41150 }
41151 return resultobj;
41152fail:
41153 return NULL;
d55e5bfc
RD
41154}
41155
41156
1bd55598
RD
41157SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41158 PyObject *obj;
41159 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41160 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41161 return SWIG_Py_Void();
d55e5bfc
RD
41162}
41163
1bd55598
RD
41164SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41165 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41166}
41167
1bd55598
RD
41168SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41169 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41170 return 1;
d55e5bfc
RD
41171}
41172
41173
1bd55598
RD
41174SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41175 PyObject *pyobj = 0;
41176
41177 {
41178#if wxUSE_UNICODE
41179 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41180#else
41181 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41182#endif
41183 }
41184 return pyobj;
41185}
41186
41187
41188SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41189 PyObject *resultobj = 0;
41190 wxWindow *arg1 = (wxWindow *) 0 ;
41191 int arg2 = (int) -1 ;
41192 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41193 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41194 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41195 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41196 wxSize const &arg5_defvalue = wxDefaultSize ;
41197 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41198 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41199 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41200 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41201 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41202 wxString *arg8 = (wxString *) &arg8_defvalue ;
41203 wxDatePickerCtrl *result = 0 ;
41204 void *argp1 = 0 ;
41205 int res1 = 0 ;
41206 int val2 ;
41207 int ecode2 = 0 ;
41208 void *argp3 = 0 ;
41209 int res3 = 0 ;
41210 wxPoint temp4 ;
41211 wxSize temp5 ;
41212 long val6 ;
41213 int ecode6 = 0 ;
41214 void *argp7 = 0 ;
41215 int res7 = 0 ;
41216 bool temp8 = false ;
41217 PyObject * obj0 = 0 ;
41218 PyObject * obj1 = 0 ;
41219 PyObject * obj2 = 0 ;
41220 PyObject * obj3 = 0 ;
41221 PyObject * obj4 = 0 ;
41222 PyObject * obj5 = 0 ;
41223 PyObject * obj6 = 0 ;
41224 PyObject * obj7 = 0 ;
41225 char * kwnames[] = {
41226 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41227 };
41228
41229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41231 if (!SWIG_IsOK(res1)) {
41232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41233 }
41234 arg1 = reinterpret_cast< wxWindow * >(argp1);
41235 if (obj1) {
41236 ecode2 = SWIG_AsVal_int(obj1, &val2);
41237 if (!SWIG_IsOK(ecode2)) {
41238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41239 }
41240 arg2 = static_cast< int >(val2);
41241 }
41242 if (obj2) {
41243 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41244 if (!SWIG_IsOK(res3)) {
41245 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41246 }
1bd55598
RD
41247 if (!argp3) {
41248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41249 }
1bd55598
RD
41250 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41251 }
41252 if (obj3) {
36ed4f51 41253 {
1bd55598
RD
41254 arg4 = &temp4;
41255 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41256 }
1bd55598
RD
41257 }
41258 if (obj4) {
d55e5bfc 41259 {
1bd55598
RD
41260 arg5 = &temp5;
41261 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41262 }
1bd55598
RD
41263 }
41264 if (obj5) {
41265 ecode6 = SWIG_AsVal_long(obj5, &val6);
41266 if (!SWIG_IsOK(ecode6)) {
41267 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41268 }
41269 arg6 = static_cast< long >(val6);
41270 }
41271 if (obj6) {
41272 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41273 if (!SWIG_IsOK(res7)) {
41274 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41275 }
1bd55598
RD
41276 if (!argp7) {
41277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41278 }
1bd55598
RD
41279 arg7 = reinterpret_cast< wxValidator * >(argp7);
41280 }
41281 if (obj7) {
36ed4f51 41282 {
1bd55598
RD
41283 arg8 = wxString_in_helper(obj7);
41284 if (arg8 == NULL) SWIG_fail;
41285 temp8 = true;
36ed4f51 41286 }
1bd55598
RD
41287 }
41288 {
41289 if (!wxPyCheckForApp()) SWIG_fail;
41290 PyThreadState* __tstate = wxPyBeginAllowThreads();
41291 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41292 wxPyEndAllowThreads(__tstate);
41293 if (PyErr_Occurred()) SWIG_fail;
41294 }
41295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41296 {
41297 if (temp8)
41298 delete arg8;
41299 }
41300 return resultobj;
41301fail:
41302 {
41303 if (temp8)
41304 delete arg8;
41305 }
41306 return NULL;
d55e5bfc
RD
41307}
41308
41309
1bd55598
RD
41310SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41311 PyObject *resultobj = 0;
41312 wxDatePickerCtrl *result = 0 ;
41313
41314 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41315 {
41316 if (!wxPyCheckForApp()) SWIG_fail;
41317 PyThreadState* __tstate = wxPyBeginAllowThreads();
41318 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41319 wxPyEndAllowThreads(__tstate);
41320 if (PyErr_Occurred()) SWIG_fail;
41321 }
41322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41323 return resultobj;
41324fail:
41325 return NULL;
41326}
41327
41328
41329SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41330 PyObject *resultobj = 0;
41331 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41332 wxWindow *arg2 = (wxWindow *) 0 ;
41333 int arg3 = (int) -1 ;
41334 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41335 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41336 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41337 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41338 wxSize const &arg6_defvalue = wxDefaultSize ;
41339 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41340 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41341 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41342 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41343 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41344 wxString *arg9 = (wxString *) &arg9_defvalue ;
41345 bool result;
41346 void *argp1 = 0 ;
41347 int res1 = 0 ;
41348 void *argp2 = 0 ;
41349 int res2 = 0 ;
41350 int val3 ;
41351 int ecode3 = 0 ;
41352 void *argp4 = 0 ;
41353 int res4 = 0 ;
41354 wxPoint temp5 ;
41355 wxSize temp6 ;
41356 long val7 ;
41357 int ecode7 = 0 ;
41358 void *argp8 = 0 ;
41359 int res8 = 0 ;
41360 bool temp9 = false ;
41361 PyObject * obj0 = 0 ;
41362 PyObject * obj1 = 0 ;
41363 PyObject * obj2 = 0 ;
41364 PyObject * obj3 = 0 ;
41365 PyObject * obj4 = 0 ;
41366 PyObject * obj5 = 0 ;
41367 PyObject * obj6 = 0 ;
41368 PyObject * obj7 = 0 ;
41369 PyObject * obj8 = 0 ;
41370 char * kwnames[] = {
41371 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41372 };
41373
41374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41376 if (!SWIG_IsOK(res1)) {
41377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41378 }
41379 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41380 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41381 if (!SWIG_IsOK(res2)) {
41382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41383 }
41384 arg2 = reinterpret_cast< wxWindow * >(argp2);
41385 if (obj2) {
41386 ecode3 = SWIG_AsVal_int(obj2, &val3);
41387 if (!SWIG_IsOK(ecode3)) {
41388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41389 }
41390 arg3 = static_cast< int >(val3);
41391 }
41392 if (obj3) {
41393 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41394 if (!SWIG_IsOK(res4)) {
41395 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41396 }
1bd55598
RD
41397 if (!argp4) {
41398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41399 }
1bd55598
RD
41400 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41401 }
41402 if (obj4) {
d55e5bfc 41403 {
1bd55598
RD
41404 arg5 = &temp5;
41405 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41406 }
1bd55598
RD
41407 }
41408 if (obj5) {
d55e5bfc 41409 {
1bd55598
RD
41410 arg6 = &temp6;
41411 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41412 }
1bd55598
RD
41413 }
41414 if (obj6) {
41415 ecode7 = SWIG_AsVal_long(obj6, &val7);
41416 if (!SWIG_IsOK(ecode7)) {
41417 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41418 }
41419 arg7 = static_cast< long >(val7);
41420 }
41421 if (obj7) {
41422 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41423 if (!SWIG_IsOK(res8)) {
41424 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41425 }
1bd55598
RD
41426 if (!argp8) {
41427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41428 }
1bd55598
RD
41429 arg8 = reinterpret_cast< wxValidator * >(argp8);
41430 }
41431 if (obj8) {
36ed4f51 41432 {
1bd55598
RD
41433 arg9 = wxString_in_helper(obj8);
41434 if (arg9 == NULL) SWIG_fail;
41435 temp9 = true;
36ed4f51 41436 }
1bd55598
RD
41437 }
41438 {
41439 PyThreadState* __tstate = wxPyBeginAllowThreads();
41440 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41441 wxPyEndAllowThreads(__tstate);
41442 if (PyErr_Occurred()) SWIG_fail;
41443 }
41444 {
41445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41446 }
41447 {
41448 if (temp9)
41449 delete arg9;
41450 }
41451 return resultobj;
41452fail:
41453 {
41454 if (temp9)
41455 delete arg9;
41456 }
41457 return NULL;
41458}
41459
41460
41461SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41462 PyObject *resultobj = 0;
41463 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41464 wxDateTime *arg2 = 0 ;
41465 void *argp1 = 0 ;
41466 int res1 = 0 ;
41467 void *argp2 = 0 ;
41468 int res2 = 0 ;
41469 PyObject * obj0 = 0 ;
41470 PyObject * obj1 = 0 ;
41471 char * kwnames[] = {
41472 (char *) "self",(char *) "dt", NULL
41473 };
41474
41475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41477 if (!SWIG_IsOK(res1)) {
41478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41479 }
41480 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41482 if (!SWIG_IsOK(res2)) {
41483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41484 }
41485 if (!argp2) {
41486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41487 }
41488 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41489 {
41490 PyThreadState* __tstate = wxPyBeginAllowThreads();
41491 (arg1)->SetValue((wxDateTime const &)*arg2);
41492 wxPyEndAllowThreads(__tstate);
41493 if (PyErr_Occurred()) SWIG_fail;
41494 }
41495 resultobj = SWIG_Py_Void();
41496 return resultobj;
41497fail:
41498 return NULL;
d55e5bfc
RD
41499}
41500
41501
1bd55598
RD
41502SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41503 PyObject *resultobj = 0;
41504 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41505 wxDateTime result;
41506 void *argp1 = 0 ;
41507 int res1 = 0 ;
41508 PyObject *swig_obj[1] ;
41509
41510 if (!args) SWIG_fail;
41511 swig_obj[0] = args;
41512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41513 if (!SWIG_IsOK(res1)) {
41514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41515 }
41516 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41517 {
41518 PyThreadState* __tstate = wxPyBeginAllowThreads();
41519 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41520 wxPyEndAllowThreads(__tstate);
41521 if (PyErr_Occurred()) SWIG_fail;
41522 }
41523 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41524 return resultobj;
41525fail:
41526 return NULL;
41527}
41528
41529
41530SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41531 PyObject *resultobj = 0;
41532 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41533 wxDateTime *arg2 = 0 ;
41534 wxDateTime *arg3 = 0 ;
41535 void *argp1 = 0 ;
41536 int res1 = 0 ;
41537 void *argp2 = 0 ;
41538 int res2 = 0 ;
41539 void *argp3 = 0 ;
41540 int res3 = 0 ;
41541 PyObject * obj0 = 0 ;
41542 PyObject * obj1 = 0 ;
41543 PyObject * obj2 = 0 ;
41544 char * kwnames[] = {
41545 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41546 };
41547
41548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41550 if (!SWIG_IsOK(res1)) {
41551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41552 }
41553 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41555 if (!SWIG_IsOK(res2)) {
41556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41557 }
41558 if (!argp2) {
41559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41560 }
41561 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41562 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41563 if (!SWIG_IsOK(res3)) {
41564 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41565 }
41566 if (!argp3) {
41567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41568 }
41569 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41570 {
41571 PyThreadState* __tstate = wxPyBeginAllowThreads();
41572 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41573 wxPyEndAllowThreads(__tstate);
41574 if (PyErr_Occurred()) SWIG_fail;
41575 }
41576 resultobj = SWIG_Py_Void();
41577 return resultobj;
41578fail:
41579 return NULL;
d55e5bfc
RD
41580}
41581
41582
1bd55598
RD
41583SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41584 PyObject *resultobj = 0;
41585 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41586 wxDateTime result;
41587 void *argp1 = 0 ;
41588 int res1 = 0 ;
41589 PyObject *swig_obj[1] ;
41590
41591 if (!args) SWIG_fail;
41592 swig_obj[0] = args;
41593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41594 if (!SWIG_IsOK(res1)) {
41595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41596 }
41597 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41598 {
41599 PyThreadState* __tstate = wxPyBeginAllowThreads();
41600 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41601 wxPyEndAllowThreads(__tstate);
41602 if (PyErr_Occurred()) SWIG_fail;
41603 }
41604 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41605 return resultobj;
41606fail:
41607 return NULL;
d55e5bfc
RD
41608}
41609
41610
1bd55598
RD
41611SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41612 PyObject *resultobj = 0;
41613 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41614 wxDateTime result;
41615 void *argp1 = 0 ;
41616 int res1 = 0 ;
41617 PyObject *swig_obj[1] ;
41618
41619 if (!args) SWIG_fail;
41620 swig_obj[0] = args;
41621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41622 if (!SWIG_IsOK(res1)) {
41623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41624 }
41625 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41626 {
41627 PyThreadState* __tstate = wxPyBeginAllowThreads();
41628 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41629 wxPyEndAllowThreads(__tstate);
41630 if (PyErr_Occurred()) SWIG_fail;
41631 }
41632 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41633 return resultobj;
41634fail:
41635 return NULL;
d55e5bfc
RD
41636}
41637
41638
1bd55598
RD
41639SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41640 PyObject *obj;
41641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41642 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41643 return SWIG_Py_Void();
d55e5bfc
RD
41644}
41645
1bd55598
RD
41646SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41647 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41648}
41649
704eda0c
RD
41650SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41651 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41652 return 1;
41653}
41654
41655
41656SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41657 PyObject *pyobj = 0;
41658
41659 {
41660#if wxUSE_UNICODE
41661 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41662#else
41663 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41664#endif
41665 }
41666 return pyobj;
41667}
41668
41669
41670SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41671 PyObject *resultobj = 0;
41672 wxWindow *arg1 = (wxWindow *) 0 ;
41673 int arg2 ;
41674 wxString *arg3 = 0 ;
41675 wxString *arg4 = 0 ;
41676 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41677 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41678 wxSize const &arg6_defvalue = wxDefaultSize ;
41679 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41680 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41681 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41682 wxString *arg8 = (wxString *) &arg8_defvalue ;
41683 wxHyperlinkCtrl *result = 0 ;
41684 void *argp1 = 0 ;
41685 int res1 = 0 ;
41686 int val2 ;
41687 int ecode2 = 0 ;
41688 bool temp3 = false ;
41689 bool temp4 = false ;
41690 wxPoint temp5 ;
41691 wxSize temp6 ;
41692 long val7 ;
41693 int ecode7 = 0 ;
41694 bool temp8 = false ;
41695 PyObject * obj0 = 0 ;
41696 PyObject * obj1 = 0 ;
41697 PyObject * obj2 = 0 ;
41698 PyObject * obj3 = 0 ;
41699 PyObject * obj4 = 0 ;
41700 PyObject * obj5 = 0 ;
41701 PyObject * obj6 = 0 ;
41702 PyObject * obj7 = 0 ;
41703 char * kwnames[] = {
41704 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41705 };
41706
41707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41709 if (!SWIG_IsOK(res1)) {
41710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41711 }
41712 arg1 = reinterpret_cast< wxWindow * >(argp1);
41713 ecode2 = SWIG_AsVal_int(obj1, &val2);
41714 if (!SWIG_IsOK(ecode2)) {
41715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41716 }
41717 arg2 = static_cast< int >(val2);
41718 {
41719 arg3 = wxString_in_helper(obj2);
41720 if (arg3 == NULL) SWIG_fail;
41721 temp3 = true;
41722 }
41723 {
41724 arg4 = wxString_in_helper(obj3);
41725 if (arg4 == NULL) SWIG_fail;
41726 temp4 = true;
41727 }
41728 if (obj4) {
41729 {
41730 arg5 = &temp5;
41731 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41732 }
41733 }
41734 if (obj5) {
41735 {
41736 arg6 = &temp6;
41737 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41738 }
41739 }
41740 if (obj6) {
41741 ecode7 = SWIG_AsVal_long(obj6, &val7);
41742 if (!SWIG_IsOK(ecode7)) {
41743 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41744 }
41745 arg7 = static_cast< long >(val7);
41746 }
41747 if (obj7) {
41748 {
41749 arg8 = wxString_in_helper(obj7);
41750 if (arg8 == NULL) SWIG_fail;
41751 temp8 = true;
41752 }
41753 }
41754 {
41755 if (!wxPyCheckForApp()) SWIG_fail;
41756 PyThreadState* __tstate = wxPyBeginAllowThreads();
41757 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41758 wxPyEndAllowThreads(__tstate);
41759 if (PyErr_Occurred()) SWIG_fail;
41760 }
41761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41762 {
41763 if (temp3)
41764 delete arg3;
41765 }
41766 {
41767 if (temp4)
41768 delete arg4;
41769 }
41770 {
41771 if (temp8)
41772 delete arg8;
41773 }
41774 return resultobj;
41775fail:
41776 {
41777 if (temp3)
41778 delete arg3;
41779 }
41780 {
41781 if (temp4)
41782 delete arg4;
41783 }
41784 {
41785 if (temp8)
41786 delete arg8;
41787 }
41788 return NULL;
41789}
41790
41791
41792SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41793 PyObject *resultobj = 0;
41794 wxHyperlinkCtrl *result = 0 ;
41795
41796 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41797 {
41798 if (!wxPyCheckForApp()) SWIG_fail;
41799 PyThreadState* __tstate = wxPyBeginAllowThreads();
41800 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41801 wxPyEndAllowThreads(__tstate);
41802 if (PyErr_Occurred()) SWIG_fail;
41803 }
41804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41805 return resultobj;
41806fail:
41807 return NULL;
41808}
41809
41810
41811SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41812 PyObject *resultobj = 0;
41813 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41814 wxWindow *arg2 = (wxWindow *) 0 ;
41815 int arg3 ;
41816 wxString *arg4 = 0 ;
41817 wxString *arg5 = 0 ;
41818 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41819 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41820 wxSize const &arg7_defvalue = wxDefaultSize ;
41821 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41822 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41823 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41824 wxString *arg9 = (wxString *) &arg9_defvalue ;
41825 bool result;
41826 void *argp1 = 0 ;
41827 int res1 = 0 ;
41828 void *argp2 = 0 ;
41829 int res2 = 0 ;
41830 int val3 ;
41831 int ecode3 = 0 ;
41832 bool temp4 = false ;
41833 bool temp5 = false ;
41834 wxPoint temp6 ;
41835 wxSize temp7 ;
41836 long val8 ;
41837 int ecode8 = 0 ;
41838 bool temp9 = false ;
41839 PyObject * obj0 = 0 ;
41840 PyObject * obj1 = 0 ;
41841 PyObject * obj2 = 0 ;
41842 PyObject * obj3 = 0 ;
41843 PyObject * obj4 = 0 ;
41844 PyObject * obj5 = 0 ;
41845 PyObject * obj6 = 0 ;
41846 PyObject * obj7 = 0 ;
41847 PyObject * obj8 = 0 ;
41848 char * kwnames[] = {
41849 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41850 };
41851
41852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41854 if (!SWIG_IsOK(res1)) {
41855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41856 }
41857 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41859 if (!SWIG_IsOK(res2)) {
41860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41861 }
41862 arg2 = reinterpret_cast< wxWindow * >(argp2);
41863 ecode3 = SWIG_AsVal_int(obj2, &val3);
41864 if (!SWIG_IsOK(ecode3)) {
41865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41866 }
41867 arg3 = static_cast< int >(val3);
41868 {
41869 arg4 = wxString_in_helper(obj3);
41870 if (arg4 == NULL) SWIG_fail;
41871 temp4 = true;
41872 }
41873 {
41874 arg5 = wxString_in_helper(obj4);
41875 if (arg5 == NULL) SWIG_fail;
41876 temp5 = true;
41877 }
41878 if (obj5) {
41879 {
41880 arg6 = &temp6;
41881 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41882 }
41883 }
41884 if (obj6) {
41885 {
41886 arg7 = &temp7;
41887 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41888 }
41889 }
41890 if (obj7) {
41891 ecode8 = SWIG_AsVal_long(obj7, &val8);
41892 if (!SWIG_IsOK(ecode8)) {
41893 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41894 }
41895 arg8 = static_cast< long >(val8);
41896 }
41897 if (obj8) {
41898 {
41899 arg9 = wxString_in_helper(obj8);
41900 if (arg9 == NULL) SWIG_fail;
41901 temp9 = true;
41902 }
41903 }
41904 {
41905 PyThreadState* __tstate = wxPyBeginAllowThreads();
41906 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41907 wxPyEndAllowThreads(__tstate);
41908 if (PyErr_Occurred()) SWIG_fail;
41909 }
41910 {
41911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41912 }
41913 {
41914 if (temp4)
41915 delete arg4;
41916 }
41917 {
41918 if (temp5)
41919 delete arg5;
41920 }
41921 {
41922 if (temp9)
41923 delete arg9;
41924 }
41925 return resultobj;
41926fail:
41927 {
41928 if (temp4)
41929 delete arg4;
41930 }
41931 {
41932 if (temp5)
41933 delete arg5;
41934 }
41935 {
41936 if (temp9)
41937 delete arg9;
41938 }
41939 return NULL;
41940}
41941
41942
41943SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41944 PyObject *resultobj = 0;
41945 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41946 wxColour result;
41947 void *argp1 = 0 ;
41948 int res1 = 0 ;
41949 PyObject *swig_obj[1] ;
41950
41951 if (!args) SWIG_fail;
41952 swig_obj[0] = args;
41953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41954 if (!SWIG_IsOK(res1)) {
41955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41956 }
41957 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41958 {
41959 PyThreadState* __tstate = wxPyBeginAllowThreads();
41960 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41961 wxPyEndAllowThreads(__tstate);
41962 if (PyErr_Occurred()) SWIG_fail;
41963 }
41964 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41965 return resultobj;
41966fail:
41967 return NULL;
41968}
41969
41970
41971SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41972 PyObject *resultobj = 0;
41973 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41974 wxColour *arg2 = 0 ;
41975 void *argp1 = 0 ;
41976 int res1 = 0 ;
41977 wxColour temp2 ;
41978 PyObject * obj0 = 0 ;
41979 PyObject * obj1 = 0 ;
41980 char * kwnames[] = {
41981 (char *) "self",(char *) "colour", NULL
41982 };
41983
41984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41986 if (!SWIG_IsOK(res1)) {
41987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41988 }
41989 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41990 {
41991 arg2 = &temp2;
41992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41993 }
41994 {
41995 PyThreadState* __tstate = wxPyBeginAllowThreads();
41996 (arg1)->SetHoverColour((wxColour const &)*arg2);
41997 wxPyEndAllowThreads(__tstate);
41998 if (PyErr_Occurred()) SWIG_fail;
41999 }
42000 resultobj = SWIG_Py_Void();
42001 return resultobj;
42002fail:
42003 return NULL;
42004}
42005
42006
42007SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42008 PyObject *resultobj = 0;
42009 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42010 wxColour result;
42011 void *argp1 = 0 ;
42012 int res1 = 0 ;
42013 PyObject *swig_obj[1] ;
42014
42015 if (!args) SWIG_fail;
42016 swig_obj[0] = args;
42017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42018 if (!SWIG_IsOK(res1)) {
42019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42020 }
42021 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42022 {
42023 PyThreadState* __tstate = wxPyBeginAllowThreads();
42024 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42025 wxPyEndAllowThreads(__tstate);
42026 if (PyErr_Occurred()) SWIG_fail;
42027 }
42028 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42029 return resultobj;
42030fail:
42031 return NULL;
42032}
42033
42034
42035SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42036 PyObject *resultobj = 0;
42037 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42038 wxColour *arg2 = 0 ;
42039 void *argp1 = 0 ;
42040 int res1 = 0 ;
42041 wxColour temp2 ;
42042 PyObject * obj0 = 0 ;
42043 PyObject * obj1 = 0 ;
42044 char * kwnames[] = {
42045 (char *) "self",(char *) "colour", NULL
42046 };
42047
42048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42050 if (!SWIG_IsOK(res1)) {
42051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42052 }
42053 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42054 {
42055 arg2 = &temp2;
42056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42057 }
42058 {
42059 PyThreadState* __tstate = wxPyBeginAllowThreads();
42060 (arg1)->SetNormalColour((wxColour const &)*arg2);
42061 wxPyEndAllowThreads(__tstate);
42062 if (PyErr_Occurred()) SWIG_fail;
42063 }
42064 resultobj = SWIG_Py_Void();
42065 return resultobj;
42066fail:
42067 return NULL;
42068}
42069
42070
42071SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42072 PyObject *resultobj = 0;
42073 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42074 wxColour result;
42075 void *argp1 = 0 ;
42076 int res1 = 0 ;
42077 PyObject *swig_obj[1] ;
42078
42079 if (!args) SWIG_fail;
42080 swig_obj[0] = args;
42081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42082 if (!SWIG_IsOK(res1)) {
42083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42084 }
42085 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42086 {
42087 PyThreadState* __tstate = wxPyBeginAllowThreads();
42088 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42089 wxPyEndAllowThreads(__tstate);
42090 if (PyErr_Occurred()) SWIG_fail;
42091 }
42092 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42093 return resultobj;
42094fail:
42095 return NULL;
42096}
42097
42098
42099SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42100 PyObject *resultobj = 0;
42101 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42102 wxColour *arg2 = 0 ;
42103 void *argp1 = 0 ;
42104 int res1 = 0 ;
42105 wxColour temp2 ;
42106 PyObject * obj0 = 0 ;
42107 PyObject * obj1 = 0 ;
42108 char * kwnames[] = {
42109 (char *) "self",(char *) "colour", NULL
42110 };
42111
42112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42114 if (!SWIG_IsOK(res1)) {
42115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42116 }
42117 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42118 {
42119 arg2 = &temp2;
42120 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42121 }
42122 {
42123 PyThreadState* __tstate = wxPyBeginAllowThreads();
42124 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42125 wxPyEndAllowThreads(__tstate);
42126 if (PyErr_Occurred()) SWIG_fail;
42127 }
42128 resultobj = SWIG_Py_Void();
42129 return resultobj;
42130fail:
42131 return NULL;
42132}
42133
42134
42135SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42136 PyObject *resultobj = 0;
42137 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42138 wxString result;
42139 void *argp1 = 0 ;
42140 int res1 = 0 ;
42141 PyObject *swig_obj[1] ;
42142
42143 if (!args) SWIG_fail;
42144 swig_obj[0] = args;
42145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42146 if (!SWIG_IsOK(res1)) {
42147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42148 }
42149 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42150 {
42151 PyThreadState* __tstate = wxPyBeginAllowThreads();
42152 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42153 wxPyEndAllowThreads(__tstate);
42154 if (PyErr_Occurred()) SWIG_fail;
42155 }
42156 {
42157#if wxUSE_UNICODE
42158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42159#else
42160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42161#endif
42162 }
42163 return resultobj;
42164fail:
42165 return NULL;
42166}
42167
42168
42169SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42170 PyObject *resultobj = 0;
42171 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42172 wxString *arg2 = 0 ;
42173 void *argp1 = 0 ;
42174 int res1 = 0 ;
42175 bool temp2 = false ;
42176 PyObject * obj0 = 0 ;
42177 PyObject * obj1 = 0 ;
42178 char * kwnames[] = {
42179 (char *) "self",(char *) "url", NULL
42180 };
42181
42182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42184 if (!SWIG_IsOK(res1)) {
42185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42186 }
42187 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42188 {
42189 arg2 = wxString_in_helper(obj1);
42190 if (arg2 == NULL) SWIG_fail;
42191 temp2 = true;
42192 }
42193 {
42194 PyThreadState* __tstate = wxPyBeginAllowThreads();
42195 (arg1)->SetURL((wxString const &)*arg2);
42196 wxPyEndAllowThreads(__tstate);
42197 if (PyErr_Occurred()) SWIG_fail;
42198 }
42199 resultobj = SWIG_Py_Void();
42200 {
42201 if (temp2)
42202 delete arg2;
42203 }
42204 return resultobj;
42205fail:
42206 {
42207 if (temp2)
42208 delete arg2;
42209 }
42210 return NULL;
42211}
42212
42213
42214SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42215 PyObject *resultobj = 0;
42216 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42217 bool arg2 = (bool) true ;
42218 void *argp1 = 0 ;
42219 int res1 = 0 ;
42220 bool val2 ;
42221 int ecode2 = 0 ;
42222 PyObject * obj0 = 0 ;
42223 PyObject * obj1 = 0 ;
42224 char * kwnames[] = {
42225 (char *) "self",(char *) "visited", NULL
42226 };
42227
42228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42230 if (!SWIG_IsOK(res1)) {
42231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42232 }
42233 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42234 if (obj1) {
42235 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42236 if (!SWIG_IsOK(ecode2)) {
42237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42238 }
42239 arg2 = static_cast< bool >(val2);
42240 }
42241 {
42242 PyThreadState* __tstate = wxPyBeginAllowThreads();
42243 (arg1)->SetVisited(arg2);
42244 wxPyEndAllowThreads(__tstate);
42245 if (PyErr_Occurred()) SWIG_fail;
42246 }
42247 resultobj = SWIG_Py_Void();
42248 return resultobj;
42249fail:
42250 return NULL;
42251}
42252
42253
42254SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42255 PyObject *resultobj = 0;
42256 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42257 bool result;
42258 void *argp1 = 0 ;
42259 int res1 = 0 ;
42260 PyObject *swig_obj[1] ;
42261
42262 if (!args) SWIG_fail;
42263 swig_obj[0] = args;
42264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42265 if (!SWIG_IsOK(res1)) {
42266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42267 }
42268 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42269 {
42270 PyThreadState* __tstate = wxPyBeginAllowThreads();
42271 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42272 wxPyEndAllowThreads(__tstate);
42273 if (PyErr_Occurred()) SWIG_fail;
42274 }
42275 {
42276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42277 }
42278 return resultobj;
42279fail:
42280 return NULL;
42281}
42282
42283
42284SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42285 PyObject *obj;
42286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42287 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42288 return SWIG_Py_Void();
42289}
42290
42291SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42292 return SWIG_Python_InitShadowInstance(args);
42293}
42294
42295SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42296 PyObject *resultobj = 0;
42297 wxObject *arg1 = (wxObject *) 0 ;
42298 int arg2 ;
42299 wxString *arg3 = 0 ;
42300 wxHyperlinkEvent *result = 0 ;
42301 void *argp1 = 0 ;
42302 int res1 = 0 ;
42303 int val2 ;
42304 int ecode2 = 0 ;
42305 bool temp3 = false ;
42306 PyObject * obj0 = 0 ;
42307 PyObject * obj1 = 0 ;
42308 PyObject * obj2 = 0 ;
42309 char * kwnames[] = {
42310 (char *) "generator",(char *) "id",(char *) "url", NULL
42311 };
42312
42313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42315 if (!SWIG_IsOK(res1)) {
42316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42317 }
42318 arg1 = reinterpret_cast< wxObject * >(argp1);
42319 ecode2 = SWIG_AsVal_int(obj1, &val2);
42320 if (!SWIG_IsOK(ecode2)) {
42321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42322 }
42323 arg2 = static_cast< int >(val2);
42324 {
42325 arg3 = wxString_in_helper(obj2);
42326 if (arg3 == NULL) SWIG_fail;
42327 temp3 = true;
42328 }
42329 {
42330 PyThreadState* __tstate = wxPyBeginAllowThreads();
42331 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42332 wxPyEndAllowThreads(__tstate);
42333 if (PyErr_Occurred()) SWIG_fail;
42334 }
42335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42336 {
42337 if (temp3)
42338 delete arg3;
42339 }
42340 return resultobj;
42341fail:
42342 {
42343 if (temp3)
42344 delete arg3;
42345 }
42346 return NULL;
42347}
42348
42349
42350SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42351 PyObject *resultobj = 0;
42352 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42353 wxString result;
42354 void *argp1 = 0 ;
42355 int res1 = 0 ;
42356 PyObject *swig_obj[1] ;
42357
42358 if (!args) SWIG_fail;
42359 swig_obj[0] = args;
42360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42361 if (!SWIG_IsOK(res1)) {
42362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42363 }
42364 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42365 {
42366 PyThreadState* __tstate = wxPyBeginAllowThreads();
42367 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42368 wxPyEndAllowThreads(__tstate);
42369 if (PyErr_Occurred()) SWIG_fail;
42370 }
42371 {
42372#if wxUSE_UNICODE
42373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42374#else
42375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42376#endif
42377 }
42378 return resultobj;
42379fail:
42380 return NULL;
42381}
42382
42383
42384SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42385 PyObject *resultobj = 0;
42386 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42387 wxString *arg2 = 0 ;
42388 void *argp1 = 0 ;
42389 int res1 = 0 ;
42390 bool temp2 = false ;
42391 PyObject * obj0 = 0 ;
42392 PyObject * obj1 = 0 ;
42393 char * kwnames[] = {
42394 (char *) "self",(char *) "url", NULL
42395 };
42396
42397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42399 if (!SWIG_IsOK(res1)) {
42400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42401 }
42402 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42403 {
42404 arg2 = wxString_in_helper(obj1);
42405 if (arg2 == NULL) SWIG_fail;
42406 temp2 = true;
42407 }
42408 {
42409 PyThreadState* __tstate = wxPyBeginAllowThreads();
42410 (arg1)->SetURL((wxString const &)*arg2);
42411 wxPyEndAllowThreads(__tstate);
42412 if (PyErr_Occurred()) SWIG_fail;
42413 }
42414 resultobj = SWIG_Py_Void();
42415 {
42416 if (temp2)
42417 delete arg2;
42418 }
42419 return resultobj;
42420fail:
42421 {
42422 if (temp2)
42423 delete arg2;
42424 }
42425 return NULL;
42426}
42427
42428
42429SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42430 PyObject *obj;
42431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42432 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42433 return SWIG_Py_Void();
42434}
42435
42436SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42437 return SWIG_Python_InitShadowInstance(args);
42438}
42439
b850e7f3
RD
42440SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42441 PyObject *resultobj = 0;
42442 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42443 wxWindow *arg2 = (wxWindow *) 0 ;
42444 int arg3 ;
42445 wxString const &arg4_defvalue = wxEmptyString ;
42446 wxString *arg4 = (wxString *) &arg4_defvalue ;
42447 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42448 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42449 wxSize const &arg6_defvalue = wxDefaultSize ;
42450 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42451 long arg7 = (long) 0 ;
42452 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42453 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42454 wxString const &arg9_defvalue = wxButtonNameStr ;
42455 wxString *arg9 = (wxString *) &arg9_defvalue ;
42456 bool result;
42457 void *argp1 = 0 ;
42458 int res1 = 0 ;
42459 void *argp2 = 0 ;
42460 int res2 = 0 ;
42461 int val3 ;
42462 int ecode3 = 0 ;
42463 bool temp4 = false ;
42464 wxPoint temp5 ;
42465 wxSize temp6 ;
42466 long val7 ;
42467 int ecode7 = 0 ;
42468 void *argp8 = 0 ;
42469 int res8 = 0 ;
42470 bool temp9 = false ;
42471 PyObject * obj0 = 0 ;
42472 PyObject * obj1 = 0 ;
42473 PyObject * obj2 = 0 ;
42474 PyObject * obj3 = 0 ;
42475 PyObject * obj4 = 0 ;
42476 PyObject * obj5 = 0 ;
42477 PyObject * obj6 = 0 ;
42478 PyObject * obj7 = 0 ;
42479 PyObject * obj8 = 0 ;
42480 char * kwnames[] = {
42481 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42482 };
42483
42484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42486 if (!SWIG_IsOK(res1)) {
42487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42488 }
42489 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42490 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42491 if (!SWIG_IsOK(res2)) {
42492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42493 }
42494 arg2 = reinterpret_cast< wxWindow * >(argp2);
42495 ecode3 = SWIG_AsVal_int(obj2, &val3);
42496 if (!SWIG_IsOK(ecode3)) {
42497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42498 }
42499 arg3 = static_cast< int >(val3);
42500 if (obj3) {
42501 {
42502 arg4 = wxString_in_helper(obj3);
42503 if (arg4 == NULL) SWIG_fail;
42504 temp4 = true;
42505 }
42506 }
42507 if (obj4) {
42508 {
42509 arg5 = &temp5;
42510 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42511 }
42512 }
42513 if (obj5) {
42514 {
42515 arg6 = &temp6;
42516 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42517 }
42518 }
42519 if (obj6) {
42520 ecode7 = SWIG_AsVal_long(obj6, &val7);
42521 if (!SWIG_IsOK(ecode7)) {
42522 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42523 }
42524 arg7 = static_cast< long >(val7);
42525 }
42526 if (obj7) {
42527 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42528 if (!SWIG_IsOK(res8)) {
42529 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42530 }
42531 if (!argp8) {
42532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42533 }
42534 arg8 = reinterpret_cast< wxValidator * >(argp8);
42535 }
42536 if (obj8) {
42537 {
42538 arg9 = wxString_in_helper(obj8);
42539 if (arg9 == NULL) SWIG_fail;
42540 temp9 = true;
42541 }
42542 }
42543 {
42544 PyThreadState* __tstate = wxPyBeginAllowThreads();
42545 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42546 wxPyEndAllowThreads(__tstate);
42547 if (PyErr_Occurred()) SWIG_fail;
42548 }
42549 {
42550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42551 }
42552 {
42553 if (temp4)
42554 delete arg4;
42555 }
42556 {
42557 if (temp9)
42558 delete arg9;
42559 }
42560 return resultobj;
42561fail:
42562 {
42563 if (temp4)
42564 delete arg4;
42565 }
42566 {
42567 if (temp9)
42568 delete arg9;
42569 }
42570 return NULL;
42571}
42572
42573
42574SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42575 PyObject *resultobj = 0;
42576 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42577 int arg2 ;
42578 void *argp1 = 0 ;
42579 int res1 = 0 ;
42580 int val2 ;
42581 int ecode2 = 0 ;
42582 PyObject * obj0 = 0 ;
42583 PyObject * obj1 = 0 ;
42584 char * kwnames[] = {
42585 (char *) "self",(char *) "newmargin", NULL
42586 };
42587
42588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42590 if (!SWIG_IsOK(res1)) {
42591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42592 }
42593 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42594 ecode2 = SWIG_AsVal_int(obj1, &val2);
42595 if (!SWIG_IsOK(ecode2)) {
42596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42597 }
42598 arg2 = static_cast< int >(val2);
42599 {
42600 PyThreadState* __tstate = wxPyBeginAllowThreads();
42601 (arg1)->SetInternalMargin(arg2);
42602 wxPyEndAllowThreads(__tstate);
42603 if (PyErr_Occurred()) SWIG_fail;
42604 }
42605 resultobj = SWIG_Py_Void();
42606 return resultobj;
42607fail:
42608 return NULL;
42609}
42610
42611
42612SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42613 PyObject *resultobj = 0;
42614 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42615 int result;
42616 void *argp1 = 0 ;
42617 int res1 = 0 ;
42618 PyObject *swig_obj[1] ;
42619
42620 if (!args) SWIG_fail;
42621 swig_obj[0] = args;
42622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42623 if (!SWIG_IsOK(res1)) {
42624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42625 }
42626 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42627 {
42628 PyThreadState* __tstate = wxPyBeginAllowThreads();
42629 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42630 wxPyEndAllowThreads(__tstate);
42631 if (PyErr_Occurred()) SWIG_fail;
42632 }
42633 resultobj = SWIG_From_int(static_cast< int >(result));
42634 return resultobj;
42635fail:
42636 return NULL;
42637}
42638
42639
42640SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42641 PyObject *resultobj = 0;
42642 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42643 int arg2 ;
42644 void *argp1 = 0 ;
42645 int res1 = 0 ;
42646 int val2 ;
42647 int ecode2 = 0 ;
42648 PyObject * obj0 = 0 ;
42649 PyObject * obj1 = 0 ;
42650 char * kwnames[] = {
42651 (char *) "self",(char *) "prop", NULL
42652 };
42653
42654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42656 if (!SWIG_IsOK(res1)) {
42657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42658 }
42659 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42660 ecode2 = SWIG_AsVal_int(obj1, &val2);
42661 if (!SWIG_IsOK(ecode2)) {
42662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42663 }
42664 arg2 = static_cast< int >(val2);
42665 {
42666 PyThreadState* __tstate = wxPyBeginAllowThreads();
42667 (arg1)->SetTextCtrlProportion(arg2);
42668 wxPyEndAllowThreads(__tstate);
42669 if (PyErr_Occurred()) SWIG_fail;
42670 }
42671 resultobj = SWIG_Py_Void();
42672 return resultobj;
42673fail:
42674 return NULL;
42675}
42676
42677
42678SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42679 PyObject *resultobj = 0;
42680 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42681 int result;
42682 void *argp1 = 0 ;
42683 int res1 = 0 ;
42684 PyObject *swig_obj[1] ;
42685
42686 if (!args) SWIG_fail;
42687 swig_obj[0] = args;
42688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42689 if (!SWIG_IsOK(res1)) {
42690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42691 }
42692 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42693 {
42694 PyThreadState* __tstate = wxPyBeginAllowThreads();
42695 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42696 wxPyEndAllowThreads(__tstate);
42697 if (PyErr_Occurred()) SWIG_fail;
42698 }
42699 resultobj = SWIG_From_int(static_cast< int >(result));
42700 return resultobj;
42701fail:
42702 return NULL;
42703}
42704
42705
1eeb270e
RD
42706SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42707 PyObject *resultobj = 0;
42708 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42709 int arg2 ;
42710 void *argp1 = 0 ;
42711 int res1 = 0 ;
42712 int val2 ;
42713 int ecode2 = 0 ;
42714 PyObject * obj0 = 0 ;
42715 PyObject * obj1 = 0 ;
42716 char * kwnames[] = {
42717 (char *) "self",(char *) "prop", NULL
42718 };
42719
42720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42722 if (!SWIG_IsOK(res1)) {
42723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42724 }
42725 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42726 ecode2 = SWIG_AsVal_int(obj1, &val2);
42727 if (!SWIG_IsOK(ecode2)) {
42728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42729 }
42730 arg2 = static_cast< int >(val2);
42731 {
42732 PyThreadState* __tstate = wxPyBeginAllowThreads();
42733 (arg1)->SetPickerCtrlProportion(arg2);
42734 wxPyEndAllowThreads(__tstate);
42735 if (PyErr_Occurred()) SWIG_fail;
42736 }
42737 resultobj = SWIG_Py_Void();
42738 return resultobj;
42739fail:
42740 return NULL;
42741}
42742
42743
42744SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42745 PyObject *resultobj = 0;
42746 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42747 int result;
42748 void *argp1 = 0 ;
42749 int res1 = 0 ;
42750 PyObject *swig_obj[1] ;
42751
42752 if (!args) SWIG_fail;
42753 swig_obj[0] = args;
42754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42755 if (!SWIG_IsOK(res1)) {
42756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42757 }
42758 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42759 {
42760 PyThreadState* __tstate = wxPyBeginAllowThreads();
42761 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42762 wxPyEndAllowThreads(__tstate);
42763 if (PyErr_Occurred()) SWIG_fail;
42764 }
42765 resultobj = SWIG_From_int(static_cast< int >(result));
42766 return resultobj;
42767fail:
42768 return NULL;
42769}
42770
42771
b02396e8
RD
42772SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42773 PyObject *resultobj = 0;
42774 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42775 bool result;
42776 void *argp1 = 0 ;
42777 int res1 = 0 ;
42778 PyObject *swig_obj[1] ;
42779
42780 if (!args) SWIG_fail;
42781 swig_obj[0] = args;
42782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42783 if (!SWIG_IsOK(res1)) {
42784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42785 }
42786 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42787 {
42788 PyThreadState* __tstate = wxPyBeginAllowThreads();
42789 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42790 wxPyEndAllowThreads(__tstate);
42791 if (PyErr_Occurred()) SWIG_fail;
42792 }
42793 {
42794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42795 }
42796 return resultobj;
42797fail:
42798 return NULL;
42799}
42800
42801
42802SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42803 PyObject *resultobj = 0;
42804 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42805 bool arg2 = (bool) true ;
42806 void *argp1 = 0 ;
42807 int res1 = 0 ;
42808 bool val2 ;
42809 int ecode2 = 0 ;
42810 PyObject * obj0 = 0 ;
42811 PyObject * obj1 = 0 ;
42812 char * kwnames[] = {
42813 (char *) "self",(char *) "grow", NULL
42814 };
42815
42816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42818 if (!SWIG_IsOK(res1)) {
42819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42820 }
42821 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42822 if (obj1) {
42823 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42824 if (!SWIG_IsOK(ecode2)) {
42825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42826 }
42827 arg2 = static_cast< bool >(val2);
42828 }
42829 {
42830 PyThreadState* __tstate = wxPyBeginAllowThreads();
42831 (arg1)->SetTextCtrlGrowable(arg2);
42832 wxPyEndAllowThreads(__tstate);
42833 if (PyErr_Occurred()) SWIG_fail;
42834 }
42835 resultobj = SWIG_Py_Void();
42836 return resultobj;
42837fail:
42838 return NULL;
42839}
42840
42841
42842SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42843 PyObject *resultobj = 0;
42844 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42845 bool result;
42846 void *argp1 = 0 ;
42847 int res1 = 0 ;
42848 PyObject *swig_obj[1] ;
42849
42850 if (!args) SWIG_fail;
42851 swig_obj[0] = args;
42852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42853 if (!SWIG_IsOK(res1)) {
42854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42855 }
42856 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42857 {
42858 PyThreadState* __tstate = wxPyBeginAllowThreads();
42859 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42860 wxPyEndAllowThreads(__tstate);
42861 if (PyErr_Occurred()) SWIG_fail;
42862 }
42863 {
42864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42865 }
42866 return resultobj;
42867fail:
42868 return NULL;
42869}
42870
42871
42872SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42873 PyObject *resultobj = 0;
42874 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42875 bool arg2 = (bool) true ;
42876 void *argp1 = 0 ;
42877 int res1 = 0 ;
42878 bool val2 ;
42879 int ecode2 = 0 ;
42880 PyObject * obj0 = 0 ;
42881 PyObject * obj1 = 0 ;
42882 char * kwnames[] = {
42883 (char *) "self",(char *) "grow", NULL
42884 };
42885
42886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42888 if (!SWIG_IsOK(res1)) {
42889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42890 }
42891 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42892 if (obj1) {
42893 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42894 if (!SWIG_IsOK(ecode2)) {
42895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42896 }
42897 arg2 = static_cast< bool >(val2);
42898 }
42899 {
42900 PyThreadState* __tstate = wxPyBeginAllowThreads();
42901 (arg1)->SetPickerCtrlGrowable(arg2);
42902 wxPyEndAllowThreads(__tstate);
42903 if (PyErr_Occurred()) SWIG_fail;
42904 }
42905 resultobj = SWIG_Py_Void();
42906 return resultobj;
42907fail:
42908 return NULL;
42909}
42910
42911
b850e7f3
RD
42912SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42913 PyObject *resultobj = 0;
42914 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42915 bool result;
42916 void *argp1 = 0 ;
42917 int res1 = 0 ;
42918 PyObject *swig_obj[1] ;
42919
42920 if (!args) SWIG_fail;
42921 swig_obj[0] = args;
42922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42923 if (!SWIG_IsOK(res1)) {
42924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42925 }
42926 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42927 {
42928 PyThreadState* __tstate = wxPyBeginAllowThreads();
42929 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42930 wxPyEndAllowThreads(__tstate);
42931 if (PyErr_Occurred()) SWIG_fail;
42932 }
42933 {
42934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42935 }
42936 return resultobj;
42937fail:
42938 return NULL;
42939}
42940
42941
42942SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42943 PyObject *resultobj = 0;
42944 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42945 wxTextCtrl *result = 0 ;
42946 void *argp1 = 0 ;
42947 int res1 = 0 ;
42948 PyObject *swig_obj[1] ;
42949
42950 if (!args) SWIG_fail;
42951 swig_obj[0] = args;
42952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42953 if (!SWIG_IsOK(res1)) {
42954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42955 }
42956 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42957 {
42958 PyThreadState* __tstate = wxPyBeginAllowThreads();
42959 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42960 wxPyEndAllowThreads(__tstate);
42961 if (PyErr_Occurred()) SWIG_fail;
42962 }
42963 {
42964 resultobj = wxPyMake_wxObject(result, 0);
42965 }
42966 return resultobj;
42967fail:
42968 return NULL;
42969}
42970
42971
42972SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42973 PyObject *resultobj = 0;
42974 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42975 wxControl *result = 0 ;
42976 void *argp1 = 0 ;
42977 int res1 = 0 ;
42978 PyObject *swig_obj[1] ;
42979
42980 if (!args) SWIG_fail;
42981 swig_obj[0] = args;
42982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42983 if (!SWIG_IsOK(res1)) {
42984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42985 }
42986 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42987 {
42988 PyThreadState* __tstate = wxPyBeginAllowThreads();
42989 result = (wxControl *)(arg1)->GetPickerCtrl();
42990 wxPyEndAllowThreads(__tstate);
42991 if (PyErr_Occurred()) SWIG_fail;
42992 }
42993 {
42994 resultobj = wxPyMake_wxObject(result, 0);
42995 }
42996 return resultobj;
42997fail:
42998 return NULL;
42999}
43000
43001
43002SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43003 PyObject *obj;
43004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43005 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43006 return SWIG_Py_Void();
43007}
43008
43009SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43010 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43011 return 1;
43012}
43013
43014
43015SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43016 PyObject *pyobj = 0;
43017
43018 {
43019#if wxUSE_UNICODE
43020 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43021#else
43022 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43023#endif
43024 }
43025 return pyobj;
43026}
43027
43028
43029SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43030 PyObject *resultobj = 0;
43031 wxWindow *arg1 = (wxWindow *) 0 ;
43032 int arg2 = (int) -1 ;
43033 wxColour const &arg3_defvalue = *wxBLACK ;
43034 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43035 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43036 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43037 wxSize const &arg5_defvalue = wxDefaultSize ;
43038 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43039 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43040 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43041 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43042 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43043 wxString *arg8 = (wxString *) &arg8_defvalue ;
43044 wxColourPickerCtrl *result = 0 ;
43045 void *argp1 = 0 ;
43046 int res1 = 0 ;
43047 int val2 ;
43048 int ecode2 = 0 ;
43049 wxColour temp3 ;
43050 wxPoint temp4 ;
43051 wxSize temp5 ;
43052 long val6 ;
43053 int ecode6 = 0 ;
43054 void *argp7 = 0 ;
43055 int res7 = 0 ;
43056 bool temp8 = false ;
43057 PyObject * obj0 = 0 ;
43058 PyObject * obj1 = 0 ;
43059 PyObject * obj2 = 0 ;
43060 PyObject * obj3 = 0 ;
43061 PyObject * obj4 = 0 ;
43062 PyObject * obj5 = 0 ;
43063 PyObject * obj6 = 0 ;
43064 PyObject * obj7 = 0 ;
43065 char * kwnames[] = {
43066 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43067 };
43068
43069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43071 if (!SWIG_IsOK(res1)) {
43072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43073 }
43074 arg1 = reinterpret_cast< wxWindow * >(argp1);
43075 if (obj1) {
43076 ecode2 = SWIG_AsVal_int(obj1, &val2);
43077 if (!SWIG_IsOK(ecode2)) {
43078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43079 }
43080 arg2 = static_cast< int >(val2);
43081 }
43082 if (obj2) {
43083 {
43084 arg3 = &temp3;
43085 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43086 }
43087 }
43088 if (obj3) {
43089 {
43090 arg4 = &temp4;
43091 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43092 }
43093 }
43094 if (obj4) {
43095 {
43096 arg5 = &temp5;
43097 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43098 }
43099 }
43100 if (obj5) {
43101 ecode6 = SWIG_AsVal_long(obj5, &val6);
43102 if (!SWIG_IsOK(ecode6)) {
43103 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43104 }
43105 arg6 = static_cast< long >(val6);
43106 }
43107 if (obj6) {
43108 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43109 if (!SWIG_IsOK(res7)) {
43110 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43111 }
43112 if (!argp7) {
43113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43114 }
43115 arg7 = reinterpret_cast< wxValidator * >(argp7);
43116 }
43117 if (obj7) {
43118 {
43119 arg8 = wxString_in_helper(obj7);
43120 if (arg8 == NULL) SWIG_fail;
43121 temp8 = true;
43122 }
43123 }
43124 {
43125 if (!wxPyCheckForApp()) SWIG_fail;
43126 PyThreadState* __tstate = wxPyBeginAllowThreads();
43127 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43128 wxPyEndAllowThreads(__tstate);
43129 if (PyErr_Occurred()) SWIG_fail;
43130 }
43131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43132 {
43133 if (temp8)
43134 delete arg8;
43135 }
43136 return resultobj;
43137fail:
43138 {
43139 if (temp8)
43140 delete arg8;
43141 }
43142 return NULL;
43143}
43144
43145
43146SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43147 PyObject *resultobj = 0;
43148 wxColourPickerCtrl *result = 0 ;
43149
43150 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43151 {
43152 if (!wxPyCheckForApp()) SWIG_fail;
43153 PyThreadState* __tstate = wxPyBeginAllowThreads();
43154 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43155 wxPyEndAllowThreads(__tstate);
43156 if (PyErr_Occurred()) SWIG_fail;
43157 }
43158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43159 return resultobj;
43160fail:
43161 return NULL;
43162}
43163
43164
43165SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43166 PyObject *resultobj = 0;
43167 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43168 wxWindow *arg2 = (wxWindow *) 0 ;
43169 int arg3 ;
43170 wxColour const &arg4_defvalue = *wxBLACK ;
43171 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43174 wxSize const &arg6_defvalue = wxDefaultSize ;
43175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43176 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43177 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43178 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43179 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43180 wxString *arg9 = (wxString *) &arg9_defvalue ;
43181 bool result;
43182 void *argp1 = 0 ;
43183 int res1 = 0 ;
43184 void *argp2 = 0 ;
43185 int res2 = 0 ;
43186 int val3 ;
43187 int ecode3 = 0 ;
43188 wxColour temp4 ;
43189 wxPoint temp5 ;
43190 wxSize temp6 ;
43191 long val7 ;
43192 int ecode7 = 0 ;
43193 void *argp8 = 0 ;
43194 int res8 = 0 ;
43195 bool temp9 = false ;
43196 PyObject * obj0 = 0 ;
43197 PyObject * obj1 = 0 ;
43198 PyObject * obj2 = 0 ;
43199 PyObject * obj3 = 0 ;
43200 PyObject * obj4 = 0 ;
43201 PyObject * obj5 = 0 ;
43202 PyObject * obj6 = 0 ;
43203 PyObject * obj7 = 0 ;
43204 PyObject * obj8 = 0 ;
43205 char * kwnames[] = {
43206 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43207 };
43208
43209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43211 if (!SWIG_IsOK(res1)) {
43212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43213 }
43214 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43216 if (!SWIG_IsOK(res2)) {
43217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43218 }
43219 arg2 = reinterpret_cast< wxWindow * >(argp2);
43220 ecode3 = SWIG_AsVal_int(obj2, &val3);
43221 if (!SWIG_IsOK(ecode3)) {
43222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43223 }
43224 arg3 = static_cast< int >(val3);
43225 if (obj3) {
43226 {
43227 arg4 = &temp4;
43228 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43229 }
43230 }
43231 if (obj4) {
43232 {
43233 arg5 = &temp5;
43234 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43235 }
43236 }
43237 if (obj5) {
43238 {
43239 arg6 = &temp6;
43240 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43241 }
43242 }
43243 if (obj6) {
43244 ecode7 = SWIG_AsVal_long(obj6, &val7);
43245 if (!SWIG_IsOK(ecode7)) {
43246 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43247 }
43248 arg7 = static_cast< long >(val7);
43249 }
43250 if (obj7) {
43251 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43252 if (!SWIG_IsOK(res8)) {
43253 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43254 }
43255 if (!argp8) {
43256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43257 }
43258 arg8 = reinterpret_cast< wxValidator * >(argp8);
43259 }
43260 if (obj8) {
43261 {
43262 arg9 = wxString_in_helper(obj8);
43263 if (arg9 == NULL) SWIG_fail;
43264 temp9 = true;
43265 }
43266 }
43267 {
43268 PyThreadState* __tstate = wxPyBeginAllowThreads();
43269 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43270 wxPyEndAllowThreads(__tstate);
43271 if (PyErr_Occurred()) SWIG_fail;
43272 }
43273 {
43274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43275 }
43276 {
43277 if (temp9)
43278 delete arg9;
43279 }
43280 return resultobj;
43281fail:
43282 {
43283 if (temp9)
43284 delete arg9;
43285 }
43286 return NULL;
43287}
43288
43289
43290SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43291 PyObject *resultobj = 0;
43292 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43293 wxColour result;
43294 void *argp1 = 0 ;
43295 int res1 = 0 ;
43296 PyObject *swig_obj[1] ;
43297
43298 if (!args) SWIG_fail;
43299 swig_obj[0] = args;
43300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43301 if (!SWIG_IsOK(res1)) {
43302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43303 }
43304 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43305 {
43306 PyThreadState* __tstate = wxPyBeginAllowThreads();
43307 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43308 wxPyEndAllowThreads(__tstate);
43309 if (PyErr_Occurred()) SWIG_fail;
43310 }
43311 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43312 return resultobj;
43313fail:
43314 return NULL;
43315}
43316
43317
43318SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43319 PyObject *resultobj = 0;
43320 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43321 wxColour *arg2 = 0 ;
43322 void *argp1 = 0 ;
43323 int res1 = 0 ;
43324 wxColour temp2 ;
43325 PyObject * obj0 = 0 ;
43326 PyObject * obj1 = 0 ;
43327 char * kwnames[] = {
43328 (char *) "self",(char *) "col", NULL
43329 };
43330
43331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43333 if (!SWIG_IsOK(res1)) {
43334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43335 }
43336 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43337 {
43338 arg2 = &temp2;
43339 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43340 }
43341 {
43342 PyThreadState* __tstate = wxPyBeginAllowThreads();
43343 (arg1)->SetColour((wxColour const &)*arg2);
43344 wxPyEndAllowThreads(__tstate);
43345 if (PyErr_Occurred()) SWIG_fail;
43346 }
43347 resultobj = SWIG_Py_Void();
43348 return resultobj;
43349fail:
43350 return NULL;
43351}
43352
43353
43354SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43355 PyObject *obj;
43356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43357 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43358 return SWIG_Py_Void();
43359}
43360
43361SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43362 return SWIG_Python_InitShadowInstance(args);
43363}
43364
43365SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43366 PyObject *resultobj = 0;
43367 wxObject *arg1 = (wxObject *) 0 ;
43368 int arg2 ;
43369 wxColour *arg3 = 0 ;
43370 wxColourPickerEvent *result = 0 ;
43371 void *argp1 = 0 ;
43372 int res1 = 0 ;
43373 int val2 ;
43374 int ecode2 = 0 ;
43375 wxColour temp3 ;
43376 PyObject * obj0 = 0 ;
43377 PyObject * obj1 = 0 ;
43378 PyObject * obj2 = 0 ;
43379 char * kwnames[] = {
43380 (char *) "generator",(char *) "id",(char *) "col", NULL
43381 };
43382
43383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43385 if (!SWIG_IsOK(res1)) {
43386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43387 }
43388 arg1 = reinterpret_cast< wxObject * >(argp1);
43389 ecode2 = SWIG_AsVal_int(obj1, &val2);
43390 if (!SWIG_IsOK(ecode2)) {
43391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43392 }
43393 arg2 = static_cast< int >(val2);
43394 {
43395 arg3 = &temp3;
43396 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43397 }
43398 {
43399 PyThreadState* __tstate = wxPyBeginAllowThreads();
43400 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43401 wxPyEndAllowThreads(__tstate);
43402 if (PyErr_Occurred()) SWIG_fail;
43403 }
43404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43405 return resultobj;
43406fail:
43407 return NULL;
43408}
43409
43410
43411SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43412 PyObject *resultobj = 0;
43413 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43414 wxColour result;
43415 void *argp1 = 0 ;
43416 int res1 = 0 ;
43417 PyObject *swig_obj[1] ;
43418
43419 if (!args) SWIG_fail;
43420 swig_obj[0] = args;
43421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43422 if (!SWIG_IsOK(res1)) {
43423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43424 }
43425 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43426 {
43427 PyThreadState* __tstate = wxPyBeginAllowThreads();
43428 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43429 wxPyEndAllowThreads(__tstate);
43430 if (PyErr_Occurred()) SWIG_fail;
43431 }
43432 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43433 return resultobj;
43434fail:
43435 return NULL;
43436}
43437
43438
43439SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43440 PyObject *resultobj = 0;
43441 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43442 wxColour *arg2 = 0 ;
43443 void *argp1 = 0 ;
43444 int res1 = 0 ;
43445 wxColour temp2 ;
43446 PyObject * obj0 = 0 ;
43447 PyObject * obj1 = 0 ;
43448 char * kwnames[] = {
43449 (char *) "self",(char *) "c", NULL
43450 };
43451
43452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43454 if (!SWIG_IsOK(res1)) {
43455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43456 }
43457 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43458 {
43459 arg2 = &temp2;
43460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43461 }
43462 {
43463 PyThreadState* __tstate = wxPyBeginAllowThreads();
43464 (arg1)->SetColour((wxColour const &)*arg2);
43465 wxPyEndAllowThreads(__tstate);
43466 if (PyErr_Occurred()) SWIG_fail;
43467 }
43468 resultobj = SWIG_Py_Void();
43469 return resultobj;
43470fail:
43471 return NULL;
43472}
43473
43474
43475SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43476 PyObject *obj;
43477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43478 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43479 return SWIG_Py_Void();
43480}
43481
43482SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43483 return SWIG_Python_InitShadowInstance(args);
43484}
43485
43486SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43487 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43488 return 1;
43489}
43490
43491
43492SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43493 PyObject *pyobj = 0;
43494
43495 {
43496#if wxUSE_UNICODE
43497 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43498#else
43499 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43500#endif
43501 }
43502 return pyobj;
43503}
43504
43505
43506SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43507 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43508 return 1;
43509}
43510
43511
43512SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43513 PyObject *pyobj = 0;
43514
43515 {
43516#if wxUSE_UNICODE
43517 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43518#else
43519 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43520#endif
43521 }
43522 return pyobj;
43523}
43524
43525
43526SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43527 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43528 return 1;
43529}
43530
43531
43532SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43533 PyObject *pyobj = 0;
43534
43535 {
43536#if wxUSE_UNICODE
43537 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43538#else
43539 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43540#endif
43541 }
43542 return pyobj;
43543}
43544
43545
43546SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43547 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43548 return 1;
43549}
43550
43551
43552SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43553 PyObject *pyobj = 0;
43554
43555 {
43556#if wxUSE_UNICODE
43557 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43558#else
43559 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43560#endif
43561 }
43562 return pyobj;
43563}
43564
43565
43566SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43567 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43568 return 1;
43569}
43570
43571
43572SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43573 PyObject *pyobj = 0;
43574
43575 {
43576#if wxUSE_UNICODE
43577 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43578#else
43579 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43580#endif
43581 }
43582 return pyobj;
43583}
43584
43585
43586SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43587 PyObject *resultobj = 0;
43588 wxWindow *arg1 = (wxWindow *) 0 ;
43589 int arg2 = (int) -1 ;
43590 wxString const &arg3_defvalue = wxPyEmptyString ;
43591 wxString *arg3 = (wxString *) &arg3_defvalue ;
43592 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43593 wxString *arg4 = (wxString *) &arg4_defvalue ;
43594 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43595 wxString *arg5 = (wxString *) &arg5_defvalue ;
43596 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43597 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43598 wxSize const &arg7_defvalue = wxDefaultSize ;
43599 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43600 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43601 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43602 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43603 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43604 wxString *arg10 = (wxString *) &arg10_defvalue ;
43605 wxFilePickerCtrl *result = 0 ;
43606 void *argp1 = 0 ;
43607 int res1 = 0 ;
43608 int val2 ;
43609 int ecode2 = 0 ;
43610 bool temp3 = false ;
43611 bool temp4 = false ;
43612 bool temp5 = false ;
43613 wxPoint temp6 ;
43614 wxSize temp7 ;
43615 long val8 ;
43616 int ecode8 = 0 ;
43617 void *argp9 = 0 ;
43618 int res9 = 0 ;
43619 bool temp10 = false ;
43620 PyObject * obj0 = 0 ;
43621 PyObject * obj1 = 0 ;
43622 PyObject * obj2 = 0 ;
43623 PyObject * obj3 = 0 ;
43624 PyObject * obj4 = 0 ;
43625 PyObject * obj5 = 0 ;
43626 PyObject * obj6 = 0 ;
43627 PyObject * obj7 = 0 ;
43628 PyObject * obj8 = 0 ;
43629 PyObject * obj9 = 0 ;
43630 char * kwnames[] = {
43631 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43632 };
43633
43634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43636 if (!SWIG_IsOK(res1)) {
43637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43638 }
43639 arg1 = reinterpret_cast< wxWindow * >(argp1);
43640 if (obj1) {
43641 ecode2 = SWIG_AsVal_int(obj1, &val2);
43642 if (!SWIG_IsOK(ecode2)) {
43643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43644 }
43645 arg2 = static_cast< int >(val2);
43646 }
43647 if (obj2) {
43648 {
43649 arg3 = wxString_in_helper(obj2);
43650 if (arg3 == NULL) SWIG_fail;
43651 temp3 = true;
43652 }
43653 }
43654 if (obj3) {
43655 {
43656 arg4 = wxString_in_helper(obj3);
43657 if (arg4 == NULL) SWIG_fail;
43658 temp4 = true;
43659 }
43660 }
43661 if (obj4) {
43662 {
43663 arg5 = wxString_in_helper(obj4);
43664 if (arg5 == NULL) SWIG_fail;
43665 temp5 = true;
43666 }
43667 }
43668 if (obj5) {
43669 {
43670 arg6 = &temp6;
43671 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43672 }
43673 }
43674 if (obj6) {
43675 {
43676 arg7 = &temp7;
43677 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43678 }
43679 }
43680 if (obj7) {
43681 ecode8 = SWIG_AsVal_long(obj7, &val8);
43682 if (!SWIG_IsOK(ecode8)) {
43683 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43684 }
43685 arg8 = static_cast< long >(val8);
43686 }
43687 if (obj8) {
43688 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43689 if (!SWIG_IsOK(res9)) {
43690 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43691 }
43692 if (!argp9) {
43693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43694 }
43695 arg9 = reinterpret_cast< wxValidator * >(argp9);
43696 }
43697 if (obj9) {
43698 {
43699 arg10 = wxString_in_helper(obj9);
43700 if (arg10 == NULL) SWIG_fail;
43701 temp10 = true;
43702 }
43703 }
43704 {
43705 if (!wxPyCheckForApp()) SWIG_fail;
43706 PyThreadState* __tstate = wxPyBeginAllowThreads();
43707 result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
43708 wxPyEndAllowThreads(__tstate);
43709 if (PyErr_Occurred()) SWIG_fail;
43710 }
43711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43712 {
43713 if (temp3)
43714 delete arg3;
43715 }
43716 {
43717 if (temp4)
43718 delete arg4;
43719 }
43720 {
43721 if (temp5)
43722 delete arg5;
43723 }
43724 {
43725 if (temp10)
43726 delete arg10;
43727 }
43728 return resultobj;
43729fail:
43730 {
43731 if (temp3)
43732 delete arg3;
43733 }
43734 {
43735 if (temp4)
43736 delete arg4;
43737 }
43738 {
43739 if (temp5)
43740 delete arg5;
43741 }
43742 {
43743 if (temp10)
43744 delete arg10;
43745 }
43746 return NULL;
43747}
43748
43749
43750SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43751 PyObject *resultobj = 0;
43752 wxFilePickerCtrl *result = 0 ;
43753
43754 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43755 {
43756 if (!wxPyCheckForApp()) SWIG_fail;
43757 PyThreadState* __tstate = wxPyBeginAllowThreads();
43758 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43759 wxPyEndAllowThreads(__tstate);
43760 if (PyErr_Occurred()) SWIG_fail;
43761 }
43762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43763 return resultobj;
43764fail:
43765 return NULL;
43766}
43767
43768
43769SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43770 PyObject *resultobj = 0;
43771 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43772 wxWindow *arg2 = (wxWindow *) 0 ;
43773 int arg3 = (int) -1 ;
43774 wxString const &arg4_defvalue = wxPyEmptyString ;
43775 wxString *arg4 = (wxString *) &arg4_defvalue ;
43776 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43777 wxString *arg5 = (wxString *) &arg5_defvalue ;
43778 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43779 wxString *arg6 = (wxString *) &arg6_defvalue ;
43780 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43781 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43782 wxSize const &arg8_defvalue = wxDefaultSize ;
43783 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43784 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43785 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43786 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43787 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43788 wxString *arg11 = (wxString *) &arg11_defvalue ;
43789 bool result;
43790 void *argp1 = 0 ;
43791 int res1 = 0 ;
43792 void *argp2 = 0 ;
43793 int res2 = 0 ;
43794 int val3 ;
43795 int ecode3 = 0 ;
43796 bool temp4 = false ;
43797 bool temp5 = false ;
43798 bool temp6 = false ;
43799 wxPoint temp7 ;
43800 wxSize temp8 ;
43801 long val9 ;
43802 int ecode9 = 0 ;
43803 void *argp10 = 0 ;
43804 int res10 = 0 ;
43805 bool temp11 = false ;
43806 PyObject * obj0 = 0 ;
43807 PyObject * obj1 = 0 ;
43808 PyObject * obj2 = 0 ;
43809 PyObject * obj3 = 0 ;
43810 PyObject * obj4 = 0 ;
43811 PyObject * obj5 = 0 ;
43812 PyObject * obj6 = 0 ;
43813 PyObject * obj7 = 0 ;
43814 PyObject * obj8 = 0 ;
43815 PyObject * obj9 = 0 ;
43816 PyObject * obj10 = 0 ;
43817 char * kwnames[] = {
43818 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43819 };
43820
43821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43823 if (!SWIG_IsOK(res1)) {
43824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43825 }
43826 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43828 if (!SWIG_IsOK(res2)) {
43829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43830 }
43831 arg2 = reinterpret_cast< wxWindow * >(argp2);
43832 if (obj2) {
43833 ecode3 = SWIG_AsVal_int(obj2, &val3);
43834 if (!SWIG_IsOK(ecode3)) {
43835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43836 }
43837 arg3 = static_cast< int >(val3);
43838 }
43839 if (obj3) {
43840 {
43841 arg4 = wxString_in_helper(obj3);
43842 if (arg4 == NULL) SWIG_fail;
43843 temp4 = true;
43844 }
43845 }
43846 if (obj4) {
43847 {
43848 arg5 = wxString_in_helper(obj4);
43849 if (arg5 == NULL) SWIG_fail;
43850 temp5 = true;
43851 }
43852 }
43853 if (obj5) {
43854 {
43855 arg6 = wxString_in_helper(obj5);
43856 if (arg6 == NULL) SWIG_fail;
43857 temp6 = true;
43858 }
43859 }
43860 if (obj6) {
43861 {
43862 arg7 = &temp7;
43863 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43864 }
43865 }
43866 if (obj7) {
43867 {
43868 arg8 = &temp8;
43869 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43870 }
43871 }
43872 if (obj8) {
43873 ecode9 = SWIG_AsVal_long(obj8, &val9);
43874 if (!SWIG_IsOK(ecode9)) {
43875 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43876 }
43877 arg9 = static_cast< long >(val9);
43878 }
43879 if (obj9) {
43880 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43881 if (!SWIG_IsOK(res10)) {
43882 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43883 }
43884 if (!argp10) {
43885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43886 }
43887 arg10 = reinterpret_cast< wxValidator * >(argp10);
43888 }
43889 if (obj10) {
43890 {
43891 arg11 = wxString_in_helper(obj10);
43892 if (arg11 == NULL) SWIG_fail;
43893 temp11 = true;
43894 }
43895 }
43896 {
43897 PyThreadState* __tstate = wxPyBeginAllowThreads();
43898 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
43899 wxPyEndAllowThreads(__tstate);
43900 if (PyErr_Occurred()) SWIG_fail;
43901 }
43902 {
43903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43904 }
43905 {
43906 if (temp4)
43907 delete arg4;
43908 }
43909 {
43910 if (temp5)
43911 delete arg5;
43912 }
43913 {
43914 if (temp6)
43915 delete arg6;
43916 }
43917 {
43918 if (temp11)
43919 delete arg11;
43920 }
43921 return resultobj;
43922fail:
43923 {
43924 if (temp4)
43925 delete arg4;
43926 }
43927 {
43928 if (temp5)
43929 delete arg5;
43930 }
43931 {
43932 if (temp6)
43933 delete arg6;
43934 }
43935 {
43936 if (temp11)
43937 delete arg11;
43938 }
43939 return NULL;
43940}
43941
43942
43943SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43944 PyObject *resultobj = 0;
43945 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43946 wxString result;
43947 void *argp1 = 0 ;
43948 int res1 = 0 ;
43949 PyObject *swig_obj[1] ;
43950
43951 if (!args) SWIG_fail;
43952 swig_obj[0] = args;
43953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43954 if (!SWIG_IsOK(res1)) {
43955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43956 }
43957 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43958 {
43959 PyThreadState* __tstate = wxPyBeginAllowThreads();
43960 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43961 wxPyEndAllowThreads(__tstate);
43962 if (PyErr_Occurred()) SWIG_fail;
43963 }
43964 {
43965#if wxUSE_UNICODE
43966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43967#else
43968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43969#endif
43970 }
43971 return resultobj;
43972fail:
43973 return NULL;
43974}
43975
43976
43977SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43978 PyObject *resultobj = 0;
43979 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43980 wxString *arg2 = 0 ;
43981 void *argp1 = 0 ;
43982 int res1 = 0 ;
43983 bool temp2 = false ;
43984 PyObject * obj0 = 0 ;
43985 PyObject * obj1 = 0 ;
43986 char * kwnames[] = {
43987 (char *) "self",(char *) "str", NULL
43988 };
43989
43990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43992 if (!SWIG_IsOK(res1)) {
43993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43994 }
43995 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43996 {
43997 arg2 = wxString_in_helper(obj1);
43998 if (arg2 == NULL) SWIG_fail;
43999 temp2 = true;
44000 }
44001 {
44002 PyThreadState* __tstate = wxPyBeginAllowThreads();
44003 (arg1)->SetPath((wxString const &)*arg2);
44004 wxPyEndAllowThreads(__tstate);
44005 if (PyErr_Occurred()) SWIG_fail;
44006 }
44007 resultobj = SWIG_Py_Void();
44008 {
44009 if (temp2)
44010 delete arg2;
44011 }
44012 return resultobj;
44013fail:
44014 {
44015 if (temp2)
44016 delete arg2;
44017 }
44018 return NULL;
44019}
44020
44021
b02396e8
RD
44022SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44023 PyObject *resultobj = 0;
44024 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44025 wxString *arg2 = 0 ;
44026 bool result;
44027 void *argp1 = 0 ;
44028 int res1 = 0 ;
44029 bool temp2 = false ;
44030 PyObject * obj0 = 0 ;
44031 PyObject * obj1 = 0 ;
44032 char * kwnames[] = {
44033 (char *) "self",(char *) "path", NULL
44034 };
44035
44036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44038 if (!SWIG_IsOK(res1)) {
44039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44040 }
44041 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44042 {
44043 arg2 = wxString_in_helper(obj1);
44044 if (arg2 == NULL) SWIG_fail;
44045 temp2 = true;
44046 }
44047 {
44048 PyThreadState* __tstate = wxPyBeginAllowThreads();
44049 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44050 wxPyEndAllowThreads(__tstate);
44051 if (PyErr_Occurred()) SWIG_fail;
44052 }
44053 {
44054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44055 }
44056 {
44057 if (temp2)
44058 delete arg2;
44059 }
44060 return resultobj;
44061fail:
44062 {
44063 if (temp2)
44064 delete arg2;
44065 }
44066 return NULL;
44067}
44068
44069
44070SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44071 PyObject *resultobj = 0;
44072 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44073 wxString result;
44074 void *argp1 = 0 ;
44075 int res1 = 0 ;
44076 PyObject *swig_obj[1] ;
44077
44078 if (!args) SWIG_fail;
44079 swig_obj[0] = args;
44080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44081 if (!SWIG_IsOK(res1)) {
44082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44083 }
44084 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44085 {
44086 PyThreadState* __tstate = wxPyBeginAllowThreads();
44087 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44088 wxPyEndAllowThreads(__tstate);
44089 if (PyErr_Occurred()) SWIG_fail;
44090 }
44091 {
44092#if wxUSE_UNICODE
44093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44094#else
44095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44096#endif
44097 }
44098 return resultobj;
44099fail:
44100 return NULL;
44101}
44102
44103
b850e7f3
RD
44104SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44105 PyObject *obj;
44106 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44107 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44108 return SWIG_Py_Void();
44109}
44110
44111SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44112 return SWIG_Python_InitShadowInstance(args);
44113}
44114
44115SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44116 PyObject *resultobj = 0;
44117 wxWindow *arg1 = (wxWindow *) 0 ;
44118 int arg2 = (int) -1 ;
44119 wxString const &arg3_defvalue = wxPyEmptyString ;
44120 wxString *arg3 = (wxString *) &arg3_defvalue ;
44121 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44122 wxString *arg4 = (wxString *) &arg4_defvalue ;
44123 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44124 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44125 wxSize const &arg6_defvalue = wxDefaultSize ;
44126 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44127 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44128 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44129 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44130 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44131 wxString *arg9 = (wxString *) &arg9_defvalue ;
44132 wxDirPickerCtrl *result = 0 ;
44133 void *argp1 = 0 ;
44134 int res1 = 0 ;
44135 int val2 ;
44136 int ecode2 = 0 ;
44137 bool temp3 = false ;
44138 bool temp4 = false ;
44139 wxPoint temp5 ;
44140 wxSize temp6 ;
44141 long val7 ;
44142 int ecode7 = 0 ;
44143 void *argp8 = 0 ;
44144 int res8 = 0 ;
44145 bool temp9 = false ;
44146 PyObject * obj0 = 0 ;
44147 PyObject * obj1 = 0 ;
44148 PyObject * obj2 = 0 ;
44149 PyObject * obj3 = 0 ;
44150 PyObject * obj4 = 0 ;
44151 PyObject * obj5 = 0 ;
44152 PyObject * obj6 = 0 ;
44153 PyObject * obj7 = 0 ;
44154 PyObject * obj8 = 0 ;
44155 char * kwnames[] = {
44156 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44157 };
44158
44159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44161 if (!SWIG_IsOK(res1)) {
44162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44163 }
44164 arg1 = reinterpret_cast< wxWindow * >(argp1);
44165 if (obj1) {
44166 ecode2 = SWIG_AsVal_int(obj1, &val2);
44167 if (!SWIG_IsOK(ecode2)) {
44168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44169 }
44170 arg2 = static_cast< int >(val2);
44171 }
44172 if (obj2) {
44173 {
44174 arg3 = wxString_in_helper(obj2);
44175 if (arg3 == NULL) SWIG_fail;
44176 temp3 = true;
44177 }
44178 }
44179 if (obj3) {
44180 {
44181 arg4 = wxString_in_helper(obj3);
44182 if (arg4 == NULL) SWIG_fail;
44183 temp4 = true;
44184 }
44185 }
44186 if (obj4) {
44187 {
44188 arg5 = &temp5;
44189 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44190 }
44191 }
44192 if (obj5) {
44193 {
44194 arg6 = &temp6;
44195 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44196 }
44197 }
44198 if (obj6) {
44199 ecode7 = SWIG_AsVal_long(obj6, &val7);
44200 if (!SWIG_IsOK(ecode7)) {
44201 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44202 }
44203 arg7 = static_cast< long >(val7);
44204 }
44205 if (obj7) {
44206 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44207 if (!SWIG_IsOK(res8)) {
44208 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44209 }
44210 if (!argp8) {
44211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44212 }
44213 arg8 = reinterpret_cast< wxValidator * >(argp8);
44214 }
44215 if (obj8) {
44216 {
44217 arg9 = wxString_in_helper(obj8);
44218 if (arg9 == NULL) SWIG_fail;
44219 temp9 = true;
44220 }
44221 }
44222 {
44223 if (!wxPyCheckForApp()) SWIG_fail;
44224 PyThreadState* __tstate = wxPyBeginAllowThreads();
44225 result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44226 wxPyEndAllowThreads(__tstate);
44227 if (PyErr_Occurred()) SWIG_fail;
44228 }
44229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44230 {
44231 if (temp3)
44232 delete arg3;
44233 }
44234 {
44235 if (temp4)
44236 delete arg4;
44237 }
44238 {
44239 if (temp9)
44240 delete arg9;
44241 }
44242 return resultobj;
44243fail:
44244 {
44245 if (temp3)
44246 delete arg3;
44247 }
44248 {
44249 if (temp4)
44250 delete arg4;
44251 }
44252 {
44253 if (temp9)
44254 delete arg9;
44255 }
44256 return NULL;
44257}
44258
44259
44260SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44261 PyObject *resultobj = 0;
44262 wxDirPickerCtrl *result = 0 ;
44263
44264 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44265 {
44266 if (!wxPyCheckForApp()) SWIG_fail;
44267 PyThreadState* __tstate = wxPyBeginAllowThreads();
44268 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44269 wxPyEndAllowThreads(__tstate);
44270 if (PyErr_Occurred()) SWIG_fail;
44271 }
44272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44273 return resultobj;
44274fail:
44275 return NULL;
44276}
44277
44278
44279SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44280 PyObject *resultobj = 0;
44281 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44282 wxWindow *arg2 = (wxWindow *) 0 ;
44283 int arg3 = (int) -1 ;
44284 wxString const &arg4_defvalue = wxPyEmptyString ;
44285 wxString *arg4 = (wxString *) &arg4_defvalue ;
44286 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44287 wxString *arg5 = (wxString *) &arg5_defvalue ;
44288 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44289 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44290 wxSize const &arg7_defvalue = wxDefaultSize ;
44291 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44292 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44293 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44294 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44295 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44296 wxString *arg10 = (wxString *) &arg10_defvalue ;
44297 bool result;
44298 void *argp1 = 0 ;
44299 int res1 = 0 ;
44300 void *argp2 = 0 ;
44301 int res2 = 0 ;
44302 int val3 ;
44303 int ecode3 = 0 ;
44304 bool temp4 = false ;
44305 bool temp5 = false ;
44306 wxPoint temp6 ;
44307 wxSize temp7 ;
44308 long val8 ;
44309 int ecode8 = 0 ;
44310 void *argp9 = 0 ;
44311 int res9 = 0 ;
44312 bool temp10 = false ;
44313 PyObject * obj0 = 0 ;
44314 PyObject * obj1 = 0 ;
44315 PyObject * obj2 = 0 ;
44316 PyObject * obj3 = 0 ;
44317 PyObject * obj4 = 0 ;
44318 PyObject * obj5 = 0 ;
44319 PyObject * obj6 = 0 ;
44320 PyObject * obj7 = 0 ;
44321 PyObject * obj8 = 0 ;
44322 PyObject * obj9 = 0 ;
44323 char * kwnames[] = {
44324 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44325 };
44326
44327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44329 if (!SWIG_IsOK(res1)) {
44330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44331 }
44332 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44334 if (!SWIG_IsOK(res2)) {
44335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44336 }
44337 arg2 = reinterpret_cast< wxWindow * >(argp2);
44338 if (obj2) {
44339 ecode3 = SWIG_AsVal_int(obj2, &val3);
44340 if (!SWIG_IsOK(ecode3)) {
44341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44342 }
44343 arg3 = static_cast< int >(val3);
44344 }
44345 if (obj3) {
44346 {
44347 arg4 = wxString_in_helper(obj3);
44348 if (arg4 == NULL) SWIG_fail;
44349 temp4 = true;
44350 }
44351 }
44352 if (obj4) {
44353 {
44354 arg5 = wxString_in_helper(obj4);
44355 if (arg5 == NULL) SWIG_fail;
44356 temp5 = true;
44357 }
44358 }
44359 if (obj5) {
44360 {
44361 arg6 = &temp6;
44362 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44363 }
44364 }
44365 if (obj6) {
44366 {
44367 arg7 = &temp7;
44368 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44369 }
44370 }
44371 if (obj7) {
44372 ecode8 = SWIG_AsVal_long(obj7, &val8);
44373 if (!SWIG_IsOK(ecode8)) {
44374 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44375 }
44376 arg8 = static_cast< long >(val8);
44377 }
44378 if (obj8) {
44379 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44380 if (!SWIG_IsOK(res9)) {
44381 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44382 }
44383 if (!argp9) {
44384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44385 }
44386 arg9 = reinterpret_cast< wxValidator * >(argp9);
44387 }
44388 if (obj9) {
44389 {
44390 arg10 = wxString_in_helper(obj9);
44391 if (arg10 == NULL) SWIG_fail;
44392 temp10 = true;
44393 }
44394 }
44395 {
44396 PyThreadState* __tstate = wxPyBeginAllowThreads();
44397 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
44398 wxPyEndAllowThreads(__tstate);
44399 if (PyErr_Occurred()) SWIG_fail;
44400 }
44401 {
44402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44403 }
44404 {
44405 if (temp4)
44406 delete arg4;
44407 }
44408 {
44409 if (temp5)
44410 delete arg5;
44411 }
44412 {
44413 if (temp10)
44414 delete arg10;
44415 }
44416 return resultobj;
44417fail:
44418 {
44419 if (temp4)
44420 delete arg4;
44421 }
44422 {
44423 if (temp5)
44424 delete arg5;
44425 }
44426 {
44427 if (temp10)
44428 delete arg10;
44429 }
44430 return NULL;
44431}
44432
44433
44434SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44435 PyObject *resultobj = 0;
44436 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44437 wxString result;
44438 void *argp1 = 0 ;
44439 int res1 = 0 ;
44440 PyObject *swig_obj[1] ;
44441
44442 if (!args) SWIG_fail;
44443 swig_obj[0] = args;
44444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44445 if (!SWIG_IsOK(res1)) {
44446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44447 }
44448 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44449 {
44450 PyThreadState* __tstate = wxPyBeginAllowThreads();
44451 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44452 wxPyEndAllowThreads(__tstate);
44453 if (PyErr_Occurred()) SWIG_fail;
44454 }
44455 {
44456#if wxUSE_UNICODE
44457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44458#else
44459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44460#endif
44461 }
44462 return resultobj;
44463fail:
44464 return NULL;
44465}
44466
44467
44468SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44469 PyObject *resultobj = 0;
44470 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44471 wxString *arg2 = 0 ;
44472 void *argp1 = 0 ;
44473 int res1 = 0 ;
44474 bool temp2 = false ;
44475 PyObject * obj0 = 0 ;
44476 PyObject * obj1 = 0 ;
44477 char * kwnames[] = {
44478 (char *) "self",(char *) "str", NULL
44479 };
44480
44481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44483 if (!SWIG_IsOK(res1)) {
44484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44485 }
44486 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44487 {
44488 arg2 = wxString_in_helper(obj1);
44489 if (arg2 == NULL) SWIG_fail;
44490 temp2 = true;
44491 }
44492 {
44493 PyThreadState* __tstate = wxPyBeginAllowThreads();
44494 (arg1)->SetPath((wxString const &)*arg2);
44495 wxPyEndAllowThreads(__tstate);
44496 if (PyErr_Occurred()) SWIG_fail;
44497 }
44498 resultobj = SWIG_Py_Void();
44499 {
44500 if (temp2)
44501 delete arg2;
44502 }
44503 return resultobj;
44504fail:
44505 {
44506 if (temp2)
44507 delete arg2;
44508 }
44509 return NULL;
44510}
44511
44512
b02396e8
RD
44513SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44514 PyObject *resultobj = 0;
44515 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44516 wxString *arg2 = 0 ;
44517 bool result;
44518 void *argp1 = 0 ;
44519 int res1 = 0 ;
44520 bool temp2 = false ;
44521 PyObject * obj0 = 0 ;
44522 PyObject * obj1 = 0 ;
44523 char * kwnames[] = {
44524 (char *) "self",(char *) "path", NULL
44525 };
44526
44527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44529 if (!SWIG_IsOK(res1)) {
44530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44531 }
44532 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44533 {
44534 arg2 = wxString_in_helper(obj1);
44535 if (arg2 == NULL) SWIG_fail;
44536 temp2 = true;
44537 }
44538 {
44539 PyThreadState* __tstate = wxPyBeginAllowThreads();
44540 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44541 wxPyEndAllowThreads(__tstate);
44542 if (PyErr_Occurred()) SWIG_fail;
44543 }
44544 {
44545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44546 }
44547 {
44548 if (temp2)
44549 delete arg2;
44550 }
44551 return resultobj;
44552fail:
44553 {
44554 if (temp2)
44555 delete arg2;
44556 }
44557 return NULL;
44558}
44559
44560
44561SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44562 PyObject *resultobj = 0;
44563 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44564 wxString result;
44565 void *argp1 = 0 ;
44566 int res1 = 0 ;
44567 PyObject *swig_obj[1] ;
44568
44569 if (!args) SWIG_fail;
44570 swig_obj[0] = args;
44571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44572 if (!SWIG_IsOK(res1)) {
44573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44574 }
44575 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44576 {
44577 PyThreadState* __tstate = wxPyBeginAllowThreads();
44578 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44579 wxPyEndAllowThreads(__tstate);
44580 if (PyErr_Occurred()) SWIG_fail;
44581 }
44582 {
44583#if wxUSE_UNICODE
44584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44585#else
44586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44587#endif
44588 }
44589 return resultobj;
44590fail:
44591 return NULL;
44592}
44593
44594
b850e7f3
RD
44595SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44596 PyObject *obj;
44597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44598 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44599 return SWIG_Py_Void();
44600}
44601
44602SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44603 return SWIG_Python_InitShadowInstance(args);
44604}
44605
44606SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44607 PyObject *resultobj = 0;
44608 wxEventType arg1 ;
44609 wxObject *arg2 = (wxObject *) 0 ;
44610 int arg3 ;
44611 wxString *arg4 = 0 ;
44612 wxFileDirPickerEvent *result = 0 ;
44613 int val1 ;
44614 int ecode1 = 0 ;
44615 void *argp2 = 0 ;
44616 int res2 = 0 ;
44617 int val3 ;
44618 int ecode3 = 0 ;
44619 bool temp4 = false ;
44620 PyObject * obj0 = 0 ;
44621 PyObject * obj1 = 0 ;
44622 PyObject * obj2 = 0 ;
44623 PyObject * obj3 = 0 ;
44624 char * kwnames[] = {
44625 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44626 };
44627
44628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44629 ecode1 = SWIG_AsVal_int(obj0, &val1);
44630 if (!SWIG_IsOK(ecode1)) {
44631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44632 }
44633 arg1 = static_cast< wxEventType >(val1);
44634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44635 if (!SWIG_IsOK(res2)) {
44636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44637 }
44638 arg2 = reinterpret_cast< wxObject * >(argp2);
44639 ecode3 = SWIG_AsVal_int(obj2, &val3);
44640 if (!SWIG_IsOK(ecode3)) {
44641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44642 }
44643 arg3 = static_cast< int >(val3);
44644 {
44645 arg4 = wxString_in_helper(obj3);
44646 if (arg4 == NULL) SWIG_fail;
44647 temp4 = true;
44648 }
44649 {
44650 PyThreadState* __tstate = wxPyBeginAllowThreads();
44651 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44652 wxPyEndAllowThreads(__tstate);
44653 if (PyErr_Occurred()) SWIG_fail;
44654 }
44655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44656 {
44657 if (temp4)
44658 delete arg4;
44659 }
44660 return resultobj;
44661fail:
44662 {
44663 if (temp4)
44664 delete arg4;
44665 }
44666 return NULL;
44667}
44668
44669
44670SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44671 PyObject *resultobj = 0;
44672 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44673 wxString result;
44674 void *argp1 = 0 ;
44675 int res1 = 0 ;
44676 PyObject *swig_obj[1] ;
44677
44678 if (!args) SWIG_fail;
44679 swig_obj[0] = args;
44680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44681 if (!SWIG_IsOK(res1)) {
44682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44683 }
44684 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44685 {
44686 PyThreadState* __tstate = wxPyBeginAllowThreads();
44687 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44688 wxPyEndAllowThreads(__tstate);
44689 if (PyErr_Occurred()) SWIG_fail;
44690 }
44691 {
44692#if wxUSE_UNICODE
44693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44694#else
44695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44696#endif
44697 }
44698 return resultobj;
44699fail:
44700 return NULL;
44701}
44702
44703
44704SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44705 PyObject *resultobj = 0;
44706 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44707 wxString *arg2 = 0 ;
44708 void *argp1 = 0 ;
44709 int res1 = 0 ;
44710 bool temp2 = false ;
44711 PyObject * obj0 = 0 ;
44712 PyObject * obj1 = 0 ;
44713 char * kwnames[] = {
44714 (char *) "self",(char *) "p", NULL
44715 };
44716
44717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44719 if (!SWIG_IsOK(res1)) {
44720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44721 }
44722 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44723 {
44724 arg2 = wxString_in_helper(obj1);
44725 if (arg2 == NULL) SWIG_fail;
44726 temp2 = true;
44727 }
44728 {
44729 PyThreadState* __tstate = wxPyBeginAllowThreads();
44730 (arg1)->SetPath((wxString const &)*arg2);
44731 wxPyEndAllowThreads(__tstate);
44732 if (PyErr_Occurred()) SWIG_fail;
44733 }
44734 resultobj = SWIG_Py_Void();
44735 {
44736 if (temp2)
44737 delete arg2;
44738 }
44739 return resultobj;
44740fail:
44741 {
44742 if (temp2)
44743 delete arg2;
44744 }
44745 return NULL;
44746}
44747
44748
44749SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44750 PyObject *obj;
44751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44752 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44753 return SWIG_Py_Void();
44754}
44755
44756SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44757 return SWIG_Python_InitShadowInstance(args);
44758}
44759
44760SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44761 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44762 return 1;
44763}
44764
44765
44766SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44767 PyObject *pyobj = 0;
44768
44769 {
44770#if wxUSE_UNICODE
44771 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44772#else
44773 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44774#endif
44775 }
44776 return pyobj;
44777}
44778
44779
44780SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44781 PyObject *resultobj = 0;
44782 wxWindow *arg1 = (wxWindow *) 0 ;
44783 int arg2 = (int) -1 ;
44784 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44785 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44786 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44787 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44788 wxSize const &arg5_defvalue = wxDefaultSize ;
44789 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44790 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44791 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44792 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44793 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44794 wxString *arg8 = (wxString *) &arg8_defvalue ;
44795 wxFontPickerCtrl *result = 0 ;
44796 void *argp1 = 0 ;
44797 int res1 = 0 ;
44798 int val2 ;
44799 int ecode2 = 0 ;
44800 void *argp3 = 0 ;
44801 int res3 = 0 ;
44802 wxPoint temp4 ;
44803 wxSize temp5 ;
44804 long val6 ;
44805 int ecode6 = 0 ;
44806 void *argp7 = 0 ;
44807 int res7 = 0 ;
44808 bool temp8 = false ;
44809 PyObject * obj0 = 0 ;
44810 PyObject * obj1 = 0 ;
44811 PyObject * obj2 = 0 ;
44812 PyObject * obj3 = 0 ;
44813 PyObject * obj4 = 0 ;
44814 PyObject * obj5 = 0 ;
44815 PyObject * obj6 = 0 ;
44816 PyObject * obj7 = 0 ;
44817 char * kwnames[] = {
44818 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44819 };
44820
44821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44823 if (!SWIG_IsOK(res1)) {
44824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44825 }
44826 arg1 = reinterpret_cast< wxWindow * >(argp1);
44827 if (obj1) {
44828 ecode2 = SWIG_AsVal_int(obj1, &val2);
44829 if (!SWIG_IsOK(ecode2)) {
44830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44831 }
44832 arg2 = static_cast< int >(val2);
44833 }
44834 if (obj2) {
44835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44836 if (!SWIG_IsOK(res3)) {
44837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44838 }
44839 if (!argp3) {
44840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44841 }
44842 arg3 = reinterpret_cast< wxFont * >(argp3);
44843 }
44844 if (obj3) {
44845 {
44846 arg4 = &temp4;
44847 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44848 }
44849 }
44850 if (obj4) {
44851 {
44852 arg5 = &temp5;
44853 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44854 }
44855 }
44856 if (obj5) {
44857 ecode6 = SWIG_AsVal_long(obj5, &val6);
44858 if (!SWIG_IsOK(ecode6)) {
44859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44860 }
44861 arg6 = static_cast< long >(val6);
44862 }
44863 if (obj6) {
44864 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44865 if (!SWIG_IsOK(res7)) {
44866 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44867 }
44868 if (!argp7) {
44869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44870 }
44871 arg7 = reinterpret_cast< wxValidator * >(argp7);
44872 }
44873 if (obj7) {
44874 {
44875 arg8 = wxString_in_helper(obj7);
44876 if (arg8 == NULL) SWIG_fail;
44877 temp8 = true;
44878 }
44879 }
44880 {
44881 if (!wxPyCheckForApp()) SWIG_fail;
44882 PyThreadState* __tstate = wxPyBeginAllowThreads();
44883 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44884 wxPyEndAllowThreads(__tstate);
44885 if (PyErr_Occurred()) SWIG_fail;
44886 }
44887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44888 {
44889 if (temp8)
44890 delete arg8;
44891 }
44892 return resultobj;
44893fail:
44894 {
44895 if (temp8)
44896 delete arg8;
44897 }
44898 return NULL;
44899}
44900
44901
44902SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44903 PyObject *resultobj = 0;
44904 wxFontPickerCtrl *result = 0 ;
44905
44906 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44907 {
44908 if (!wxPyCheckForApp()) SWIG_fail;
44909 PyThreadState* __tstate = wxPyBeginAllowThreads();
44910 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44911 wxPyEndAllowThreads(__tstate);
44912 if (PyErr_Occurred()) SWIG_fail;
44913 }
44914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44915 return resultobj;
44916fail:
44917 return NULL;
44918}
44919
44920
44921SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44922 PyObject *resultobj = 0;
44923 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44924 wxWindow *arg2 = (wxWindow *) 0 ;
44925 int arg3 = (int) -1 ;
44926 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44927 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44928 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44929 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44930 wxSize const &arg6_defvalue = wxDefaultSize ;
44931 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44932 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44933 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44934 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44935 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44936 wxString *arg9 = (wxString *) &arg9_defvalue ;
44937 bool result;
44938 void *argp1 = 0 ;
44939 int res1 = 0 ;
44940 void *argp2 = 0 ;
44941 int res2 = 0 ;
44942 int val3 ;
44943 int ecode3 = 0 ;
44944 void *argp4 = 0 ;
44945 int res4 = 0 ;
44946 wxPoint temp5 ;
44947 wxSize temp6 ;
44948 long val7 ;
44949 int ecode7 = 0 ;
44950 void *argp8 = 0 ;
44951 int res8 = 0 ;
44952 bool temp9 = false ;
44953 PyObject * obj0 = 0 ;
44954 PyObject * obj1 = 0 ;
44955 PyObject * obj2 = 0 ;
44956 PyObject * obj3 = 0 ;
44957 PyObject * obj4 = 0 ;
44958 PyObject * obj5 = 0 ;
44959 PyObject * obj6 = 0 ;
44960 PyObject * obj7 = 0 ;
44961 PyObject * obj8 = 0 ;
44962 char * kwnames[] = {
44963 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44964 };
44965
44966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44968 if (!SWIG_IsOK(res1)) {
44969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44970 }
44971 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44973 if (!SWIG_IsOK(res2)) {
44974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44975 }
44976 arg2 = reinterpret_cast< wxWindow * >(argp2);
44977 if (obj2) {
44978 ecode3 = SWIG_AsVal_int(obj2, &val3);
44979 if (!SWIG_IsOK(ecode3)) {
44980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44981 }
44982 arg3 = static_cast< int >(val3);
44983 }
44984 if (obj3) {
44985 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44986 if (!SWIG_IsOK(res4)) {
44987 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44988 }
44989 if (!argp4) {
44990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44991 }
44992 arg4 = reinterpret_cast< wxFont * >(argp4);
44993 }
44994 if (obj4) {
44995 {
44996 arg5 = &temp5;
44997 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44998 }
44999 }
45000 if (obj5) {
45001 {
45002 arg6 = &temp6;
45003 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45004 }
45005 }
45006 if (obj6) {
45007 ecode7 = SWIG_AsVal_long(obj6, &val7);
45008 if (!SWIG_IsOK(ecode7)) {
45009 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45010 }
45011 arg7 = static_cast< long >(val7);
45012 }
45013 if (obj7) {
45014 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45015 if (!SWIG_IsOK(res8)) {
45016 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45017 }
45018 if (!argp8) {
45019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45020 }
45021 arg8 = reinterpret_cast< wxValidator * >(argp8);
45022 }
45023 if (obj8) {
45024 {
45025 arg9 = wxString_in_helper(obj8);
45026 if (arg9 == NULL) SWIG_fail;
45027 temp9 = true;
45028 }
45029 }
45030 {
45031 PyThreadState* __tstate = wxPyBeginAllowThreads();
45032 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45033 wxPyEndAllowThreads(__tstate);
45034 if (PyErr_Occurred()) SWIG_fail;
45035 }
45036 {
45037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45038 }
45039 {
45040 if (temp9)
45041 delete arg9;
45042 }
45043 return resultobj;
45044fail:
45045 {
45046 if (temp9)
45047 delete arg9;
45048 }
45049 return NULL;
45050}
45051
45052
45053SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45054 PyObject *resultobj = 0;
45055 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45056 wxFont result;
45057 void *argp1 = 0 ;
45058 int res1 = 0 ;
45059 PyObject *swig_obj[1] ;
45060
45061 if (!args) SWIG_fail;
45062 swig_obj[0] = args;
45063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45064 if (!SWIG_IsOK(res1)) {
45065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45066 }
45067 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45068 {
45069 PyThreadState* __tstate = wxPyBeginAllowThreads();
45070 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45071 wxPyEndAllowThreads(__tstate);
45072 if (PyErr_Occurred()) SWIG_fail;
45073 }
45074 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45075 return resultobj;
45076fail:
45077 return NULL;
45078}
45079
45080
45081SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45082 PyObject *resultobj = 0;
45083 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45084 wxFont *arg2 = 0 ;
45085 void *argp1 = 0 ;
45086 int res1 = 0 ;
45087 void *argp2 = 0 ;
45088 int res2 = 0 ;
45089 PyObject * obj0 = 0 ;
45090 PyObject * obj1 = 0 ;
45091 char * kwnames[] = {
45092 (char *) "self",(char *) "f", NULL
45093 };
45094
45095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45097 if (!SWIG_IsOK(res1)) {
45098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45099 }
45100 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45102 if (!SWIG_IsOK(res2)) {
45103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45104 }
45105 if (!argp2) {
45106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45107 }
45108 arg2 = reinterpret_cast< wxFont * >(argp2);
45109 {
45110 PyThreadState* __tstate = wxPyBeginAllowThreads();
45111 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45112 wxPyEndAllowThreads(__tstate);
45113 if (PyErr_Occurred()) SWIG_fail;
45114 }
45115 resultobj = SWIG_Py_Void();
45116 return resultobj;
45117fail:
45118 return NULL;
45119}
45120
45121
45122SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45123 PyObject *resultobj = 0;
45124 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45125 unsigned int arg2 ;
45126 void *argp1 = 0 ;
45127 int res1 = 0 ;
45128 unsigned int val2 ;
45129 int ecode2 = 0 ;
45130 PyObject * obj0 = 0 ;
45131 PyObject * obj1 = 0 ;
45132 char * kwnames[] = {
45133 (char *) "self",(char *) "max", NULL
45134 };
45135
45136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45138 if (!SWIG_IsOK(res1)) {
45139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45140 }
45141 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45142 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45143 if (!SWIG_IsOK(ecode2)) {
45144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45145 }
45146 arg2 = static_cast< unsigned int >(val2);
45147 {
45148 PyThreadState* __tstate = wxPyBeginAllowThreads();
45149 (arg1)->SetMaxPointSize(arg2);
45150 wxPyEndAllowThreads(__tstate);
45151 if (PyErr_Occurred()) SWIG_fail;
45152 }
45153 resultobj = SWIG_Py_Void();
45154 return resultobj;
45155fail:
45156 return NULL;
45157}
45158
45159
45160SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45161 PyObject *resultobj = 0;
45162 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45163 unsigned int result;
45164 void *argp1 = 0 ;
45165 int res1 = 0 ;
45166 PyObject *swig_obj[1] ;
45167
45168 if (!args) SWIG_fail;
45169 swig_obj[0] = args;
45170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45171 if (!SWIG_IsOK(res1)) {
45172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45173 }
45174 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45175 {
45176 PyThreadState* __tstate = wxPyBeginAllowThreads();
45177 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45178 wxPyEndAllowThreads(__tstate);
45179 if (PyErr_Occurred()) SWIG_fail;
45180 }
45181 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45182 return resultobj;
45183fail:
45184 return NULL;
45185}
45186
45187
45188SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45189 PyObject *obj;
45190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45191 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45192 return SWIG_Py_Void();
45193}
45194
45195SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45196 return SWIG_Python_InitShadowInstance(args);
45197}
45198
45199SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45200 PyObject *resultobj = 0;
45201 wxObject *arg1 = (wxObject *) 0 ;
45202 int arg2 ;
45203 wxFont *arg3 = 0 ;
45204 wxFontPickerEvent *result = 0 ;
45205 void *argp1 = 0 ;
45206 int res1 = 0 ;
45207 int val2 ;
45208 int ecode2 = 0 ;
45209 void *argp3 = 0 ;
45210 int res3 = 0 ;
45211 PyObject * obj0 = 0 ;
45212 PyObject * obj1 = 0 ;
45213 PyObject * obj2 = 0 ;
45214 char * kwnames[] = {
45215 (char *) "generator",(char *) "id",(char *) "f", NULL
45216 };
45217
45218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45220 if (!SWIG_IsOK(res1)) {
45221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45222 }
45223 arg1 = reinterpret_cast< wxObject * >(argp1);
45224 ecode2 = SWIG_AsVal_int(obj1, &val2);
45225 if (!SWIG_IsOK(ecode2)) {
45226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45227 }
45228 arg2 = static_cast< int >(val2);
45229 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45230 if (!SWIG_IsOK(res3)) {
45231 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45232 }
45233 if (!argp3) {
45234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45235 }
45236 arg3 = reinterpret_cast< wxFont * >(argp3);
45237 {
45238 PyThreadState* __tstate = wxPyBeginAllowThreads();
45239 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45240 wxPyEndAllowThreads(__tstate);
45241 if (PyErr_Occurred()) SWIG_fail;
45242 }
45243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45244 return resultobj;
45245fail:
45246 return NULL;
45247}
45248
45249
45250SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45251 PyObject *resultobj = 0;
45252 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45253 wxFont result;
45254 void *argp1 = 0 ;
45255 int res1 = 0 ;
45256 PyObject *swig_obj[1] ;
45257
45258 if (!args) SWIG_fail;
45259 swig_obj[0] = args;
45260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45261 if (!SWIG_IsOK(res1)) {
45262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45263 }
45264 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45265 {
45266 PyThreadState* __tstate = wxPyBeginAllowThreads();
45267 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45268 wxPyEndAllowThreads(__tstate);
45269 if (PyErr_Occurred()) SWIG_fail;
45270 }
45271 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45272 return resultobj;
45273fail:
45274 return NULL;
45275}
45276
45277
45278SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45279 PyObject *resultobj = 0;
45280 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45281 wxFont *arg2 = 0 ;
45282 void *argp1 = 0 ;
45283 int res1 = 0 ;
45284 void *argp2 = 0 ;
45285 int res2 = 0 ;
45286 PyObject * obj0 = 0 ;
45287 PyObject * obj1 = 0 ;
45288 char * kwnames[] = {
45289 (char *) "self",(char *) "c", NULL
45290 };
45291
45292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45294 if (!SWIG_IsOK(res1)) {
45295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45296 }
45297 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45299 if (!SWIG_IsOK(res2)) {
45300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45301 }
45302 if (!argp2) {
45303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45304 }
45305 arg2 = reinterpret_cast< wxFont * >(argp2);
45306 {
45307 PyThreadState* __tstate = wxPyBeginAllowThreads();
45308 (arg1)->SetFont((wxFont const &)*arg2);
45309 wxPyEndAllowThreads(__tstate);
45310 if (PyErr_Occurred()) SWIG_fail;
45311 }
45312 resultobj = SWIG_Py_Void();
45313 return resultobj;
45314fail:
45315 return NULL;
45316}
45317
45318
45319SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45320 PyObject *obj;
45321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45322 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45323 return SWIG_Py_Void();
45324}
45325
45326SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45327 return SWIG_Python_InitShadowInstance(args);
45328}
45329
45330static PyMethodDef SwigMethods[] = {
45331 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45333 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45335 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45336 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45338 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45339 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45341 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45343 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45344 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45345 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45346 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45347 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45351 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45354 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45355 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45356 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45357 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45359 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45361 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45362 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45364 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45366 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45367 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45369 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45370 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45372 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45374 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45376 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45377 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45378 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45379 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45381 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45383 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45384 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45385 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45387 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45388 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45389 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45391 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45395 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45397 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45398 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45399 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45400 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45401 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45402 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45403 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45404 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45405 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45407 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45408 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45410 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45413 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 45415 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
45416 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45417 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45419 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45421 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45423 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45424 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45426 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45429 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45430 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45432 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45434 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45435 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45437 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45438 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45440 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45444 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45445 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45447 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45449 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45453 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45454 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45456 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45467 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45472 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45478 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45479 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45481 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45485 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45486 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45488 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45489 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45495 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45496 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45499 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45500 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45501 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45502 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45503 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45504 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45505 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45507 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45508 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45509 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45510 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45511 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45512 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45513 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45514 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45515 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45516 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45518 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45519 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45521 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45523 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
45524 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
45525 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45526 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45530 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45531 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45532 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45533 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45534 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45535 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45536 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45537 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45542 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45543 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45544 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45552 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45558 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45559 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45560 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45561 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45562 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45563 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45564 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45565 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45566 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45567 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45569 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45570 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45571 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45573 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 45574 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
45575 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45579 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45580 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45582 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45583 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45584 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45585 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45586 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45588 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45590 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45591 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45592 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45593 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45594 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45597 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45598 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45600 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45602 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45603 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45604 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45609 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45611 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45612 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45614 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45616 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45620 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45621 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45624 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45625 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45627 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45629 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45630 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45632 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45635 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45636 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45638 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45642 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45646 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45647 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45654 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45655 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45657 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45659 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45662 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45663 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45665 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45667 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45670 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45671 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45676 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45677 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45679 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45681 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45682 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45684 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45685 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45686 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45689 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45690 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45692 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45695 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45697 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45698 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45699 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45701 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45702 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45707 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45712 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45714 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 45715 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
45716 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45718 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
45719 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45722 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 45725 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 45726 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45727 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45728 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45730 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45732 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45734 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45736 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45737 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45739 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45741 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45743 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45744 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
45745 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45747 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45748 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45749 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45751 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45752 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45754 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45756 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45757 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45758 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45760 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45761 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45763 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45765 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45766 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45767 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45769 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45770 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45772 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45780 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45781 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45782 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45784 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45785 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45787 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45789 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45790 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45791 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45792 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45794 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45795 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45796 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45797 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45798 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45799 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45800 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45801 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45802 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45803 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45804 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45805 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45806 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45807 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45808 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45809 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45810 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45811 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45812 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45814 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45821 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45823 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45825 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45833 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45838 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45839 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45856 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45857 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45858 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45859 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45862 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45863 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45865 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45866 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45869 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45870 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45871 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45873 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45874 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45876 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45877 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45879 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45883 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45884 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45885 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45886 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45887 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45888 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45890 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45891 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45892 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45893 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45894 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45895 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45896 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45910 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45911 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45912 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45913 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45914 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45915 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45916 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45917 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45918 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45919 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45920 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45921 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45922 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45923 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45924 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45925 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45926 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45927 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45928 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45929 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45930 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45931 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45932 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45933 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45934 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45935 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45936 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45937 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45938 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45939 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45940 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45941 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45942 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45943 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45944 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45945 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45947 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45948 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45949 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45950 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45951 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45952 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45953 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45954 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45955 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45956 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45957 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45958 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45959 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45960 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45961 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45962 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45963 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45964 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45965 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45966 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45967 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45968 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45969 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45970 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45972 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45973 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45975 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45982 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45983 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45984 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45999 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46000 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46001 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46003 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46004 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46006 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46012 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46013 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46018 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46020 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46021 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46027 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46028 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46044 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46046 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46047 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46049 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46053 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46055 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46059 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46060 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46061 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46062 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46063 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46066 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46067 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46068 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46069 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46071 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46072 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46074 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46076 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46077 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46078 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
46079 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46080 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46082 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46084 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46086 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46087 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46089 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46091 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46094 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46095 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46096 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46098 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46101 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46102 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46104 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46106 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46107 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46135 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46136 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46137 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46144 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46154 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
46155 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
46157 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46161 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46163 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46169 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46173 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
46175 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46176 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46177 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46179 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46180 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46181 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46182 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46183 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46185 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46186 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46187 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46189 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46190 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46192 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46194 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46195 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46196 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46198 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46199 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46200 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46201 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46203 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46206 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46207 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46209 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46210 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46211 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46216 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46217 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46218 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46219 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46220 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46221 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46222 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46223 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46224 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46226 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46228 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46230 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46231 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46232 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46233 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46234 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46235 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46237 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46239 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46240 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46241 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46243 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46244 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
46245 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46247 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46249 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46250 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46254 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46255 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46256 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46257 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46258 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46262 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46264 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46268 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46269 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46270 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46271 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46274 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46276 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46277 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46279 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46280 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46282 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46284 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46285 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46286 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46287 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46289 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46291 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46293 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46295 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46296 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46297 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46300 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46301 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46302 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46304 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46306 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46307 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46310 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46312 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46314 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46315 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46317 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46318 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46319 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46320 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46321 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46322 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46323 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46324 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46326 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46328 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46329 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46331 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46333 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46334 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46336 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46338 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46339 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46341 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46342 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46343 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46345 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46347 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46348 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46350 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46351 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46352 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46354 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46356 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46357 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46359 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46361 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46364 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46365 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46366 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46368 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46369 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46370 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46371 { NULL, NULL, 0, NULL }
46372};
46373
46374
46375/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46376
46377static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46378 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46379}
46380static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46381 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46382}
46383static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46384 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46385}
46386static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46387 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46388}
46389static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46390 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46391}
46392static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46393 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46394}
46395static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46396 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46397}
46398static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46399 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46400}
b850e7f3
RD
46401static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46402 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46403}
46404static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46405 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46406}
46407static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46408 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46409}
1bd55598
RD
46410static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46411 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46412}
46413static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46414 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46415}
46416static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46417 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46418}
1bd55598
RD
46419static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46420 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46421}
34e0a3bb
RD
46422static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46423 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46424}
2131d850
RD
46425static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46426 return (void *)((wxEvent *) ((wxPyEvent *) x));
46427}
1bd55598
RD
46428static void *_p_wxListEventTo_p_wxEvent(void *x) {
46429 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46430}
46431static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46432 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46433}
46434static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46435 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46436}
46437static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46438 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46439}
46440static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46441 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46442}
46443static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46444 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46445}
46446static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46447 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46448}
46449static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46450 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46451}
46452static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46453 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46454}
46455static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46456 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46457}
46458static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46459 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46460}
46461static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46462 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46463}
46464static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46465 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46466}
46467static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46468 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46469}
46470static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46471 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46472}
46473static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46474 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46475}
46476static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46477 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46478}
46479static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46480 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46481}
34e0a3bb
RD
46482static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46483 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46484}
1bd55598
RD
46485static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46486 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46487}
46488static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46489 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46490}
46491static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46492 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46493}
46494static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46495 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46496}
46497static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46498 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46499}
704eda0c
RD
46500static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46501 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46502}
1bd55598
RD
46503static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46504 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46505}
46506static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46507 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46508}
46509static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46510 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46511}
46512static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46513 return (void *)((wxEvent *) ((wxShowEvent *) x));
46514}
46515static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46516 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46517}
46518static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46519 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46520}
46521static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46522 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46523}
46524static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46525 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46526}
46527static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46528 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46529}
46530static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46531 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46532}
46533static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46534 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46535}
b850e7f3
RD
46536static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46537 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46538}
46539static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46540 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46541}
46542static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46543 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46544}
46545static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46546 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46547}
1bd55598
RD
46548static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46549 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46550}
46551static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46552 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46553}
46554static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46555 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46556}
46557static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46558 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46559}
46560static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46561 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46562}
46563static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46564 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46565}
46566static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46567 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46568}
46569static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46570 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46571}
46572static void *_p_wxToolBarTo_p_wxControl(void *x) {
46573 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46574}
b850e7f3
RD
46575static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46576 return (void *)((wxControl *) ((wxPickerBase *) x));
46577}
1bd55598
RD
46578static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46579 return (void *)((wxControl *) ((wxToggleButton *) x));
46580}
46581static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46582 return (void *)((wxControl *) ((wxRadioButton *) x));
46583}
46584static void *_p_wxToolbookTo_p_wxControl(void *x) {
46585 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46586}
46587static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46588 return (void *)((wxControl *) ((wxToolBarBase *) x));
46589}
46590static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46591 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46592}
46593static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46594 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46595}
46596static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46597 return (void *)((wxControl *) ((wxComboBox *) x));
46598}
46599static void *_p_wxPyControlTo_p_wxControl(void *x) {
46600 return (void *)((wxControl *) ((wxPyControl *) x));
46601}
46602static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46603 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46604}
46605static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46606 return (void *)((wxControl *) ((wxScrollBar *) x));
46607}
46608static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46609 return (void *)((wxControl *) ((wxControlWithItems *) x));
46610}
46611static void *_p_wxGaugeTo_p_wxControl(void *x) {
46612 return (void *)((wxControl *) ((wxGauge *) x));
46613}
46614static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46615 return (void *)((wxControl *) ((wxStaticLine *) x));
46616}
46617static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46618 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46619}
46620static void *_p_wxListbookTo_p_wxControl(void *x) {
46621 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46622}
704eda0c
RD
46623static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46624 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46625}
1bd55598
RD
46626static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46627 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46628}
46629static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46630 return (void *)((wxControl *) ((wxCheckBox *) x));
46631}
46632static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46633 return (void *)((wxControl *) ((wxRadioBox *) x));
46634}
46635static void *_p_wxChoiceTo_p_wxControl(void *x) {
46636 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46637}
46638static void *_p_wxListBoxTo_p_wxControl(void *x) {
46639 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46640}
46641static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46642 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46643}
46644static void *_p_wxListViewTo_p_wxControl(void *x) {
46645 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46646}
46647static void *_p_wxNotebookTo_p_wxControl(void *x) {
46648 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46649}
46650static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46651 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46652}
46653static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46654 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46655}
46656static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46657 return (void *)((wxControl *) ((wxStaticText *) x));
46658}
46659static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46660 return (void *)((wxControl *) ((wxStaticBox *) x));
46661}
46662static void *_p_wxSliderTo_p_wxControl(void *x) {
46663 return (void *)((wxControl *) ((wxSlider *) x));
46664}
46665static void *_p_wxTreebookTo_p_wxControl(void *x) {
46666 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46667}
46668static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46669 return (void *)((wxControl *) ((wxSpinButton *) x));
46670}
46671static void *_p_wxButtonTo_p_wxControl(void *x) {
46672 return (void *)((wxControl *) ((wxButton *) x));
46673}
46674static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46675 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46676}
46677static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46678 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46679}
46680static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46681 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46682}
b850e7f3
RD
46683static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46684 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46685}
46686static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46687 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46688}
46689static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46690 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46691}
46692static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46693 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46694}
1bd55598
RD
46695static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46696 return (void *)((wxControl *) ((wxTextCtrl *) x));
46697}
46698static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46699 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46700}
46701static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46702 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46703}
46704static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46705 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46706}
46707static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46708 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46709}
46710static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46711 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46712}
46713static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46714 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46715}
46716static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46717 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46718}
46719static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46720 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46721}
46722static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46723 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46724}
46725static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46726 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46727}
46728static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46729 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46730}
46731static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46732 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46733}
46734static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46735 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46736}
46737static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46738 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46739}
46740static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46741 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46742}
46743static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46744 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46745}
46746static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46747 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46748}
46749static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46750 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46751}
46752static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46753 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46754}
46755static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46756 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46757}
46758static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46759 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46760}
b850e7f3
RD
46761static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46762 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46763}
1bd55598
RD
46764static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46765 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46766}
46767static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46768 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46769}
46770static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46771 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46772}
46773static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46774 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46775}
46776static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46777 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46778}
46779static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46780 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46781}
46782static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46783 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46784}
46785static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46786 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46787}
46788static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46789 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46790}
46791static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46792 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46793}
46794static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46795 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46796}
46797static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46798 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46799}
46800static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46801 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46802}
46803static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46804 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46805}
46806static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46807 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46808}
46809static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46810 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46811}
46812static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46813 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46814}
46815static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46816 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46817}
46818static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46819 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46820}
704eda0c
RD
46821static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46822 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46823}
1bd55598
RD
46824static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46825 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46826}
46827static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46828 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46829}
46830static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46831 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46832}
46833static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46834 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46835}
46836static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46837 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46838}
46839static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46840 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46841}
46842static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46843 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46844}
46845static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46846 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46847}
46848static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46849 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46850}
46851static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46852 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46853}
46854static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46855 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46856}
46857static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46858 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46859}
46860static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46861 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46862}
46863static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46864 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46865}
46866static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46867 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46868}
46869static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46870 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46871}
46872static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46873 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46874}
46875static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46876 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46877}
46878static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46879 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46880}
b850e7f3
RD
46881static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46882 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46883}
46884static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46885 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46886}
46887static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46888 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46889}
46890static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46891 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46892}
1bd55598
RD
46893static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46894 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46895}
46896static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46897 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46898}
46899static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46900 return (void *)((wxButton *) ((wxBitmapButton *) x));
46901}
46902static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46903 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46904}
46905static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46906 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46907}
46908static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46909 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46910}
46911static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46913}
46914static void *_p_wxToolbookTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46916}
1bd55598
RD
46917static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) ((wxSizerItem *) x));
46919}
34e0a3bb
RD
46920static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46922}
1bd55598
RD
46923static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46925}
46926static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46928}
46929static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46931}
46932static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46934}
46935static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46937}
46938static void *_p_wxSizerTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) ((wxSizer *) x));
46940}
46941static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46943}
46944static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46946}
46947static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46949}
46950static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46952}
46953static void *_p_wxEventTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) ((wxEvent *) x));
46955}
46956static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46958}
46959static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46961}
46962static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46964}
46965static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46967}
b850e7f3
RD
46968static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46970}
1bd55598
RD
46971static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46973}
46974static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46976}
2131d850
RD
46977static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46979}
1bd55598
RD
46980static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46982}
46983static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46985}
46986static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46988}
46989static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46991}
46992static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46994}
46995static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46997}
46998static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47000}
47001static void *_p_wxControlTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47003}
47004static void *_p_wxPyControlTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47006}
47007static void *_p_wxGaugeTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47009}
47010static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47012}
47013static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47015}
47016static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47018}
47019static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47020 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47021}
b850e7f3
RD
47022static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47024}
47025static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47027}
47028static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47030}
1bd55598
RD
47031static void *_p_wxChoiceTo_p_wxObject(void *x) {
47032 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47033}
47034static void *_p_wxFSFileTo_p_wxObject(void *x) {
47035 return (void *)((wxObject *) ((wxFSFile *) x));
47036}
47037static void *_p_wxPySizerTo_p_wxObject(void *x) {
47038 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47039}
47040static void *_p_wxTreebookTo_p_wxObject(void *x) {
47041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47042}
47043static void *_p_wxListViewTo_p_wxObject(void *x) {
47044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47045}
704eda0c
RD
47046static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47048}
1bd55598
RD
47049static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47051}
47052static void *_p_wxNotebookTo_p_wxObject(void *x) {
47053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47054}
47055static void *_p_wxPyEventTo_p_wxObject(void *x) {
47056 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47057}
47058static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47060}
47061static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47062 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47063}
47064static void *_p_wxListbookTo_p_wxObject(void *x) {
47065 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47066}
47067static void *_p_wxShowEventTo_p_wxObject(void *x) {
47068 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47069}
47070static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47072}
47073static void *_p_wxSliderTo_p_wxObject(void *x) {
47074 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47075}
47076static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47077 return (void *)((wxObject *) ((wxMenuItem *) x));
47078}
47079static void *_p_wxDateEventTo_p_wxObject(void *x) {
47080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47081}
47082static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47083 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47084}
47085static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47086 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47087}
47088static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47089 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47090}
47091static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47092 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47093}
47094static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47095 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47096}
47097static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47098 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47099}
47100static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47101 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47102}
47103static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47104 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47105}
47106static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47107 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47108}
47109static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47110 return (void *)((wxObject *) ((wxContextHelp *) x));
47111}
47112static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47114}
47115static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47116 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47117}
47118static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47119 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47120}
47121static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47122 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47123}
47124static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47125 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47126}
47127static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47128 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47129}
47130static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47131 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47132}
47133static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47134 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47135}
47136static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47137 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47138}
47139static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47140 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47141}
47142static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47143 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47144}
47145static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47146 return (void *)((wxObject *) ((wxImageHandler *) x));
47147}
47148static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47149 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47150}
47151static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47152 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47153}
580080c5
RD
47154static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47155 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47156}
1bd55598
RD
47157static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47158 return (void *)((wxObject *) ((wxEvtHandler *) x));
47159}
34e0a3bb
RD
47160static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47161 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47162}
1bd55598
RD
47163static void *_p_wxListEventTo_p_wxObject(void *x) {
47164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47165}
47166static void *_p_wxListBoxTo_p_wxObject(void *x) {
47167 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47168}
47169static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47170 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47171}
47172static void *_p_wxButtonTo_p_wxObject(void *x) {
47173 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47174}
47175static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47177}
47178static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47180}
47181static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47183}
1bd55598
RD
47184static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47185 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47186}
580080c5
RD
47187static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47188 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47189}
1bd55598
RD
47190static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47192}
47193static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47195}
47196static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47197 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47198}
47199static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47201}
47202static void *_p_wxListItemTo_p_wxObject(void *x) {
47203 return (void *)((wxObject *) ((wxListItem *) x));
47204}
47205static void *_p_wxImageTo_p_wxObject(void *x) {
47206 return (void *)((wxObject *) ((wxImage *) x));
47207}
47208static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47209 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47210}
47211static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47212 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47213}
47214static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47215 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47216}
47217static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47218 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47219}
47220static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47221 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47222}
47223static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47225}
47226static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47228}
47229static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47231}
47232static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47233 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47234}
47235static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47236 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47237}
47238static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47239 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47240}
47241static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47242 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47243}
47244static void *_p_wxWindowTo_p_wxObject(void *x) {
47245 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47246}
47247static void *_p_wxMenuTo_p_wxObject(void *x) {
47248 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47249}
47250static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47251 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47252}
47253static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47254 return (void *)((wxObject *) ((wxFileSystem *) x));
47255}
47256static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47257 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47258}
47259static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47260 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47261}
47262static void *_p_wxPyAppTo_p_wxObject(void *x) {
47263 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47264}
47265static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47266 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47267}
47268static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47269 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47270}
47271static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47272 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47273}
47274static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47275 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47276}
47277static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47278 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47279}
47280static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47281 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47282}
47283static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47284 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47285}
47286static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47287 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47288}
47289static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47290 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47291}
47292static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47293 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47294}
47295static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47297}
47298static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47299 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47300}
b850e7f3
RD
47301static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47302 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47303}
47304static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47305 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47306}
47307static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47308 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47309}
47310static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47312}
1bd55598
RD
47313static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47314 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47315}
704eda0c
RD
47316static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47317 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47318}
1bd55598
RD
47319static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47320 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47321}
47322static void *_p_wxToolBarTo_p_wxObject(void *x) {
47323 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47324}
47325static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47326 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47327}
47328static void *_p_wxValidatorTo_p_wxObject(void *x) {
47329 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47330}
47331static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47332 return (void *)((wxWindow *) ((wxMenuBar *) x));
47333}
47334static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47335 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47336}
47337static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47338 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47339}
b850e7f3
RD
47340static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47341 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47342}
1bd55598
RD
47343static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47344 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47345}
47346static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47347 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47348}
47349static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47350 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47351}
47352static void *_p_wxControlTo_p_wxWindow(void *x) {
47353 return (void *)((wxWindow *) ((wxControl *) x));
47354}
47355static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47356 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47357}
47358static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47359 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47360}
47361static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47362 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47363}
47364static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47365 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47366}
47367static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47368 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47369}
47370static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47371 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47372}
47373static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47374 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47375}
47376static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47377 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47378}
47379static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47380 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47381}
47382static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47383 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47384}
47385static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47386 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47387}
47388static void *_p_wxListbookTo_p_wxWindow(void *x) {
47389 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47390}
704eda0c
RD
47391static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47392 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47393}
1bd55598
RD
47394static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47395 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47396}
47397static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47398 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47399}
47400static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47401 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47402}
47403static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47404 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47405}
47406static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47407 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47408}
47409static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47410 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47411}
47412static void *_p_wxListViewTo_p_wxWindow(void *x) {
47413 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47414}
47415static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47416 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47417}
47418static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47419 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47420}
47421static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47422 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47423}
47424static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47425 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47426}
47427static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47428 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47429}
47430static void *_p_wxSliderTo_p_wxWindow(void *x) {
47431 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47432}
47433static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47434 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47435}
47436static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47437 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47438}
47439static void *_p_wxButtonTo_p_wxWindow(void *x) {
47440 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47441}
47442static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47443 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47444}
47445static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47446 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47447}
47448static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47449 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47450}
b850e7f3
RD
47451static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47452 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47453}
47454static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47455 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47456}
47457static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47458 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47459}
47460static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47461 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47462}
1bd55598
RD
47463static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47464 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47465}
47466static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47467 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47468}
47469static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47470 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47471}
47472static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47473 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47474}
47475static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47476 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47477}
47478static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47479 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47480}
47481static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47482 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47483}
704eda0c
RD
47484static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47485 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47486}
2131d850
RD
47487static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47488 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47489}
b850e7f3
RD
47490static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47491 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47492}
47493static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47494 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47495}
47496static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47497 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47498}
1bd55598
RD
47499static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47500 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47501}
47502static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47503 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47504}
47505static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47506 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47507}
47508static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47509 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47510}
47511static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47512 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47513}
1bd55598
RD
47514static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47515 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47516}
2131d850
RD
47517static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47518 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47519}
1bd55598
RD
47520static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47521 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47522}
47523static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47524 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47525}
47526static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47527 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47528}
47529static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47530 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47531}
47532static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47533 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47534}
47535static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47536 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47537}
47538static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47539 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47540}
47541static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47542 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47543}
47544static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47545 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47546}
47547static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47548 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47549}
47550static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47551 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47552}
47553static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47554 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47555}
47556static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47557 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47558}
47559static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47560 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47561}
47562static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47563 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47564}
47565static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47566 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47567}
47568static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47569 return (void *)((wxValidator *) ((wxPyValidator *) x));
47570}
47571static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47572static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47573static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47574static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47575static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47576static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47577static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47578static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47579static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47580static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47581static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47582static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47583static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47584static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47585static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47586static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47587static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47588static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47589static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47590static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47591static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47592static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47593static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47594static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47595static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47596static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47597static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47598static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47599static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47600static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47601static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47602static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47603static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47604static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47605static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47606static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47607static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47608static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47609static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47610static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47611static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47612static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47613static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47614static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47615static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
47616static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47617static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47618static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47619static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47620static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47621static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47622static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47623static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47624static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47625static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47626static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47627static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47628static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47629static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47630static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47631static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47632static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47633static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47634static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47635static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47636static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47637static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47638static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47639static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47640static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47641static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47642static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47643static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47644static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47645static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47646static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47647static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47648static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47649static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 47650static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47651static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47652static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47653static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47654static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47655static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47656static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47657static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47658static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47659static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47660static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47661static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47662static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47663static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47664static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47665static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47666static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47667static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47668static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47669static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47670static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47671static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47672static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47673static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47674static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47675static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47676static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47677static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 47678static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47679static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
47680static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47681static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47682static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47683static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47684static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47685static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47686static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47687static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47688static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47689static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
47690static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47691static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47692static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47693static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47694static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47695static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47696static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47697static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47698static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47699static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47700static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
47701static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47702static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 47703static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
1bd55598 47704static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 47705static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
47706static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47707static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47708static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47709static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47710static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47711static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47712static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47713static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47714static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47715static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47716static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47717static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47718static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47719static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47720static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47721static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47722static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47723static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47724static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47725static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47726static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47727static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47728static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47729static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47730static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47731static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47732static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47733static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47734static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47735static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47736static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47737static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47738static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47739static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47740static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47741static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47742static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47743static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47744static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47745static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47746static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47747
47748static swig_type_info *swig_type_initial[] = {
47749 &_swigt__p_bool,
47750 &_swigt__p_char,
47751 &_swigt__p_form_ops_t,
47752 &_swigt__p_int,
47753 &_swigt__p_long,
47754 &_swigt__p_unsigned_char,
47755 &_swigt__p_unsigned_int,
47756 &_swigt__p_unsigned_long,
47757 &_swigt__p_void,
47758 &_swigt__p_wxANIHandler,
47759 &_swigt__p_wxAcceleratorTable,
47760 &_swigt__p_wxActivateEvent,
47761 &_swigt__p_wxArrayInt,
47762 &_swigt__p_wxArrayString,
47763 &_swigt__p_wxBMPHandler,
47764 &_swigt__p_wxBitmap,
47765 &_swigt__p_wxBitmapButton,
47766 &_swigt__p_wxBookCtrlBase,
47767 &_swigt__p_wxBookCtrlBaseEvent,
47768 &_swigt__p_wxBoxSizer,
47769 &_swigt__p_wxButton,
47770 &_swigt__p_wxCURHandler,
47771 &_swigt__p_wxCheckBox,
47772 &_swigt__p_wxCheckListBox,
47773 &_swigt__p_wxChildFocusEvent,
47774 &_swigt__p_wxChoice,
47775 &_swigt__p_wxChoicebook,
47776 &_swigt__p_wxChoicebookEvent,
2131d850 47777 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
47778 &_swigt__p_wxCloseEvent,
47779 &_swigt__p_wxColour,
b850e7f3
RD
47780 &_swigt__p_wxColourPickerCtrl,
47781 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
47782 &_swigt__p_wxComboBox,
47783 &_swigt__p_wxCommandEvent,
47784 &_swigt__p_wxContextHelp,
47785 &_swigt__p_wxContextHelpButton,
47786 &_swigt__p_wxContextMenuEvent,
47787 &_swigt__p_wxControl,
47788 &_swigt__p_wxControlWithItems,
47789 &_swigt__p_wxCursor,
47790 &_swigt__p_wxDC,
47791 &_swigt__p_wxDateEvent,
47792 &_swigt__p_wxDatePickerCtrl,
47793 &_swigt__p_wxDateTime,
47794 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47795 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
47796 &_swigt__p_wxDisplayChangedEvent,
47797 &_swigt__p_wxDropFilesEvent,
47798 &_swigt__p_wxDuplexMode,
47799 &_swigt__p_wxEraseEvent,
47800 &_swigt__p_wxEvent,
47801 &_swigt__p_wxEvtHandler,
47802 &_swigt__p_wxFSFile,
b850e7f3
RD
47803 &_swigt__p_wxFileDirPickerEvent,
47804 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
47805 &_swigt__p_wxFileSystem,
47806 &_swigt__p_wxFlexGridSizer,
47807 &_swigt__p_wxFocusEvent,
47808 &_swigt__p_wxFont,
b850e7f3
RD
47809 &_swigt__p_wxFontPickerCtrl,
47810 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
47811 &_swigt__p_wxGBSizerItem,
47812 &_swigt__p_wxGIFHandler,
47813 &_swigt__p_wxGauge,
47814 &_swigt__p_wxGenericDirCtrl,
47815 &_swigt__p_wxGenericDragImage,
47816 &_swigt__p_wxGridBagSizer,
47817 &_swigt__p_wxGridSizer,
47818 &_swigt__p_wxHelpEvent,
47819 &_swigt__p_wxHelpProvider,
704eda0c
RD
47820 &_swigt__p_wxHyperlinkCtrl,
47821 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
47822 &_swigt__p_wxICOHandler,
47823 &_swigt__p_wxIcon,
47824 &_swigt__p_wxIconizeEvent,
47825 &_swigt__p_wxIdleEvent,
47826 &_swigt__p_wxImage,
47827 &_swigt__p_wxImageHandler,
47828 &_swigt__p_wxImageList,
47829 &_swigt__p_wxIndividualLayoutConstraint,
47830 &_swigt__p_wxInitDialogEvent,
47831 &_swigt__p_wxItemContainer,
47832 &_swigt__p_wxJPEGHandler,
47833 &_swigt__p_wxKeyEvent,
47834 &_swigt__p_wxLayoutConstraints,
47835 &_swigt__p_wxListBox,
47836 &_swigt__p_wxListEvent,
47837 &_swigt__p_wxListItem,
47838 &_swigt__p_wxListItemAttr,
47839 &_swigt__p_wxListView,
47840 &_swigt__p_wxListbook,
47841 &_swigt__p_wxListbookEvent,
47842 &_swigt__p_wxMaximizeEvent,
47843 &_swigt__p_wxMemoryDC,
47844 &_swigt__p_wxMenu,
47845 &_swigt__p_wxMenuBar,
47846 &_swigt__p_wxMenuEvent,
47847 &_swigt__p_wxMenuItem,
47848 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47849 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
47850 &_swigt__p_wxMouseEvent,
47851 &_swigt__p_wxMoveEvent,
47852 &_swigt__p_wxNavigationKeyEvent,
47853 &_swigt__p_wxNcPaintEvent,
47854 &_swigt__p_wxNotebook,
47855 &_swigt__p_wxNotebookEvent,
47856 &_swigt__p_wxNotifyEvent,
47857 &_swigt__p_wxObject,
47858 &_swigt__p_wxPCXHandler,
47859 &_swigt__p_wxPNGHandler,
47860 &_swigt__p_wxPNMHandler,
47861 &_swigt__p_wxPaintEvent,
47862 &_swigt__p_wxPaletteChangedEvent,
47863 &_swigt__p_wxPaperSize,
b850e7f3 47864 &_swigt__p_wxPickerBase,
1bd55598
RD
47865 &_swigt__p_wxPoint,
47866 &_swigt__p_wxPyApp,
47867 &_swigt__p_wxPyCommandEvent,
47868 &_swigt__p_wxPyControl,
47869 &_swigt__p_wxPyEvent,
47870 &_swigt__p_wxPyImageHandler,
47871 &_swigt__p_wxPyListCtrl,
47872 &_swigt__p_wxPySizer,
47873 &_swigt__p_wxPyTreeCtrl,
47874 &_swigt__p_wxPyTreeItemData,
47875 &_swigt__p_wxPyValidator,
47876 &_swigt__p_wxQueryNewPaletteEvent,
47877 &_swigt__p_wxRadioBox,
47878 &_swigt__p_wxRadioButton,
47879 &_swigt__p_wxRect,
47880 &_swigt__p_wxScrollBar,
47881 &_swigt__p_wxScrollEvent,
47882 &_swigt__p_wxScrollWinEvent,
47883 &_swigt__p_wxSetCursorEvent,
47884 &_swigt__p_wxShowEvent,
47885 &_swigt__p_wxSimpleHelpProvider,
47886 &_swigt__p_wxSize,
47887 &_swigt__p_wxSizeEvent,
47888 &_swigt__p_wxSizer,
47889 &_swigt__p_wxSizerItem,
47890 &_swigt__p_wxSlider,
47891 &_swigt__p_wxSpinButton,
47892 &_swigt__p_wxSpinCtrl,
47893 &_swigt__p_wxSpinEvent,
47894 &_swigt__p_wxStaticBitmap,
47895 &_swigt__p_wxStaticBox,
47896 &_swigt__p_wxStaticBoxSizer,
47897 &_swigt__p_wxStaticLine,
47898 &_swigt__p_wxStaticText,
47899 &_swigt__p_wxStdDialogButtonSizer,
47900 &_swigt__p_wxString,
47901 &_swigt__p_wxSysColourChangedEvent,
580080c5 47902 &_swigt__p_wxTGAHandler,
1bd55598
RD
47903 &_swigt__p_wxTIFFHandler,
47904 &_swigt__p_wxTextAttr,
47905 &_swigt__p_wxTextCtrl,
47906 &_swigt__p_wxTextUrlEvent,
47907 &_swigt__p_wxToggleButton,
47908 &_swigt__p_wxToolBar,
47909 &_swigt__p_wxToolBarBase,
47910 &_swigt__p_wxToolBarToolBase,
47911 &_swigt__p_wxToolbook,
47912 &_swigt__p_wxToolbookEvent,
1bd55598
RD
47913 &_swigt__p_wxTreeEvent,
47914 &_swigt__p_wxTreeItemId,
47915 &_swigt__p_wxTreebook,
47916 &_swigt__p_wxTreebookEvent,
47917 &_swigt__p_wxUpdateUIEvent,
47918 &_swigt__p_wxValidator,
47919 &_swigt__p_wxVisualAttributes,
47920 &_swigt__p_wxWindow,
b850e7f3 47921 &_swigt__p_wxWindowBase,
1bd55598
RD
47922 &_swigt__p_wxWindowCreateEvent,
47923 &_swigt__p_wxWindowDestroyEvent,
47924 &_swigt__p_wxXPMHandler,
47925};
47926
47927static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47928static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47929static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47930static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47931static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47932static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47933static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47934static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47935static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47936static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47937static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47938static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47939static 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}};
47940static 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}};
47941static 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}};
47942static 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}};
47943static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47944static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47945static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
47946static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47947static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47948static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47949static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47950static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47951static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47952static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47953static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47954static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47955static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47956static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47957static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47958static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47959static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47960static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47961static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_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}};
1bd55598
RD
47962static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47963static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47964static 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_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_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_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}};
1bd55598
RD
47965static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
47966static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47967static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47968static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47969static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47970static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47971static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47972static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47973static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47974static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47975static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47976static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47977static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47978static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47979static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47980static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47981static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47982static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47983static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47984static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47985static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47986static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47987static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47988static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47989static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47990static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47991static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47992static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47993static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47994static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47995static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47996static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47997static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47998static 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_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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_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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_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}};
1bd55598
RD
47999static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48000static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48001static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48002static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48003static 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_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_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_wxSpinButton, _p_wxSpinButtonTo_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_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}};
48004static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48005static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48006static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48007static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48008static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48009static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48010static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48011static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48012static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48013static 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}};
704eda0c
RD
48014static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48015static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48016static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48017static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48018static 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}};
48019static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48020static 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}};
48021static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48022static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48023static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48024static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48025static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48026static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48027static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48028static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48029static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48030static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48031static 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}};
48032static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48033static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48034static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48035static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48036static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48037static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48038static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48039static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48040static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48041static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48042static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48043static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48044static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48045static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48046static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48047static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48048static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48049static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48050static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48051static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48052static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48053static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48054static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48055static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48056static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48057static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48058static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48059static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48060static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48061static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48062static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48063static 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_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_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_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_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_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_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_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_wxSpinButton, _p_wxSpinButtonTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_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}};
1bd55598 48064static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48065static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48066static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48067static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48068static 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}};
48069static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48070static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48071static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48072static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48073static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48074static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48075static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48076static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48077static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48078static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48079static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48080static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48081static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48082static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48083static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48084static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48085static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48086static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48087static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48088static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48089static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48090static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48091static 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}};
48092static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48093static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48094static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48095static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48096static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48097static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48098static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48099static 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}};
48100static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48101static 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_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_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_wxSpinButton, _p_wxSpinButtonTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}};
48102static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48103
48104static swig_cast_info *swig_cast_initial[] = {
48105 _swigc__p_bool,
48106 _swigc__p_char,
48107 _swigc__p_form_ops_t,
48108 _swigc__p_int,
48109 _swigc__p_long,
48110 _swigc__p_unsigned_char,
48111 _swigc__p_unsigned_int,
48112 _swigc__p_unsigned_long,
48113 _swigc__p_void,
48114 _swigc__p_wxANIHandler,
48115 _swigc__p_wxAcceleratorTable,
48116 _swigc__p_wxActivateEvent,
48117 _swigc__p_wxArrayInt,
48118 _swigc__p_wxArrayString,
48119 _swigc__p_wxBMPHandler,
48120 _swigc__p_wxBitmap,
48121 _swigc__p_wxBitmapButton,
48122 _swigc__p_wxBookCtrlBase,
48123 _swigc__p_wxBookCtrlBaseEvent,
48124 _swigc__p_wxBoxSizer,
48125 _swigc__p_wxButton,
48126 _swigc__p_wxCURHandler,
48127 _swigc__p_wxCheckBox,
48128 _swigc__p_wxCheckListBox,
48129 _swigc__p_wxChildFocusEvent,
48130 _swigc__p_wxChoice,
48131 _swigc__p_wxChoicebook,
48132 _swigc__p_wxChoicebookEvent,
2131d850 48133 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
48134 _swigc__p_wxCloseEvent,
48135 _swigc__p_wxColour,
b850e7f3
RD
48136 _swigc__p_wxColourPickerCtrl,
48137 _swigc__p_wxColourPickerEvent,
1bd55598
RD
48138 _swigc__p_wxComboBox,
48139 _swigc__p_wxCommandEvent,
48140 _swigc__p_wxContextHelp,
48141 _swigc__p_wxContextHelpButton,
48142 _swigc__p_wxContextMenuEvent,
48143 _swigc__p_wxControl,
48144 _swigc__p_wxControlWithItems,
48145 _swigc__p_wxCursor,
48146 _swigc__p_wxDC,
48147 _swigc__p_wxDateEvent,
48148 _swigc__p_wxDatePickerCtrl,
48149 _swigc__p_wxDateTime,
48150 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48151 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
48152 _swigc__p_wxDisplayChangedEvent,
48153 _swigc__p_wxDropFilesEvent,
48154 _swigc__p_wxDuplexMode,
48155 _swigc__p_wxEraseEvent,
48156 _swigc__p_wxEvent,
48157 _swigc__p_wxEvtHandler,
48158 _swigc__p_wxFSFile,
b850e7f3
RD
48159 _swigc__p_wxFileDirPickerEvent,
48160 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
48161 _swigc__p_wxFileSystem,
48162 _swigc__p_wxFlexGridSizer,
48163 _swigc__p_wxFocusEvent,
48164 _swigc__p_wxFont,
b850e7f3
RD
48165 _swigc__p_wxFontPickerCtrl,
48166 _swigc__p_wxFontPickerEvent,
1bd55598
RD
48167 _swigc__p_wxGBSizerItem,
48168 _swigc__p_wxGIFHandler,
48169 _swigc__p_wxGauge,
48170 _swigc__p_wxGenericDirCtrl,
48171 _swigc__p_wxGenericDragImage,
48172 _swigc__p_wxGridBagSizer,
48173 _swigc__p_wxGridSizer,
48174 _swigc__p_wxHelpEvent,
48175 _swigc__p_wxHelpProvider,
704eda0c
RD
48176 _swigc__p_wxHyperlinkCtrl,
48177 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
48178 _swigc__p_wxICOHandler,
48179 _swigc__p_wxIcon,
48180 _swigc__p_wxIconizeEvent,
48181 _swigc__p_wxIdleEvent,
48182 _swigc__p_wxImage,
48183 _swigc__p_wxImageHandler,
48184 _swigc__p_wxImageList,
48185 _swigc__p_wxIndividualLayoutConstraint,
48186 _swigc__p_wxInitDialogEvent,
48187 _swigc__p_wxItemContainer,
48188 _swigc__p_wxJPEGHandler,
48189 _swigc__p_wxKeyEvent,
48190 _swigc__p_wxLayoutConstraints,
48191 _swigc__p_wxListBox,
48192 _swigc__p_wxListEvent,
48193 _swigc__p_wxListItem,
48194 _swigc__p_wxListItemAttr,
48195 _swigc__p_wxListView,
48196 _swigc__p_wxListbook,
48197 _swigc__p_wxListbookEvent,
48198 _swigc__p_wxMaximizeEvent,
48199 _swigc__p_wxMemoryDC,
48200 _swigc__p_wxMenu,
48201 _swigc__p_wxMenuBar,
48202 _swigc__p_wxMenuEvent,
48203 _swigc__p_wxMenuItem,
48204 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48205 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
48206 _swigc__p_wxMouseEvent,
48207 _swigc__p_wxMoveEvent,
48208 _swigc__p_wxNavigationKeyEvent,
48209 _swigc__p_wxNcPaintEvent,
48210 _swigc__p_wxNotebook,
48211 _swigc__p_wxNotebookEvent,
48212 _swigc__p_wxNotifyEvent,
48213 _swigc__p_wxObject,
48214 _swigc__p_wxPCXHandler,
48215 _swigc__p_wxPNGHandler,
48216 _swigc__p_wxPNMHandler,
48217 _swigc__p_wxPaintEvent,
48218 _swigc__p_wxPaletteChangedEvent,
48219 _swigc__p_wxPaperSize,
b850e7f3 48220 _swigc__p_wxPickerBase,
1bd55598
RD
48221 _swigc__p_wxPoint,
48222 _swigc__p_wxPyApp,
48223 _swigc__p_wxPyCommandEvent,
48224 _swigc__p_wxPyControl,
48225 _swigc__p_wxPyEvent,
48226 _swigc__p_wxPyImageHandler,
48227 _swigc__p_wxPyListCtrl,
48228 _swigc__p_wxPySizer,
48229 _swigc__p_wxPyTreeCtrl,
48230 _swigc__p_wxPyTreeItemData,
48231 _swigc__p_wxPyValidator,
48232 _swigc__p_wxQueryNewPaletteEvent,
48233 _swigc__p_wxRadioBox,
48234 _swigc__p_wxRadioButton,
48235 _swigc__p_wxRect,
48236 _swigc__p_wxScrollBar,
48237 _swigc__p_wxScrollEvent,
48238 _swigc__p_wxScrollWinEvent,
48239 _swigc__p_wxSetCursorEvent,
48240 _swigc__p_wxShowEvent,
48241 _swigc__p_wxSimpleHelpProvider,
48242 _swigc__p_wxSize,
48243 _swigc__p_wxSizeEvent,
48244 _swigc__p_wxSizer,
48245 _swigc__p_wxSizerItem,
48246 _swigc__p_wxSlider,
48247 _swigc__p_wxSpinButton,
48248 _swigc__p_wxSpinCtrl,
48249 _swigc__p_wxSpinEvent,
48250 _swigc__p_wxStaticBitmap,
48251 _swigc__p_wxStaticBox,
48252 _swigc__p_wxStaticBoxSizer,
48253 _swigc__p_wxStaticLine,
48254 _swigc__p_wxStaticText,
48255 _swigc__p_wxStdDialogButtonSizer,
48256 _swigc__p_wxString,
48257 _swigc__p_wxSysColourChangedEvent,
580080c5 48258 _swigc__p_wxTGAHandler,
1bd55598
RD
48259 _swigc__p_wxTIFFHandler,
48260 _swigc__p_wxTextAttr,
48261 _swigc__p_wxTextCtrl,
48262 _swigc__p_wxTextUrlEvent,
48263 _swigc__p_wxToggleButton,
48264 _swigc__p_wxToolBar,
48265 _swigc__p_wxToolBarBase,
48266 _swigc__p_wxToolBarToolBase,
48267 _swigc__p_wxToolbook,
48268 _swigc__p_wxToolbookEvent,
1bd55598
RD
48269 _swigc__p_wxTreeEvent,
48270 _swigc__p_wxTreeItemId,
48271 _swigc__p_wxTreebook,
48272 _swigc__p_wxTreebookEvent,
48273 _swigc__p_wxUpdateUIEvent,
48274 _swigc__p_wxValidator,
48275 _swigc__p_wxVisualAttributes,
48276 _swigc__p_wxWindow,
b850e7f3 48277 _swigc__p_wxWindowBase,
1bd55598
RD
48278 _swigc__p_wxWindowCreateEvent,
48279 _swigc__p_wxWindowDestroyEvent,
48280 _swigc__p_wxXPMHandler,
48281};
48282
48283
48284/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48285
48286static swig_const_info swig_const_table[] = {
48287{0, 0, 0, 0.0, 0, 0}};
48288
48289#ifdef __cplusplus
48290}
48291#endif
48292/* -----------------------------------------------------------------------------
48293 * Type initialization:
48294 * This problem is tough by the requirement that no dynamic
48295 * memory is used. Also, since swig_type_info structures store pointers to
48296 * swig_cast_info structures and swig_cast_info structures store pointers back
48297 * to swig_type_info structures, we need some lookup code at initialization.
48298 * The idea is that swig generates all the structures that are needed.
48299 * The runtime then collects these partially filled structures.
48300 * The SWIG_InitializeModule function takes these initial arrays out of
48301 * swig_module, and does all the lookup, filling in the swig_module.types
48302 * array with the correct data and linking the correct swig_cast_info
48303 * structures together.
48304 *
48305 * The generated swig_type_info structures are assigned staticly to an initial
48306 * array. We just loop though that array, and handle each type individually.
48307 * First we lookup if this type has been already loaded, and if so, use the
48308 * loaded structure instead of the generated one. Then we have to fill in the
48309 * cast linked list. The cast data is initially stored in something like a
48310 * two-dimensional array. Each row corresponds to a type (there are the same
48311 * number of rows as there are in the swig_type_initial array). Each entry in
48312 * a column is one of the swig_cast_info structures for that type.
48313 * The cast_initial array is actually an array of arrays, because each row has
48314 * a variable number of columns. So to actually build the cast linked list,
48315 * we find the array of casts associated with the type, and loop through it
48316 * adding the casts to the list. The one last trick we need to do is making
48317 * sure the type pointer in the swig_cast_info struct is correct.
48318 *
48319 * First off, we lookup the cast->type name to see if it is already loaded.
48320 * There are three cases to handle:
48321 * 1) If the cast->type has already been loaded AND the type we are adding
48322 * casting info to has not been loaded (it is in this module), THEN we
48323 * replace the cast->type pointer with the type pointer that has already
48324 * been loaded.
48325 * 2) If BOTH types (the one we are adding casting info to, and the
48326 * cast->type) are loaded, THEN the cast info has already been loaded by
48327 * the previous module so we just ignore it.
48328 * 3) Finally, if cast->type has not already been loaded, then we add that
48329 * swig_cast_info to the linked list (because the cast->type) pointer will
48330 * be correct.
48331 * ----------------------------------------------------------------------------- */
48332
48333#ifdef __cplusplus
48334extern "C" {
48335#if 0
48336} /* c-mode */
48337#endif
48338#endif
48339
48340#if 0
48341#define SWIGRUNTIME_DEBUG
48342#endif
48343
48344SWIGRUNTIME void
48345SWIG_InitializeModule(void *clientdata) {
48346 size_t i;
48347 swig_module_info *module_head;
48348 static int init_run = 0;
48349
48350 clientdata = clientdata;
48351
48352 if (init_run) return;
48353 init_run = 1;
48354
48355 /* Initialize the swig_module */
48356 swig_module.type_initial = swig_type_initial;
48357 swig_module.cast_initial = swig_cast_initial;
48358
48359 /* Try and load any already created modules */
48360 module_head = SWIG_GetModule(clientdata);
48361 if (module_head) {
48362 swig_module.next = module_head->next;
48363 module_head->next = &swig_module;
48364 } else {
48365 /* This is the first module loaded */
48366 swig_module.next = &swig_module;
48367 SWIG_SetModule(clientdata, &swig_module);
48368 }
48369
48370 /* Now work on filling in swig_module.types */
48371#ifdef SWIGRUNTIME_DEBUG
48372 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48373#endif
48374 for (i = 0; i < swig_module.size; ++i) {
48375 swig_type_info *type = 0;
48376 swig_type_info *ret;
48377 swig_cast_info *cast;
d55e5bfc 48378
1bd55598
RD
48379#ifdef SWIGRUNTIME_DEBUG
48380 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48381#endif
d55e5bfc 48382
1bd55598
RD
48383 /* if there is another module already loaded */
48384 if (swig_module.next != &swig_module) {
48385 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 48386 }
1bd55598
RD
48387 if (type) {
48388 /* Overwrite clientdata field */
48389#ifdef SWIGRUNTIME_DEBUG
48390 printf("SWIG_InitializeModule: found type %s\n", type->name);
48391#endif
48392 if (swig_module.type_initial[i]->clientdata) {
48393 type->clientdata = swig_module.type_initial[i]->clientdata;
48394#ifdef SWIGRUNTIME_DEBUG
48395 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48396#endif
48397 }
48398 } else {
48399 type = swig_module.type_initial[i];
36ed4f51 48400 }
d55e5bfc 48401
1bd55598
RD
48402 /* Insert casting types */
48403 cast = swig_module.cast_initial[i];
48404 while (cast->type) {
48405 /* Don't need to add information already in the list */
48406 ret = 0;
48407#ifdef SWIGRUNTIME_DEBUG
48408 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48409#endif
48410 if (swig_module.next != &swig_module) {
48411 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48412#ifdef SWIGRUNTIME_DEBUG
48413 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48414#endif
48415 }
48416 if (ret) {
48417 if (type == swig_module.type_initial[i]) {
48418#ifdef SWIGRUNTIME_DEBUG
48419 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48420#endif
48421 cast->type = ret;
48422 ret = 0;
48423 } else {
48424 /* Check for casting already in the list */
48425 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48426#ifdef SWIGRUNTIME_DEBUG
48427 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48428#endif
48429 if (!ocast) ret = 0;
48430 }
48431 }
48432
48433 if (!ret) {
48434#ifdef SWIGRUNTIME_DEBUG
48435 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48436#endif
48437 if (type->cast) {
48438 type->cast->prev = cast;
48439 cast->next = type->cast;
48440 }
48441 type->cast = cast;
48442 }
48443 cast++;
36ed4f51 48444 }
1bd55598
RD
48445 /* Set entry in modules->types array equal to the type */
48446 swig_module.types[i] = type;
48447 }
48448 swig_module.types[i] = 0;
48449
48450#ifdef SWIGRUNTIME_DEBUG
48451 printf("**** SWIG_InitializeModule: Cast List ******\n");
48452 for (i = 0; i < swig_module.size; ++i) {
48453 int j = 0;
48454 swig_cast_info *cast = swig_module.cast_initial[i];
48455 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48456 while (cast->type) {
48457 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48458 cast++;
48459 ++j;
48460 }
48461 printf("---- Total casts: %d\n",j);
48462 }
48463 printf("**** SWIG_InitializeModule: Cast List ******\n");
48464#endif
48465}
48466
48467/* This function will propagate the clientdata field of type to
48468* any new swig_type_info structures that have been added into the list
48469* of equivalent types. It is like calling
48470* SWIG_TypeClientData(type, clientdata) a second time.
48471*/
48472SWIGRUNTIME void
48473SWIG_PropagateClientData(void) {
48474 size_t i;
48475 swig_cast_info *equiv;
48476 static int init_run = 0;
48477
48478 if (init_run) return;
48479 init_run = 1;
48480
48481 for (i = 0; i < swig_module.size; i++) {
48482 if (swig_module.types[i]->clientdata) {
48483 equiv = swig_module.types[i]->cast;
48484 while (equiv) {
48485 if (!equiv->converter) {
48486 if (equiv->type && !equiv->type->clientdata)
48487 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48488 }
48489 equiv = equiv->next;
48490 }
36ed4f51 48491 }
1bd55598
RD
48492 }
48493}
48494
48495#ifdef __cplusplus
48496#if 0
48497{
48498 /* c-mode */
48499#endif
48500}
48501#endif
48502
48503
48504
48505#ifdef __cplusplus
48506extern "C" {
48507#endif
48508
48509 /* Python-specific SWIG API */
48510#define SWIG_newvarlink() SWIG_Python_newvarlink()
48511#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48512#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48513
48514 /* -----------------------------------------------------------------------------
48515 * global variable support code.
48516 * ----------------------------------------------------------------------------- */
48517
48518 typedef struct swig_globalvar {
48519 char *name; /* Name of global variable */
48520 PyObject *(*get_attr)(void); /* Return the current value */
48521 int (*set_attr)(PyObject *); /* Set the value */
48522 struct swig_globalvar *next;
48523 } swig_globalvar;
48524
48525 typedef struct swig_varlinkobject {
48526 PyObject_HEAD
48527 swig_globalvar *vars;
48528 } swig_varlinkobject;
48529
48530 SWIGINTERN PyObject *
48531 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48532 return PyString_FromString("<Swig global variables>");
48533 }
48534
48535 SWIGINTERN PyObject *
48536 swig_varlink_str(swig_varlinkobject *v) {
48537 PyObject *str = PyString_FromString("(");
48538 swig_globalvar *var;
48539 for (var = v->vars; var; var=var->next) {
48540 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48541 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48542 }
48543 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48544 return str;
48545 }
48546
48547 SWIGINTERN int
48548 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48549 PyObject *str = swig_varlink_str(v);
48550 fprintf(fp,"Swig global variables ");
48551 fprintf(fp,"%s\n", PyString_AsString(str));
48552 Py_DECREF(str);
48553 return 0;
48554 }
48555
48556 SWIGINTERN void
48557 swig_varlink_dealloc(swig_varlinkobject *v) {
48558 swig_globalvar *var = v->vars;
48559 while (var) {
48560 swig_globalvar *n = var->next;
48561 free(var->name);
48562 free(var);
48563 var = n;
36ed4f51 48564 }
1bd55598
RD
48565 }
48566
48567 SWIGINTERN PyObject *
48568 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48569 PyObject *res = NULL;
48570 swig_globalvar *var = v->vars;
48571 while (var) {
48572 if (strcmp(var->name,n) == 0) {
48573 res = (*var->get_attr)();
48574 break;
48575 }
48576 var = var->next;
36ed4f51 48577 }
1bd55598
RD
48578 if (res == NULL && !PyErr_Occurred()) {
48579 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 48580 }
1bd55598
RD
48581 return res;
48582 }
48583
48584 SWIGINTERN int
48585 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48586 int res = 1;
48587 swig_globalvar *var = v->vars;
48588 while (var) {
48589 if (strcmp(var->name,n) == 0) {
48590 res = (*var->set_attr)(p);
48591 break;
48592 }
48593 var = var->next;
36ed4f51 48594 }
1bd55598
RD
48595 if (res == 1 && !PyErr_Occurred()) {
48596 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48597 }
1bd55598
RD
48598 return res;
48599 }
48600
48601 SWIGINTERN PyTypeObject*
48602 swig_varlink_type(void) {
48603 static char varlink__doc__[] = "Swig var link object";
48604 static PyTypeObject varlink_type;
48605 static int type_init = 0;
48606 if (!type_init) {
48607 const PyTypeObject tmp
48608 = {
48609 PyObject_HEAD_INIT(NULL)
48610 0, /* Number of items in variable part (ob_size) */
48611 (char *)"swigvarlink", /* Type name (tp_name) */
48612 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48613 0, /* Itemsize (tp_itemsize) */
48614 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48615 (printfunc) swig_varlink_print, /* Print (tp_print) */
48616 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48617 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48618 0, /* tp_compare */
48619 (reprfunc) swig_varlink_repr, /* tp_repr */
48620 0, /* tp_as_number */
48621 0, /* tp_as_sequence */
48622 0, /* tp_as_mapping */
48623 0, /* tp_hash */
48624 0, /* tp_call */
48625 (reprfunc)swig_varlink_str, /* tp_str */
48626 0, /* tp_getattro */
48627 0, /* tp_setattro */
48628 0, /* tp_as_buffer */
48629 0, /* tp_flags */
48630 varlink__doc__, /* tp_doc */
48631 0, /* tp_traverse */
48632 0, /* tp_clear */
48633 0, /* tp_richcompare */
48634 0, /* tp_weaklistoffset */
48635#if PY_VERSION_HEX >= 0x02020000
48636 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48637#endif
48638#if PY_VERSION_HEX >= 0x02030000
48639 0, /* tp_del */
48640#endif
48641#ifdef COUNT_ALLOCS
48642 0,0,0,0 /* tp_alloc -> tp_next */
48643#endif
48644 };
48645 varlink_type = tmp;
48646 varlink_type.ob_type = &PyType_Type;
48647 type_init = 1;
53aa7709 48648 }
1bd55598
RD
48649 return &varlink_type;
48650 }
48651
48652 /* Create a variable linking object for use later */
48653 SWIGINTERN PyObject *
48654 SWIG_Python_newvarlink(void) {
48655 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48656 if (result) {
48657 result->vars = 0;
48658 }
48659 return ((PyObject*) result);
48660 }
48661
48662 SWIGINTERN void
48663 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48664 swig_varlinkobject *v = (swig_varlinkobject *) p;
48665 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48666 if (gv) {
48667 size_t size = strlen(name)+1;
48668 gv->name = (char *)malloc(size);
48669 if (gv->name) {
48670 strncpy(gv->name,name,size);
48671 gv->get_attr = get_attr;
48672 gv->set_attr = set_attr;
48673 gv->next = v->vars;
48674 }
53aa7709 48675 }
1bd55598
RD
48676 v->vars = gv;
48677 }
48678
48679 SWIGINTERN PyObject *
48680 SWIG_globals() {
48681 static PyObject *_SWIG_globals = 0;
48682 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48683 return _SWIG_globals;
48684 }
48685
48686 /* -----------------------------------------------------------------------------
48687 * constants/methods manipulation
48688 * ----------------------------------------------------------------------------- */
48689
48690 /* Install Constants */
48691 SWIGINTERN void
48692 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48693 PyObject *obj = 0;
48694 size_t i;
48695 for (i = 0; constants[i].type; ++i) {
48696 switch(constants[i].type) {
48697 case SWIG_PY_POINTER:
48698 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48699 break;
48700 case SWIG_PY_BINARY:
48701 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48702 break;
48703 default:
48704 obj = 0;
48705 break;
48706 }
48707 if (obj) {
48708 PyDict_SetItemString(d, constants[i].name, obj);
48709 Py_DECREF(obj);
48710 }
53aa7709 48711 }
1bd55598
RD
48712 }
48713
48714 /* -----------------------------------------------------------------------------*/
48715 /* Fix SwigMethods to carry the callback ptrs when needed */
48716 /* -----------------------------------------------------------------------------*/
48717
48718 SWIGINTERN void
48719 SWIG_Python_FixMethods(PyMethodDef *methods,
48720 swig_const_info *const_table,
48721 swig_type_info **types,
48722 swig_type_info **types_initial) {
48723 size_t i;
48724 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 48725 const char *c = methods[i].ml_doc;
1bd55598
RD
48726 if (c && (c = strstr(c, "swig_ptr: "))) {
48727 int j;
48728 swig_const_info *ci = 0;
3d6c9062 48729 const char *name = c + 10;
1bd55598
RD
48730 for (j = 0; const_table[j].type; ++j) {
48731 if (strncmp(const_table[j].name, name,
48732 strlen(const_table[j].name)) == 0) {
48733 ci = &(const_table[j]);
48734 break;
48735 }
48736 }
48737 if (ci) {
48738 size_t shift = (ci->ptype) - types;
48739 swig_type_info *ty = types_initial[shift];
48740 size_t ldoc = (c - methods[i].ml_doc);
48741 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48742 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48743 if (ndoc) {
48744 char *buff = ndoc;
48745 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48746 if (ptr) {
48747 strncpy(buff, methods[i].ml_doc, ldoc);
48748 buff += ldoc;
48749 strncpy(buff, "swig_ptr: ", 10);
48750 buff += 10;
48751 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48752 methods[i].ml_doc = ndoc;
48753 }
48754 }
48755 }
48756 }
53aa7709 48757 }
1bd55598
RD
48758 }
48759
48760#ifdef __cplusplus
48761}
48762#endif
48763
48764/* -----------------------------------------------------------------------------*
48765 * Partial Init method
48766 * -----------------------------------------------------------------------------*/
48767
48768#ifdef __cplusplus
48769extern "C"
48770#endif
48771SWIGEXPORT void SWIG_init(void) {
48772 PyObject *m, *d;
48773
48774 /* Fix SwigMethods to carry the callback ptrs when needed */
48775 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48776
48777 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48778 d = PyModule_GetDict(m);
48779
48780 SWIG_InitializeModule(0);
48781 SWIG_InstallConstants(d,swig_const_table);
48782
48783
48784 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48785 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48786 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48787 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48788 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48789 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48790 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48791 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48792 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48793 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48794 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48795 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48796 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48797 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48798 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48799 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48800 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48801 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48802 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48803 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48804 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48805 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
48806 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48807 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48808 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48809 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48810 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48811 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48812 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48813 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48814 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48815 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48816 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48817 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48818 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48819 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48820 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48821 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48822 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48823 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48824 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48825 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48826 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48827 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48828 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
48829 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48830 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48831 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48832 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48833 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48834 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48835 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48836 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48837 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48838 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48839 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48840 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48841 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48842 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48843 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48844 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48845 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48846 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48847 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48848 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48849 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48850 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48851 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48852 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48853 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48854 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48855 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 48856 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
1bd55598
RD
48857 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48858 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48859 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48860 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48861 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48862 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48863 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48864 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48865 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48866 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48867 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48868 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48869 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48870 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48871 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48872 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48873 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48874 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48875 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48876 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48877 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48878 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48879 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48880 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48881 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48882 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48883 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48884 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48885 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48886 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48887 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48888 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48889 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48890 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48891 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48892 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48893 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48894 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48895 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48896 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48897 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48898 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
48899 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48900 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48901 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48902 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48903 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48904 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48905 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48906 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48907 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48908 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48909 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48910 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
48911 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48912 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48913 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48914 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48915 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48916 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48917 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48918 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48919 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48920 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48921 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48922 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48923 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48924 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48925 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48926 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48927 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48928 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48929 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48930 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48931 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48932 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48933 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48934 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48935 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48936 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48937 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48938 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48939 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
48940 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
48941 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
48942 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
48943 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
1bd55598
RD
48944 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48945 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48946 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48947 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48948 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48949 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48950 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48951 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48952 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48953 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
48954 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48955 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48956 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48957 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48958 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48959 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48960 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48961 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48962 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48963 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48964 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48965 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48966 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48967 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48968 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48969 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48970 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48971 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48972 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48973 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48974 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48975 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48976 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48977 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48978 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48979 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48980 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48981 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48982 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48983 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48984 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48985 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48986 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48987 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48988 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48989 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48990 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48991 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48992 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48993 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48994 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48995 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48996 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48997 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48998 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48999 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49000 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49001 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
49002 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49003 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49004 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49005 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49006 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49007 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49008 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49009 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49010 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49011 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49012 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49013 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49014 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49015 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49016 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49017 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49018 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49019 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49020 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49021 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49022 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49023 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49024 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49025 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49026 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49027 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49028 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49029 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49030 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49031 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49032 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49033 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49034 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49035 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49036 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49037 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49038 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49039 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49040 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49041 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49042 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49043 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49044
49045 // Map renamed classes back to their common name for OOR
49046 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49047
49048 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49049 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49050 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49051 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49052 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49053 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49054 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49055 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49056 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49057 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49058 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49059 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49060 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49061 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49062 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
49063 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49064 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49065 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49066 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49067 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49068 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49069 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49070 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49071 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49072 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49073 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49074 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49075 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49076 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49077 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49078 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49079 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49080 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49081 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49082 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49083 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49084 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49085 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49086 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49087 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49088 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49089 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49090 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49091 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49092 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49093 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49094 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49095 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49096 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49097 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49098 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49099 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49100 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49101 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49102 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49103 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
49104
49105 // Map renamed classes back to their common name for OOR
49106 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49107 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49108
49109 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49110 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49111 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49112 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49113 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49114 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
1bd55598
RD
49115 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49116 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49117 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49118 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49119 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
49120
49121 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49122
49123 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49124 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49125 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49126 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49127 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49128 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49129 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49130 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49131 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49132 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49133 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49134 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49135 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49136 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49137 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49138 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49139 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49140 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49141 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49142 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49143 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49144 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49145 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49146 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49147 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49148 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49149 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49150 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49151 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49152 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49153 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49154 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49155 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49156 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49157 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49158 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49159 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49160 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49161 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49162 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49163 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49164 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49165 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
49166}
49167