]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
GetData can only be called within the DnD operation, so don't make it
[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);
ec8a7755
RD
10762 if (!number) {
10763 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10764 SWIG_fail;
10765 }
1bd55598
RD
10766 arg2->Add(PyInt_AS_LONG(number));
10767 Py_DECREF(item);
10768 Py_DECREF(number);
d55e5bfc 10769 }
1bd55598
RD
10770 }
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 resultobj = SWIG_Py_Void();
10778 {
10779 if (temp2) delete arg2;
10780 }
10781 return resultobj;
10782fail:
10783 {
10784 if (temp2) delete arg2;
10785 }
10786 return NULL;
10787}
10788
10789
10790SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj = 0;
10792 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10793 int arg2 ;
10794 int arg3 = (int) 0 ;
10795 void *argp1 = 0 ;
10796 int res1 = 0 ;
10797 int val2 ;
10798 int ecode2 = 0 ;
10799 int val3 ;
10800 int ecode3 = 0 ;
10801 PyObject * obj0 = 0 ;
10802 PyObject * obj1 = 0 ;
10803 PyObject * obj2 = 0 ;
10804 char * kwnames[] = {
10805 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10806 };
10807
10808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10810 if (!SWIG_IsOK(res1)) {
10811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10812 }
10813 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10814 ecode2 = SWIG_AsVal_int(obj1, &val2);
10815 if (!SWIG_IsOK(ecode2)) {
10816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10817 }
10818 arg2 = static_cast< int >(val2);
10819 if (obj2) {
10820 ecode3 = SWIG_AsVal_int(obj2, &val3);
10821 if (!SWIG_IsOK(ecode3)) {
10822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10823 }
10824 arg3 = static_cast< int >(val3);
10825 }
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 (arg1)->SetLeftIndent(arg2,arg3);
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 resultobj = SWIG_Py_Void();
10833 return resultobj;
10834fail:
10835 return NULL;
10836}
10837
10838
10839SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10840 PyObject *resultobj = 0;
10841 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10842 int arg2 ;
10843 void *argp1 = 0 ;
10844 int res1 = 0 ;
10845 int val2 ;
10846 int ecode2 = 0 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 char * kwnames[] = {
10850 (char *) "self",(char *) "indent", NULL
10851 };
10852
10853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10855 if (!SWIG_IsOK(res1)) {
10856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10857 }
10858 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10859 ecode2 = SWIG_AsVal_int(obj1, &val2);
10860 if (!SWIG_IsOK(ecode2)) {
10861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10862 }
10863 arg2 = static_cast< int >(val2);
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->SetRightIndent(arg2);
10867 wxPyEndAllowThreads(__tstate);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 }
10870 resultobj = SWIG_Py_Void();
10871 return resultobj;
10872fail:
10873 return NULL;
10874}
10875
10876
10877SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10878 PyObject *resultobj = 0;
10879 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10880 long arg2 ;
10881 void *argp1 = 0 ;
10882 int res1 = 0 ;
10883 long val2 ;
10884 int ecode2 = 0 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 char * kwnames[] = {
10888 (char *) "self",(char *) "flags", NULL
10889 };
10890
10891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10893 if (!SWIG_IsOK(res1)) {
10894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10895 }
10896 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10897 ecode2 = SWIG_AsVal_long(obj1, &val2);
10898 if (!SWIG_IsOK(ecode2)) {
10899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10900 }
10901 arg2 = static_cast< long >(val2);
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 (arg1)->SetFlags(arg2);
10905 wxPyEndAllowThreads(__tstate);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 resultobj = SWIG_Py_Void();
10909 return resultobj;
10910fail:
10911 return NULL;
d55e5bfc
RD
10912}
10913
10914
1bd55598
RD
10915SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10916 PyObject *resultobj = 0;
10917 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10918 bool result;
10919 void *argp1 = 0 ;
10920 int res1 = 0 ;
10921 PyObject *swig_obj[1] ;
10922
10923 if (!args) SWIG_fail;
10924 swig_obj[0] = args;
10925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10926 if (!SWIG_IsOK(res1)) {
10927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10928 }
10929 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 {
10937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10938 }
10939 return resultobj;
10940fail:
10941 return NULL;
d55e5bfc
RD
10942}
10943
10944
1bd55598
RD
10945SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10946 PyObject *resultobj = 0;
10947 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10948 bool result;
10949 void *argp1 = 0 ;
10950 int res1 = 0 ;
10951 PyObject *swig_obj[1] ;
10952
10953 if (!args) SWIG_fail;
10954 swig_obj[0] = args;
10955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10956 if (!SWIG_IsOK(res1)) {
10957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10958 }
10959 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 {
10967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10968 }
10969 return resultobj;
10970fail:
10971 return NULL;
d55e5bfc
RD
10972}
10973
10974
1bd55598
RD
10975SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10976 PyObject *resultobj = 0;
10977 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10978 bool result;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 PyObject *swig_obj[1] ;
10982
10983 if (!args) SWIG_fail;
10984 swig_obj[0] = args;
10985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10986 if (!SWIG_IsOK(res1)) {
10987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10988 }
10989 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10998 }
10999 return resultobj;
11000fail:
11001 return NULL;
d55e5bfc
RD
11002}
11003
11004
1bd55598
RD
11005SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11006 PyObject *resultobj = 0;
11007 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11008 bool result;
11009 void *argp1 = 0 ;
11010 int res1 = 0 ;
11011 PyObject *swig_obj[1] ;
11012
11013 if (!args) SWIG_fail;
11014 swig_obj[0] = args;
11015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11016 if (!SWIG_IsOK(res1)) {
11017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11018 }
11019 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 {
11027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11028 }
11029 return resultobj;
11030fail:
11031 return NULL;
d55e5bfc
RD
11032}
11033
11034
1bd55598
RD
11035SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11036 PyObject *resultobj = 0;
11037 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11038 bool result;
11039 void *argp1 = 0 ;
11040 int res1 = 0 ;
11041 PyObject *swig_obj[1] ;
11042
11043 if (!args) SWIG_fail;
11044 swig_obj[0] = args;
11045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11046 if (!SWIG_IsOK(res1)) {
11047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11048 }
11049 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 {
11057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11058 }
11059 return resultobj;
11060fail:
11061 return NULL;
d55e5bfc
RD
11062}
11063
11064
1bd55598
RD
11065SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11066 PyObject *resultobj = 0;
11067 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11068 bool result;
11069 void *argp1 = 0 ;
11070 int res1 = 0 ;
11071 PyObject *swig_obj[1] ;
11072
11073 if (!args) SWIG_fail;
11074 swig_obj[0] = args;
11075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11076 if (!SWIG_IsOK(res1)) {
11077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11078 }
11079 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11080 {
11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
11082 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11083 wxPyEndAllowThreads(__tstate);
11084 if (PyErr_Occurred()) SWIG_fail;
11085 }
11086 {
11087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11088 }
11089 return resultobj;
11090fail:
11091 return NULL;
d55e5bfc
RD
11092}
11093
11094
1bd55598
RD
11095SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11096 PyObject *resultobj = 0;
11097 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11098 bool result;
11099 void *argp1 = 0 ;
11100 int res1 = 0 ;
11101 PyObject *swig_obj[1] ;
11102
11103 if (!args) SWIG_fail;
11104 swig_obj[0] = args;
11105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11106 if (!SWIG_IsOK(res1)) {
11107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11108 }
11109 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 {
11117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11118 }
11119 return resultobj;
11120fail:
11121 return NULL;
11122}
11123
11124
11125SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj = 0;
11127 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11128 long arg2 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 long val2 ;
11133 int ecode2 = 0 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char * kwnames[] = {
11137 (char *) "self",(char *) "flag", NULL
11138 };
11139
11140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11144 }
11145 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11146 ecode2 = SWIG_AsVal_long(obj1, &val2);
11147 if (!SWIG_IsOK(ecode2)) {
11148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11149 }
11150 arg2 = static_cast< long >(val2);
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 {
11158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11159 }
11160 return resultobj;
11161fail:
11162 return NULL;
d55e5bfc
RD
11163}
11164
11165
1bd55598
RD
11166SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 wxColour *result = 0 ;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11183 {
1bd55598
RD
11184 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11185 result = (wxColour *) &_result_ref;
d55e5bfc 11186 }
1bd55598
RD
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11191 return resultobj;
11192fail:
11193 return NULL;
d55e5bfc
RD
11194}
11195
11196
1bd55598
RD
11197SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11198 PyObject *resultobj = 0;
11199 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11200 wxColour *result = 0 ;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 PyObject *swig_obj[1] ;
11204
11205 if (!args) SWIG_fail;
11206 swig_obj[0] = args;
11207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11208 if (!SWIG_IsOK(res1)) {
11209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11210 }
11211 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11214 {
1bd55598
RD
11215 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11216 result = (wxColour *) &_result_ref;
d55e5bfc 11217 }
1bd55598
RD
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11222 return resultobj;
11223fail:
11224 return NULL;
d55e5bfc
RD
11225}
11226
11227
1bd55598
RD
11228SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11229 PyObject *resultobj = 0;
11230 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11231 wxFont *result = 0 ;
11232 void *argp1 = 0 ;
11233 int res1 = 0 ;
11234 PyObject *swig_obj[1] ;
11235
11236 if (!args) SWIG_fail;
11237 swig_obj[0] = args;
11238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11239 if (!SWIG_IsOK(res1)) {
11240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11241 }
11242 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11245 {
1bd55598
RD
11246 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11247 result = (wxFont *) &_result_ref;
d55e5bfc 11248 }
1bd55598
RD
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 {
11253 wxFont* resultptr = new wxFont(*result);
11254 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11255 }
11256 return resultobj;
11257fail:
11258 return NULL;
d55e5bfc
RD
11259}
11260
11261
1bd55598
RD
11262SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11263 PyObject *resultobj = 0;
11264 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11265 wxTextAttrAlignment result;
11266 void *argp1 = 0 ;
11267 int res1 = 0 ;
11268 PyObject *swig_obj[1] ;
11269
11270 if (!args) SWIG_fail;
11271 swig_obj[0] = args;
11272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11273 if (!SWIG_IsOK(res1)) {
11274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11275 }
11276 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11280 wxPyEndAllowThreads(__tstate);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 resultobj = SWIG_From_int(static_cast< int >(result));
11284 return resultobj;
11285fail:
11286 return NULL;
d55e5bfc
RD
11287}
11288
11289
1bd55598
RD
11290SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11291 PyObject *resultobj = 0;
11292 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11293 wxArrayInt *result = 0 ;
11294 void *argp1 = 0 ;
11295 int res1 = 0 ;
11296 PyObject *swig_obj[1] ;
11297
11298 if (!args) SWIG_fail;
11299 swig_obj[0] = args;
11300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11301 if (!SWIG_IsOK(res1)) {
11302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11303 }
11304 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11307 {
1bd55598
RD
11308 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11309 result = (wxArrayInt *) &_result_ref;
36ed4f51 11310 }
1bd55598
RD
11311 wxPyEndAllowThreads(__tstate);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 {
b39fe951 11315 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
11316 }
11317 return resultobj;
11318fail:
11319 return NULL;
d55e5bfc
RD
11320}
11321
11322
1bd55598
RD
11323SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11324 PyObject *resultobj = 0;
11325 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11326 long result;
11327 void *argp1 = 0 ;
11328 int res1 = 0 ;
11329 PyObject *swig_obj[1] ;
11330
11331 if (!args) SWIG_fail;
11332 swig_obj[0] = args;
11333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11334 if (!SWIG_IsOK(res1)) {
11335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11336 }
11337 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11341 wxPyEndAllowThreads(__tstate);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 }
11344 resultobj = SWIG_From_long(static_cast< long >(result));
11345 return resultobj;
11346fail:
11347 return NULL;
d55e5bfc
RD
11348}
11349
11350
1bd55598
RD
11351SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11352 PyObject *resultobj = 0;
11353 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11354 long result;
11355 void *argp1 = 0 ;
11356 int res1 = 0 ;
11357 PyObject *swig_obj[1] ;
11358
11359 if (!args) SWIG_fail;
11360 swig_obj[0] = args;
11361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11362 if (!SWIG_IsOK(res1)) {
11363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11364 }
11365 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11369 wxPyEndAllowThreads(__tstate);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 }
11372 resultobj = SWIG_From_long(static_cast< long >(result));
11373 return resultobj;
11374fail:
11375 return NULL;
d55e5bfc
RD
11376}
11377
11378
1bd55598
RD
11379SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11380 PyObject *resultobj = 0;
11381 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11382 long result;
11383 void *argp1 = 0 ;
11384 int res1 = 0 ;
11385 PyObject *swig_obj[1] ;
11386
11387 if (!args) SWIG_fail;
11388 swig_obj[0] = args;
11389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11390 if (!SWIG_IsOK(res1)) {
11391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11392 }
11393 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 resultobj = SWIG_From_long(static_cast< long >(result));
11401 return resultobj;
11402fail:
11403 return NULL;
d55e5bfc
RD
11404}
11405
11406
1bd55598
RD
11407SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11408 PyObject *resultobj = 0;
11409 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11410 long result;
11411 void *argp1 = 0 ;
11412 int res1 = 0 ;
11413 PyObject *swig_obj[1] ;
11414
11415 if (!args) SWIG_fail;
11416 swig_obj[0] = args;
11417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11418 if (!SWIG_IsOK(res1)) {
11419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11420 }
11421 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11422 {
11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
11424 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11425 wxPyEndAllowThreads(__tstate);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 resultobj = SWIG_From_long(static_cast< long >(result));
11429 return resultobj;
11430fail:
11431 return NULL;
d55e5bfc
RD
11432}
11433
11434
1bd55598
RD
11435SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11436 PyObject *resultobj = 0;
11437 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11438 bool result;
11439 void *argp1 = 0 ;
11440 int res1 = 0 ;
11441 PyObject *swig_obj[1] ;
11442
11443 if (!args) SWIG_fail;
11444 swig_obj[0] = args;
11445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11446 if (!SWIG_IsOK(res1)) {
11447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11448 }
11449 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11450 {
11451 PyThreadState* __tstate = wxPyBeginAllowThreads();
11452 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11453 wxPyEndAllowThreads(__tstate);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 }
11456 {
11457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11458 }
11459 return resultobj;
11460fail:
11461 return NULL;
11462}
11463
11464
11465SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj = 0;
11467 wxTextAttr *arg1 = 0 ;
11468 wxTextAttr *arg2 = 0 ;
11469 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11470 wxTextAttr result;
11471 void *argp1 = 0 ;
11472 int res1 = 0 ;
11473 void *argp2 = 0 ;
11474 int res2 = 0 ;
11475 void *argp3 = 0 ;
11476 int res3 = 0 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 PyObject * obj2 = 0 ;
11480 char * kwnames[] = {
11481 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11482 };
11483
11484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11485 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11486 if (!SWIG_IsOK(res1)) {
11487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11488 }
11489 if (!argp1) {
11490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11491 }
11492 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11494 if (!SWIG_IsOK(res2)) {
11495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11496 }
11497 if (!argp2) {
11498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11499 }
11500 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11501 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11502 if (!SWIG_IsOK(res3)) {
11503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11504 }
11505 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11513 return resultobj;
11514fail:
11515 return NULL;
11516}
11517
11518
11519SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11520 PyObject *obj;
11521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11522 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11523 return SWIG_Py_Void();
11524}
11525
11526SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11527 return SWIG_Python_InitShadowInstance(args);
11528}
11529
11530SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj = 0;
11532 wxWindow *arg1 = (wxWindow *) 0 ;
11533 int arg2 = (int) -1 ;
11534 wxString const &arg3_defvalue = wxPyEmptyString ;
11535 wxString *arg3 = (wxString *) &arg3_defvalue ;
11536 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11537 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11538 wxSize const &arg5_defvalue = wxDefaultSize ;
11539 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11540 long arg6 = (long) 0 ;
11541 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11542 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11543 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11544 wxString *arg8 = (wxString *) &arg8_defvalue ;
11545 wxTextCtrl *result = 0 ;
11546 void *argp1 = 0 ;
11547 int res1 = 0 ;
11548 int val2 ;
11549 int ecode2 = 0 ;
11550 bool temp3 = false ;
11551 wxPoint temp4 ;
11552 wxSize temp5 ;
11553 long val6 ;
11554 int ecode6 = 0 ;
11555 void *argp7 = 0 ;
11556 int res7 = 0 ;
11557 bool temp8 = false ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 PyObject * obj3 = 0 ;
11562 PyObject * obj4 = 0 ;
11563 PyObject * obj5 = 0 ;
11564 PyObject * obj6 = 0 ;
11565 PyObject * obj7 = 0 ;
11566 char * kwnames[] = {
11567 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11568 };
11569
11570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11572 if (!SWIG_IsOK(res1)) {
11573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11574 }
11575 arg1 = reinterpret_cast< wxWindow * >(argp1);
11576 if (obj1) {
11577 ecode2 = SWIG_AsVal_int(obj1, &val2);
11578 if (!SWIG_IsOK(ecode2)) {
11579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11580 }
11581 arg2 = static_cast< int >(val2);
11582 }
11583 if (obj2) {
36ed4f51 11584 {
1bd55598
RD
11585 arg3 = wxString_in_helper(obj2);
11586 if (arg3 == NULL) SWIG_fail;
11587 temp3 = true;
36ed4f51 11588 }
1bd55598
RD
11589 }
11590 if (obj3) {
36ed4f51 11591 {
1bd55598
RD
11592 arg4 = &temp4;
11593 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11594 }
1bd55598
RD
11595 }
11596 if (obj4) {
d55e5bfc 11597 {
1bd55598
RD
11598 arg5 = &temp5;
11599 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11600 }
1bd55598
RD
11601 }
11602 if (obj5) {
11603 ecode6 = SWIG_AsVal_long(obj5, &val6);
11604 if (!SWIG_IsOK(ecode6)) {
11605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11606 }
11607 arg6 = static_cast< long >(val6);
11608 }
11609 if (obj6) {
11610 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11611 if (!SWIG_IsOK(res7)) {
11612 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11613 }
1bd55598
RD
11614 if (!argp7) {
11615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11616 }
1bd55598
RD
11617 arg7 = reinterpret_cast< wxValidator * >(argp7);
11618 }
11619 if (obj7) {
d55e5bfc 11620 {
1bd55598
RD
11621 arg8 = wxString_in_helper(obj7);
11622 if (arg8 == NULL) SWIG_fail;
11623 temp8 = true;
d55e5bfc 11624 }
1bd55598
RD
11625 }
11626 {
11627 if (!wxPyCheckForApp()) SWIG_fail;
11628 PyThreadState* __tstate = wxPyBeginAllowThreads();
11629 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11630 wxPyEndAllowThreads(__tstate);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11634 {
11635 if (temp3)
11636 delete arg3;
11637 }
11638 {
11639 if (temp8)
11640 delete arg8;
11641 }
11642 return resultobj;
11643fail:
11644 {
11645 if (temp3)
11646 delete arg3;
11647 }
11648 {
11649 if (temp8)
11650 delete arg8;
11651 }
11652 return NULL;
d55e5bfc
RD
11653}
11654
11655
1bd55598
RD
11656SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11657 PyObject *resultobj = 0;
11658 wxTextCtrl *result = 0 ;
11659
11660 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11661 {
11662 if (!wxPyCheckForApp()) SWIG_fail;
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 result = (wxTextCtrl *)new wxTextCtrl();
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11669 return resultobj;
11670fail:
11671 return NULL;
11672}
11673
11674
11675SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj = 0;
11677 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11678 wxWindow *arg2 = (wxWindow *) 0 ;
11679 int arg3 = (int) -1 ;
11680 wxString const &arg4_defvalue = wxPyEmptyString ;
11681 wxString *arg4 = (wxString *) &arg4_defvalue ;
11682 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11683 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11684 wxSize const &arg6_defvalue = wxDefaultSize ;
11685 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11686 long arg7 = (long) 0 ;
11687 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11688 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11689 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11690 wxString *arg9 = (wxString *) &arg9_defvalue ;
11691 bool result;
11692 void *argp1 = 0 ;
11693 int res1 = 0 ;
11694 void *argp2 = 0 ;
11695 int res2 = 0 ;
11696 int val3 ;
11697 int ecode3 = 0 ;
11698 bool temp4 = false ;
11699 wxPoint temp5 ;
11700 wxSize temp6 ;
11701 long val7 ;
11702 int ecode7 = 0 ;
11703 void *argp8 = 0 ;
11704 int res8 = 0 ;
11705 bool temp9 = false ;
11706 PyObject * obj0 = 0 ;
11707 PyObject * obj1 = 0 ;
11708 PyObject * obj2 = 0 ;
11709 PyObject * obj3 = 0 ;
11710 PyObject * obj4 = 0 ;
11711 PyObject * obj5 = 0 ;
11712 PyObject * obj6 = 0 ;
11713 PyObject * obj7 = 0 ;
11714 PyObject * obj8 = 0 ;
11715 char * kwnames[] = {
11716 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11717 };
11718
11719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11721 if (!SWIG_IsOK(res1)) {
11722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11723 }
11724 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11726 if (!SWIG_IsOK(res2)) {
11727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11728 }
11729 arg2 = reinterpret_cast< wxWindow * >(argp2);
11730 if (obj2) {
11731 ecode3 = SWIG_AsVal_int(obj2, &val3);
11732 if (!SWIG_IsOK(ecode3)) {
11733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11734 }
11735 arg3 = static_cast< int >(val3);
11736 }
11737 if (obj3) {
d55e5bfc 11738 {
1bd55598
RD
11739 arg4 = wxString_in_helper(obj3);
11740 if (arg4 == NULL) SWIG_fail;
11741 temp4 = true;
d55e5bfc 11742 }
1bd55598
RD
11743 }
11744 if (obj4) {
d55e5bfc 11745 {
1bd55598
RD
11746 arg5 = &temp5;
11747 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11748 }
1bd55598
RD
11749 }
11750 if (obj5) {
d55e5bfc 11751 {
1bd55598
RD
11752 arg6 = &temp6;
11753 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11754 }
1bd55598
RD
11755 }
11756 if (obj6) {
11757 ecode7 = SWIG_AsVal_long(obj6, &val7);
11758 if (!SWIG_IsOK(ecode7)) {
11759 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11760 }
11761 arg7 = static_cast< long >(val7);
11762 }
11763 if (obj7) {
11764 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11765 if (!SWIG_IsOK(res8)) {
11766 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11767 }
1bd55598
RD
11768 if (!argp8) {
11769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11770 }
11771 arg8 = reinterpret_cast< wxValidator * >(argp8);
11772 }
11773 if (obj8) {
d55e5bfc 11774 {
1bd55598
RD
11775 arg9 = wxString_in_helper(obj8);
11776 if (arg9 == NULL) SWIG_fail;
11777 temp9 = true;
d55e5bfc 11778 }
1bd55598
RD
11779 }
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 {
11787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11788 }
11789 {
11790 if (temp4)
11791 delete arg4;
11792 }
11793 {
11794 if (temp9)
11795 delete arg9;
11796 }
11797 return resultobj;
11798fail:
11799 {
11800 if (temp4)
11801 delete arg4;
11802 }
11803 {
11804 if (temp9)
11805 delete arg9;
11806 }
11807 return NULL;
d55e5bfc
RD
11808}
11809
11810
1bd55598
RD
11811SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11812 PyObject *resultobj = 0;
11813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11814 wxString result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 PyObject *swig_obj[1] ;
11818
11819 if (!args) SWIG_fail;
11820 swig_obj[0] = args;
11821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11824 }
11825 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = ((wxTextCtrl const *)arg1)->GetValue();
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 {
11833#if wxUSE_UNICODE
11834 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11835#else
11836 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11837#endif
11838 }
11839 return resultobj;
11840fail:
11841 return NULL;
11842}
11843
11844
11845SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11846 PyObject *resultobj = 0;
11847 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11848 wxString *arg2 = 0 ;
11849 void *argp1 = 0 ;
11850 int res1 = 0 ;
11851 bool temp2 = false ;
11852 PyObject * obj0 = 0 ;
11853 PyObject * obj1 = 0 ;
11854 char * kwnames[] = {
11855 (char *) "self",(char *) "value", NULL
11856 };
11857
11858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11862 }
11863 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11864 {
11865 arg2 = wxString_in_helper(obj1);
11866 if (arg2 == NULL) SWIG_fail;
11867 temp2 = true;
11868 }
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 (arg1)->SetValue((wxString const &)*arg2);
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_Py_Void();
11876 {
11877 if (temp2)
11878 delete arg2;
11879 }
11880 return resultobj;
11881fail:
11882 {
11883 if (temp2)
11884 delete arg2;
11885 }
11886 return NULL;
11887}
11888
11889
b39fe951
RD
11890SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11891 PyObject *resultobj = 0;
11892 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11893 bool result;
11894 void *argp1 = 0 ;
11895 int res1 = 0 ;
11896 PyObject *swig_obj[1] ;
11897
11898 if (!args) SWIG_fail;
11899 swig_obj[0] = args;
11900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11903 }
11904 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 {
11912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11913 }
11914 return resultobj;
11915fail:
11916 return NULL;
11917}
11918
11919
11920SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj = 0;
11922 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11923 wxString *arg2 = 0 ;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 bool temp2 = false ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "value", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 {
11940 arg2 = wxString_in_helper(obj1);
11941 if (arg2 == NULL) SWIG_fail;
11942 temp2 = true;
11943 }
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 (arg1)->ChangeValue((wxString const &)*arg2);
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_Py_Void();
11951 {
11952 if (temp2)
11953 delete arg2;
11954 }
11955 return resultobj;
11956fail:
11957 {
11958 if (temp2)
11959 delete arg2;
11960 }
11961 return NULL;
11962}
11963
11964
1bd55598
RD
11965SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11966 PyObject *resultobj = 0;
11967 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11968 long arg2 ;
11969 long arg3 ;
11970 wxString result;
11971 void *argp1 = 0 ;
11972 int res1 = 0 ;
11973 long val2 ;
11974 int ecode2 = 0 ;
11975 long val3 ;
11976 int ecode3 = 0 ;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 PyObject * obj2 = 0 ;
11980 char * kwnames[] = {
2131d850 11981 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11982 };
11983
11984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11986 if (!SWIG_IsOK(res1)) {
11987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11988 }
11989 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11990 ecode2 = SWIG_AsVal_long(obj1, &val2);
11991 if (!SWIG_IsOK(ecode2)) {
11992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11993 }
11994 arg2 = static_cast< long >(val2);
11995 ecode3 = SWIG_AsVal_long(obj2, &val3);
11996 if (!SWIG_IsOK(ecode3)) {
11997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11998 }
11999 arg3 = static_cast< long >(val3);
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 {
12007#if wxUSE_UNICODE
12008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12009#else
12010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12011#endif
12012 }
12013 return resultobj;
12014fail:
12015 return NULL;
12016}
12017
12018
12019SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12020 PyObject *resultobj = 0;
12021 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12022 long arg2 ;
12023 int result;
12024 void *argp1 = 0 ;
12025 int res1 = 0 ;
12026 long val2 ;
12027 int ecode2 = 0 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 char * kwnames[] = {
12031 (char *) "self",(char *) "lineNo", NULL
12032 };
12033
12034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12036 if (!SWIG_IsOK(res1)) {
12037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12038 }
12039 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12040 ecode2 = SWIG_AsVal_long(obj1, &val2);
12041 if (!SWIG_IsOK(ecode2)) {
12042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12043 }
12044 arg2 = static_cast< long >(val2);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_From_int(static_cast< int >(result));
12052 return resultobj;
12053fail:
12054 return NULL;
12055}
12056
12057
12058SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 long arg2 ;
12062 wxString result;
12063 void *argp1 = 0 ;
12064 int res1 = 0 ;
12065 long val2 ;
12066 int ecode2 = 0 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 char * kwnames[] = {
12070 (char *) "self",(char *) "lineNo", NULL
12071 };
12072
12073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12077 }
12078 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12079 ecode2 = SWIG_AsVal_long(obj1, &val2);
12080 if (!SWIG_IsOK(ecode2)) {
12081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12082 }
12083 arg2 = static_cast< long >(val2);
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 {
12091#if wxUSE_UNICODE
12092 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12093#else
12094 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12095#endif
12096 }
12097 return resultobj;
12098fail:
12099 return NULL;
d55e5bfc
RD
12100}
12101
12102
1bd55598
RD
12103SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12104 PyObject *resultobj = 0;
12105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12106 int result;
12107 void *argp1 = 0 ;
12108 int res1 = 0 ;
12109 PyObject *swig_obj[1] ;
12110
12111 if (!args) SWIG_fail;
12112 swig_obj[0] = args;
12113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12116 }
12117 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12118 {
12119 PyThreadState* __tstate = wxPyBeginAllowThreads();
12120 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 resultobj = SWIG_From_int(static_cast< int >(result));
12125 return resultobj;
12126fail:
12127 return NULL;
d55e5bfc
RD
12128}
12129
12130
1bd55598
RD
12131SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12132 PyObject *resultobj = 0;
12133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12134 bool result;
12135 void *argp1 = 0 ;
12136 int res1 = 0 ;
12137 PyObject *swig_obj[1] ;
12138
12139 if (!args) SWIG_fail;
12140 swig_obj[0] = args;
12141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12142 if (!SWIG_IsOK(res1)) {
12143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12144 }
12145 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 {
12153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12154 }
12155 return resultobj;
12156fail:
12157 return NULL;
d55e5bfc
RD
12158}
12159
12160
1bd55598
RD
12161SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12162 PyObject *resultobj = 0;
12163 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12164 bool result;
12165 void *argp1 = 0 ;
12166 int res1 = 0 ;
12167 PyObject *swig_obj[1] ;
12168
12169 if (!args) SWIG_fail;
12170 swig_obj[0] = args;
12171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12174 }
12175 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 {
12183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12184 }
12185 return resultobj;
12186fail:
12187 return NULL;
d55e5bfc
RD
12188}
12189
12190
1bd55598
RD
12191SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12192 PyObject *resultobj = 0;
12193 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12194 bool result;
12195 void *argp1 = 0 ;
12196 int res1 = 0 ;
12197 PyObject *swig_obj[1] ;
12198
12199 if (!args) SWIG_fail;
12200 swig_obj[0] = args;
12201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12202 if (!SWIG_IsOK(res1)) {
12203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12204 }
12205 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 {
12213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12214 }
12215 return resultobj;
12216fail:
12217 return NULL;
d55e5bfc
RD
12218}
12219
12220
1bd55598
RD
12221SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12222 PyObject *resultobj = 0;
12223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12224 bool result;
12225 void *argp1 = 0 ;
12226 int res1 = 0 ;
12227 PyObject *swig_obj[1] ;
12228
12229 if (!args) SWIG_fail;
12230 swig_obj[0] = args;
12231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12232 if (!SWIG_IsOK(res1)) {
12233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12234 }
12235 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12244 }
12245 return resultobj;
12246fail:
12247 return NULL;
12248}
12249
12250
12251SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12252 PyObject *resultobj = 0;
12253 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12254 long *arg2 = (long *) 0 ;
12255 long *arg3 = (long *) 0 ;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 long temp2 ;
12259 int res2 = SWIG_TMPOBJ ;
12260 long temp3 ;
12261 int res3 = SWIG_TMPOBJ ;
12262 PyObject *swig_obj[1] ;
12263
12264 arg2 = &temp2;
12265 arg3 = &temp3;
12266 if (!args) SWIG_fail;
12267 swig_obj[0] = args;
12268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12271 }
12272 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 resultobj = SWIG_Py_Void();
12280 if (SWIG_IsTmpObj(res2)) {
12281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12282 } else {
12283 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12285 }
12286 if (SWIG_IsTmpObj(res3)) {
12287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12288 } else {
12289 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12291 }
12292 return resultobj;
12293fail:
12294 return NULL;
d55e5bfc
RD
12295}
12296
12297
1bd55598
RD
12298SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12299 PyObject *resultobj = 0;
12300 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12301 wxString result;
12302 void *argp1 = 0 ;
12303 int res1 = 0 ;
12304 PyObject *swig_obj[1] ;
12305
12306 if (!args) SWIG_fail;
12307 swig_obj[0] = args;
12308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12309 if (!SWIG_IsOK(res1)) {
12310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12311 }
12312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12316 wxPyEndAllowThreads(__tstate);
12317 if (PyErr_Occurred()) SWIG_fail;
12318 }
12319 {
d55e5bfc 12320#if wxUSE_UNICODE
1bd55598 12321 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12322#else
1bd55598 12323 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12324#endif
1bd55598
RD
12325 }
12326 return resultobj;
12327fail:
12328 return NULL;
d55e5bfc
RD
12329}
12330
12331
1bd55598
RD
12332SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12344 }
12345 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 (arg1)->Clear();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_Py_Void();
12353 return resultobj;
12354fail:
12355 return NULL;
12356}
12357
12358
12359SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj = 0;
12361 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12362 long arg2 ;
12363 long arg3 ;
12364 wxString *arg4 = 0 ;
12365 void *argp1 = 0 ;
12366 int res1 = 0 ;
12367 long val2 ;
12368 int ecode2 = 0 ;
12369 long val3 ;
12370 int ecode3 = 0 ;
12371 bool temp4 = false ;
12372 PyObject * obj0 = 0 ;
12373 PyObject * obj1 = 0 ;
12374 PyObject * obj2 = 0 ;
12375 PyObject * obj3 = 0 ;
12376 char * kwnames[] = {
2131d850 12377 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12378 };
12379
12380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12384 }
12385 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12386 ecode2 = SWIG_AsVal_long(obj1, &val2);
12387 if (!SWIG_IsOK(ecode2)) {
12388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12389 }
12390 arg2 = static_cast< long >(val2);
12391 ecode3 = SWIG_AsVal_long(obj2, &val3);
12392 if (!SWIG_IsOK(ecode3)) {
12393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12394 }
12395 arg3 = static_cast< long >(val3);
12396 {
12397 arg4 = wxString_in_helper(obj3);
12398 if (arg4 == NULL) SWIG_fail;
12399 temp4 = true;
12400 }
12401 {
12402 PyThreadState* __tstate = wxPyBeginAllowThreads();
12403 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 resultobj = SWIG_Py_Void();
12408 {
12409 if (temp4)
12410 delete arg4;
12411 }
12412 return resultobj;
12413fail:
12414 {
12415 if (temp4)
12416 delete arg4;
12417 }
12418 return NULL;
12419}
12420
12421
12422SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12423 PyObject *resultobj = 0;
12424 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12425 long arg2 ;
12426 long arg3 ;
12427 void *argp1 = 0 ;
12428 int res1 = 0 ;
12429 long val2 ;
12430 int ecode2 = 0 ;
12431 long val3 ;
12432 int ecode3 = 0 ;
12433 PyObject * obj0 = 0 ;
12434 PyObject * obj1 = 0 ;
12435 PyObject * obj2 = 0 ;
12436 char * kwnames[] = {
2131d850 12437 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12438 };
12439
12440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12442 if (!SWIG_IsOK(res1)) {
12443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12444 }
12445 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12446 ecode2 = SWIG_AsVal_long(obj1, &val2);
12447 if (!SWIG_IsOK(ecode2)) {
12448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12449 }
12450 arg2 = static_cast< long >(val2);
12451 ecode3 = SWIG_AsVal_long(obj2, &val3);
12452 if (!SWIG_IsOK(ecode3)) {
12453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12454 }
12455 arg3 = static_cast< long >(val3);
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 (arg1)->Remove(arg2,arg3);
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 resultobj = SWIG_Py_Void();
12463 return resultobj;
12464fail:
12465 return NULL;
12466}
12467
12468
12469SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj = 0;
12471 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12472 wxString *arg2 = 0 ;
f5263701 12473 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12474 bool result;
12475 void *argp1 = 0 ;
12476 int res1 = 0 ;
12477 bool temp2 = false ;
f5263701
RD
12478 int val3 ;
12479 int ecode3 = 0 ;
1bd55598
RD
12480 PyObject * obj0 = 0 ;
12481 PyObject * obj1 = 0 ;
f5263701 12482 PyObject * obj2 = 0 ;
1bd55598 12483 char * kwnames[] = {
f5263701 12484 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12485 };
12486
f5263701 12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12491 }
12492 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12493 {
12494 arg2 = wxString_in_helper(obj1);
12495 if (arg2 == NULL) SWIG_fail;
12496 temp2 = true;
12497 }
f5263701
RD
12498 if (obj2) {
12499 ecode3 = SWIG_AsVal_int(obj2, &val3);
12500 if (!SWIG_IsOK(ecode3)) {
12501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12502 }
12503 arg3 = static_cast< int >(val3);
12504 }
1bd55598
RD
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12507 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 {
12512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12513 }
12514 {
12515 if (temp2)
12516 delete arg2;
12517 }
12518 return resultobj;
12519fail:
12520 {
12521 if (temp2)
12522 delete arg2;
12523 }
12524 return NULL;
12525}
12526
12527
12528SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj = 0;
12530 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12531 wxString const &arg2_defvalue = wxPyEmptyString ;
12532 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12533 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12534 bool result;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 bool temp2 = false ;
f5263701
RD
12538 int val3 ;
12539 int ecode3 = 0 ;
1bd55598
RD
12540 PyObject * obj0 = 0 ;
12541 PyObject * obj1 = 0 ;
f5263701 12542 PyObject * obj2 = 0 ;
1bd55598 12543 char * kwnames[] = {
f5263701 12544 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12545 };
12546
f5263701 12547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 if (obj1) {
d55e5bfc 12554 {
1bd55598
RD
12555 arg2 = wxString_in_helper(obj1);
12556 if (arg2 == NULL) SWIG_fail;
12557 temp2 = true;
d55e5bfc 12558 }
1bd55598 12559 }
f5263701
RD
12560 if (obj2) {
12561 ecode3 = SWIG_AsVal_int(obj2, &val3);
12562 if (!SWIG_IsOK(ecode3)) {
12563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12564 }
12565 arg3 = static_cast< int >(val3);
12566 }
1bd55598
RD
12567 {
12568 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12569 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
1bd55598
RD
12570 wxPyEndAllowThreads(__tstate);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
12573 {
12574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12575 }
12576 {
12577 if (temp2)
12578 delete arg2;
12579 }
12580 return resultobj;
12581fail:
12582 {
12583 if (temp2)
12584 delete arg2;
12585 }
12586 return NULL;
d55e5bfc
RD
12587}
12588
12589
1bd55598
RD
12590SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12591 PyObject *resultobj = 0;
12592 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12593 void *argp1 = 0 ;
12594 int res1 = 0 ;
12595 PyObject *swig_obj[1] ;
12596
12597 if (!args) SWIG_fail;
12598 swig_obj[0] = args;
12599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12600 if (!SWIG_IsOK(res1)) {
12601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12602 }
12603 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12604 {
12605 PyThreadState* __tstate = wxPyBeginAllowThreads();
12606 (arg1)->MarkDirty();
12607 wxPyEndAllowThreads(__tstate);
12608 if (PyErr_Occurred()) SWIG_fail;
12609 }
12610 resultobj = SWIG_Py_Void();
12611 return resultobj;
12612fail:
12613 return NULL;
d55e5bfc
RD
12614}
12615
12616
1bd55598
RD
12617SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12618 PyObject *resultobj = 0;
12619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12620 void *argp1 = 0 ;
12621 int res1 = 0 ;
12622 PyObject *swig_obj[1] ;
12623
12624 if (!args) SWIG_fail;
12625 swig_obj[0] = args;
12626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12629 }
12630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 (arg1)->DiscardEdits();
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = SWIG_Py_Void();
12638 return resultobj;
12639fail:
12640 return NULL;
12641}
12642
12643
b02396e8
RD
12644SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj = 0;
12646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12647 bool arg2 ;
12648 void *argp1 = 0 ;
12649 int res1 = 0 ;
12650 bool val2 ;
12651 int ecode2 = 0 ;
12652 PyObject * obj0 = 0 ;
12653 PyObject * obj1 = 0 ;
12654 char * kwnames[] = {
12655 (char *) "self",(char *) "modified", NULL
12656 };
12657
12658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12660 if (!SWIG_IsOK(res1)) {
12661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12662 }
12663 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12664 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12665 if (!SWIG_IsOK(ecode2)) {
12666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12667 }
12668 arg2 = static_cast< bool >(val2);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 (arg1)->SetModified(arg2);
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 resultobj = SWIG_Py_Void();
12676 return resultobj;
12677fail:
12678 return NULL;
12679}
12680
12681
1bd55598
RD
12682SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj = 0;
12684 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12685 unsigned long arg2 ;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 unsigned long val2 ;
12689 int ecode2 = 0 ;
12690 PyObject * obj0 = 0 ;
12691 PyObject * obj1 = 0 ;
12692 char * kwnames[] = {
12693 (char *) "self",(char *) "len", NULL
12694 };
12695
12696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12700 }
12701 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12702 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12703 if (!SWIG_IsOK(ecode2)) {
12704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12705 }
12706 arg2 = static_cast< unsigned long >(val2);
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 (arg1)->SetMaxLength(arg2);
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 resultobj = SWIG_Py_Void();
12714 return resultobj;
12715fail:
12716 return NULL;
12717}
12718
12719
12720SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12721 PyObject *resultobj = 0;
12722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12723 wxString *arg2 = 0 ;
12724 void *argp1 = 0 ;
12725 int res1 = 0 ;
12726 bool temp2 = false ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 char * kwnames[] = {
12730 (char *) "self",(char *) "text", NULL
12731 };
12732
12733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12737 }
12738 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12739 {
12740 arg2 = wxString_in_helper(obj1);
12741 if (arg2 == NULL) SWIG_fail;
12742 temp2 = true;
12743 }
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 (arg1)->WriteText((wxString const &)*arg2);
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 resultobj = SWIG_Py_Void();
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return resultobj;
12756fail:
12757 {
12758 if (temp2)
12759 delete arg2;
12760 }
12761 return NULL;
d55e5bfc
RD
12762}
12763
12764
1bd55598
RD
12765SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj = 0;
12767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12768 wxString *arg2 = 0 ;
12769 void *argp1 = 0 ;
12770 int res1 = 0 ;
12771 bool temp2 = false ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "text", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12782 }
12783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12784 {
12785 arg2 = wxString_in_helper(obj1);
12786 if (arg2 == NULL) SWIG_fail;
12787 temp2 = true;
12788 }
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 (arg1)->AppendText((wxString const &)*arg2);
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 resultobj = SWIG_Py_Void();
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 return resultobj;
12801fail:
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 return NULL;
12807}
12808
12809
12810SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12811 PyObject *resultobj = 0;
12812 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12813 wxKeyEvent *arg2 = 0 ;
12814 bool result;
12815 void *argp1 = 0 ;
12816 int res1 = 0 ;
12817 void *argp2 = 0 ;
12818 int res2 = 0 ;
12819 PyObject * obj0 = 0 ;
12820 PyObject * obj1 = 0 ;
12821 char * kwnames[] = {
12822 (char *) "self",(char *) "event", NULL
12823 };
12824
12825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12827 if (!SWIG_IsOK(res1)) {
12828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12829 }
12830 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12832 if (!SWIG_IsOK(res2)) {
12833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12834 }
12835 if (!argp2) {
12836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12837 }
12838 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 {
12846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12847 }
12848 return resultobj;
12849fail:
12850 return NULL;
12851}
12852
12853
12854SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12855 PyObject *resultobj = 0;
12856 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12857 long arg2 ;
12858 long arg3 ;
12859 wxTextAttr *arg4 = 0 ;
12860 bool result;
12861 void *argp1 = 0 ;
12862 int res1 = 0 ;
12863 long val2 ;
12864 int ecode2 = 0 ;
12865 long val3 ;
12866 int ecode3 = 0 ;
12867 void *argp4 = 0 ;
12868 int res4 = 0 ;
12869 PyObject * obj0 = 0 ;
12870 PyObject * obj1 = 0 ;
12871 PyObject * obj2 = 0 ;
12872 PyObject * obj3 = 0 ;
12873 char * kwnames[] = {
12874 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12875 };
12876
12877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12879 if (!SWIG_IsOK(res1)) {
12880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12881 }
12882 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12883 ecode2 = SWIG_AsVal_long(obj1, &val2);
12884 if (!SWIG_IsOK(ecode2)) {
12885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12886 }
12887 arg2 = static_cast< long >(val2);
12888 ecode3 = SWIG_AsVal_long(obj2, &val3);
12889 if (!SWIG_IsOK(ecode3)) {
12890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12891 }
12892 arg3 = static_cast< long >(val3);
12893 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12894 if (!SWIG_IsOK(res4)) {
12895 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12896 }
12897 if (!argp4) {
12898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12899 }
12900 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 {
12908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12909 }
12910 return resultobj;
12911fail:
12912 return NULL;
12913}
12914
12915
12916SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12917 PyObject *resultobj = 0;
12918 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12919 long arg2 ;
12920 wxTextAttr *arg3 = 0 ;
12921 bool result;
12922 void *argp1 = 0 ;
12923 int res1 = 0 ;
12924 long val2 ;
12925 int ecode2 = 0 ;
12926 void *argp3 = 0 ;
12927 int res3 = 0 ;
12928 PyObject * obj0 = 0 ;
12929 PyObject * obj1 = 0 ;
12930 PyObject * obj2 = 0 ;
12931 char * kwnames[] = {
12932 (char *) "self",(char *) "position",(char *) "style", NULL
12933 };
12934
12935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12937 if (!SWIG_IsOK(res1)) {
12938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12939 }
12940 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12941 ecode2 = SWIG_AsVal_long(obj1, &val2);
12942 if (!SWIG_IsOK(ecode2)) {
12943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12944 }
12945 arg2 = static_cast< long >(val2);
12946 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12947 if (!SWIG_IsOK(res3)) {
12948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12949 }
12950 if (!argp3) {
12951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12952 }
12953 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 {
12961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12962 }
12963 return resultobj;
12964fail:
12965 return NULL;
12966}
12967
12968
12969SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj = 0;
12971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12972 wxTextAttr *arg2 = 0 ;
12973 bool result;
12974 void *argp1 = 0 ;
12975 int res1 = 0 ;
12976 void *argp2 = 0 ;
12977 int res2 = 0 ;
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
12980 char * kwnames[] = {
12981 (char *) "self",(char *) "style", NULL
12982 };
12983
12984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12986 if (!SWIG_IsOK(res1)) {
12987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12988 }
12989 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12991 if (!SWIG_IsOK(res2)) {
12992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12993 }
12994 if (!argp2) {
12995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12996 }
12997 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 {
13005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13006 }
13007 return resultobj;
13008fail:
13009 return NULL;
d55e5bfc
RD
13010}
13011
13012
1bd55598
RD
13013SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13014 PyObject *resultobj = 0;
13015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13016 wxTextAttr *result = 0 ;
13017 void *argp1 = 0 ;
13018 int res1 = 0 ;
13019 PyObject *swig_obj[1] ;
13020
13021 if (!args) SWIG_fail;
13022 swig_obj[0] = args;
13023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13024 if (!SWIG_IsOK(res1)) {
13025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13026 }
13027 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13030 {
1bd55598
RD
13031 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13032 result = (wxTextAttr *) &_result_ref;
d55e5bfc 13033 }
1bd55598
RD
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13038 return resultobj;
13039fail:
13040 return NULL;
13041}
13042
13043
13044SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13045 PyObject *resultobj = 0;
13046 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13047 long arg2 ;
13048 long arg3 ;
13049 long result;
13050 void *argp1 = 0 ;
13051 int res1 = 0 ;
13052 long val2 ;
13053 int ecode2 = 0 ;
13054 long val3 ;
13055 int ecode3 = 0 ;
13056 PyObject * obj0 = 0 ;
13057 PyObject * obj1 = 0 ;
13058 PyObject * obj2 = 0 ;
13059 char * kwnames[] = {
13060 (char *) "self",(char *) "x",(char *) "y", NULL
13061 };
13062
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13067 }
13068 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13069 ecode2 = SWIG_AsVal_long(obj1, &val2);
13070 if (!SWIG_IsOK(ecode2)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13072 }
13073 arg2 = static_cast< long >(val2);
13074 ecode3 = SWIG_AsVal_long(obj2, &val3);
13075 if (!SWIG_IsOK(ecode3)) {
13076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13077 }
13078 arg3 = static_cast< long >(val3);
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13082 wxPyEndAllowThreads(__tstate);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 resultobj = SWIG_From_long(static_cast< long >(result));
13086 return resultobj;
13087fail:
13088 return NULL;
13089}
13090
13091
13092SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13093 PyObject *resultobj = 0;
13094 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13095 long arg2 ;
13096 long *arg3 = (long *) 0 ;
13097 long *arg4 = (long *) 0 ;
13098 void *argp1 = 0 ;
13099 int res1 = 0 ;
13100 long val2 ;
13101 int ecode2 = 0 ;
13102 long temp3 ;
13103 int res3 = SWIG_TMPOBJ ;
13104 long temp4 ;
13105 int res4 = SWIG_TMPOBJ ;
13106 PyObject * obj0 = 0 ;
13107 PyObject * obj1 = 0 ;
13108 char * kwnames[] = {
13109 (char *) "self",(char *) "pos", NULL
13110 };
13111
13112 arg3 = &temp3;
13113 arg4 = &temp4;
13114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13116 if (!SWIG_IsOK(res1)) {
13117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13118 }
13119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13120 ecode2 = SWIG_AsVal_long(obj1, &val2);
13121 if (!SWIG_IsOK(ecode2)) {
13122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13123 }
13124 arg2 = static_cast< long >(val2);
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_Py_Void();
13132 if (SWIG_IsTmpObj(res3)) {
13133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13134 } else {
13135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13137 }
13138 if (SWIG_IsTmpObj(res4)) {
13139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13140 } else {
13141 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13143 }
13144 return resultobj;
13145fail:
13146 return NULL;
13147}
13148
13149
13150SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj = 0;
13152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13153 long arg2 ;
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 long val2 ;
13157 int ecode2 = 0 ;
13158 PyObject * obj0 = 0 ;
13159 PyObject * obj1 = 0 ;
13160 char * kwnames[] = {
13161 (char *) "self",(char *) "pos", NULL
13162 };
13163
13164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13166 if (!SWIG_IsOK(res1)) {
13167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13168 }
13169 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13170 ecode2 = SWIG_AsVal_long(obj1, &val2);
13171 if (!SWIG_IsOK(ecode2)) {
13172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13173 }
13174 arg2 = static_cast< long >(val2);
13175 {
13176 PyThreadState* __tstate = wxPyBeginAllowThreads();
13177 (arg1)->ShowPosition(arg2);
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 resultobj = SWIG_Py_Void();
13182 return resultobj;
13183fail:
13184 return NULL;
13185}
13186
13187
13188SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj = 0;
13190 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13191 wxPoint *arg2 = 0 ;
13192 long *arg3 = (long *) 0 ;
13193 long *arg4 = (long *) 0 ;
13194 wxTextCtrlHitTestResult result;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 wxPoint temp2 ;
13198 long temp3 ;
13199 int res3 = SWIG_TMPOBJ ;
13200 long temp4 ;
13201 int res4 = SWIG_TMPOBJ ;
13202 PyObject * obj0 = 0 ;
13203 PyObject * obj1 = 0 ;
13204 char * kwnames[] = {
13205 (char *) "self",(char *) "pt", NULL
13206 };
13207
13208 arg3 = &temp3;
13209 arg4 = &temp4;
13210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13212 if (!SWIG_IsOK(res1)) {
13213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13214 }
13215 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13216 {
13217 arg2 = &temp2;
13218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13219 }
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 resultobj = SWIG_From_int(static_cast< int >(result));
13227 if (SWIG_IsTmpObj(res3)) {
13228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13229 } else {
13230 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13232 }
13233 if (SWIG_IsTmpObj(res4)) {
13234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13235 } else {
13236 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13238 }
13239 return resultobj;
13240fail:
13241 return NULL;
13242}
13243
13244
13245SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13246 PyObject *resultobj = 0;
13247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13248 wxPoint *arg2 = 0 ;
13249 long *arg3 = (long *) 0 ;
13250 wxTextCtrlHitTestResult result;
13251 void *argp1 = 0 ;
13252 int res1 = 0 ;
13253 wxPoint temp2 ;
13254 long temp3 ;
13255 int res3 = SWIG_TMPOBJ ;
13256 PyObject * obj0 = 0 ;
13257 PyObject * obj1 = 0 ;
13258 char * kwnames[] = {
13259 (char *) "self",(char *) "pt", NULL
13260 };
13261
13262 arg3 = &temp3;
13263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13265 if (!SWIG_IsOK(res1)) {
13266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13267 }
13268 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13269 {
13270 arg2 = &temp2;
13271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13272 }
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
13275 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13276 wxPyEndAllowThreads(__tstate);
13277 if (PyErr_Occurred()) SWIG_fail;
13278 }
13279 resultobj = SWIG_From_int(static_cast< int >(result));
13280 if (SWIG_IsTmpObj(res3)) {
13281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13282 } else {
13283 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13285 }
13286 return resultobj;
13287fail:
13288 return NULL;
d55e5bfc
RD
13289}
13290
13291
1bd55598
RD
13292SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13293 PyObject *resultobj = 0;
13294 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13295 void *argp1 = 0 ;
13296 int res1 = 0 ;
13297 PyObject *swig_obj[1] ;
13298
13299 if (!args) SWIG_fail;
13300 swig_obj[0] = args;
13301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13302 if (!SWIG_IsOK(res1)) {
13303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13304 }
13305 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 (arg1)->Copy();
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 resultobj = SWIG_Py_Void();
13313 return resultobj;
13314fail:
13315 return NULL;
d55e5bfc
RD
13316}
13317
13318
1bd55598
RD
13319SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13320 PyObject *resultobj = 0;
13321 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13322 void *argp1 = 0 ;
13323 int res1 = 0 ;
13324 PyObject *swig_obj[1] ;
13325
13326 if (!args) SWIG_fail;
13327 swig_obj[0] = args;
13328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13329 if (!SWIG_IsOK(res1)) {
13330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13331 }
13332 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 (arg1)->Cut();
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 resultobj = SWIG_Py_Void();
13340 return resultobj;
13341fail:
13342 return NULL;
d55e5bfc
RD
13343}
13344
13345
1bd55598
RD
13346SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13347 PyObject *resultobj = 0;
13348 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13349 void *argp1 = 0 ;
13350 int res1 = 0 ;
13351 PyObject *swig_obj[1] ;
13352
13353 if (!args) SWIG_fail;
13354 swig_obj[0] = args;
13355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13356 if (!SWIG_IsOK(res1)) {
13357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13358 }
13359 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13360 {
13361 PyThreadState* __tstate = wxPyBeginAllowThreads();
13362 (arg1)->Paste();
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_Py_Void();
13367 return resultobj;
13368fail:
13369 return NULL;
d55e5bfc
RD
13370}
13371
13372
1bd55598
RD
13373SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13374 PyObject *resultobj = 0;
13375 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13376 bool result;
13377 void *argp1 = 0 ;
13378 int res1 = 0 ;
13379 PyObject *swig_obj[1] ;
13380
13381 if (!args) SWIG_fail;
13382 swig_obj[0] = args;
13383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13384 if (!SWIG_IsOK(res1)) {
13385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13386 }
13387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 {
13395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13396 }
13397 return resultobj;
13398fail:
13399 return NULL;
d55e5bfc
RD
13400}
13401
13402
1bd55598
RD
13403SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13404 PyObject *resultobj = 0;
13405 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13406 bool result;
13407 void *argp1 = 0 ;
13408 int res1 = 0 ;
13409 PyObject *swig_obj[1] ;
13410
13411 if (!args) SWIG_fail;
13412 swig_obj[0] = args;
13413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13414 if (!SWIG_IsOK(res1)) {
13415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13416 }
13417 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 {
13425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13426 }
13427 return resultobj;
13428fail:
13429 return NULL;
d55e5bfc
RD
13430}
13431
13432
1bd55598
RD
13433SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13434 PyObject *resultobj = 0;
13435 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13436 bool result;
13437 void *argp1 = 0 ;
13438 int res1 = 0 ;
13439 PyObject *swig_obj[1] ;
13440
13441 if (!args) SWIG_fail;
13442 swig_obj[0] = args;
13443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13444 if (!SWIG_IsOK(res1)) {
13445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13446 }
13447 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 {
13455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13456 }
13457 return resultobj;
13458fail:
13459 return NULL;
d55e5bfc
RD
13460}
13461
13462
1bd55598
RD
13463SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13466 void *argp1 = 0 ;
13467 int res1 = 0 ;
13468 PyObject *swig_obj[1] ;
13469
13470 if (!args) SWIG_fail;
13471 swig_obj[0] = args;
13472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13473 if (!SWIG_IsOK(res1)) {
13474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13475 }
13476 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 (arg1)->Undo();
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = SWIG_Py_Void();
13484 return resultobj;
13485fail:
13486 return NULL;
d55e5bfc
RD
13487}
13488
13489
1bd55598
RD
13490SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13491 PyObject *resultobj = 0;
13492 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13493 void *argp1 = 0 ;
13494 int res1 = 0 ;
13495 PyObject *swig_obj[1] ;
13496
13497 if (!args) SWIG_fail;
13498 swig_obj[0] = args;
13499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13500 if (!SWIG_IsOK(res1)) {
13501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13502 }
13503 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 (arg1)->Redo();
13507 wxPyEndAllowThreads(__tstate);
13508 if (PyErr_Occurred()) SWIG_fail;
13509 }
13510 resultobj = SWIG_Py_Void();
13511 return resultobj;
13512fail:
13513 return NULL;
d55e5bfc
RD
13514}
13515
13516
1bd55598
RD
13517SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13518 PyObject *resultobj = 0;
13519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13520 bool result;
13521 void *argp1 = 0 ;
13522 int res1 = 0 ;
13523 PyObject *swig_obj[1] ;
13524
13525 if (!args) SWIG_fail;
13526 swig_obj[0] = args;
13527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13528 if (!SWIG_IsOK(res1)) {
13529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13530 }
13531 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13540 }
13541 return resultobj;
13542fail:
13543 return NULL;
d55e5bfc
RD
13544}
13545
13546
1bd55598
RD
13547SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13548 PyObject *resultobj = 0;
13549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13550 bool result;
13551 void *argp1 = 0 ;
13552 int res1 = 0 ;
13553 PyObject *swig_obj[1] ;
13554
13555 if (!args) SWIG_fail;
13556 swig_obj[0] = args;
13557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13558 if (!SWIG_IsOK(res1)) {
13559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13560 }
13561 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 {
13569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13570 }
13571 return resultobj;
13572fail:
13573 return NULL;
13574}
13575
13576
13577SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = 0;
13579 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13580 long arg2 ;
13581 void *argp1 = 0 ;
13582 int res1 = 0 ;
13583 long val2 ;
13584 int ecode2 = 0 ;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 char * kwnames[] = {
13588 (char *) "self",(char *) "pos", NULL
13589 };
13590
13591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13593 if (!SWIG_IsOK(res1)) {
13594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13595 }
13596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13597 ecode2 = SWIG_AsVal_long(obj1, &val2);
13598 if (!SWIG_IsOK(ecode2)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13600 }
13601 arg2 = static_cast< long >(val2);
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 (arg1)->SetInsertionPoint(arg2);
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 resultobj = SWIG_Py_Void();
13609 return resultobj;
13610fail:
13611 return NULL;
d55e5bfc
RD
13612}
13613
13614
1bd55598
RD
13615SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13616 PyObject *resultobj = 0;
13617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13618 void *argp1 = 0 ;
13619 int res1 = 0 ;
13620 PyObject *swig_obj[1] ;
13621
13622 if (!args) SWIG_fail;
13623 swig_obj[0] = args;
13624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13625 if (!SWIG_IsOK(res1)) {
13626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13627 }
13628 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 (arg1)->SetInsertionPointEnd();
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 resultobj = SWIG_Py_Void();
13636 return resultobj;
13637fail:
13638 return NULL;
d55e5bfc
RD
13639}
13640
13641
1bd55598
RD
13642SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13643 PyObject *resultobj = 0;
13644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13645 long result;
13646 void *argp1 = 0 ;
13647 int res1 = 0 ;
13648 PyObject *swig_obj[1] ;
13649
13650 if (!args) SWIG_fail;
13651 swig_obj[0] = args;
13652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13653 if (!SWIG_IsOK(res1)) {
13654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13655 }
13656 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 resultobj = SWIG_From_long(static_cast< long >(result));
13664 return resultobj;
13665fail:
13666 return NULL;
d55e5bfc
RD
13667}
13668
13669
1bd55598
RD
13670SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13671 PyObject *resultobj = 0;
13672 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13673 long result;
13674 void *argp1 = 0 ;
13675 int res1 = 0 ;
13676 PyObject *swig_obj[1] ;
13677
13678 if (!args) SWIG_fail;
13679 swig_obj[0] = args;
13680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13681 if (!SWIG_IsOK(res1)) {
13682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13683 }
13684 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_From_long(static_cast< long >(result));
13692 return resultobj;
13693fail:
13694 return NULL;
13695}
13696
13697
13698SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 long arg2 ;
13702 long arg3 ;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 long val2 ;
13706 int ecode2 = 0 ;
13707 long val3 ;
13708 int ecode3 = 0 ;
13709 PyObject * obj0 = 0 ;
13710 PyObject * obj1 = 0 ;
13711 PyObject * obj2 = 0 ;
13712 char * kwnames[] = {
2131d850 13713 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13714 };
13715
13716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13718 if (!SWIG_IsOK(res1)) {
13719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13720 }
13721 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13722 ecode2 = SWIG_AsVal_long(obj1, &val2);
13723 if (!SWIG_IsOK(ecode2)) {
13724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13725 }
13726 arg2 = static_cast< long >(val2);
13727 ecode3 = SWIG_AsVal_long(obj2, &val3);
13728 if (!SWIG_IsOK(ecode3)) {
13729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13730 }
13731 arg3 = static_cast< long >(val3);
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 (arg1)->SetSelection(arg2,arg3);
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 resultobj = SWIG_Py_Void();
13739 return resultobj;
13740fail:
13741 return NULL;
d55e5bfc
RD
13742}
13743
13744
1bd55598
RD
13745SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13746 PyObject *resultobj = 0;
13747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13748 void *argp1 = 0 ;
13749 int res1 = 0 ;
13750 PyObject *swig_obj[1] ;
13751
13752 if (!args) SWIG_fail;
13753 swig_obj[0] = args;
13754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13755 if (!SWIG_IsOK(res1)) {
13756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13757 }
13758 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13759 {
13760 PyThreadState* __tstate = wxPyBeginAllowThreads();
13761 (arg1)->SelectAll();
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 resultobj = SWIG_Py_Void();
13766 return resultobj;
13767fail:
13768 return NULL;
13769}
13770
13771
13772SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13773 PyObject *resultobj = 0;
13774 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13775 bool arg2 ;
13776 void *argp1 = 0 ;
13777 int res1 = 0 ;
13778 bool val2 ;
13779 int ecode2 = 0 ;
13780 PyObject * obj0 = 0 ;
13781 PyObject * obj1 = 0 ;
13782 char * kwnames[] = {
13783 (char *) "self",(char *) "editable", NULL
13784 };
13785
13786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13788 if (!SWIG_IsOK(res1)) {
13789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13790 }
13791 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13792 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13793 if (!SWIG_IsOK(ecode2)) {
13794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13795 }
13796 arg2 = static_cast< bool >(val2);
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 (arg1)->SetEditable(arg2);
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_Py_Void();
13804 return resultobj;
13805fail:
13806 return NULL;
13807}
13808
13809
b39fe951
RD
13810SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13811 PyObject *resultobj = 0;
13812 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13813 void *argp1 = 0 ;
13814 int res1 = 0 ;
13815 PyObject *swig_obj[1] ;
13816
13817 if (!args) SWIG_fail;
13818 swig_obj[0] = args;
13819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13820 if (!SWIG_IsOK(res1)) {
13821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13822 }
13823 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 (arg1)->SendTextUpdatedEvent();
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_Py_Void();
13831 return resultobj;
13832fail:
13833 return NULL;
13834}
13835
13836
1bd55598
RD
13837SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj = 0;
13839 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13840 wxString *arg2 = 0 ;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 bool temp2 = false ;
13844 PyObject * obj0 = 0 ;
13845 PyObject * obj1 = 0 ;
13846 char * kwnames[] = {
13847 (char *) "self",(char *) "text", NULL
13848 };
13849
13850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13852 if (!SWIG_IsOK(res1)) {
13853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13854 }
13855 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13856 {
13857 arg2 = wxString_in_helper(obj1);
13858 if (arg2 == NULL) SWIG_fail;
13859 temp2 = true;
13860 }
13861 {
13862 PyThreadState* __tstate = wxPyBeginAllowThreads();
13863 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13864 wxPyEndAllowThreads(__tstate);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 }
13867 resultobj = SWIG_Py_Void();
13868 {
13869 if (temp2)
13870 delete arg2;
13871 }
13872 return resultobj;
13873fail:
13874 {
13875 if (temp2)
13876 delete arg2;
13877 }
13878 return NULL;
13879}
13880
13881
13882SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj = 0;
13884 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13885 long arg2 ;
13886 long arg3 ;
13887 wxString result;
13888 void *argp1 = 0 ;
13889 int res1 = 0 ;
13890 long val2 ;
13891 int ecode2 = 0 ;
13892 long val3 ;
13893 int ecode3 = 0 ;
13894 PyObject * obj0 = 0 ;
13895 PyObject * obj1 = 0 ;
13896 PyObject * obj2 = 0 ;
13897 char * kwnames[] = {
2131d850 13898 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13899 };
13900
13901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13905 }
13906 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13907 ecode2 = SWIG_AsVal_long(obj1, &val2);
13908 if (!SWIG_IsOK(ecode2)) {
13909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13910 }
13911 arg2 = static_cast< long >(val2);
13912 ecode3 = SWIG_AsVal_long(obj2, &val3);
13913 if (!SWIG_IsOK(ecode3)) {
13914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13915 }
13916 arg3 = static_cast< long >(val3);
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 {
13924#if wxUSE_UNICODE
13925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13926#else
13927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13928#endif
13929 }
13930 return resultobj;
13931fail:
13932 return NULL;
d55e5bfc
RD
13933}
13934
13935
1bd55598
RD
13936SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13937 PyObject *resultobj = 0;
13938 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13939 SwigValueWrapper<wxVisualAttributes > result;
13940 int val1 ;
13941 int ecode1 = 0 ;
13942 PyObject * obj0 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "variant", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13948 if (obj0) {
13949 ecode1 = SWIG_AsVal_int(obj0, &val1);
13950 if (!SWIG_IsOK(ecode1)) {
13951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13952 }
13953 arg1 = static_cast< wxWindowVariant >(val1);
13954 }
13955 {
13956 if (!wxPyCheckForApp()) SWIG_fail;
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13959 wxPyEndAllowThreads(__tstate);
13960 if (PyErr_Occurred()) SWIG_fail;
13961 }
13962 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13963 return resultobj;
13964fail:
13965 return NULL;
13966}
13967
13968
13969SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13970 PyObject *obj;
13971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13972 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13973 return SWIG_Py_Void();
13974}
13975
13976SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13977 return SWIG_Python_InitShadowInstance(args);
13978}
13979
13980SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13981 PyObject *resultobj = 0;
13982 int arg1 ;
13983 wxMouseEvent *arg2 = 0 ;
13984 long arg3 ;
13985 long arg4 ;
13986 wxTextUrlEvent *result = 0 ;
13987 int val1 ;
13988 int ecode1 = 0 ;
13989 void *argp2 = 0 ;
13990 int res2 = 0 ;
13991 long val3 ;
13992 int ecode3 = 0 ;
13993 long val4 ;
13994 int ecode4 = 0 ;
13995 PyObject * obj0 = 0 ;
13996 PyObject * obj1 = 0 ;
13997 PyObject * obj2 = 0 ;
13998 PyObject * obj3 = 0 ;
13999 char * kwnames[] = {
14000 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14001 };
14002
14003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14004 ecode1 = SWIG_AsVal_int(obj0, &val1);
14005 if (!SWIG_IsOK(ecode1)) {
14006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14007 }
14008 arg1 = static_cast< int >(val1);
14009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14010 if (!SWIG_IsOK(res2)) {
14011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14012 }
14013 if (!argp2) {
14014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14015 }
14016 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14017 ecode3 = SWIG_AsVal_long(obj2, &val3);
14018 if (!SWIG_IsOK(ecode3)) {
14019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14020 }
14021 arg3 = static_cast< long >(val3);
14022 ecode4 = SWIG_AsVal_long(obj3, &val4);
14023 if (!SWIG_IsOK(ecode4)) {
14024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14025 }
14026 arg4 = static_cast< long >(val4);
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14034 return resultobj;
14035fail:
14036 return NULL;
d55e5bfc
RD
14037}
14038
14039
1bd55598
RD
14040SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14041 PyObject *resultobj = 0;
14042 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14043 wxMouseEvent *result = 0 ;
14044 void *argp1 = 0 ;
14045 int res1 = 0 ;
14046 PyObject *swig_obj[1] ;
14047
14048 if (!args) SWIG_fail;
14049 swig_obj[0] = args;
14050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14051 if (!SWIG_IsOK(res1)) {
14052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14053 }
14054 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14057 {
1bd55598
RD
14058 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14059 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14060 }
1bd55598
RD
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14065 return resultobj;
14066fail:
14067 return NULL;
d55e5bfc
RD
14068}
14069
14070
1bd55598
RD
14071SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14072 PyObject *resultobj = 0;
14073 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14074 long result;
14075 void *argp1 = 0 ;
14076 int res1 = 0 ;
14077 PyObject *swig_obj[1] ;
14078
14079 if (!args) SWIG_fail;
14080 swig_obj[0] = args;
14081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14082 if (!SWIG_IsOK(res1)) {
14083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14084 }
14085 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14086 {
14087 PyThreadState* __tstate = wxPyBeginAllowThreads();
14088 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
14092 resultobj = SWIG_From_long(static_cast< long >(result));
14093 return resultobj;
14094fail:
14095 return NULL;
d55e5bfc
RD
14096}
14097
14098
1bd55598
RD
14099SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14100 PyObject *resultobj = 0;
14101 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14102 long result;
14103 void *argp1 = 0 ;
14104 int res1 = 0 ;
14105 PyObject *swig_obj[1] ;
14106
14107 if (!args) SWIG_fail;
14108 swig_obj[0] = args;
14109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14110 if (!SWIG_IsOK(res1)) {
14111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14112 }
14113 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 resultobj = SWIG_From_long(static_cast< long >(result));
14121 return resultobj;
14122fail:
14123 return NULL;
d55e5bfc
RD
14124}
14125
14126
1bd55598
RD
14127SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *obj;
14129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14130 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14131 return SWIG_Py_Void();
68e533f8
RD
14132}
14133
1bd55598
RD
14134SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14135 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14136}
14137
1bd55598
RD
14138SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14139 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14140 return 1;
d55e5bfc
RD
14141}
14142
14143
1bd55598
RD
14144SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14145 PyObject *pyobj = 0;
14146
14147 {
14148#if wxUSE_UNICODE
14149 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14150#else
14151 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14152#endif
14153 }
14154 return pyobj;
14155}
14156
14157
14158SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj = 0;
14160 wxWindow *arg1 = (wxWindow *) 0 ;
14161 int arg2 = (int) -1 ;
14162 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14163 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14164 wxSize const &arg4_defvalue = wxDefaultSize ;
14165 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14166 long arg5 = (long) wxSB_HORIZONTAL ;
14167 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14168 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14169 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14170 wxString *arg7 = (wxString *) &arg7_defvalue ;
14171 wxScrollBar *result = 0 ;
14172 void *argp1 = 0 ;
14173 int res1 = 0 ;
14174 int val2 ;
14175 int ecode2 = 0 ;
14176 wxPoint temp3 ;
14177 wxSize temp4 ;
14178 long val5 ;
14179 int ecode5 = 0 ;
14180 void *argp6 = 0 ;
14181 int res6 = 0 ;
14182 bool temp7 = false ;
14183 PyObject * obj0 = 0 ;
14184 PyObject * obj1 = 0 ;
14185 PyObject * obj2 = 0 ;
14186 PyObject * obj3 = 0 ;
14187 PyObject * obj4 = 0 ;
14188 PyObject * obj5 = 0 ;
14189 PyObject * obj6 = 0 ;
14190 char * kwnames[] = {
14191 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14192 };
14193
14194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14196 if (!SWIG_IsOK(res1)) {
14197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14198 }
14199 arg1 = reinterpret_cast< wxWindow * >(argp1);
14200 if (obj1) {
14201 ecode2 = SWIG_AsVal_int(obj1, &val2);
14202 if (!SWIG_IsOK(ecode2)) {
14203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14204 }
14205 arg2 = static_cast< int >(val2);
14206 }
14207 if (obj2) {
d55e5bfc 14208 {
1bd55598
RD
14209 arg3 = &temp3;
14210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14211 }
1bd55598
RD
14212 }
14213 if (obj3) {
36ed4f51 14214 {
1bd55598
RD
14215 arg4 = &temp4;
14216 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14217 }
1bd55598
RD
14218 }
14219 if (obj4) {
14220 ecode5 = SWIG_AsVal_long(obj4, &val5);
14221 if (!SWIG_IsOK(ecode5)) {
14222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14223 }
14224 arg5 = static_cast< long >(val5);
14225 }
14226 if (obj5) {
14227 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14228 if (!SWIG_IsOK(res6)) {
14229 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14230 }
1bd55598
RD
14231 if (!argp6) {
14232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14233 }
1bd55598
RD
14234 arg6 = reinterpret_cast< wxValidator * >(argp6);
14235 }
14236 if (obj6) {
d55e5bfc 14237 {
1bd55598
RD
14238 arg7 = wxString_in_helper(obj6);
14239 if (arg7 == NULL) SWIG_fail;
14240 temp7 = true;
d55e5bfc 14241 }
1bd55598
RD
14242 }
14243 {
14244 if (!wxPyCheckForApp()) SWIG_fail;
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
14246 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14247 wxPyEndAllowThreads(__tstate);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 }
14250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14251 {
14252 if (temp7)
14253 delete arg7;
14254 }
14255 return resultobj;
14256fail:
14257 {
14258 if (temp7)
14259 delete arg7;
14260 }
14261 return NULL;
d55e5bfc
RD
14262}
14263
14264
1bd55598
RD
14265SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14266 PyObject *resultobj = 0;
14267 wxScrollBar *result = 0 ;
14268
14269 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14270 {
14271 if (!wxPyCheckForApp()) SWIG_fail;
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = (wxScrollBar *)new wxScrollBar();
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14278 return resultobj;
14279fail:
14280 return NULL;
14281}
14282
14283
14284SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj = 0;
14286 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14287 wxWindow *arg2 = (wxWindow *) 0 ;
14288 int arg3 = (int) -1 ;
14289 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14290 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14291 wxSize const &arg5_defvalue = wxDefaultSize ;
14292 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14293 long arg6 = (long) wxSB_HORIZONTAL ;
14294 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14295 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14296 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14297 wxString *arg8 = (wxString *) &arg8_defvalue ;
14298 bool result;
14299 void *argp1 = 0 ;
14300 int res1 = 0 ;
14301 void *argp2 = 0 ;
14302 int res2 = 0 ;
14303 int val3 ;
14304 int ecode3 = 0 ;
14305 wxPoint temp4 ;
14306 wxSize temp5 ;
14307 long val6 ;
14308 int ecode6 = 0 ;
14309 void *argp7 = 0 ;
14310 int res7 = 0 ;
14311 bool temp8 = false ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 PyObject * obj2 = 0 ;
14315 PyObject * obj3 = 0 ;
14316 PyObject * obj4 = 0 ;
14317 PyObject * obj5 = 0 ;
14318 PyObject * obj6 = 0 ;
14319 PyObject * obj7 = 0 ;
14320 char * kwnames[] = {
14321 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14322 };
14323
14324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14326 if (!SWIG_IsOK(res1)) {
14327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14328 }
14329 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14331 if (!SWIG_IsOK(res2)) {
14332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14333 }
14334 arg2 = reinterpret_cast< wxWindow * >(argp2);
14335 if (obj2) {
14336 ecode3 = SWIG_AsVal_int(obj2, &val3);
14337 if (!SWIG_IsOK(ecode3)) {
14338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14339 }
14340 arg3 = static_cast< int >(val3);
14341 }
14342 if (obj3) {
d55e5bfc 14343 {
1bd55598
RD
14344 arg4 = &temp4;
14345 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14346 }
1bd55598
RD
14347 }
14348 if (obj4) {
d55e5bfc 14349 {
1bd55598
RD
14350 arg5 = &temp5;
14351 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14352 }
1bd55598
RD
14353 }
14354 if (obj5) {
14355 ecode6 = SWIG_AsVal_long(obj5, &val6);
14356 if (!SWIG_IsOK(ecode6)) {
14357 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14358 }
14359 arg6 = static_cast< long >(val6);
14360 }
14361 if (obj6) {
14362 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14363 if (!SWIG_IsOK(res7)) {
14364 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14365 }
1bd55598
RD
14366 if (!argp7) {
14367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14368 }
1bd55598
RD
14369 arg7 = reinterpret_cast< wxValidator * >(argp7);
14370 }
14371 if (obj7) {
d55e5bfc 14372 {
1bd55598
RD
14373 arg8 = wxString_in_helper(obj7);
14374 if (arg8 == NULL) SWIG_fail;
14375 temp8 = true;
d55e5bfc 14376 }
1bd55598
RD
14377 }
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 {
14385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14386 }
14387 {
14388 if (temp8)
14389 delete arg8;
14390 }
14391 return resultobj;
14392fail:
14393 {
14394 if (temp8)
14395 delete arg8;
14396 }
14397 return NULL;
d55e5bfc
RD
14398}
14399
14400
1bd55598
RD
14401SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14402 PyObject *resultobj = 0;
14403 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14404 int result;
14405 void *argp1 = 0 ;
14406 int res1 = 0 ;
14407 PyObject *swig_obj[1] ;
14408
14409 if (!args) SWIG_fail;
14410 swig_obj[0] = args;
14411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14412 if (!SWIG_IsOK(res1)) {
14413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14414 }
14415 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 resultobj = SWIG_From_int(static_cast< int >(result));
14423 return resultobj;
14424fail:
14425 return NULL;
d55e5bfc
RD
14426}
14427
14428
1bd55598
RD
14429SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14430 PyObject *resultobj = 0;
14431 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14432 int result;
14433 void *argp1 = 0 ;
14434 int res1 = 0 ;
14435 PyObject *swig_obj[1] ;
14436
14437 if (!args) SWIG_fail;
14438 swig_obj[0] = args;
14439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14440 if (!SWIG_IsOK(res1)) {
14441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14442 }
14443 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14447 wxPyEndAllowThreads(__tstate);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 resultobj = SWIG_From_int(static_cast< int >(result));
14451 return resultobj;
14452fail:
14453 return NULL;
d55e5bfc
RD
14454}
14455
14456
1bd55598
RD
14457SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14460 int result;
14461 void *argp1 = 0 ;
14462 int res1 = 0 ;
14463 PyObject *swig_obj[1] ;
14464
14465 if (!args) SWIG_fail;
14466 swig_obj[0] = args;
14467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14468 if (!SWIG_IsOK(res1)) {
14469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14470 }
14471 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_From_int(static_cast< int >(result));
14479 return resultobj;
14480fail:
14481 return NULL;
d55e5bfc
RD
14482}
14483
14484
1bd55598
RD
14485SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14486 PyObject *resultobj = 0;
14487 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14488 int result;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 PyObject *swig_obj[1] ;
14492
14493 if (!args) SWIG_fail;
14494 swig_obj[0] = args;
14495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14496 if (!SWIG_IsOK(res1)) {
14497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14498 }
14499 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = (int)((wxScrollBar const *)arg1)->GetRange();
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 resultobj = SWIG_From_int(static_cast< int >(result));
14507 return resultobj;
14508fail:
14509 return NULL;
d55e5bfc
RD
14510}
14511
14512
1bd55598
RD
14513SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14514 PyObject *resultobj = 0;
14515 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14516 bool result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 PyObject *swig_obj[1] ;
14520
14521 if (!args) SWIG_fail;
14522 swig_obj[0] = args;
14523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14526 }
14527 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 {
14535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14536 }
14537 return resultobj;
14538fail:
14539 return NULL;
14540}
14541
14542
14543SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj = 0;
14545 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14546 int arg2 ;
14547 void *argp1 = 0 ;
14548 int res1 = 0 ;
14549 int val2 ;
14550 int ecode2 = 0 ;
14551 PyObject * obj0 = 0 ;
14552 PyObject * obj1 = 0 ;
14553 char * kwnames[] = {
14554 (char *) "self",(char *) "viewStart", NULL
14555 };
14556
14557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14561 }
14562 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14563 ecode2 = SWIG_AsVal_int(obj1, &val2);
14564 if (!SWIG_IsOK(ecode2)) {
14565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14566 }
14567 arg2 = static_cast< int >(val2);
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 (arg1)->SetThumbPosition(arg2);
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 resultobj = SWIG_Py_Void();
14575 return resultobj;
14576fail:
14577 return NULL;
14578}
14579
14580
14581SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj = 0;
14583 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14584 SwigValueWrapper<wxVisualAttributes > result;
14585 int val1 ;
14586 int ecode1 = 0 ;
14587 PyObject * obj0 = 0 ;
14588 char * kwnames[] = {
14589 (char *) "variant", NULL
14590 };
14591
14592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14593 if (obj0) {
14594 ecode1 = SWIG_AsVal_int(obj0, &val1);
14595 if (!SWIG_IsOK(ecode1)) {
14596 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14597 }
14598 arg1 = static_cast< wxWindowVariant >(val1);
14599 }
14600 {
14601 if (!wxPyCheckForApp()) SWIG_fail;
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14608 return resultobj;
14609fail:
14610 return NULL;
d55e5bfc
RD
14611}
14612
14613
1bd55598
RD
14614SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14615 PyObject *obj;
14616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14617 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14618 return SWIG_Py_Void();
d55e5bfc
RD
14619}
14620
1bd55598
RD
14621SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14622 return SWIG_Python_InitShadowInstance(args);
14623}
d55e5bfc 14624
1bd55598
RD
14625SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14626 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14627 return 1;
14628}
14629
14630
14631SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14632 PyObject *pyobj = 0;
14633
14634 {
d55e5bfc 14635#if wxUSE_UNICODE
1bd55598 14636 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14637#else
1bd55598 14638 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14639#endif
1bd55598
RD
14640 }
14641 return pyobj;
d55e5bfc
RD
14642}
14643
14644
1bd55598
RD
14645SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14646 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14647 return 1;
d55e5bfc
RD
14648}
14649
14650
1bd55598
RD
14651SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14652 PyObject *pyobj = 0;
14653
14654 {
14655#if wxUSE_UNICODE
14656 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14657#else
14658 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14659#endif
14660 }
14661 return pyobj;
14662}
14663
14664
14665SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj = 0;
14667 wxWindow *arg1 = (wxWindow *) 0 ;
14668 int arg2 = (int) -1 ;
14669 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14670 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14671 wxSize const &arg4_defvalue = wxDefaultSize ;
14672 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14673 long arg5 = (long) wxSP_HORIZONTAL ;
14674 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14675 wxString *arg6 = (wxString *) &arg6_defvalue ;
14676 wxSpinButton *result = 0 ;
14677 void *argp1 = 0 ;
14678 int res1 = 0 ;
14679 int val2 ;
14680 int ecode2 = 0 ;
14681 wxPoint temp3 ;
14682 wxSize temp4 ;
14683 long val5 ;
14684 int ecode5 = 0 ;
14685 bool temp6 = false ;
14686 PyObject * obj0 = 0 ;
14687 PyObject * obj1 = 0 ;
14688 PyObject * obj2 = 0 ;
14689 PyObject * obj3 = 0 ;
14690 PyObject * obj4 = 0 ;
14691 PyObject * obj5 = 0 ;
14692 char * kwnames[] = {
14693 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14694 };
14695
14696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14698 if (!SWIG_IsOK(res1)) {
14699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14700 }
14701 arg1 = reinterpret_cast< wxWindow * >(argp1);
14702 if (obj1) {
14703 ecode2 = SWIG_AsVal_int(obj1, &val2);
14704 if (!SWIG_IsOK(ecode2)) {
14705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14706 }
14707 arg2 = static_cast< int >(val2);
14708 }
14709 if (obj2) {
d55e5bfc 14710 {
1bd55598
RD
14711 arg3 = &temp3;
14712 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14713 }
1bd55598
RD
14714 }
14715 if (obj3) {
d55e5bfc 14716 {
1bd55598
RD
14717 arg4 = &temp4;
14718 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14719 }
1bd55598
RD
14720 }
14721 if (obj4) {
14722 ecode5 = SWIG_AsVal_long(obj4, &val5);
14723 if (!SWIG_IsOK(ecode5)) {
14724 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14725 }
14726 arg5 = static_cast< long >(val5);
14727 }
14728 if (obj5) {
d55e5bfc 14729 {
1bd55598
RD
14730 arg6 = wxString_in_helper(obj5);
14731 if (arg6 == NULL) SWIG_fail;
14732 temp6 = true;
d55e5bfc 14733 }
1bd55598
RD
14734 }
14735 {
14736 if (!wxPyCheckForApp()) SWIG_fail;
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14743 {
14744 if (temp6)
14745 delete arg6;
14746 }
14747 return resultobj;
14748fail:
14749 {
14750 if (temp6)
14751 delete arg6;
14752 }
14753 return NULL;
d55e5bfc
RD
14754}
14755
14756
1bd55598
RD
14757SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxSpinButton *result = 0 ;
14760
14761 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14762 {
14763 if (!wxPyCheckForApp()) SWIG_fail;
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = (wxSpinButton *)new wxSpinButton();
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14770 return resultobj;
14771fail:
14772 return NULL;
14773}
14774
14775
14776SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj = 0;
14778 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14779 wxWindow *arg2 = (wxWindow *) 0 ;
14780 int arg3 = (int) -1 ;
14781 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14782 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14783 wxSize const &arg5_defvalue = wxDefaultSize ;
14784 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14785 long arg6 = (long) wxSP_HORIZONTAL ;
14786 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14787 wxString *arg7 = (wxString *) &arg7_defvalue ;
14788 bool result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 void *argp2 = 0 ;
14792 int res2 = 0 ;
14793 int val3 ;
14794 int ecode3 = 0 ;
14795 wxPoint temp4 ;
14796 wxSize temp5 ;
14797 long val6 ;
14798 int ecode6 = 0 ;
14799 bool temp7 = false ;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 PyObject * obj2 = 0 ;
14803 PyObject * obj3 = 0 ;
14804 PyObject * obj4 = 0 ;
14805 PyObject * obj5 = 0 ;
14806 PyObject * obj6 = 0 ;
14807 char * kwnames[] = {
14808 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14809 };
14810
14811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14813 if (!SWIG_IsOK(res1)) {
14814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14815 }
14816 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14818 if (!SWIG_IsOK(res2)) {
14819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14820 }
14821 arg2 = reinterpret_cast< wxWindow * >(argp2);
14822 if (obj2) {
14823 ecode3 = SWIG_AsVal_int(obj2, &val3);
14824 if (!SWIG_IsOK(ecode3)) {
14825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14826 }
14827 arg3 = static_cast< int >(val3);
14828 }
14829 if (obj3) {
d55e5bfc 14830 {
1bd55598
RD
14831 arg4 = &temp4;
14832 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14833 }
1bd55598
RD
14834 }
14835 if (obj4) {
d55e5bfc 14836 {
1bd55598
RD
14837 arg5 = &temp5;
14838 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14839 }
1bd55598
RD
14840 }
14841 if (obj5) {
14842 ecode6 = SWIG_AsVal_long(obj5, &val6);
14843 if (!SWIG_IsOK(ecode6)) {
14844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14845 }
14846 arg6 = static_cast< long >(val6);
14847 }
14848 if (obj6) {
14849 {
14850 arg7 = wxString_in_helper(obj6);
14851 if (arg7 == NULL) SWIG_fail;
14852 temp7 = true;
14853 }
14854 }
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 {
14862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14863 }
14864 {
14865 if (temp7)
14866 delete arg7;
14867 }
14868 return resultobj;
14869fail:
14870 {
14871 if (temp7)
14872 delete arg7;
14873 }
14874 return NULL;
d55e5bfc
RD
14875}
14876
14877
1bd55598
RD
14878SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14879 PyObject *resultobj = 0;
14880 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14881 int result;
14882 void *argp1 = 0 ;
14883 int res1 = 0 ;
14884 PyObject *swig_obj[1] ;
14885
14886 if (!args) SWIG_fail;
14887 swig_obj[0] = args;
14888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14889 if (!SWIG_IsOK(res1)) {
14890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14891 }
14892 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 result = (int)((wxSpinButton const *)arg1)->GetValue();
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 resultobj = SWIG_From_int(static_cast< int >(result));
14900 return resultobj;
14901fail:
14902 return NULL;
d55e5bfc
RD
14903}
14904
14905
1bd55598
RD
14906SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14907 PyObject *resultobj = 0;
14908 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14909 int result;
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 PyObject *swig_obj[1] ;
14913
14914 if (!args) SWIG_fail;
14915 swig_obj[0] = args;
14916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14917 if (!SWIG_IsOK(res1)) {
14918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14919 }
14920 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 result = (int)((wxSpinButton const *)arg1)->GetMin();
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 resultobj = SWIG_From_int(static_cast< int >(result));
14928 return resultobj;
14929fail:
14930 return NULL;
d55e5bfc
RD
14931}
14932
14933
1bd55598
RD
14934SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14935 PyObject *resultobj = 0;
14936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14937 int result;
14938 void *argp1 = 0 ;
14939 int res1 = 0 ;
14940 PyObject *swig_obj[1] ;
14941
14942 if (!args) SWIG_fail;
14943 swig_obj[0] = args;
14944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14947 }
14948 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (int)((wxSpinButton const *)arg1)->GetMax();
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = SWIG_From_int(static_cast< int >(result));
14956 return resultobj;
14957fail:
14958 return NULL;
14959}
14960
14961
14962SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14963 PyObject *resultobj = 0;
14964 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14965 int arg2 ;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 int val2 ;
14969 int ecode2 = 0 ;
14970 PyObject * obj0 = 0 ;
14971 PyObject * obj1 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "self",(char *) "val", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14980 }
14981 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14982 ecode2 = SWIG_AsVal_int(obj1, &val2);
14983 if (!SWIG_IsOK(ecode2)) {
14984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14985 }
14986 arg2 = static_cast< int >(val2);
14987 {
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 (arg1)->SetValue(arg2);
14990 wxPyEndAllowThreads(__tstate);
14991 if (PyErr_Occurred()) SWIG_fail;
14992 }
14993 resultobj = SWIG_Py_Void();
14994 return resultobj;
14995fail:
14996 return NULL;
14997}
14998
14999
15000SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15001 PyObject *resultobj = 0;
15002 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15003 int arg2 ;
15004 void *argp1 = 0 ;
15005 int res1 = 0 ;
15006 int val2 ;
15007 int ecode2 = 0 ;
15008 PyObject * obj0 = 0 ;
15009 PyObject * obj1 = 0 ;
15010 char * kwnames[] = {
15011 (char *) "self",(char *) "minVal", NULL
15012 };
15013
15014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15016 if (!SWIG_IsOK(res1)) {
15017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15018 }
15019 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15020 ecode2 = SWIG_AsVal_int(obj1, &val2);
15021 if (!SWIG_IsOK(ecode2)) {
15022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15023 }
15024 arg2 = static_cast< int >(val2);
15025 {
15026 PyThreadState* __tstate = wxPyBeginAllowThreads();
15027 (arg1)->SetMin(arg2);
15028 wxPyEndAllowThreads(__tstate);
15029 if (PyErr_Occurred()) SWIG_fail;
15030 }
15031 resultobj = SWIG_Py_Void();
15032 return resultobj;
15033fail:
15034 return NULL;
15035}
15036
15037
15038SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj = 0;
15040 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15041 int arg2 ;
15042 void *argp1 = 0 ;
15043 int res1 = 0 ;
15044 int val2 ;
15045 int ecode2 = 0 ;
15046 PyObject * obj0 = 0 ;
15047 PyObject * obj1 = 0 ;
15048 char * kwnames[] = {
15049 (char *) "self",(char *) "maxVal", NULL
15050 };
15051
15052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15054 if (!SWIG_IsOK(res1)) {
15055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15056 }
15057 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15058 ecode2 = SWIG_AsVal_int(obj1, &val2);
15059 if (!SWIG_IsOK(ecode2)) {
15060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15061 }
15062 arg2 = static_cast< int >(val2);
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 (arg1)->SetMax(arg2);
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 resultobj = SWIG_Py_Void();
15070 return resultobj;
15071fail:
15072 return NULL;
15073}
15074
15075
15076SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15077 PyObject *resultobj = 0;
15078 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15079 int arg2 ;
15080 int arg3 ;
15081 void *argp1 = 0 ;
15082 int res1 = 0 ;
15083 int val2 ;
15084 int ecode2 = 0 ;
15085 int val3 ;
15086 int ecode3 = 0 ;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 PyObject * obj2 = 0 ;
15090 char * kwnames[] = {
15091 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15092 };
15093
15094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15096 if (!SWIG_IsOK(res1)) {
15097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15098 }
15099 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15100 ecode2 = SWIG_AsVal_int(obj1, &val2);
15101 if (!SWIG_IsOK(ecode2)) {
15102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15103 }
15104 arg2 = static_cast< int >(val2);
15105 ecode3 = SWIG_AsVal_int(obj2, &val3);
15106 if (!SWIG_IsOK(ecode3)) {
15107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15108 }
15109 arg3 = static_cast< int >(val3);
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 (arg1)->SetRange(arg2,arg3);
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
15116 resultobj = SWIG_Py_Void();
15117 return resultobj;
15118fail:
15119 return NULL;
d55e5bfc
RD
15120}
15121
15122
1bd55598
RD
15123SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15124 PyObject *resultobj = 0;
15125 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15126 bool result;
15127 void *argp1 = 0 ;
15128 int res1 = 0 ;
15129 PyObject *swig_obj[1] ;
15130
15131 if (!args) SWIG_fail;
15132 swig_obj[0] = args;
15133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15134 if (!SWIG_IsOK(res1)) {
15135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15136 }
15137 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15138 {
15139 PyThreadState* __tstate = wxPyBeginAllowThreads();
15140 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 {
15145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15146 }
15147 return resultobj;
15148fail:
15149 return NULL;
d55e5bfc
RD
15150}
15151
15152
1bd55598
RD
15153SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj = 0;
15155 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15156 SwigValueWrapper<wxVisualAttributes > result;
15157 int val1 ;
15158 int ecode1 = 0 ;
15159 PyObject * obj0 = 0 ;
15160 char * kwnames[] = {
15161 (char *) "variant", NULL
15162 };
15163
15164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15165 if (obj0) {
15166 ecode1 = SWIG_AsVal_int(obj0, &val1);
15167 if (!SWIG_IsOK(ecode1)) {
15168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15169 }
15170 arg1 = static_cast< wxWindowVariant >(val1);
15171 }
15172 {
15173 if (!wxPyCheckForApp()) SWIG_fail;
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15180 return resultobj;
15181fail:
15182 return NULL;
15183}
15184
15185
15186SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15187 PyObject *obj;
15188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15189 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15190 return SWIG_Py_Void();
15191}
15192
15193SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15194 return SWIG_Python_InitShadowInstance(args);
15195}
15196
15197SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj = 0;
15199 wxWindow *arg1 = (wxWindow *) 0 ;
15200 int arg2 = (int) -1 ;
15201 wxString const &arg3_defvalue = wxPyEmptyString ;
15202 wxString *arg3 = (wxString *) &arg3_defvalue ;
15203 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15204 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15205 wxSize const &arg5_defvalue = wxDefaultSize ;
15206 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15207 long arg6 = (long) wxSP_ARROW_KEYS ;
15208 int arg7 = (int) 0 ;
15209 int arg8 = (int) 100 ;
15210 int arg9 = (int) 0 ;
15211 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15212 wxString *arg10 = (wxString *) &arg10_defvalue ;
15213 wxSpinCtrl *result = 0 ;
15214 void *argp1 = 0 ;
15215 int res1 = 0 ;
15216 int val2 ;
15217 int ecode2 = 0 ;
15218 bool temp3 = false ;
15219 wxPoint temp4 ;
15220 wxSize temp5 ;
15221 long val6 ;
15222 int ecode6 = 0 ;
15223 int val7 ;
15224 int ecode7 = 0 ;
15225 int val8 ;
15226 int ecode8 = 0 ;
15227 int val9 ;
15228 int ecode9 = 0 ;
15229 bool temp10 = false ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232 PyObject * obj2 = 0 ;
15233 PyObject * obj3 = 0 ;
15234 PyObject * obj4 = 0 ;
15235 PyObject * obj5 = 0 ;
15236 PyObject * obj6 = 0 ;
15237 PyObject * obj7 = 0 ;
15238 PyObject * obj8 = 0 ;
15239 PyObject * obj9 = 0 ;
15240 char * kwnames[] = {
15241 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15242 };
15243
15244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15246 if (!SWIG_IsOK(res1)) {
15247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15248 }
15249 arg1 = reinterpret_cast< wxWindow * >(argp1);
15250 if (obj1) {
15251 ecode2 = SWIG_AsVal_int(obj1, &val2);
15252 if (!SWIG_IsOK(ecode2)) {
15253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15254 }
15255 arg2 = static_cast< int >(val2);
15256 }
15257 if (obj2) {
d55e5bfc 15258 {
1bd55598
RD
15259 arg3 = wxString_in_helper(obj2);
15260 if (arg3 == NULL) SWIG_fail;
15261 temp3 = true;
d55e5bfc 15262 }
1bd55598
RD
15263 }
15264 if (obj3) {
d55e5bfc 15265 {
1bd55598
RD
15266 arg4 = &temp4;
15267 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15268 }
1bd55598
RD
15269 }
15270 if (obj4) {
d55e5bfc 15271 {
1bd55598
RD
15272 arg5 = &temp5;
15273 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15274 }
1bd55598
RD
15275 }
15276 if (obj5) {
15277 ecode6 = SWIG_AsVal_long(obj5, &val6);
15278 if (!SWIG_IsOK(ecode6)) {
15279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15280 }
15281 arg6 = static_cast< long >(val6);
15282 }
15283 if (obj6) {
15284 ecode7 = SWIG_AsVal_int(obj6, &val7);
15285 if (!SWIG_IsOK(ecode7)) {
15286 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15287 }
15288 arg7 = static_cast< int >(val7);
15289 }
15290 if (obj7) {
15291 ecode8 = SWIG_AsVal_int(obj7, &val8);
15292 if (!SWIG_IsOK(ecode8)) {
15293 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15294 }
15295 arg8 = static_cast< int >(val8);
15296 }
15297 if (obj8) {
15298 ecode9 = SWIG_AsVal_int(obj8, &val9);
15299 if (!SWIG_IsOK(ecode9)) {
15300 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15301 }
15302 arg9 = static_cast< int >(val9);
15303 }
15304 if (obj9) {
d55e5bfc 15305 {
1bd55598
RD
15306 arg10 = wxString_in_helper(obj9);
15307 if (arg10 == NULL) SWIG_fail;
15308 temp10 = true;
d55e5bfc 15309 }
1bd55598
RD
15310 }
15311 {
15312 if (!wxPyCheckForApp()) SWIG_fail;
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15319 {
15320 if (temp3)
15321 delete arg3;
15322 }
15323 {
15324 if (temp10)
15325 delete arg10;
15326 }
15327 return resultobj;
15328fail:
15329 {
15330 if (temp3)
15331 delete arg3;
15332 }
15333 {
15334 if (temp10)
15335 delete arg10;
15336 }
15337 return NULL;
d55e5bfc
RD
15338}
15339
15340
1bd55598
RD
15341SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15342 PyObject *resultobj = 0;
15343 wxSpinCtrl *result = 0 ;
15344
15345 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15346 {
15347 if (!wxPyCheckForApp()) SWIG_fail;
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 result = (wxSpinCtrl *)new wxSpinCtrl();
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15354 return resultobj;
15355fail:
15356 return NULL;
15357}
15358
15359
15360SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj = 0;
15362 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15363 wxWindow *arg2 = (wxWindow *) 0 ;
15364 int arg3 = (int) -1 ;
15365 wxString const &arg4_defvalue = wxPyEmptyString ;
15366 wxString *arg4 = (wxString *) &arg4_defvalue ;
15367 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15368 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15369 wxSize const &arg6_defvalue = wxDefaultSize ;
15370 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15371 long arg7 = (long) wxSP_ARROW_KEYS ;
15372 int arg8 = (int) 0 ;
15373 int arg9 = (int) 100 ;
15374 int arg10 = (int) 0 ;
15375 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15376 wxString *arg11 = (wxString *) &arg11_defvalue ;
15377 bool result;
15378 void *argp1 = 0 ;
15379 int res1 = 0 ;
15380 void *argp2 = 0 ;
15381 int res2 = 0 ;
15382 int val3 ;
15383 int ecode3 = 0 ;
15384 bool temp4 = false ;
15385 wxPoint temp5 ;
15386 wxSize temp6 ;
15387 long val7 ;
15388 int ecode7 = 0 ;
15389 int val8 ;
15390 int ecode8 = 0 ;
15391 int val9 ;
15392 int ecode9 = 0 ;
15393 int val10 ;
15394 int ecode10 = 0 ;
15395 bool temp11 = false ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15398 PyObject * obj2 = 0 ;
15399 PyObject * obj3 = 0 ;
15400 PyObject * obj4 = 0 ;
15401 PyObject * obj5 = 0 ;
15402 PyObject * obj6 = 0 ;
15403 PyObject * obj7 = 0 ;
15404 PyObject * obj8 = 0 ;
15405 PyObject * obj9 = 0 ;
15406 PyObject * obj10 = 0 ;
15407 char * kwnames[] = {
15408 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15409 };
15410
15411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15413 if (!SWIG_IsOK(res1)) {
15414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15415 }
15416 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15418 if (!SWIG_IsOK(res2)) {
15419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15420 }
15421 arg2 = reinterpret_cast< wxWindow * >(argp2);
15422 if (obj2) {
15423 ecode3 = SWIG_AsVal_int(obj2, &val3);
15424 if (!SWIG_IsOK(ecode3)) {
15425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15426 }
15427 arg3 = static_cast< int >(val3);
15428 }
15429 if (obj3) {
36ed4f51 15430 {
1bd55598
RD
15431 arg4 = wxString_in_helper(obj3);
15432 if (arg4 == NULL) SWIG_fail;
15433 temp4 = true;
36ed4f51 15434 }
1bd55598
RD
15435 }
15436 if (obj4) {
36ed4f51 15437 {
1bd55598
RD
15438 arg5 = &temp5;
15439 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15440 }
1bd55598
RD
15441 }
15442 if (obj5) {
d55e5bfc 15443 {
1bd55598
RD
15444 arg6 = &temp6;
15445 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15446 }
1bd55598
RD
15447 }
15448 if (obj6) {
15449 ecode7 = SWIG_AsVal_long(obj6, &val7);
15450 if (!SWIG_IsOK(ecode7)) {
15451 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15452 }
15453 arg7 = static_cast< long >(val7);
15454 }
15455 if (obj7) {
15456 ecode8 = SWIG_AsVal_int(obj7, &val8);
15457 if (!SWIG_IsOK(ecode8)) {
15458 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15459 }
15460 arg8 = static_cast< int >(val8);
15461 }
15462 if (obj8) {
15463 ecode9 = SWIG_AsVal_int(obj8, &val9);
15464 if (!SWIG_IsOK(ecode9)) {
15465 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15466 }
15467 arg9 = static_cast< int >(val9);
15468 }
15469 if (obj9) {
15470 ecode10 = SWIG_AsVal_int(obj9, &val10);
15471 if (!SWIG_IsOK(ecode10)) {
15472 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15473 }
15474 arg10 = static_cast< int >(val10);
15475 }
15476 if (obj10) {
15477 {
15478 arg11 = wxString_in_helper(obj10);
15479 if (arg11 == NULL) SWIG_fail;
15480 temp11 = true;
15481 }
15482 }
15483 {
15484 PyThreadState* __tstate = wxPyBeginAllowThreads();
15485 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
15489 {
15490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15491 }
15492 {
15493 if (temp4)
15494 delete arg4;
15495 }
15496 {
15497 if (temp11)
15498 delete arg11;
15499 }
15500 return resultobj;
15501fail:
15502 {
15503 if (temp4)
15504 delete arg4;
15505 }
15506 {
15507 if (temp11)
15508 delete arg11;
15509 }
15510 return NULL;
d55e5bfc
RD
15511}
15512
15513
1bd55598
RD
15514SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 PyObject *resultobj = 0;
15516 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15517 int result;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 PyObject *swig_obj[1] ;
15521
15522 if (!args) SWIG_fail;
15523 swig_obj[0] = args;
15524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15525 if (!SWIG_IsOK(res1)) {
15526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15527 }
15528 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 resultobj = SWIG_From_int(static_cast< int >(result));
15536 return resultobj;
15537fail:
15538 return NULL;
15539}
15540
15541
15542SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj = 0;
15544 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15545 int arg2 ;
15546 void *argp1 = 0 ;
15547 int res1 = 0 ;
15548 int val2 ;
15549 int ecode2 = 0 ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 char * kwnames[] = {
15553 (char *) "self",(char *) "value", NULL
15554 };
15555
15556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15558 if (!SWIG_IsOK(res1)) {
15559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15560 }
15561 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15562 ecode2 = SWIG_AsVal_int(obj1, &val2);
15563 if (!SWIG_IsOK(ecode2)) {
15564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15565 }
15566 arg2 = static_cast< int >(val2);
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 (arg1)->SetValue(arg2);
15570 wxPyEndAllowThreads(__tstate);
15571 if (PyErr_Occurred()) SWIG_fail;
15572 }
15573 resultobj = SWIG_Py_Void();
15574 return resultobj;
15575fail:
15576 return NULL;
15577}
15578
15579
15580SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15581 PyObject *resultobj = 0;
15582 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15583 wxString *arg2 = 0 ;
15584 void *argp1 = 0 ;
15585 int res1 = 0 ;
15586 bool temp2 = false ;
15587 PyObject * obj0 = 0 ;
15588 PyObject * obj1 = 0 ;
15589 char * kwnames[] = {
15590 (char *) "self",(char *) "text", NULL
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15597 }
15598 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15599 {
15600 arg2 = wxString_in_helper(obj1);
15601 if (arg2 == NULL) SWIG_fail;
15602 temp2 = true;
15603 }
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 (arg1)->SetValue((wxString const &)*arg2);
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 resultobj = SWIG_Py_Void();
15611 {
15612 if (temp2)
15613 delete arg2;
15614 }
15615 return resultobj;
15616fail:
15617 {
15618 if (temp2)
15619 delete arg2;
15620 }
15621 return NULL;
15622}
15623
15624
15625SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15626 PyObject *resultobj = 0;
15627 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15628 int arg2 ;
15629 int arg3 ;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 int val2 ;
15633 int ecode2 = 0 ;
15634 int val3 ;
15635 int ecode3 = 0 ;
15636 PyObject * obj0 = 0 ;
15637 PyObject * obj1 = 0 ;
15638 PyObject * obj2 = 0 ;
15639 char * kwnames[] = {
15640 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15641 };
15642
15643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15645 if (!SWIG_IsOK(res1)) {
15646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15647 }
15648 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15649 ecode2 = SWIG_AsVal_int(obj1, &val2);
15650 if (!SWIG_IsOK(ecode2)) {
15651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15652 }
15653 arg2 = static_cast< int >(val2);
15654 ecode3 = SWIG_AsVal_int(obj2, &val3);
15655 if (!SWIG_IsOK(ecode3)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15657 }
15658 arg3 = static_cast< int >(val3);
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 (arg1)->SetRange(arg2,arg3);
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 resultobj = SWIG_Py_Void();
15666 return resultobj;
15667fail:
15668 return NULL;
d55e5bfc
RD
15669}
15670
15671
1bd55598
RD
15672SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15673 PyObject *resultobj = 0;
15674 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15675 int result;
15676 void *argp1 = 0 ;
15677 int res1 = 0 ;
15678 PyObject *swig_obj[1] ;
15679
15680 if (!args) SWIG_fail;
15681 swig_obj[0] = args;
15682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15683 if (!SWIG_IsOK(res1)) {
15684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15685 }
15686 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
15689 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 resultobj = SWIG_From_int(static_cast< int >(result));
15694 return resultobj;
15695fail:
15696 return NULL;
d55e5bfc
RD
15697}
15698
15699
1bd55598
RD
15700SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15701 PyObject *resultobj = 0;
15702 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15703 int result;
15704 void *argp1 = 0 ;
15705 int res1 = 0 ;
15706 PyObject *swig_obj[1] ;
15707
15708 if (!args) SWIG_fail;
15709 swig_obj[0] = args;
15710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15711 if (!SWIG_IsOK(res1)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15713 }
15714 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 resultobj = SWIG_From_int(static_cast< int >(result));
15722 return resultobj;
15723fail:
15724 return NULL;
15725}
15726
15727
15728SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15729 PyObject *resultobj = 0;
15730 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15731 long arg2 ;
15732 long arg3 ;
15733 void *argp1 = 0 ;
15734 int res1 = 0 ;
15735 long val2 ;
15736 int ecode2 = 0 ;
15737 long val3 ;
15738 int ecode3 = 0 ;
15739 PyObject * obj0 = 0 ;
15740 PyObject * obj1 = 0 ;
15741 PyObject * obj2 = 0 ;
15742 char * kwnames[] = {
2131d850 15743 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15744 };
15745
15746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15748 if (!SWIG_IsOK(res1)) {
15749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15750 }
15751 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15752 ecode2 = SWIG_AsVal_long(obj1, &val2);
15753 if (!SWIG_IsOK(ecode2)) {
15754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15755 }
15756 arg2 = static_cast< long >(val2);
15757 ecode3 = SWIG_AsVal_long(obj2, &val3);
15758 if (!SWIG_IsOK(ecode3)) {
15759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15760 }
15761 arg3 = static_cast< long >(val3);
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 (arg1)->SetSelection(arg2,arg3);
15765 wxPyEndAllowThreads(__tstate);
15766 if (PyErr_Occurred()) SWIG_fail;
15767 }
15768 resultobj = SWIG_Py_Void();
15769 return resultobj;
15770fail:
15771 return NULL;
15772}
15773
15774
15775SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15776 PyObject *resultobj = 0;
15777 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15778 SwigValueWrapper<wxVisualAttributes > result;
15779 int val1 ;
15780 int ecode1 = 0 ;
15781 PyObject * obj0 = 0 ;
15782 char * kwnames[] = {
15783 (char *) "variant", NULL
15784 };
15785
15786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15787 if (obj0) {
15788 ecode1 = SWIG_AsVal_int(obj0, &val1);
15789 if (!SWIG_IsOK(ecode1)) {
15790 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15791 }
15792 arg1 = static_cast< wxWindowVariant >(val1);
15793 }
15794 {
15795 if (!wxPyCheckForApp()) SWIG_fail;
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15802 return resultobj;
15803fail:
15804 return NULL;
d55e5bfc
RD
15805}
15806
15807
1bd55598
RD
15808SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15809 PyObject *obj;
15810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15811 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15812 return SWIG_Py_Void();
d55e5bfc
RD
15813}
15814
1bd55598
RD
15815SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15816 return SWIG_Python_InitShadowInstance(args);
15817}
d55e5bfc 15818
1bd55598
RD
15819SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj = 0;
15821 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15822 int arg2 = (int) 0 ;
15823 wxSpinEvent *result = 0 ;
15824 int val1 ;
15825 int ecode1 = 0 ;
15826 int val2 ;
15827 int ecode2 = 0 ;
15828 PyObject * obj0 = 0 ;
15829 PyObject * obj1 = 0 ;
15830 char * kwnames[] = {
15831 (char *) "commandType",(char *) "winid", NULL
15832 };
15833
15834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15835 if (obj0) {
15836 ecode1 = SWIG_AsVal_int(obj0, &val1);
15837 if (!SWIG_IsOK(ecode1)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15839 }
15840 arg1 = static_cast< wxEventType >(val1);
15841 }
15842 if (obj1) {
15843 ecode2 = SWIG_AsVal_int(obj1, &val2);
15844 if (!SWIG_IsOK(ecode2)) {
15845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15846 }
15847 arg2 = static_cast< int >(val2);
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15856 return resultobj;
15857fail:
15858 return NULL;
d55e5bfc
RD
15859}
15860
15861
1bd55598
RD
15862SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15863 PyObject *resultobj = 0;
15864 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15865 int result;
15866 void *argp1 = 0 ;
15867 int res1 = 0 ;
15868 PyObject *swig_obj[1] ;
15869
15870 if (!args) SWIG_fail;
15871 swig_obj[0] = args;
15872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15873 if (!SWIG_IsOK(res1)) {
15874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15875 }
15876 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15877 {
15878 PyThreadState* __tstate = wxPyBeginAllowThreads();
15879 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15880 wxPyEndAllowThreads(__tstate);
15881 if (PyErr_Occurred()) SWIG_fail;
15882 }
15883 resultobj = SWIG_From_int(static_cast< int >(result));
15884 return resultobj;
15885fail:
15886 return NULL;
15887}
15888
15889
15890SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15891 PyObject *resultobj = 0;
15892 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15893 int arg2 ;
15894 void *argp1 = 0 ;
15895 int res1 = 0 ;
15896 int val2 ;
15897 int ecode2 = 0 ;
15898 PyObject * obj0 = 0 ;
15899 PyObject * obj1 = 0 ;
15900 char * kwnames[] = {
15901 (char *) "self",(char *) "pos", NULL
15902 };
15903
15904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15906 if (!SWIG_IsOK(res1)) {
15907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15908 }
15909 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15910 ecode2 = SWIG_AsVal_int(obj1, &val2);
15911 if (!SWIG_IsOK(ecode2)) {
15912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15913 }
15914 arg2 = static_cast< int >(val2);
15915 {
15916 PyThreadState* __tstate = wxPyBeginAllowThreads();
15917 (arg1)->SetPosition(arg2);
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 resultobj = SWIG_Py_Void();
15922 return resultobj;
15923fail:
15924 return NULL;
d55e5bfc
RD
15925}
15926
15927
1bd55598
RD
15928SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15929 PyObject *obj;
15930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15931 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15932 return SWIG_Py_Void();
d55e5bfc
RD
15933}
15934
1bd55598
RD
15935SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15936 return SWIG_Python_InitShadowInstance(args);
15937}
d55e5bfc 15938
1bd55598
RD
15939SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15940 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15941 return 1;
d55e5bfc
RD
15942}
15943
15944
1bd55598
RD
15945SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15946 PyObject *pyobj = 0;
15947
15948 {
15949#if wxUSE_UNICODE
15950 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15951#else
15952 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15953#endif
15954 }
15955 return pyobj;
d55e5bfc
RD
15956}
15957
15958
1bd55598
RD
15959SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15960 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15961 return 1;
15962}
15963
15964
15965SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15966 PyObject *pyobj = 0;
15967
15968 {
15969#if wxUSE_UNICODE
15970 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15971#else
15972 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15973#endif
15974 }
15975 return pyobj;
15976}
15977
15978
15979SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj = 0;
15981 wxWindow *arg1 = (wxWindow *) 0 ;
15982 int arg2 = (int) -1 ;
15983 wxString const &arg3_defvalue = wxPyEmptyString ;
15984 wxString *arg3 = (wxString *) &arg3_defvalue ;
15985 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15986 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15987 wxSize const &arg5_defvalue = wxDefaultSize ;
15988 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15989 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15990 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15991 int arg7 = (int) 0 ;
15992 long arg8 = (long) wxRA_HORIZONTAL ;
15993 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15994 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15995 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15996 wxString *arg10 = (wxString *) &arg10_defvalue ;
15997 wxRadioBox *result = 0 ;
15998 void *argp1 = 0 ;
15999 int res1 = 0 ;
16000 int val2 ;
16001 int ecode2 = 0 ;
16002 bool temp3 = false ;
16003 wxPoint temp4 ;
16004 wxSize temp5 ;
16005 bool temp6 = false ;
16006 int val7 ;
16007 int ecode7 = 0 ;
16008 long val8 ;
16009 int ecode8 = 0 ;
16010 void *argp9 = 0 ;
16011 int res9 = 0 ;
16012 bool temp10 = false ;
16013 PyObject * obj0 = 0 ;
16014 PyObject * obj1 = 0 ;
16015 PyObject * obj2 = 0 ;
16016 PyObject * obj3 = 0 ;
16017 PyObject * obj4 = 0 ;
16018 PyObject * obj5 = 0 ;
16019 PyObject * obj6 = 0 ;
16020 PyObject * obj7 = 0 ;
16021 PyObject * obj8 = 0 ;
16022 PyObject * obj9 = 0 ;
16023 char * kwnames[] = {
16024 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16025 };
16026
16027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16029 if (!SWIG_IsOK(res1)) {
16030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16031 }
16032 arg1 = reinterpret_cast< wxWindow * >(argp1);
16033 if (obj1) {
16034 ecode2 = SWIG_AsVal_int(obj1, &val2);
16035 if (!SWIG_IsOK(ecode2)) {
16036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16037 }
16038 arg2 = static_cast< int >(val2);
16039 }
16040 if (obj2) {
36ed4f51 16041 {
1bd55598
RD
16042 arg3 = wxString_in_helper(obj2);
16043 if (arg3 == NULL) SWIG_fail;
16044 temp3 = true;
36ed4f51 16045 }
1bd55598
RD
16046 }
16047 if (obj3) {
36ed4f51 16048 {
1bd55598
RD
16049 arg4 = &temp4;
16050 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16051 }
1bd55598
RD
16052 }
16053 if (obj4) {
d55e5bfc 16054 {
1bd55598
RD
16055 arg5 = &temp5;
16056 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16057 }
1bd55598
RD
16058 }
16059 if (obj5) {
d55e5bfc 16060 {
1bd55598
RD
16061 if (! PySequence_Check(obj5)) {
16062 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16063 SWIG_fail;
16064 }
16065 arg6 = new wxArrayString;
16066 temp6 = true;
16067 int i, len=PySequence_Length(obj5);
16068 for (i=0; i<len; i++) {
16069 PyObject* item = PySequence_GetItem(obj5, i);
16070 wxString* s = wxString_in_helper(item);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 arg6->Add(*s);
16073 delete s;
16074 Py_DECREF(item);
16075 }
d55e5bfc 16076 }
1bd55598
RD
16077 }
16078 if (obj6) {
16079 ecode7 = SWIG_AsVal_int(obj6, &val7);
16080 if (!SWIG_IsOK(ecode7)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16082 }
16083 arg7 = static_cast< int >(val7);
16084 }
16085 if (obj7) {
16086 ecode8 = SWIG_AsVal_long(obj7, &val8);
16087 if (!SWIG_IsOK(ecode8)) {
16088 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16089 }
16090 arg8 = static_cast< long >(val8);
16091 }
16092 if (obj8) {
16093 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16094 if (!SWIG_IsOK(res9)) {
16095 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16096 }
1bd55598
RD
16097 if (!argp9) {
16098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16099 }
1bd55598
RD
16100 arg9 = reinterpret_cast< wxValidator * >(argp9);
16101 }
16102 if (obj9) {
d55e5bfc 16103 {
1bd55598
RD
16104 arg10 = wxString_in_helper(obj9);
16105 if (arg10 == NULL) SWIG_fail;
16106 temp10 = true;
d55e5bfc 16107 }
1bd55598
RD
16108 }
16109 {
16110 if (!wxPyCheckForApp()) SWIG_fail;
16111 PyThreadState* __tstate = wxPyBeginAllowThreads();
16112 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);
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16117 {
16118 if (temp3)
16119 delete arg3;
16120 }
16121 {
16122 if (temp6) delete arg6;
16123 }
16124 {
16125 if (temp10)
16126 delete arg10;
16127 }
16128 return resultobj;
16129fail:
16130 {
16131 if (temp3)
16132 delete arg3;
16133 }
16134 {
16135 if (temp6) delete arg6;
16136 }
16137 {
16138 if (temp10)
16139 delete arg10;
16140 }
16141 return NULL;
d55e5bfc
RD
16142}
16143
16144
1bd55598
RD
16145SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16146 PyObject *resultobj = 0;
16147 wxRadioBox *result = 0 ;
16148
16149 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16150 {
16151 if (!wxPyCheckForApp()) SWIG_fail;
16152 PyThreadState* __tstate = wxPyBeginAllowThreads();
16153 result = (wxRadioBox *)new wxRadioBox();
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16158 return resultobj;
16159fail:
16160 return NULL;
16161}
16162
16163
16164SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16165 PyObject *resultobj = 0;
16166 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16167 wxWindow *arg2 = (wxWindow *) 0 ;
16168 int arg3 = (int) -1 ;
16169 wxString const &arg4_defvalue = wxPyEmptyString ;
16170 wxString *arg4 = (wxString *) &arg4_defvalue ;
16171 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16172 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16173 wxSize const &arg6_defvalue = wxDefaultSize ;
16174 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16175 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16176 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16177 int arg8 = (int) 0 ;
16178 long arg9 = (long) wxRA_HORIZONTAL ;
16179 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16180 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16181 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16182 wxString *arg11 = (wxString *) &arg11_defvalue ;
16183 bool result;
16184 void *argp1 = 0 ;
16185 int res1 = 0 ;
16186 void *argp2 = 0 ;
16187 int res2 = 0 ;
16188 int val3 ;
16189 int ecode3 = 0 ;
16190 bool temp4 = false ;
16191 wxPoint temp5 ;
16192 wxSize temp6 ;
16193 bool temp7 = false ;
16194 int val8 ;
16195 int ecode8 = 0 ;
16196 long val9 ;
16197 int ecode9 = 0 ;
16198 void *argp10 = 0 ;
16199 int res10 = 0 ;
16200 bool temp11 = false ;
16201 PyObject * obj0 = 0 ;
16202 PyObject * obj1 = 0 ;
16203 PyObject * obj2 = 0 ;
16204 PyObject * obj3 = 0 ;
16205 PyObject * obj4 = 0 ;
16206 PyObject * obj5 = 0 ;
16207 PyObject * obj6 = 0 ;
16208 PyObject * obj7 = 0 ;
16209 PyObject * obj8 = 0 ;
16210 PyObject * obj9 = 0 ;
16211 PyObject * obj10 = 0 ;
16212 char * kwnames[] = {
16213 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16214 };
16215
16216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16218 if (!SWIG_IsOK(res1)) {
16219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16220 }
16221 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16222 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16223 if (!SWIG_IsOK(res2)) {
16224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16225 }
16226 arg2 = reinterpret_cast< wxWindow * >(argp2);
16227 if (obj2) {
16228 ecode3 = SWIG_AsVal_int(obj2, &val3);
16229 if (!SWIG_IsOK(ecode3)) {
16230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16231 }
16232 arg3 = static_cast< int >(val3);
16233 }
16234 if (obj3) {
36ed4f51 16235 {
1bd55598
RD
16236 arg4 = wxString_in_helper(obj3);
16237 if (arg4 == NULL) SWIG_fail;
16238 temp4 = true;
36ed4f51 16239 }
1bd55598
RD
16240 }
16241 if (obj4) {
36ed4f51 16242 {
1bd55598
RD
16243 arg5 = &temp5;
16244 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16245 }
1bd55598
RD
16246 }
16247 if (obj5) {
d55e5bfc 16248 {
1bd55598
RD
16249 arg6 = &temp6;
16250 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16251 }
1bd55598
RD
16252 }
16253 if (obj6) {
36ed4f51 16254 {
1bd55598
RD
16255 if (! PySequence_Check(obj6)) {
16256 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16257 SWIG_fail;
16258 }
16259 arg7 = new wxArrayString;
16260 temp7 = true;
16261 int i, len=PySequence_Length(obj6);
16262 for (i=0; i<len; i++) {
16263 PyObject* item = PySequence_GetItem(obj6, i);
16264 wxString* s = wxString_in_helper(item);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 arg7->Add(*s);
16267 delete s;
16268 Py_DECREF(item);
16269 }
36ed4f51 16270 }
1bd55598
RD
16271 }
16272 if (obj7) {
16273 ecode8 = SWIG_AsVal_int(obj7, &val8);
16274 if (!SWIG_IsOK(ecode8)) {
16275 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16276 }
16277 arg8 = static_cast< int >(val8);
16278 }
16279 if (obj8) {
16280 ecode9 = SWIG_AsVal_long(obj8, &val9);
16281 if (!SWIG_IsOK(ecode9)) {
16282 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16283 }
16284 arg9 = static_cast< long >(val9);
16285 }
16286 if (obj9) {
16287 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16288 if (!SWIG_IsOK(res10)) {
16289 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16290 }
1bd55598
RD
16291 if (!argp10) {
16292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16293 }
1bd55598
RD
16294 arg10 = reinterpret_cast< wxValidator * >(argp10);
16295 }
16296 if (obj10) {
d55e5bfc 16297 {
1bd55598
RD
16298 arg11 = wxString_in_helper(obj10);
16299 if (arg11 == NULL) SWIG_fail;
16300 temp11 = true;
d55e5bfc 16301 }
1bd55598
RD
16302 }
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 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);
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 {
16310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16311 }
16312 {
16313 if (temp4)
16314 delete arg4;
16315 }
16316 {
16317 if (temp7) delete arg7;
16318 }
16319 {
16320 if (temp11)
16321 delete arg11;
16322 }
16323 return resultobj;
16324fail:
16325 {
16326 if (temp4)
16327 delete arg4;
16328 }
16329 {
16330 if (temp7) delete arg7;
16331 }
16332 {
16333 if (temp11)
16334 delete arg11;
16335 }
16336 return NULL;
16337}
16338
16339
16340SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj = 0;
16342 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16343 int arg2 ;
16344 void *argp1 = 0 ;
16345 int res1 = 0 ;
16346 int val2 ;
16347 int ecode2 = 0 ;
16348 PyObject * obj0 = 0 ;
16349 PyObject * obj1 = 0 ;
16350 char * kwnames[] = {
16351 (char *) "self",(char *) "n", NULL
16352 };
16353
16354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16356 if (!SWIG_IsOK(res1)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16358 }
16359 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16360 ecode2 = SWIG_AsVal_int(obj1, &val2);
16361 if (!SWIG_IsOK(ecode2)) {
16362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16363 }
16364 arg2 = static_cast< int >(val2);
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 (arg1)->SetSelection(arg2);
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 resultobj = SWIG_Py_Void();
16372 return resultobj;
16373fail:
16374 return NULL;
d55e5bfc
RD
16375}
16376
16377
1bd55598
RD
16378SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16379 PyObject *resultobj = 0;
16380 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16381 int result;
16382 void *argp1 = 0 ;
16383 int res1 = 0 ;
16384 PyObject *swig_obj[1] ;
16385
16386 if (!args) SWIG_fail;
16387 swig_obj[0] = args;
16388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16389 if (!SWIG_IsOK(res1)) {
16390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16391 }
16392 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16393 {
16394 PyThreadState* __tstate = wxPyBeginAllowThreads();
16395 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 resultobj = SWIG_From_int(static_cast< int >(result));
16400 return resultobj;
16401fail:
16402 return NULL;
d55e5bfc
RD
16403}
16404
16405
1bd55598
RD
16406SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16409 wxString result;
16410 void *argp1 = 0 ;
16411 int res1 = 0 ;
16412 PyObject *swig_obj[1] ;
16413
16414 if (!args) SWIG_fail;
16415 swig_obj[0] = args;
16416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16419 }
16420 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 {
16428#if wxUSE_UNICODE
16429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16430#else
16431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16432#endif
16433 }
16434 return resultobj;
16435fail:
16436 return NULL;
16437}
16438
16439
16440SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj = 0;
16442 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16443 wxString *arg2 = 0 ;
16444 bool result;
16445 void *argp1 = 0 ;
16446 int res1 = 0 ;
16447 bool temp2 = false ;
16448 PyObject * obj0 = 0 ;
16449 PyObject * obj1 = 0 ;
16450 char * kwnames[] = {
16451 (char *) "self",(char *) "s", NULL
16452 };
16453
16454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16456 if (!SWIG_IsOK(res1)) {
16457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16458 }
16459 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16460 {
16461 arg2 = wxString_in_helper(obj1);
16462 if (arg2 == NULL) SWIG_fail;
16463 temp2 = true;
16464 }
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16473 }
16474 {
16475 if (temp2)
16476 delete arg2;
16477 }
16478 return resultobj;
16479fail:
16480 {
16481 if (temp2)
16482 delete arg2;
16483 }
16484 return NULL;
4896ac9e
RD
16485}
16486
16487
1bd55598
RD
16488SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16489 PyObject *resultobj = 0;
16490 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16491 size_t result;
1bd55598
RD
16492 void *argp1 = 0 ;
16493 int res1 = 0 ;
16494 PyObject *swig_obj[1] ;
16495
16496 if (!args) SWIG_fail;
16497 swig_obj[0] = args;
16498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16499 if (!SWIG_IsOK(res1)) {
16500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16501 }
16502 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16505 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16506 wxPyEndAllowThreads(__tstate);
16507 if (PyErr_Occurred()) SWIG_fail;
16508 }
1c71765a 16509 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16510 return resultobj;
16511fail:
16512 return NULL;
16513}
16514
16515
16516SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16517 PyObject *resultobj = 0;
16518 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16519 wxString *arg2 = 0 ;
16520 int result;
16521 void *argp1 = 0 ;
16522 int res1 = 0 ;
16523 bool temp2 = false ;
16524 PyObject * obj0 = 0 ;
16525 PyObject * obj1 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "self",(char *) "s", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16532 if (!SWIG_IsOK(res1)) {
16533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16534 }
16535 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16536 {
16537 arg2 = wxString_in_helper(obj1);
16538 if (arg2 == NULL) SWIG_fail;
16539 temp2 = true;
16540 }
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 resultobj = SWIG_From_int(static_cast< int >(result));
16548 {
16549 if (temp2)
16550 delete arg2;
16551 }
16552 return resultobj;
16553fail:
16554 {
16555 if (temp2)
16556 delete arg2;
16557 }
16558 return NULL;
16559}
16560
16561
16562SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16563 PyObject *resultobj = 0;
16564 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16565 int arg2 ;
16566 wxString result;
16567 void *argp1 = 0 ;
16568 int res1 = 0 ;
16569 int val2 ;
16570 int ecode2 = 0 ;
16571 PyObject * obj0 = 0 ;
16572 PyObject * obj1 = 0 ;
16573 char * kwnames[] = {
16574 (char *) "self",(char *) "n", NULL
16575 };
16576
16577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16579 if (!SWIG_IsOK(res1)) {
16580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16581 }
16582 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16583 ecode2 = SWIG_AsVal_int(obj1, &val2);
16584 if (!SWIG_IsOK(ecode2)) {
16585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16586 }
16587 arg2 = static_cast< int >(val2);
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16591 wxPyEndAllowThreads(__tstate);
16592 if (PyErr_Occurred()) SWIG_fail;
16593 }
16594 {
16595#if wxUSE_UNICODE
16596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16597#else
16598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16599#endif
16600 }
16601 return resultobj;
16602fail:
16603 return NULL;
16604}
16605
16606
16607SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj = 0;
16609 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16610 int arg2 ;
16611 wxString *arg3 = 0 ;
16612 void *argp1 = 0 ;
16613 int res1 = 0 ;
16614 int val2 ;
16615 int ecode2 = 0 ;
16616 bool temp3 = false ;
16617 PyObject * obj0 = 0 ;
16618 PyObject * obj1 = 0 ;
16619 PyObject * obj2 = 0 ;
16620 char * kwnames[] = {
16621 (char *) "self",(char *) "n",(char *) "label", NULL
16622 };
16623
16624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16626 if (!SWIG_IsOK(res1)) {
16627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16628 }
16629 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16630 ecode2 = SWIG_AsVal_int(obj1, &val2);
16631 if (!SWIG_IsOK(ecode2)) {
16632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16633 }
16634 arg2 = static_cast< int >(val2);
16635 {
16636 arg3 = wxString_in_helper(obj2);
16637 if (arg3 == NULL) SWIG_fail;
16638 temp3 = true;
16639 }
16640 {
16641 PyThreadState* __tstate = wxPyBeginAllowThreads();
16642 (arg1)->SetString(arg2,(wxString const &)*arg3);
16643 wxPyEndAllowThreads(__tstate);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 }
16646 resultobj = SWIG_Py_Void();
16647 {
16648 if (temp3)
16649 delete arg3;
16650 }
16651 return resultobj;
16652fail:
16653 {
16654 if (temp3)
16655 delete arg3;
16656 }
16657 return NULL;
16658}
16659
16660
16661SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16662 PyObject *resultobj = 0;
16663 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16664 unsigned int arg2 ;
1bd55598
RD
16665 bool arg3 = (bool) true ;
16666 void *argp1 = 0 ;
16667 int res1 = 0 ;
50f151d7 16668 unsigned int val2 ;
1bd55598
RD
16669 int ecode2 = 0 ;
16670 bool val3 ;
16671 int ecode3 = 0 ;
16672 PyObject * obj0 = 0 ;
16673 PyObject * obj1 = 0 ;
16674 PyObject * obj2 = 0 ;
16675 char * kwnames[] = {
16676 (char *) "self",(char *) "n",(char *) "enable", NULL
16677 };
16678
16679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16681 if (!SWIG_IsOK(res1)) {
16682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16683 }
16684 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16685 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16686 if (!SWIG_IsOK(ecode2)) {
50f151d7 16687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16688 }
50f151d7 16689 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16690 if (obj2) {
16691 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16692 if (!SWIG_IsOK(ecode3)) {
16693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16694 }
16695 arg3 = static_cast< bool >(val3);
16696 }
16697 {
16698 PyThreadState* __tstate = wxPyBeginAllowThreads();
16699 (arg1)->Enable(arg2,arg3);
16700 wxPyEndAllowThreads(__tstate);
16701 if (PyErr_Occurred()) SWIG_fail;
16702 }
16703 resultobj = SWIG_Py_Void();
16704 return resultobj;
16705fail:
16706 return NULL;
16707}
16708
16709
16710SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16711 PyObject *resultobj = 0;
16712 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16713 unsigned int arg2 ;
1bd55598
RD
16714 bool arg3 = (bool) true ;
16715 void *argp1 = 0 ;
16716 int res1 = 0 ;
50f151d7 16717 unsigned int val2 ;
1bd55598
RD
16718 int ecode2 = 0 ;
16719 bool val3 ;
16720 int ecode3 = 0 ;
16721 PyObject * obj0 = 0 ;
16722 PyObject * obj1 = 0 ;
16723 PyObject * obj2 = 0 ;
16724 char * kwnames[] = {
16725 (char *) "self",(char *) "n",(char *) "show", NULL
16726 };
16727
16728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16730 if (!SWIG_IsOK(res1)) {
16731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16732 }
16733 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16734 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16735 if (!SWIG_IsOK(ecode2)) {
50f151d7 16736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16737 }
50f151d7 16738 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16739 if (obj2) {
16740 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16741 if (!SWIG_IsOK(ecode3)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16743 }
16744 arg3 = static_cast< bool >(val3);
16745 }
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 (arg1)->Show(arg2,arg3);
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_Py_Void();
16753 return resultobj;
16754fail:
16755 return NULL;
d55e5bfc
RD
16756}
16757
16758
50f151d7
RD
16759SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16760 PyObject *resultobj = 0;
16761 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16762 unsigned int arg2 ;
16763 bool result;
16764 void *argp1 = 0 ;
16765 int res1 = 0 ;
16766 unsigned int val2 ;
16767 int ecode2 = 0 ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 char * kwnames[] = {
16771 (char *) "self",(char *) "n", NULL
16772 };
16773
16774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16776 if (!SWIG_IsOK(res1)) {
16777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16778 }
16779 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16780 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16781 if (!SWIG_IsOK(ecode2)) {
16782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16783 }
16784 arg2 = static_cast< unsigned int >(val2);
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 {
16792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16793 }
16794 return resultobj;
16795fail:
16796 return NULL;
16797}
16798
16799
16800SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj = 0;
16802 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16803 unsigned int arg2 ;
16804 bool result;
16805 void *argp1 = 0 ;
16806 int res1 = 0 ;
16807 unsigned int val2 ;
16808 int ecode2 = 0 ;
16809 PyObject * obj0 = 0 ;
16810 PyObject * obj1 = 0 ;
16811 char * kwnames[] = {
16812 (char *) "self",(char *) "n", NULL
16813 };
16814
16815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16817 if (!SWIG_IsOK(res1)) {
16818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16819 }
16820 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16821 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16822 if (!SWIG_IsOK(ecode2)) {
16823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16824 }
16825 arg2 = static_cast< unsigned int >(val2);
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 {
16833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16834 }
16835 return resultobj;
16836fail:
16837 return NULL;
16838}
16839
16840
1bd55598
RD
16841SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16842 PyObject *resultobj = 0;
16843 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16844 unsigned int result;
1bd55598
RD
16845 void *argp1 = 0 ;
16846 int res1 = 0 ;
16847 PyObject *swig_obj[1] ;
16848
16849 if (!args) SWIG_fail;
16850 swig_obj[0] = args;
16851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16852 if (!SWIG_IsOK(res1)) {
16853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16854 }
16855 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16858 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
50f151d7 16862 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16863 return resultobj;
16864fail:
16865 return NULL;
d55e5bfc
RD
16866}
16867
16868
1bd55598
RD
16869SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16870 PyObject *resultobj = 0;
16871 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16872 unsigned int result;
1bd55598
RD
16873 void *argp1 = 0 ;
16874 int res1 = 0 ;
16875 PyObject *swig_obj[1] ;
16876
16877 if (!args) SWIG_fail;
16878 swig_obj[0] = args;
16879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16880 if (!SWIG_IsOK(res1)) {
16881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16882 }
16883 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16886 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
50f151d7 16890 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16891 return resultobj;
16892fail:
16893 return NULL;
16894}
16895
16896
16897SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16898 PyObject *resultobj = 0;
16899 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16900 int arg2 ;
16901 wxDirection arg3 ;
16902 long arg4 ;
16903 int result;
16904 void *argp1 = 0 ;
16905 int res1 = 0 ;
16906 int val2 ;
16907 int ecode2 = 0 ;
16908 int val3 ;
16909 int ecode3 = 0 ;
16910 long val4 ;
16911 int ecode4 = 0 ;
16912 PyObject * obj0 = 0 ;
16913 PyObject * obj1 = 0 ;
16914 PyObject * obj2 = 0 ;
16915 PyObject * obj3 = 0 ;
16916 char * kwnames[] = {
16917 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16918 };
16919
16920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16922 if (!SWIG_IsOK(res1)) {
16923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16924 }
16925 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16926 ecode2 = SWIG_AsVal_int(obj1, &val2);
16927 if (!SWIG_IsOK(ecode2)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16929 }
16930 arg2 = static_cast< int >(val2);
16931 ecode3 = SWIG_AsVal_int(obj2, &val3);
16932 if (!SWIG_IsOK(ecode3)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16934 }
16935 arg3 = static_cast< wxDirection >(val3);
16936 ecode4 = SWIG_AsVal_long(obj3, &val4);
16937 if (!SWIG_IsOK(ecode4)) {
16938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16939 }
16940 arg4 = static_cast< long >(val4);
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_From_int(static_cast< int >(result));
16948 return resultobj;
16949fail:
16950 return NULL;
16951}
16952
16953
2131d850
RD
16954SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16957 unsigned int arg2 ;
16958 wxString *arg3 = 0 ;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 unsigned int val2 ;
16962 int ecode2 = 0 ;
16963 bool temp3 = false ;
16964 PyObject * obj0 = 0 ;
16965 PyObject * obj1 = 0 ;
16966 PyObject * obj2 = 0 ;
16967 char * kwnames[] = {
16968 (char *) "self",(char *) "item",(char *) "text", NULL
16969 };
16970
16971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16973 if (!SWIG_IsOK(res1)) {
16974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16975 }
16976 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16977 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16978 if (!SWIG_IsOK(ecode2)) {
16979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16980 }
16981 arg2 = static_cast< unsigned int >(val2);
16982 {
16983 arg3 = wxString_in_helper(obj2);
16984 if (arg3 == NULL) SWIG_fail;
16985 temp3 = true;
16986 }
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 resultobj = SWIG_Py_Void();
16994 {
16995 if (temp3)
16996 delete arg3;
16997 }
16998 return resultobj;
16999fail:
17000 {
17001 if (temp3)
17002 delete arg3;
17003 }
17004 return NULL;
17005}
17006
17007
17008SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj = 0;
17010 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17011 unsigned int arg2 ;
17012 wxToolTip *result = 0 ;
17013 void *argp1 = 0 ;
17014 int res1 = 0 ;
17015 unsigned int val2 ;
17016 int ecode2 = 0 ;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 char * kwnames[] = {
17020 (char *) "self",(char *) "item", NULL
17021 };
17022
17023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17025 if (!SWIG_IsOK(res1)) {
17026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17027 }
17028 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17029 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17030 if (!SWIG_IsOK(ecode2)) {
17031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17032 }
17033 arg2 = static_cast< unsigned int >(val2);
17034 {
17035 PyThreadState* __tstate = wxPyBeginAllowThreads();
17036 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17037 wxPyEndAllowThreads(__tstate);
17038 if (PyErr_Occurred()) SWIG_fail;
17039 }
17040 {
17041 resultobj = wxPyMake_wxObject(result, (bool)0);
17042 }
17043 return resultobj;
17044fail:
17045 return NULL;
17046}
17047
17048
b850e7f3
RD
17049SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17050 PyObject *resultobj = 0;
17051 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17052 unsigned int arg2 ;
17053 wxString *arg3 = 0 ;
17054 void *argp1 = 0 ;
17055 int res1 = 0 ;
17056 unsigned int val2 ;
17057 int ecode2 = 0 ;
17058 bool temp3 = false ;
17059 PyObject * obj0 = 0 ;
17060 PyObject * obj1 = 0 ;
17061 PyObject * obj2 = 0 ;
17062 char * kwnames[] = {
17063 (char *) "self",(char *) "n",(char *) "helpText", NULL
17064 };
17065
17066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17068 if (!SWIG_IsOK(res1)) {
17069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17070 }
17071 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17072 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17073 if (!SWIG_IsOK(ecode2)) {
17074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17075 }
17076 arg2 = static_cast< unsigned int >(val2);
17077 {
17078 arg3 = wxString_in_helper(obj2);
17079 if (arg3 == NULL) SWIG_fail;
17080 temp3 = true;
17081 }
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 resultobj = SWIG_Py_Void();
17089 {
17090 if (temp3)
17091 delete arg3;
17092 }
17093 return resultobj;
17094fail:
17095 {
17096 if (temp3)
17097 delete arg3;
17098 }
17099 return NULL;
17100}
17101
17102
17103SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj = 0;
17105 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17106 unsigned int arg2 ;
17107 wxString result;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 unsigned int val2 ;
17111 int ecode2 = 0 ;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 char * kwnames[] = {
17115 (char *) "self",(char *) "n", NULL
17116 };
17117
17118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17120 if (!SWIG_IsOK(res1)) {
17121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17122 }
17123 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17124 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17125 if (!SWIG_IsOK(ecode2)) {
17126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17127 }
17128 arg2 = static_cast< unsigned int >(val2);
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17132 wxPyEndAllowThreads(__tstate);
17133 if (PyErr_Occurred()) SWIG_fail;
17134 }
17135 {
17136#if wxUSE_UNICODE
17137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17138#else
17139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17140#endif
17141 }
17142 return resultobj;
17143fail:
17144 return NULL;
17145}
17146
17147
1bd55598
RD
17148SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17149 PyObject *resultobj = 0;
17150 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17151 SwigValueWrapper<wxVisualAttributes > result;
17152 int val1 ;
17153 int ecode1 = 0 ;
17154 PyObject * obj0 = 0 ;
17155 char * kwnames[] = {
17156 (char *) "variant", NULL
17157 };
17158
17159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17160 if (obj0) {
17161 ecode1 = SWIG_AsVal_int(obj0, &val1);
17162 if (!SWIG_IsOK(ecode1)) {
17163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17164 }
17165 arg1 = static_cast< wxWindowVariant >(val1);
17166 }
17167 {
17168 if (!wxPyCheckForApp()) SWIG_fail;
17169 PyThreadState* __tstate = wxPyBeginAllowThreads();
17170 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17171 wxPyEndAllowThreads(__tstate);
17172 if (PyErr_Occurred()) SWIG_fail;
17173 }
17174 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17175 return resultobj;
17176fail:
17177 return NULL;
17178}
17179
17180
17181SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17182 PyObject *obj;
17183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17184 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17185 return SWIG_Py_Void();
17186}
17187
17188SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17189 return SWIG_Python_InitShadowInstance(args);
17190}
17191
17192SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj = 0;
17194 wxWindow *arg1 = (wxWindow *) 0 ;
17195 int arg2 = (int) -1 ;
17196 wxString const &arg3_defvalue = wxPyEmptyString ;
17197 wxString *arg3 = (wxString *) &arg3_defvalue ;
17198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17200 wxSize const &arg5_defvalue = wxDefaultSize ;
17201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17202 long arg6 = (long) 0 ;
17203 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17204 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17205 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17206 wxString *arg8 = (wxString *) &arg8_defvalue ;
17207 wxRadioButton *result = 0 ;
17208 void *argp1 = 0 ;
17209 int res1 = 0 ;
17210 int val2 ;
17211 int ecode2 = 0 ;
17212 bool temp3 = false ;
17213 wxPoint temp4 ;
17214 wxSize temp5 ;
17215 long val6 ;
17216 int ecode6 = 0 ;
17217 void *argp7 = 0 ;
17218 int res7 = 0 ;
17219 bool temp8 = false ;
17220 PyObject * obj0 = 0 ;
17221 PyObject * obj1 = 0 ;
17222 PyObject * obj2 = 0 ;
17223 PyObject * obj3 = 0 ;
17224 PyObject * obj4 = 0 ;
17225 PyObject * obj5 = 0 ;
17226 PyObject * obj6 = 0 ;
17227 PyObject * obj7 = 0 ;
17228 char * kwnames[] = {
17229 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17230 };
17231
17232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17234 if (!SWIG_IsOK(res1)) {
17235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17236 }
17237 arg1 = reinterpret_cast< wxWindow * >(argp1);
17238 if (obj1) {
17239 ecode2 = SWIG_AsVal_int(obj1, &val2);
17240 if (!SWIG_IsOK(ecode2)) {
17241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17242 }
17243 arg2 = static_cast< int >(val2);
17244 }
17245 if (obj2) {
d55e5bfc 17246 {
1bd55598
RD
17247 arg3 = wxString_in_helper(obj2);
17248 if (arg3 == NULL) SWIG_fail;
17249 temp3 = true;
d55e5bfc 17250 }
1bd55598
RD
17251 }
17252 if (obj3) {
d55e5bfc 17253 {
1bd55598
RD
17254 arg4 = &temp4;
17255 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17256 }
1bd55598
RD
17257 }
17258 if (obj4) {
d55e5bfc 17259 {
1bd55598
RD
17260 arg5 = &temp5;
17261 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17262 }
1bd55598
RD
17263 }
17264 if (obj5) {
17265 ecode6 = SWIG_AsVal_long(obj5, &val6);
17266 if (!SWIG_IsOK(ecode6)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17268 }
17269 arg6 = static_cast< long >(val6);
17270 }
17271 if (obj6) {
17272 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17273 if (!SWIG_IsOK(res7)) {
17274 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17275 }
1bd55598
RD
17276 if (!argp7) {
17277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17278 }
17279 arg7 = reinterpret_cast< wxValidator * >(argp7);
17280 }
17281 if (obj7) {
d55e5bfc 17282 {
1bd55598
RD
17283 arg8 = wxString_in_helper(obj7);
17284 if (arg8 == NULL) SWIG_fail;
17285 temp8 = true;
d55e5bfc 17286 }
1bd55598
RD
17287 }
17288 {
17289 if (!wxPyCheckForApp()) SWIG_fail;
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17296 {
17297 if (temp3)
17298 delete arg3;
17299 }
17300 {
17301 if (temp8)
17302 delete arg8;
17303 }
17304 return resultobj;
17305fail:
17306 {
17307 if (temp3)
17308 delete arg3;
17309 }
17310 {
17311 if (temp8)
17312 delete arg8;
17313 }
17314 return NULL;
d55e5bfc
RD
17315}
17316
17317
1bd55598
RD
17318SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17319 PyObject *resultobj = 0;
17320 wxRadioButton *result = 0 ;
17321
17322 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17323 {
17324 if (!wxPyCheckForApp()) SWIG_fail;
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = (wxRadioButton *)new wxRadioButton();
17327 wxPyEndAllowThreads(__tstate);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 }
17330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17331 return resultobj;
17332fail:
17333 return NULL;
17334}
17335
17336
17337SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17338 PyObject *resultobj = 0;
17339 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17340 wxWindow *arg2 = (wxWindow *) 0 ;
17341 int arg3 = (int) -1 ;
17342 wxString const &arg4_defvalue = wxPyEmptyString ;
17343 wxString *arg4 = (wxString *) &arg4_defvalue ;
17344 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17345 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17346 wxSize const &arg6_defvalue = wxDefaultSize ;
17347 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17348 long arg7 = (long) 0 ;
17349 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17350 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17351 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17352 wxString *arg9 = (wxString *) &arg9_defvalue ;
17353 bool result;
17354 void *argp1 = 0 ;
17355 int res1 = 0 ;
17356 void *argp2 = 0 ;
17357 int res2 = 0 ;
17358 int val3 ;
17359 int ecode3 = 0 ;
17360 bool temp4 = false ;
17361 wxPoint temp5 ;
17362 wxSize temp6 ;
17363 long val7 ;
17364 int ecode7 = 0 ;
17365 void *argp8 = 0 ;
17366 int res8 = 0 ;
17367 bool temp9 = false ;
17368 PyObject * obj0 = 0 ;
17369 PyObject * obj1 = 0 ;
17370 PyObject * obj2 = 0 ;
17371 PyObject * obj3 = 0 ;
17372 PyObject * obj4 = 0 ;
17373 PyObject * obj5 = 0 ;
17374 PyObject * obj6 = 0 ;
17375 PyObject * obj7 = 0 ;
17376 PyObject * obj8 = 0 ;
17377 char * kwnames[] = {
17378 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17379 };
17380
17381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17383 if (!SWIG_IsOK(res1)) {
17384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17385 }
17386 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17388 if (!SWIG_IsOK(res2)) {
17389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17390 }
17391 arg2 = reinterpret_cast< wxWindow * >(argp2);
17392 if (obj2) {
17393 ecode3 = SWIG_AsVal_int(obj2, &val3);
17394 if (!SWIG_IsOK(ecode3)) {
17395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17396 }
17397 arg3 = static_cast< int >(val3);
17398 }
17399 if (obj3) {
d55e5bfc 17400 {
1bd55598
RD
17401 arg4 = wxString_in_helper(obj3);
17402 if (arg4 == NULL) SWIG_fail;
17403 temp4 = true;
d55e5bfc 17404 }
1bd55598
RD
17405 }
17406 if (obj4) {
d55e5bfc 17407 {
1bd55598
RD
17408 arg5 = &temp5;
17409 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17410 }
1bd55598
RD
17411 }
17412 if (obj5) {
d55e5bfc 17413 {
1bd55598
RD
17414 arg6 = &temp6;
17415 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17416 }
1bd55598
RD
17417 }
17418 if (obj6) {
17419 ecode7 = SWIG_AsVal_long(obj6, &val7);
17420 if (!SWIG_IsOK(ecode7)) {
17421 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17422 }
17423 arg7 = static_cast< long >(val7);
17424 }
17425 if (obj7) {
17426 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17427 if (!SWIG_IsOK(res8)) {
17428 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17429 }
1bd55598
RD
17430 if (!argp8) {
17431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17432 }
1bd55598
RD
17433 arg8 = reinterpret_cast< wxValidator * >(argp8);
17434 }
17435 if (obj8) {
d55e5bfc 17436 {
1bd55598
RD
17437 arg9 = wxString_in_helper(obj8);
17438 if (arg9 == NULL) SWIG_fail;
17439 temp9 = true;
d55e5bfc 17440 }
1bd55598
RD
17441 }
17442 {
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 {
17449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17450 }
17451 {
17452 if (temp4)
17453 delete arg4;
17454 }
17455 {
17456 if (temp9)
17457 delete arg9;
17458 }
17459 return resultobj;
17460fail:
17461 {
17462 if (temp4)
17463 delete arg4;
17464 }
17465 {
17466 if (temp9)
17467 delete arg9;
17468 }
17469 return NULL;
d55e5bfc
RD
17470}
17471
17472
1bd55598
RD
17473SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17474 PyObject *resultobj = 0;
17475 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17476 bool result;
17477 void *argp1 = 0 ;
17478 int res1 = 0 ;
17479 PyObject *swig_obj[1] ;
17480
17481 if (!args) SWIG_fail;
17482 swig_obj[0] = args;
17483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17484 if (!SWIG_IsOK(res1)) {
17485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17486 }
17487 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = (bool)(arg1)->GetValue();
17491 wxPyEndAllowThreads(__tstate);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 {
17495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17496 }
17497 return resultobj;
17498fail:
17499 return NULL;
17500}
17501
17502
17503SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17504 PyObject *resultobj = 0;
17505 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17506 bool arg2 ;
17507 void *argp1 = 0 ;
17508 int res1 = 0 ;
17509 bool val2 ;
17510 int ecode2 = 0 ;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char * kwnames[] = {
17514 (char *) "self",(char *) "value", NULL
17515 };
17516
17517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17519 if (!SWIG_IsOK(res1)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17521 }
17522 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17523 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17524 if (!SWIG_IsOK(ecode2)) {
17525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17526 }
17527 arg2 = static_cast< bool >(val2);
17528 {
17529 PyThreadState* __tstate = wxPyBeginAllowThreads();
17530 (arg1)->SetValue(arg2);
17531 wxPyEndAllowThreads(__tstate);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 resultobj = SWIG_Py_Void();
17535 return resultobj;
17536fail:
17537 return NULL;
17538}
17539
17540
17541SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17542 PyObject *resultobj = 0;
17543 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17544 SwigValueWrapper<wxVisualAttributes > result;
17545 int val1 ;
17546 int ecode1 = 0 ;
17547 PyObject * obj0 = 0 ;
17548 char * kwnames[] = {
17549 (char *) "variant", NULL
17550 };
17551
17552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17553 if (obj0) {
17554 ecode1 = SWIG_AsVal_int(obj0, &val1);
17555 if (!SWIG_IsOK(ecode1)) {
17556 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17557 }
17558 arg1 = static_cast< wxWindowVariant >(val1);
17559 }
17560 {
17561 if (!wxPyCheckForApp()) SWIG_fail;
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17564 wxPyEndAllowThreads(__tstate);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17568 return resultobj;
17569fail:
17570 return NULL;
d55e5bfc
RD
17571}
17572
17573
1bd55598
RD
17574SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17575 PyObject *obj;
17576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17577 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17578 return SWIG_Py_Void();
d55e5bfc
RD
17579}
17580
1bd55598
RD
17581SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17582 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17583}
17584
1bd55598
RD
17585SWIGINTERN int SliderNameStr_set(PyObject *) {
17586 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17587 return 1;
d55e5bfc
RD
17588}
17589
17590
1bd55598
RD
17591SWIGINTERN PyObject *SliderNameStr_get(void) {
17592 PyObject *pyobj = 0;
17593
17594 {
17595#if wxUSE_UNICODE
17596 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17597#else
17598 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17599#endif
17600 }
17601 return pyobj;
17602}
17603
17604
17605SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj = 0;
17607 wxWindow *arg1 = (wxWindow *) 0 ;
17608 int arg2 = (int) -1 ;
17609 int arg3 = (int) 0 ;
17610 int arg4 = (int) 0 ;
17611 int arg5 = (int) 100 ;
17612 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17613 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17614 wxSize const &arg7_defvalue = wxDefaultSize ;
17615 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17616 long arg8 = (long) wxSL_HORIZONTAL ;
17617 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17618 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17619 wxString const &arg10_defvalue = wxPySliderNameStr ;
17620 wxString *arg10 = (wxString *) &arg10_defvalue ;
17621 wxSlider *result = 0 ;
17622 void *argp1 = 0 ;
17623 int res1 = 0 ;
17624 int val2 ;
17625 int ecode2 = 0 ;
17626 int val3 ;
17627 int ecode3 = 0 ;
17628 int val4 ;
17629 int ecode4 = 0 ;
17630 int val5 ;
17631 int ecode5 = 0 ;
17632 wxPoint temp6 ;
17633 wxSize temp7 ;
17634 long val8 ;
17635 int ecode8 = 0 ;
17636 void *argp9 = 0 ;
17637 int res9 = 0 ;
17638 bool temp10 = false ;
17639 PyObject * obj0 = 0 ;
17640 PyObject * obj1 = 0 ;
17641 PyObject * obj2 = 0 ;
17642 PyObject * obj3 = 0 ;
17643 PyObject * obj4 = 0 ;
17644 PyObject * obj5 = 0 ;
17645 PyObject * obj6 = 0 ;
17646 PyObject * obj7 = 0 ;
17647 PyObject * obj8 = 0 ;
17648 PyObject * obj9 = 0 ;
17649 char * kwnames[] = {
17650 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17651 };
17652
17653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17655 if (!SWIG_IsOK(res1)) {
17656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17657 }
17658 arg1 = reinterpret_cast< wxWindow * >(argp1);
17659 if (obj1) {
17660 ecode2 = SWIG_AsVal_int(obj1, &val2);
17661 if (!SWIG_IsOK(ecode2)) {
17662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17663 }
17664 arg2 = static_cast< int >(val2);
17665 }
17666 if (obj2) {
17667 ecode3 = SWIG_AsVal_int(obj2, &val3);
17668 if (!SWIG_IsOK(ecode3)) {
17669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17670 }
17671 arg3 = static_cast< int >(val3);
17672 }
17673 if (obj3) {
17674 ecode4 = SWIG_AsVal_int(obj3, &val4);
17675 if (!SWIG_IsOK(ecode4)) {
17676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17677 }
17678 arg4 = static_cast< int >(val4);
17679 }
17680 if (obj4) {
17681 ecode5 = SWIG_AsVal_int(obj4, &val5);
17682 if (!SWIG_IsOK(ecode5)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17684 }
17685 arg5 = static_cast< int >(val5);
17686 }
17687 if (obj5) {
36ed4f51 17688 {
1bd55598
RD
17689 arg6 = &temp6;
17690 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17691 }
1bd55598
RD
17692 }
17693 if (obj6) {
36ed4f51 17694 {
1bd55598
RD
17695 arg7 = &temp7;
17696 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17697 }
1bd55598
RD
17698 }
17699 if (obj7) {
17700 ecode8 = SWIG_AsVal_long(obj7, &val8);
17701 if (!SWIG_IsOK(ecode8)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17703 }
17704 arg8 = static_cast< long >(val8);
17705 }
17706 if (obj8) {
17707 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17708 if (!SWIG_IsOK(res9)) {
17709 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17710 }
1bd55598
RD
17711 if (!argp9) {
17712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17713 }
1bd55598
RD
17714 arg9 = reinterpret_cast< wxValidator * >(argp9);
17715 }
17716 if (obj9) {
d55e5bfc 17717 {
1bd55598
RD
17718 arg10 = wxString_in_helper(obj9);
17719 if (arg10 == NULL) SWIG_fail;
17720 temp10 = true;
d55e5bfc 17721 }
1bd55598
RD
17722 }
17723 {
17724 if (!wxPyCheckForApp()) SWIG_fail;
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17727 wxPyEndAllowThreads(__tstate);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 }
17730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17731 {
17732 if (temp10)
17733 delete arg10;
17734 }
17735 return resultobj;
17736fail:
17737 {
17738 if (temp10)
17739 delete arg10;
17740 }
17741 return NULL;
d55e5bfc
RD
17742}
17743
17744
1bd55598
RD
17745SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17746 PyObject *resultobj = 0;
17747 wxSlider *result = 0 ;
17748
17749 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17750 {
17751 if (!wxPyCheckForApp()) SWIG_fail;
17752 PyThreadState* __tstate = wxPyBeginAllowThreads();
17753 result = (wxSlider *)new wxSlider();
17754 wxPyEndAllowThreads(__tstate);
17755 if (PyErr_Occurred()) SWIG_fail;
17756 }
17757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17758 return resultobj;
17759fail:
17760 return NULL;
17761}
17762
17763
17764SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17765 PyObject *resultobj = 0;
17766 wxSlider *arg1 = (wxSlider *) 0 ;
17767 wxWindow *arg2 = (wxWindow *) 0 ;
17768 int arg3 = (int) -1 ;
17769 int arg4 = (int) 0 ;
17770 int arg5 = (int) 0 ;
17771 int arg6 = (int) 100 ;
17772 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17773 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17774 wxSize const &arg8_defvalue = wxDefaultSize ;
17775 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17776 long arg9 = (long) wxSL_HORIZONTAL ;
17777 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17778 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17779 wxString const &arg11_defvalue = wxPySliderNameStr ;
17780 wxString *arg11 = (wxString *) &arg11_defvalue ;
17781 bool result;
17782 void *argp1 = 0 ;
17783 int res1 = 0 ;
17784 void *argp2 = 0 ;
17785 int res2 = 0 ;
17786 int val3 ;
17787 int ecode3 = 0 ;
17788 int val4 ;
17789 int ecode4 = 0 ;
17790 int val5 ;
17791 int ecode5 = 0 ;
17792 int val6 ;
17793 int ecode6 = 0 ;
17794 wxPoint temp7 ;
17795 wxSize temp8 ;
17796 long val9 ;
17797 int ecode9 = 0 ;
17798 void *argp10 = 0 ;
17799 int res10 = 0 ;
17800 bool temp11 = false ;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 PyObject * obj2 = 0 ;
17804 PyObject * obj3 = 0 ;
17805 PyObject * obj4 = 0 ;
17806 PyObject * obj5 = 0 ;
17807 PyObject * obj6 = 0 ;
17808 PyObject * obj7 = 0 ;
17809 PyObject * obj8 = 0 ;
17810 PyObject * obj9 = 0 ;
17811 PyObject * obj10 = 0 ;
17812 char * kwnames[] = {
17813 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17814 };
17815
17816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17818 if (!SWIG_IsOK(res1)) {
17819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17820 }
17821 arg1 = reinterpret_cast< wxSlider * >(argp1);
17822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17823 if (!SWIG_IsOK(res2)) {
17824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17825 }
17826 arg2 = reinterpret_cast< wxWindow * >(argp2);
17827 if (obj2) {
17828 ecode3 = SWIG_AsVal_int(obj2, &val3);
17829 if (!SWIG_IsOK(ecode3)) {
17830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17831 }
17832 arg3 = static_cast< int >(val3);
17833 }
17834 if (obj3) {
17835 ecode4 = SWIG_AsVal_int(obj3, &val4);
17836 if (!SWIG_IsOK(ecode4)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17838 }
17839 arg4 = static_cast< int >(val4);
17840 }
17841 if (obj4) {
17842 ecode5 = SWIG_AsVal_int(obj4, &val5);
17843 if (!SWIG_IsOK(ecode5)) {
17844 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17845 }
17846 arg5 = static_cast< int >(val5);
17847 }
17848 if (obj5) {
17849 ecode6 = SWIG_AsVal_int(obj5, &val6);
17850 if (!SWIG_IsOK(ecode6)) {
17851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17852 }
17853 arg6 = static_cast< int >(val6);
17854 }
17855 if (obj6) {
d55e5bfc 17856 {
1bd55598
RD
17857 arg7 = &temp7;
17858 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17859 }
1bd55598
RD
17860 }
17861 if (obj7) {
d55e5bfc 17862 {
1bd55598
RD
17863 arg8 = &temp8;
17864 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17865 }
1bd55598
RD
17866 }
17867 if (obj8) {
17868 ecode9 = SWIG_AsVal_long(obj8, &val9);
17869 if (!SWIG_IsOK(ecode9)) {
17870 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17871 }
17872 arg9 = static_cast< long >(val9);
17873 }
17874 if (obj9) {
17875 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17876 if (!SWIG_IsOK(res10)) {
17877 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17878 }
1bd55598
RD
17879 if (!argp10) {
17880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17881 }
1bd55598
RD
17882 arg10 = reinterpret_cast< wxValidator * >(argp10);
17883 }
17884 if (obj10) {
d55e5bfc 17885 {
1bd55598
RD
17886 arg11 = wxString_in_helper(obj10);
17887 if (arg11 == NULL) SWIG_fail;
17888 temp11 = true;
d55e5bfc 17889 }
1bd55598
RD
17890 }
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 {
17898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17899 }
17900 {
17901 if (temp11)
17902 delete arg11;
17903 }
17904 return resultobj;
17905fail:
17906 {
17907 if (temp11)
17908 delete arg11;
17909 }
17910 return NULL;
d55e5bfc
RD
17911}
17912
17913
1bd55598
RD
17914SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17915 PyObject *resultobj = 0;
17916 wxSlider *arg1 = (wxSlider *) 0 ;
17917 int result;
17918 void *argp1 = 0 ;
17919 int res1 = 0 ;
17920 PyObject *swig_obj[1] ;
17921
17922 if (!args) SWIG_fail;
17923 swig_obj[0] = args;
17924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17925 if (!SWIG_IsOK(res1)) {
17926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17927 }
17928 arg1 = reinterpret_cast< wxSlider * >(argp1);
17929 {
17930 PyThreadState* __tstate = wxPyBeginAllowThreads();
17931 result = (int)((wxSlider const *)arg1)->GetValue();
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_From_int(static_cast< int >(result));
17936 return resultobj;
17937fail:
17938 return NULL;
17939}
17940
17941
17942SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17943 PyObject *resultobj = 0;
17944 wxSlider *arg1 = (wxSlider *) 0 ;
17945 int arg2 ;
17946 void *argp1 = 0 ;
17947 int res1 = 0 ;
17948 int val2 ;
17949 int ecode2 = 0 ;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 char * kwnames[] = {
17953 (char *) "self",(char *) "value", NULL
17954 };
17955
17956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17960 }
17961 arg1 = reinterpret_cast< wxSlider * >(argp1);
17962 ecode2 = SWIG_AsVal_int(obj1, &val2);
17963 if (!SWIG_IsOK(ecode2)) {
17964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17965 }
17966 arg2 = static_cast< int >(val2);
17967 {
17968 PyThreadState* __tstate = wxPyBeginAllowThreads();
17969 (arg1)->SetValue(arg2);
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 resultobj = SWIG_Py_Void();
17974 return resultobj;
17975fail:
17976 return NULL;
17977}
17978
17979
17980SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17981 PyObject *resultobj = 0;
17982 wxSlider *arg1 = (wxSlider *) 0 ;
17983 int arg2 ;
17984 int arg3 ;
17985 void *argp1 = 0 ;
17986 int res1 = 0 ;
17987 int val2 ;
17988 int ecode2 = 0 ;
17989 int val3 ;
17990 int ecode3 = 0 ;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 PyObject * obj2 = 0 ;
17994 char * kwnames[] = {
17995 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17996 };
17997
17998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18000 if (!SWIG_IsOK(res1)) {
18001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18002 }
18003 arg1 = reinterpret_cast< wxSlider * >(argp1);
18004 ecode2 = SWIG_AsVal_int(obj1, &val2);
18005 if (!SWIG_IsOK(ecode2)) {
18006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18007 }
18008 arg2 = static_cast< int >(val2);
18009 ecode3 = SWIG_AsVal_int(obj2, &val3);
18010 if (!SWIG_IsOK(ecode3)) {
18011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18012 }
18013 arg3 = static_cast< int >(val3);
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 (arg1)->SetRange(arg2,arg3);
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 resultobj = SWIG_Py_Void();
18021 return resultobj;
18022fail:
18023 return NULL;
d55e5bfc
RD
18024}
18025
18026
1bd55598
RD
18027SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18028 PyObject *resultobj = 0;
18029 wxSlider *arg1 = (wxSlider *) 0 ;
18030 int result;
18031 void *argp1 = 0 ;
18032 int res1 = 0 ;
18033 PyObject *swig_obj[1] ;
18034
18035 if (!args) SWIG_fail;
18036 swig_obj[0] = args;
18037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18038 if (!SWIG_IsOK(res1)) {
18039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18040 }
18041 arg1 = reinterpret_cast< wxSlider * >(argp1);
18042 {
18043 PyThreadState* __tstate = wxPyBeginAllowThreads();
18044 result = (int)((wxSlider const *)arg1)->GetMin();
18045 wxPyEndAllowThreads(__tstate);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 resultobj = SWIG_From_int(static_cast< int >(result));
18049 return resultobj;
18050fail:
18051 return NULL;
f20a2e1f
RD
18052}
18053
18054
1bd55598
RD
18055SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18056 PyObject *resultobj = 0;
18057 wxSlider *arg1 = (wxSlider *) 0 ;
18058 int result;
18059 void *argp1 = 0 ;
18060 int res1 = 0 ;
18061 PyObject *swig_obj[1] ;
18062
18063 if (!args) SWIG_fail;
18064 swig_obj[0] = args;
18065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18066 if (!SWIG_IsOK(res1)) {
18067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18068 }
18069 arg1 = reinterpret_cast< wxSlider * >(argp1);
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 result = (int)((wxSlider const *)arg1)->GetMax();
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 resultobj = SWIG_From_int(static_cast< int >(result));
18077 return resultobj;
18078fail:
18079 return NULL;
18080}
18081
18082
18083SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18084 PyObject *resultobj = 0;
18085 wxSlider *arg1 = (wxSlider *) 0 ;
18086 int arg2 ;
18087 void *argp1 = 0 ;
18088 int res1 = 0 ;
18089 int val2 ;
18090 int ecode2 = 0 ;
18091 PyObject * obj0 = 0 ;
18092 PyObject * obj1 = 0 ;
18093 char * kwnames[] = {
18094 (char *) "self",(char *) "minValue", NULL
18095 };
18096
18097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18099 if (!SWIG_IsOK(res1)) {
18100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18101 }
18102 arg1 = reinterpret_cast< wxSlider * >(argp1);
18103 ecode2 = SWIG_AsVal_int(obj1, &val2);
18104 if (!SWIG_IsOK(ecode2)) {
18105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18106 }
18107 arg2 = static_cast< int >(val2);
18108 {
18109 PyThreadState* __tstate = wxPyBeginAllowThreads();
18110 (arg1)->SetMin(arg2);
18111 wxPyEndAllowThreads(__tstate);
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 resultobj = SWIG_Py_Void();
18115 return resultobj;
18116fail:
18117 return NULL;
18118}
18119
18120
18121SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18122 PyObject *resultobj = 0;
18123 wxSlider *arg1 = (wxSlider *) 0 ;
18124 int arg2 ;
18125 void *argp1 = 0 ;
18126 int res1 = 0 ;
18127 int val2 ;
18128 int ecode2 = 0 ;
18129 PyObject * obj0 = 0 ;
18130 PyObject * obj1 = 0 ;
18131 char * kwnames[] = {
18132 (char *) "self",(char *) "maxValue", NULL
18133 };
18134
18135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18137 if (!SWIG_IsOK(res1)) {
18138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18139 }
18140 arg1 = reinterpret_cast< wxSlider * >(argp1);
18141 ecode2 = SWIG_AsVal_int(obj1, &val2);
18142 if (!SWIG_IsOK(ecode2)) {
18143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18144 }
18145 arg2 = static_cast< int >(val2);
18146 {
18147 PyThreadState* __tstate = wxPyBeginAllowThreads();
18148 (arg1)->SetMax(arg2);
18149 wxPyEndAllowThreads(__tstate);
18150 if (PyErr_Occurred()) SWIG_fail;
18151 }
18152 resultobj = SWIG_Py_Void();
18153 return resultobj;
18154fail:
18155 return NULL;
18156}
18157
18158
18159SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18160 PyObject *resultobj = 0;
18161 wxSlider *arg1 = (wxSlider *) 0 ;
18162 int arg2 ;
18163 void *argp1 = 0 ;
18164 int res1 = 0 ;
18165 int val2 ;
18166 int ecode2 = 0 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 char * kwnames[] = {
18170 (char *) "self",(char *) "lineSize", NULL
18171 };
18172
18173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18177 }
18178 arg1 = reinterpret_cast< wxSlider * >(argp1);
18179 ecode2 = SWIG_AsVal_int(obj1, &val2);
18180 if (!SWIG_IsOK(ecode2)) {
18181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18182 }
18183 arg2 = static_cast< int >(val2);
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->SetLineSize(arg2);
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = SWIG_Py_Void();
18191 return resultobj;
18192fail:
18193 return NULL;
18194}
18195
18196
18197SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj = 0;
18199 wxSlider *arg1 = (wxSlider *) 0 ;
18200 int arg2 ;
18201 void *argp1 = 0 ;
18202 int res1 = 0 ;
18203 int val2 ;
18204 int ecode2 = 0 ;
18205 PyObject * obj0 = 0 ;
18206 PyObject * obj1 = 0 ;
18207 char * kwnames[] = {
18208 (char *) "self",(char *) "pageSize", NULL
18209 };
18210
18211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18213 if (!SWIG_IsOK(res1)) {
18214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18215 }
18216 arg1 = reinterpret_cast< wxSlider * >(argp1);
18217 ecode2 = SWIG_AsVal_int(obj1, &val2);
18218 if (!SWIG_IsOK(ecode2)) {
18219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18220 }
18221 arg2 = static_cast< int >(val2);
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 (arg1)->SetPageSize(arg2);
18225 wxPyEndAllowThreads(__tstate);
18226 if (PyErr_Occurred()) SWIG_fail;
18227 }
18228 resultobj = SWIG_Py_Void();
18229 return resultobj;
18230fail:
18231 return NULL;
d55e5bfc
RD
18232}
18233
18234
1bd55598
RD
18235SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18236 PyObject *resultobj = 0;
18237 wxSlider *arg1 = (wxSlider *) 0 ;
18238 int result;
18239 void *argp1 = 0 ;
18240 int res1 = 0 ;
18241 PyObject *swig_obj[1] ;
18242
18243 if (!args) SWIG_fail;
18244 swig_obj[0] = args;
18245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18246 if (!SWIG_IsOK(res1)) {
18247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18248 }
18249 arg1 = reinterpret_cast< wxSlider * >(argp1);
18250 {
18251 PyThreadState* __tstate = wxPyBeginAllowThreads();
18252 result = (int)((wxSlider const *)arg1)->GetLineSize();
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 resultobj = SWIG_From_int(static_cast< int >(result));
18257 return resultobj;
18258fail:
18259 return NULL;
d55e5bfc
RD
18260}
18261
18262
1bd55598
RD
18263SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18264 PyObject *resultobj = 0;
18265 wxSlider *arg1 = (wxSlider *) 0 ;
18266 int result;
18267 void *argp1 = 0 ;
18268 int res1 = 0 ;
18269 PyObject *swig_obj[1] ;
18270
18271 if (!args) SWIG_fail;
18272 swig_obj[0] = args;
18273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18274 if (!SWIG_IsOK(res1)) {
18275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18276 }
18277 arg1 = reinterpret_cast< wxSlider * >(argp1);
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 result = (int)((wxSlider const *)arg1)->GetPageSize();
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_From_int(static_cast< int >(result));
18285 return resultobj;
18286fail:
18287 return NULL;
18288}
18289
18290
18291SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj = 0;
18293 wxSlider *arg1 = (wxSlider *) 0 ;
18294 int arg2 ;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 int val2 ;
18298 int ecode2 = 0 ;
18299 PyObject * obj0 = 0 ;
18300 PyObject * obj1 = 0 ;
18301 char * kwnames[] = {
18302 (char *) "self",(char *) "lenPixels", NULL
18303 };
18304
18305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18307 if (!SWIG_IsOK(res1)) {
18308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18309 }
18310 arg1 = reinterpret_cast< wxSlider * >(argp1);
18311 ecode2 = SWIG_AsVal_int(obj1, &val2);
18312 if (!SWIG_IsOK(ecode2)) {
18313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18314 }
18315 arg2 = static_cast< int >(val2);
18316 {
18317 PyThreadState* __tstate = wxPyBeginAllowThreads();
18318 (arg1)->SetThumbLength(arg2);
18319 wxPyEndAllowThreads(__tstate);
18320 if (PyErr_Occurred()) SWIG_fail;
18321 }
18322 resultobj = SWIG_Py_Void();
18323 return resultobj;
18324fail:
18325 return NULL;
d55e5bfc
RD
18326}
18327
18328
1bd55598
RD
18329SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18330 PyObject *resultobj = 0;
18331 wxSlider *arg1 = (wxSlider *) 0 ;
18332 int result;
18333 void *argp1 = 0 ;
18334 int res1 = 0 ;
18335 PyObject *swig_obj[1] ;
18336
18337 if (!args) SWIG_fail;
18338 swig_obj[0] = args;
18339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18340 if (!SWIG_IsOK(res1)) {
18341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18342 }
18343 arg1 = reinterpret_cast< wxSlider * >(argp1);
18344 {
18345 PyThreadState* __tstate = wxPyBeginAllowThreads();
18346 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18347 wxPyEndAllowThreads(__tstate);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 }
18350 resultobj = SWIG_From_int(static_cast< int >(result));
18351 return resultobj;
18352fail:
18353 return NULL;
18354}
18355
18356
18357SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18358 PyObject *resultobj = 0;
18359 wxSlider *arg1 = (wxSlider *) 0 ;
18360 int arg2 ;
18361 int arg3 = (int) 1 ;
18362 void *argp1 = 0 ;
18363 int res1 = 0 ;
18364 int val2 ;
18365 int ecode2 = 0 ;
18366 int val3 ;
18367 int ecode3 = 0 ;
18368 PyObject * obj0 = 0 ;
18369 PyObject * obj1 = 0 ;
18370 PyObject * obj2 = 0 ;
18371 char * kwnames[] = {
18372 (char *) "self",(char *) "n",(char *) "pos", NULL
18373 };
18374
18375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18377 if (!SWIG_IsOK(res1)) {
18378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18379 }
18380 arg1 = reinterpret_cast< wxSlider * >(argp1);
18381 ecode2 = SWIG_AsVal_int(obj1, &val2);
18382 if (!SWIG_IsOK(ecode2)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18384 }
18385 arg2 = static_cast< int >(val2);
18386 if (obj2) {
18387 ecode3 = SWIG_AsVal_int(obj2, &val3);
18388 if (!SWIG_IsOK(ecode3)) {
18389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18390 }
18391 arg3 = static_cast< int >(val3);
18392 }
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 (arg1)->SetTickFreq(arg2,arg3);
18396 wxPyEndAllowThreads(__tstate);
18397 if (PyErr_Occurred()) SWIG_fail;
18398 }
18399 resultobj = SWIG_Py_Void();
18400 return resultobj;
18401fail:
18402 return NULL;
d55e5bfc
RD
18403}
18404
18405
1bd55598
RD
18406SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18407 PyObject *resultobj = 0;
18408 wxSlider *arg1 = (wxSlider *) 0 ;
18409 int result;
18410 void *argp1 = 0 ;
18411 int res1 = 0 ;
18412 PyObject *swig_obj[1] ;
18413
18414 if (!args) SWIG_fail;
18415 swig_obj[0] = args;
18416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18417 if (!SWIG_IsOK(res1)) {
18418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18419 }
18420 arg1 = reinterpret_cast< wxSlider * >(argp1);
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 resultobj = SWIG_From_int(static_cast< int >(result));
18428 return resultobj;
18429fail:
18430 return NULL;
d55e5bfc
RD
18431}
18432
18433
1bd55598
RD
18434SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18435 PyObject *resultobj = 0;
18436 wxSlider *arg1 = (wxSlider *) 0 ;
18437 void *argp1 = 0 ;
18438 int res1 = 0 ;
18439 PyObject *swig_obj[1] ;
18440
18441 if (!args) SWIG_fail;
18442 swig_obj[0] = args;
18443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18444 if (!SWIG_IsOK(res1)) {
18445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18446 }
18447 arg1 = reinterpret_cast< wxSlider * >(argp1);
18448 {
18449 PyThreadState* __tstate = wxPyBeginAllowThreads();
18450 (arg1)->ClearTicks();
18451 wxPyEndAllowThreads(__tstate);
18452 if (PyErr_Occurred()) SWIG_fail;
18453 }
18454 resultobj = SWIG_Py_Void();
18455 return resultobj;
18456fail:
18457 return NULL;
18458}
18459
18460
18461SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18462 PyObject *resultobj = 0;
18463 wxSlider *arg1 = (wxSlider *) 0 ;
18464 int arg2 ;
18465 void *argp1 = 0 ;
18466 int res1 = 0 ;
18467 int val2 ;
18468 int ecode2 = 0 ;
18469 PyObject * obj0 = 0 ;
18470 PyObject * obj1 = 0 ;
18471 char * kwnames[] = {
18472 (char *) "self",(char *) "tickPos", NULL
18473 };
18474
18475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18477 if (!SWIG_IsOK(res1)) {
18478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18479 }
18480 arg1 = reinterpret_cast< wxSlider * >(argp1);
18481 ecode2 = SWIG_AsVal_int(obj1, &val2);
18482 if (!SWIG_IsOK(ecode2)) {
18483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18484 }
18485 arg2 = static_cast< int >(val2);
18486 {
18487 PyThreadState* __tstate = wxPyBeginAllowThreads();
18488 (arg1)->SetTick(arg2);
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 resultobj = SWIG_Py_Void();
18493 return resultobj;
18494fail:
18495 return NULL;
d55e5bfc
RD
18496}
18497
18498
1bd55598
RD
18499SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18500 PyObject *resultobj = 0;
18501 wxSlider *arg1 = (wxSlider *) 0 ;
18502 void *argp1 = 0 ;
18503 int res1 = 0 ;
18504 PyObject *swig_obj[1] ;
18505
18506 if (!args) SWIG_fail;
18507 swig_obj[0] = args;
18508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18511 }
18512 arg1 = reinterpret_cast< wxSlider * >(argp1);
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 (arg1)->ClearSel();
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 resultobj = SWIG_Py_Void();
18520 return resultobj;
18521fail:
18522 return NULL;
d55e5bfc
RD
18523}
18524
18525
1bd55598
RD
18526SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18527 PyObject *resultobj = 0;
18528 wxSlider *arg1 = (wxSlider *) 0 ;
18529 int result;
18530 void *argp1 = 0 ;
18531 int res1 = 0 ;
18532 PyObject *swig_obj[1] ;
18533
18534 if (!args) SWIG_fail;
18535 swig_obj[0] = args;
18536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18537 if (!SWIG_IsOK(res1)) {
18538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18539 }
18540 arg1 = reinterpret_cast< wxSlider * >(argp1);
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18544 wxPyEndAllowThreads(__tstate);
18545 if (PyErr_Occurred()) SWIG_fail;
18546 }
18547 resultobj = SWIG_From_int(static_cast< int >(result));
18548 return resultobj;
18549fail:
18550 return NULL;
d55e5bfc
RD
18551}
18552
18553
1bd55598
RD
18554SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18555 PyObject *resultobj = 0;
18556 wxSlider *arg1 = (wxSlider *) 0 ;
18557 int result;
18558 void *argp1 = 0 ;
18559 int res1 = 0 ;
18560 PyObject *swig_obj[1] ;
18561
18562 if (!args) SWIG_fail;
18563 swig_obj[0] = args;
18564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18565 if (!SWIG_IsOK(res1)) {
18566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18567 }
18568 arg1 = reinterpret_cast< wxSlider * >(argp1);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 result = (int)((wxSlider const *)arg1)->GetSelStart();
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_From_int(static_cast< int >(result));
18576 return resultobj;
18577fail:
18578 return NULL;
18579}
18580
18581
18582SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxSlider *arg1 = (wxSlider *) 0 ;
18585 int arg2 ;
18586 int arg3 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 int val2 ;
18590 int ecode2 = 0 ;
18591 int val3 ;
18592 int ecode3 = 0 ;
18593 PyObject * obj0 = 0 ;
18594 PyObject * obj1 = 0 ;
18595 PyObject * obj2 = 0 ;
18596 char * kwnames[] = {
18597 (char *) "self",(char *) "min",(char *) "max", NULL
18598 };
18599
18600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18602 if (!SWIG_IsOK(res1)) {
18603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18604 }
18605 arg1 = reinterpret_cast< wxSlider * >(argp1);
18606 ecode2 = SWIG_AsVal_int(obj1, &val2);
18607 if (!SWIG_IsOK(ecode2)) {
18608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18609 }
18610 arg2 = static_cast< int >(val2);
18611 ecode3 = SWIG_AsVal_int(obj2, &val3);
18612 if (!SWIG_IsOK(ecode3)) {
18613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18614 }
18615 arg3 = static_cast< int >(val3);
18616 {
18617 PyThreadState* __tstate = wxPyBeginAllowThreads();
18618 (arg1)->SetSelection(arg2,arg3);
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 resultobj = SWIG_Py_Void();
18623 return resultobj;
18624fail:
18625 return NULL;
18626}
18627
18628
18629SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18630 PyObject *resultobj = 0;
18631 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18632 SwigValueWrapper<wxVisualAttributes > result;
18633 int val1 ;
18634 int ecode1 = 0 ;
18635 PyObject * obj0 = 0 ;
18636 char * kwnames[] = {
18637 (char *) "variant", NULL
18638 };
18639
18640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18641 if (obj0) {
18642 ecode1 = SWIG_AsVal_int(obj0, &val1);
18643 if (!SWIG_IsOK(ecode1)) {
18644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18645 }
18646 arg1 = static_cast< wxWindowVariant >(val1);
18647 }
18648 {
18649 if (!wxPyCheckForApp()) SWIG_fail;
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 result = wxSlider::GetClassDefaultAttributes(arg1);
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18656 return resultobj;
18657fail:
18658 return NULL;
d55e5bfc
RD
18659}
18660
18661
1bd55598
RD
18662SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18663 PyObject *obj;
18664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18665 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18666 return SWIG_Py_Void();
d55e5bfc
RD
18667}
18668
1bd55598
RD
18669SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18670 return SWIG_Python_InitShadowInstance(args);
18671}
d55e5bfc 18672
1bd55598
RD
18673SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18674 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18675 return 1;
d55e5bfc
RD
18676}
18677
18678
1bd55598
RD
18679SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18680 PyObject *pyobj = 0;
18681
18682 {
18683#if wxUSE_UNICODE
18684 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18685#else
18686 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18687#endif
18688 }
18689 return pyobj;
18690}
18691
18692
18693SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18694 PyObject *resultobj = 0;
18695 wxWindow *arg1 = (wxWindow *) 0 ;
18696 int arg2 = (int) -1 ;
18697 wxString const &arg3_defvalue = wxPyEmptyString ;
18698 wxString *arg3 = (wxString *) &arg3_defvalue ;
18699 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18700 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18701 wxSize const &arg5_defvalue = wxDefaultSize ;
18702 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18703 long arg6 = (long) 0 ;
18704 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18705 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18706 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18707 wxString *arg8 = (wxString *) &arg8_defvalue ;
18708 wxToggleButton *result = 0 ;
18709 void *argp1 = 0 ;
18710 int res1 = 0 ;
18711 int val2 ;
18712 int ecode2 = 0 ;
18713 bool temp3 = false ;
18714 wxPoint temp4 ;
18715 wxSize temp5 ;
18716 long val6 ;
18717 int ecode6 = 0 ;
18718 void *argp7 = 0 ;
18719 int res7 = 0 ;
18720 bool temp8 = false ;
18721 PyObject * obj0 = 0 ;
18722 PyObject * obj1 = 0 ;
18723 PyObject * obj2 = 0 ;
18724 PyObject * obj3 = 0 ;
18725 PyObject * obj4 = 0 ;
18726 PyObject * obj5 = 0 ;
18727 PyObject * obj6 = 0 ;
18728 PyObject * obj7 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18737 }
18738 arg1 = reinterpret_cast< wxWindow * >(argp1);
18739 if (obj1) {
18740 ecode2 = SWIG_AsVal_int(obj1, &val2);
18741 if (!SWIG_IsOK(ecode2)) {
18742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18743 }
18744 arg2 = static_cast< int >(val2);
18745 }
18746 if (obj2) {
d55e5bfc 18747 {
1bd55598
RD
18748 arg3 = wxString_in_helper(obj2);
18749 if (arg3 == NULL) SWIG_fail;
18750 temp3 = true;
d55e5bfc 18751 }
1bd55598
RD
18752 }
18753 if (obj3) {
36ed4f51 18754 {
1bd55598
RD
18755 arg4 = &temp4;
18756 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18757 }
1bd55598
RD
18758 }
18759 if (obj4) {
d55e5bfc 18760 {
1bd55598
RD
18761 arg5 = &temp5;
18762 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18763 }
1bd55598
RD
18764 }
18765 if (obj5) {
18766 ecode6 = SWIG_AsVal_long(obj5, &val6);
18767 if (!SWIG_IsOK(ecode6)) {
18768 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18769 }
18770 arg6 = static_cast< long >(val6);
18771 }
18772 if (obj6) {
18773 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18774 if (!SWIG_IsOK(res7)) {
18775 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18776 }
1bd55598
RD
18777 if (!argp7) {
18778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18779 }
1bd55598
RD
18780 arg7 = reinterpret_cast< wxValidator * >(argp7);
18781 }
18782 if (obj7) {
d55e5bfc 18783 {
1bd55598
RD
18784 arg8 = wxString_in_helper(obj7);
18785 if (arg8 == NULL) SWIG_fail;
18786 temp8 = true;
d55e5bfc 18787 }
1bd55598
RD
18788 }
18789 {
18790 if (!wxPyCheckForApp()) SWIG_fail;
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18797 {
18798 if (temp3)
18799 delete arg3;
18800 }
18801 {
18802 if (temp8)
18803 delete arg8;
18804 }
18805 return resultobj;
18806fail:
18807 {
18808 if (temp3)
18809 delete arg3;
18810 }
18811 {
18812 if (temp8)
18813 delete arg8;
18814 }
18815 return NULL;
d55e5bfc
RD
18816}
18817
18818
1bd55598
RD
18819SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18820 PyObject *resultobj = 0;
18821 wxToggleButton *result = 0 ;
18822
18823 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18824 {
18825 if (!wxPyCheckForApp()) SWIG_fail;
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = (wxToggleButton *)new wxToggleButton();
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18832 return resultobj;
18833fail:
18834 return NULL;
18835}
18836
18837
18838SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18839 PyObject *resultobj = 0;
18840 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18841 wxWindow *arg2 = (wxWindow *) 0 ;
18842 int arg3 = (int) -1 ;
18843 wxString const &arg4_defvalue = wxPyEmptyString ;
18844 wxString *arg4 = (wxString *) &arg4_defvalue ;
18845 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18846 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18847 wxSize const &arg6_defvalue = wxDefaultSize ;
18848 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18849 long arg7 = (long) 0 ;
18850 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18851 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18852 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18853 wxString *arg9 = (wxString *) &arg9_defvalue ;
18854 bool result;
18855 void *argp1 = 0 ;
18856 int res1 = 0 ;
18857 void *argp2 = 0 ;
18858 int res2 = 0 ;
18859 int val3 ;
18860 int ecode3 = 0 ;
18861 bool temp4 = false ;
18862 wxPoint temp5 ;
18863 wxSize temp6 ;
18864 long val7 ;
18865 int ecode7 = 0 ;
18866 void *argp8 = 0 ;
18867 int res8 = 0 ;
18868 bool temp9 = false ;
18869 PyObject * obj0 = 0 ;
18870 PyObject * obj1 = 0 ;
18871 PyObject * obj2 = 0 ;
18872 PyObject * obj3 = 0 ;
18873 PyObject * obj4 = 0 ;
18874 PyObject * obj5 = 0 ;
18875 PyObject * obj6 = 0 ;
18876 PyObject * obj7 = 0 ;
18877 PyObject * obj8 = 0 ;
18878 char * kwnames[] = {
18879 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18880 };
18881
18882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18884 if (!SWIG_IsOK(res1)) {
18885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18886 }
18887 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18889 if (!SWIG_IsOK(res2)) {
18890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18891 }
18892 arg2 = reinterpret_cast< wxWindow * >(argp2);
18893 if (obj2) {
18894 ecode3 = SWIG_AsVal_int(obj2, &val3);
18895 if (!SWIG_IsOK(ecode3)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18897 }
18898 arg3 = static_cast< int >(val3);
18899 }
18900 if (obj3) {
36ed4f51 18901 {
1bd55598
RD
18902 arg4 = wxString_in_helper(obj3);
18903 if (arg4 == NULL) SWIG_fail;
18904 temp4 = true;
36ed4f51 18905 }
1bd55598
RD
18906 }
18907 if (obj4) {
36ed4f51 18908 {
1bd55598
RD
18909 arg5 = &temp5;
18910 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18911 }
1bd55598
RD
18912 }
18913 if (obj5) {
36ed4f51 18914 {
1bd55598
RD
18915 arg6 = &temp6;
18916 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18917 }
1bd55598
RD
18918 }
18919 if (obj6) {
18920 ecode7 = SWIG_AsVal_long(obj6, &val7);
18921 if (!SWIG_IsOK(ecode7)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18923 }
18924 arg7 = static_cast< long >(val7);
18925 }
18926 if (obj7) {
18927 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18928 if (!SWIG_IsOK(res8)) {
18929 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18930 }
1bd55598
RD
18931 if (!argp8) {
18932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18933 }
1bd55598
RD
18934 arg8 = reinterpret_cast< wxValidator * >(argp8);
18935 }
18936 if (obj8) {
d55e5bfc 18937 {
1bd55598
RD
18938 arg9 = wxString_in_helper(obj8);
18939 if (arg9 == NULL) SWIG_fail;
18940 temp9 = true;
d55e5bfc 18941 }
1bd55598
RD
18942 }
18943 {
18944 PyThreadState* __tstate = wxPyBeginAllowThreads();
18945 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18946 wxPyEndAllowThreads(__tstate);
18947 if (PyErr_Occurred()) SWIG_fail;
18948 }
18949 {
18950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18951 }
18952 {
18953 if (temp4)
18954 delete arg4;
18955 }
18956 {
18957 if (temp9)
18958 delete arg9;
18959 }
18960 return resultobj;
18961fail:
18962 {
18963 if (temp4)
18964 delete arg4;
18965 }
18966 {
18967 if (temp9)
18968 delete arg9;
18969 }
18970 return NULL;
18971}
18972
18973
18974SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18975 PyObject *resultobj = 0;
18976 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18977 bool arg2 ;
18978 void *argp1 = 0 ;
18979 int res1 = 0 ;
18980 bool val2 ;
18981 int ecode2 = 0 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 char * kwnames[] = {
18985 (char *) "self",(char *) "value", NULL
18986 };
18987
18988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18990 if (!SWIG_IsOK(res1)) {
18991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18992 }
18993 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18994 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18995 if (!SWIG_IsOK(ecode2)) {
18996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18997 }
18998 arg2 = static_cast< bool >(val2);
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 (arg1)->SetValue(arg2);
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 resultobj = SWIG_Py_Void();
19006 return resultobj;
19007fail:
19008 return NULL;
d55e5bfc
RD
19009}
19010
19011
1bd55598
RD
19012SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19013 PyObject *resultobj = 0;
19014 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19015 bool result;
19016 void *argp1 = 0 ;
19017 int res1 = 0 ;
19018 PyObject *swig_obj[1] ;
19019
19020 if (!args) SWIG_fail;
19021 swig_obj[0] = args;
19022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19023 if (!SWIG_IsOK(res1)) {
19024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19025 }
19026 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19027 {
19028 PyThreadState* __tstate = wxPyBeginAllowThreads();
19029 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19030 wxPyEndAllowThreads(__tstate);
19031 if (PyErr_Occurred()) SWIG_fail;
19032 }
19033 {
19034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19035 }
19036 return resultobj;
19037fail:
19038 return NULL;
f20a2e1f
RD
19039}
19040
19041
1bd55598
RD
19042SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj = 0;
19044 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19045 SwigValueWrapper<wxVisualAttributes > result;
19046 int val1 ;
19047 int ecode1 = 0 ;
19048 PyObject * obj0 = 0 ;
19049 char * kwnames[] = {
19050 (char *) "variant", NULL
19051 };
19052
19053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19054 if (obj0) {
19055 ecode1 = SWIG_AsVal_int(obj0, &val1);
19056 if (!SWIG_IsOK(ecode1)) {
19057 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19058 }
19059 arg1 = static_cast< wxWindowVariant >(val1);
19060 }
19061 {
19062 if (!wxPyCheckForApp()) SWIG_fail;
19063 PyThreadState* __tstate = wxPyBeginAllowThreads();
19064 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19065 wxPyEndAllowThreads(__tstate);
19066 if (PyErr_Occurred()) SWIG_fail;
19067 }
19068 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19069 return resultobj;
19070fail:
19071 return NULL;
d55e5bfc
RD
19072}
19073
19074
1bd55598
RD
19075SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19076 PyObject *obj;
19077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19078 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19079 return SWIG_Py_Void();
d55e5bfc
RD
19080}
19081
1bd55598
RD
19082SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19083 return SWIG_Python_InitShadowInstance(args);
19084}
d55e5bfc 19085
1bd55598
RD
19086SWIGINTERN int NotebookNameStr_set(PyObject *) {
19087 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19088 return 1;
d55e5bfc
RD
19089}
19090
19091
1bd55598
RD
19092SWIGINTERN PyObject *NotebookNameStr_get(void) {
19093 PyObject *pyobj = 0;
19094
19095 {
d55e5bfc 19096#if wxUSE_UNICODE
1bd55598 19097 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19098#else
1bd55598 19099 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19100#endif
1bd55598
RD
19101 }
19102 return pyobj;
d55e5bfc
RD
19103}
19104
19105
1bd55598
RD
19106SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19107 PyObject *resultobj = 0;
19108 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19109 size_t result;
19110 void *argp1 = 0 ;
19111 int res1 = 0 ;
19112 PyObject *swig_obj[1] ;
19113
19114 if (!args) SWIG_fail;
19115 swig_obj[0] = args;
19116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19117 if (!SWIG_IsOK(res1)) {
19118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19119 }
19120 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19128 return resultobj;
19129fail:
19130 return NULL;
19131}
19132
19133
19134SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19137 size_t arg2 ;
19138 wxWindow *result = 0 ;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 size_t val2 ;
19142 int ecode2 = 0 ;
19143 PyObject * obj0 = 0 ;
19144 PyObject * obj1 = 0 ;
19145 char * kwnames[] = {
19146 (char *) "self",(char *) "n", NULL
19147 };
19148
19149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19151 if (!SWIG_IsOK(res1)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19153 }
19154 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19155 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19156 if (!SWIG_IsOK(ecode2)) {
19157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19158 }
19159 arg2 = static_cast< size_t >(val2);
19160 {
19161 PyThreadState* __tstate = wxPyBeginAllowThreads();
19162 result = (wxWindow *)(arg1)->GetPage(arg2);
19163 wxPyEndAllowThreads(__tstate);
19164 if (PyErr_Occurred()) SWIG_fail;
19165 }
19166 {
19167 resultobj = wxPyMake_wxObject(result, 0);
19168 }
19169 return resultobj;
19170fail:
19171 return NULL;
d55e5bfc
RD
19172}
19173
19174
1bd55598
RD
19175SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19176 PyObject *resultobj = 0;
19177 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19178 wxWindow *result = 0 ;
19179 void *argp1 = 0 ;
19180 int res1 = 0 ;
19181 PyObject *swig_obj[1] ;
19182
19183 if (!args) SWIG_fail;
19184 swig_obj[0] = args;
19185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19186 if (!SWIG_IsOK(res1)) {
19187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19188 }
19189 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 {
19197 resultobj = wxPyMake_wxObject(result, 0);
19198 }
19199 return resultobj;
19200fail:
19201 return NULL;
d55e5bfc
RD
19202}
19203
19204
1bd55598
RD
19205SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19206 PyObject *resultobj = 0;
19207 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19208 int result;
19209 void *argp1 = 0 ;
19210 int res1 = 0 ;
19211 PyObject *swig_obj[1] ;
19212
19213 if (!args) SWIG_fail;
19214 swig_obj[0] = args;
19215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19216 if (!SWIG_IsOK(res1)) {
19217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19218 }
19219 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19223 wxPyEndAllowThreads(__tstate);
19224 if (PyErr_Occurred()) SWIG_fail;
19225 }
19226 resultobj = SWIG_From_int(static_cast< int >(result));
19227 return resultobj;
19228fail:
19229 return NULL;
19230}
19231
19232
19233SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19234 PyObject *resultobj = 0;
19235 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19236 size_t arg2 ;
19237 wxString *arg3 = 0 ;
19238 bool result;
19239 void *argp1 = 0 ;
19240 int res1 = 0 ;
19241 size_t val2 ;
19242 int ecode2 = 0 ;
19243 bool temp3 = false ;
19244 PyObject * obj0 = 0 ;
19245 PyObject * obj1 = 0 ;
19246 PyObject * obj2 = 0 ;
19247 char * kwnames[] = {
19248 (char *) "self",(char *) "n",(char *) "strText", NULL
19249 };
19250
19251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19253 if (!SWIG_IsOK(res1)) {
19254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19255 }
19256 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19257 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19258 if (!SWIG_IsOK(ecode2)) {
19259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19260 }
19261 arg2 = static_cast< size_t >(val2);
19262 {
19263 arg3 = wxString_in_helper(obj2);
19264 if (arg3 == NULL) SWIG_fail;
19265 temp3 = true;
19266 }
19267 {
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19270 wxPyEndAllowThreads(__tstate);
19271 if (PyErr_Occurred()) SWIG_fail;
19272 }
19273 {
19274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19275 }
19276 {
19277 if (temp3)
19278 delete arg3;
19279 }
19280 return resultobj;
19281fail:
19282 {
19283 if (temp3)
19284 delete arg3;
19285 }
19286 return NULL;
19287}
19288
19289
19290SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj = 0;
19292 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19293 size_t arg2 ;
19294 wxString result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 size_t val2 ;
19298 int ecode2 = 0 ;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 char * kwnames[] = {
19302 (char *) "self",(char *) "n", NULL
19303 };
19304
19305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19307 if (!SWIG_IsOK(res1)) {
19308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19309 }
19310 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19311 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19312 if (!SWIG_IsOK(ecode2)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19314 }
19315 arg2 = static_cast< size_t >(val2);
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 {
19323#if wxUSE_UNICODE
19324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19325#else
19326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19327#endif
19328 }
19329 return resultobj;
19330fail:
19331 return NULL;
19332}
19333
19334
19335SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj = 0;
19337 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19338 wxImageList *arg2 = (wxImageList *) 0 ;
19339 void *argp1 = 0 ;
19340 int res1 = 0 ;
19341 void *argp2 = 0 ;
19342 int res2 = 0 ;
19343 PyObject * obj0 = 0 ;
19344 PyObject * obj1 = 0 ;
19345 char * kwnames[] = {
19346 (char *) "self",(char *) "imageList", NULL
19347 };
19348
19349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19351 if (!SWIG_IsOK(res1)) {
19352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19353 }
19354 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19356 if (!SWIG_IsOK(res2)) {
19357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19358 }
19359 arg2 = reinterpret_cast< wxImageList * >(argp2);
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 (arg1)->SetImageList(arg2);
19363 wxPyEndAllowThreads(__tstate);
19364 if (PyErr_Occurred()) SWIG_fail;
19365 }
19366 resultobj = SWIG_Py_Void();
19367 return resultobj;
19368fail:
19369 return NULL;
19370}
19371
19372
19373SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19374 PyObject *resultobj = 0;
19375 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19376 wxImageList *arg2 = (wxImageList *) 0 ;
19377 void *argp1 = 0 ;
19378 int res1 = 0 ;
19379 int res2 = 0 ;
19380 PyObject * obj0 = 0 ;
19381 PyObject * obj1 = 0 ;
19382 char * kwnames[] = {
19383 (char *) "self",(char *) "imageList", NULL
19384 };
19385
19386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19388 if (!SWIG_IsOK(res1)) {
19389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19390 }
19391 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19392 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19393 if (!SWIG_IsOK(res2)) {
19394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19395 }
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 (arg1)->AssignImageList(arg2);
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 resultobj = SWIG_Py_Void();
19403 return resultobj;
19404fail:
19405 return NULL;
d55e5bfc
RD
19406}
19407
19408
1bd55598
RD
19409SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19410 PyObject *resultobj = 0;
19411 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19412 wxImageList *result = 0 ;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 PyObject *swig_obj[1] ;
19416
19417 if (!args) SWIG_fail;
19418 swig_obj[0] = args;
19419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19420 if (!SWIG_IsOK(res1)) {
19421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19422 }
19423 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19424 {
19425 PyThreadState* __tstate = wxPyBeginAllowThreads();
19426 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
3ecece7e
RD
19430 {
19431 resultobj = wxPyMake_wxObject(result, (bool)0);
19432 }
1bd55598
RD
19433 return resultobj;
19434fail:
19435 return NULL;
19436}
19437
19438
19439SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19440 PyObject *resultobj = 0;
19441 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19442 size_t arg2 ;
19443 int result;
19444 void *argp1 = 0 ;
19445 int res1 = 0 ;
19446 size_t val2 ;
19447 int ecode2 = 0 ;
19448 PyObject * obj0 = 0 ;
19449 PyObject * obj1 = 0 ;
19450 char * kwnames[] = {
19451 (char *) "self",(char *) "n", NULL
19452 };
19453
19454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19456 if (!SWIG_IsOK(res1)) {
19457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19458 }
19459 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19460 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19461 if (!SWIG_IsOK(ecode2)) {
19462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19463 }
19464 arg2 = static_cast< size_t >(val2);
19465 {
19466 PyThreadState* __tstate = wxPyBeginAllowThreads();
19467 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19468 wxPyEndAllowThreads(__tstate);
19469 if (PyErr_Occurred()) SWIG_fail;
19470 }
19471 resultobj = SWIG_From_int(static_cast< int >(result));
19472 return resultobj;
19473fail:
19474 return NULL;
19475}
19476
19477
19478SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj = 0;
19480 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19481 size_t arg2 ;
19482 int arg3 ;
19483 bool result;
19484 void *argp1 = 0 ;
19485 int res1 = 0 ;
19486 size_t val2 ;
19487 int ecode2 = 0 ;
19488 int val3 ;
19489 int ecode3 = 0 ;
19490 PyObject * obj0 = 0 ;
19491 PyObject * obj1 = 0 ;
19492 PyObject * obj2 = 0 ;
19493 char * kwnames[] = {
19494 (char *) "self",(char *) "n",(char *) "imageId", NULL
19495 };
19496
19497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19499 if (!SWIG_IsOK(res1)) {
19500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19501 }
19502 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19503 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19504 if (!SWIG_IsOK(ecode2)) {
19505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19506 }
19507 arg2 = static_cast< size_t >(val2);
19508 ecode3 = SWIG_AsVal_int(obj2, &val3);
19509 if (!SWIG_IsOK(ecode3)) {
19510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19511 }
19512 arg3 = static_cast< int >(val3);
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19516 wxPyEndAllowThreads(__tstate);
19517 if (PyErr_Occurred()) SWIG_fail;
19518 }
19519 {
19520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19521 }
19522 return resultobj;
19523fail:
19524 return NULL;
19525}
19526
19527
19528SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19529 PyObject *resultobj = 0;
19530 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19531 wxSize *arg2 = 0 ;
19532 void *argp1 = 0 ;
19533 int res1 = 0 ;
19534 wxSize temp2 ;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 char * kwnames[] = {
19538 (char *) "self",(char *) "size", NULL
19539 };
19540
19541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19543 if (!SWIG_IsOK(res1)) {
19544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19545 }
19546 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19547 {
19548 arg2 = &temp2;
19549 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19550 }
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 (arg1)->SetPageSize((wxSize const &)*arg2);
19554 wxPyEndAllowThreads(__tstate);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 resultobj = SWIG_Py_Void();
19558 return resultobj;
19559fail:
19560 return NULL;
19561}
19562
19563
19564SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj = 0;
19566 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19567 wxSize *arg2 = 0 ;
19568 wxSize result;
19569 void *argp1 = 0 ;
19570 int res1 = 0 ;
19571 wxSize temp2 ;
19572 PyObject * obj0 = 0 ;
19573 PyObject * obj1 = 0 ;
19574 char * kwnames[] = {
19575 (char *) "self",(char *) "sizePage", NULL
19576 };
19577
19578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19580 if (!SWIG_IsOK(res1)) {
19581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19582 }
19583 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19584 {
19585 arg2 = &temp2;
19586 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19587 }
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19595 return resultobj;
19596fail:
19597 return NULL;
d55e5bfc
RD
19598}
19599
19600
1bd55598
RD
19601SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19602 PyObject *resultobj = 0;
19603 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19604 unsigned int result;
1bd55598
RD
19605 void *argp1 = 0 ;
19606 int res1 = 0 ;
19607 PyObject *swig_obj[1] ;
19608
19609 if (!args) SWIG_fail;
19610 swig_obj[0] = args;
19611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19614 }
19615 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19616 {
19617 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19618 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19619 wxPyEndAllowThreads(__tstate);
19620 if (PyErr_Occurred()) SWIG_fail;
19621 }
e9d6f3a4 19622 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19623 return resultobj;
19624fail:
19625 return NULL;
19626}
19627
19628
19629SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19630 PyObject *resultobj = 0;
19631 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19632 unsigned int arg2 ;
1bd55598
RD
19633 void *argp1 = 0 ;
19634 int res1 = 0 ;
e9d6f3a4 19635 unsigned int val2 ;
1bd55598
RD
19636 int ecode2 = 0 ;
19637 PyObject * obj0 = 0 ;
19638 PyObject * obj1 = 0 ;
19639 char * kwnames[] = {
19640 (char *) "self",(char *) "internalBorder", NULL
19641 };
19642
19643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19645 if (!SWIG_IsOK(res1)) {
19646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19647 }
19648 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19649 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19650 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19652 }
e9d6f3a4 19653 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 (arg1)->SetInternalBorder(arg2);
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 resultobj = SWIG_Py_Void();
19661 return resultobj;
19662fail:
19663 return NULL;
d55e5bfc
RD
19664}
19665
19666
1bd55598
RD
19667SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19668 PyObject *resultobj = 0;
19669 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19670 bool result;
19671 void *argp1 = 0 ;
19672 int res1 = 0 ;
19673 PyObject *swig_obj[1] ;
19674
19675 if (!args) SWIG_fail;
19676 swig_obj[0] = args;
19677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19678 if (!SWIG_IsOK(res1)) {
19679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19680 }
19681 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19685 wxPyEndAllowThreads(__tstate);
19686 if (PyErr_Occurred()) SWIG_fail;
19687 }
19688 {
19689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19690 }
19691 return resultobj;
19692fail:
19693 return NULL;
19694}
19695
19696
e9d6f3a4
RD
19697SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19698 PyObject *resultobj = 0;
19699 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19700 int arg2 ;
19701 void *argp1 = 0 ;
19702 int res1 = 0 ;
19703 int val2 ;
19704 int ecode2 = 0 ;
19705 PyObject * obj0 = 0 ;
19706 PyObject * obj1 = 0 ;
19707 char * kwnames[] = {
19708 (char *) "self",(char *) "margin", NULL
19709 };
19710
19711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19713 if (!SWIG_IsOK(res1)) {
19714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19715 }
19716 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19717 ecode2 = SWIG_AsVal_int(obj1, &val2);
19718 if (!SWIG_IsOK(ecode2)) {
19719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19720 }
19721 arg2 = static_cast< int >(val2);
19722 {
19723 PyThreadState* __tstate = wxPyBeginAllowThreads();
19724 (arg1)->SetControlMargin(arg2);
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 resultobj = SWIG_Py_Void();
19729 return resultobj;
19730fail:
19731 return NULL;
19732}
19733
19734
19735SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19736 PyObject *resultobj = 0;
19737 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19738 int result;
19739 void *argp1 = 0 ;
19740 int res1 = 0 ;
19741 PyObject *swig_obj[1] ;
19742
19743 if (!args) SWIG_fail;
19744 swig_obj[0] = args;
19745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19746 if (!SWIG_IsOK(res1)) {
19747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19748 }
19749 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19750 {
19751 PyThreadState* __tstate = wxPyBeginAllowThreads();
19752 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19753 wxPyEndAllowThreads(__tstate);
19754 if (PyErr_Occurred()) SWIG_fail;
19755 }
19756 resultobj = SWIG_From_int(static_cast< int >(result));
19757 return resultobj;
19758fail:
19759 return NULL;
19760}
19761
19762
1bd55598
RD
19763SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj = 0;
19765 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19766 bool arg2 ;
19767 void *argp1 = 0 ;
19768 int res1 = 0 ;
19769 bool val2 ;
19770 int ecode2 = 0 ;
19771 PyObject * obj0 = 0 ;
19772 PyObject * obj1 = 0 ;
19773 char * kwnames[] = {
19774 (char *) "self",(char *) "fit", NULL
19775 };
19776
19777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19779 if (!SWIG_IsOK(res1)) {
19780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19781 }
19782 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19783 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19784 if (!SWIG_IsOK(ecode2)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19786 }
19787 arg2 = static_cast< bool >(val2);
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 (arg1)->SetFitToCurrentPage(arg2);
19791 wxPyEndAllowThreads(__tstate);
19792 if (PyErr_Occurred()) SWIG_fail;
19793 }
19794 resultobj = SWIG_Py_Void();
19795 return resultobj;
19796fail:
19797 return NULL;
d55e5bfc
RD
19798}
19799
19800
1bd55598
RD
19801SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19802 PyObject *resultobj = 0;
19803 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19804 bool result;
19805 void *argp1 = 0 ;
19806 int res1 = 0 ;
19807 PyObject *swig_obj[1] ;
19808
19809 if (!args) SWIG_fail;
19810 swig_obj[0] = args;
19811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19812 if (!SWIG_IsOK(res1)) {
19813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19814 }
19815 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19816 {
19817 PyThreadState* __tstate = wxPyBeginAllowThreads();
19818 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19819 wxPyEndAllowThreads(__tstate);
19820 if (PyErr_Occurred()) SWIG_fail;
19821 }
19822 {
19823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19824 }
19825 return resultobj;
19826fail:
19827 return NULL;
19828}
19829
19830
e9d6f3a4
RD
19831SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19832 PyObject *resultobj = 0;
19833 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19834 wxSizer *result = 0 ;
19835 void *argp1 = 0 ;
19836 int res1 = 0 ;
19837 PyObject *swig_obj[1] ;
19838
19839 if (!args) SWIG_fail;
19840 swig_obj[0] = args;
19841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19842 if (!SWIG_IsOK(res1)) {
19843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19844 }
19845 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 {
19853 resultobj = wxPyMake_wxObject(result, (bool)0);
19854 }
19855 return resultobj;
19856fail:
19857 return NULL;
19858}
19859
19860
1bd55598
RD
19861SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19862 PyObject *resultobj = 0;
19863 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19864 size_t arg2 ;
19865 bool result;
19866 void *argp1 = 0 ;
19867 int res1 = 0 ;
19868 size_t val2 ;
19869 int ecode2 = 0 ;
19870 PyObject * obj0 = 0 ;
19871 PyObject * obj1 = 0 ;
19872 char * kwnames[] = {
19873 (char *) "self",(char *) "n", NULL
19874 };
19875
19876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19878 if (!SWIG_IsOK(res1)) {
19879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19880 }
19881 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19882 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19883 if (!SWIG_IsOK(ecode2)) {
19884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19885 }
19886 arg2 = static_cast< size_t >(val2);
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 result = (bool)(arg1)->DeletePage(arg2);
19890 wxPyEndAllowThreads(__tstate);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 {
19894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19895 }
19896 return resultobj;
19897fail:
19898 return NULL;
19899}
19900
19901
19902SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19903 PyObject *resultobj = 0;
19904 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19905 size_t arg2 ;
19906 bool result;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 size_t val2 ;
19910 int ecode2 = 0 ;
19911 PyObject * obj0 = 0 ;
19912 PyObject * obj1 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "n", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19921 }
19922 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19923 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19924 if (!SWIG_IsOK(ecode2)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19926 }
19927 arg2 = static_cast< size_t >(val2);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 result = (bool)(arg1)->RemovePage(arg2);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 {
19935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19936 }
19937 return resultobj;
19938fail:
19939 return NULL;
f20a2e1f
RD
19940}
19941
19942
1bd55598
RD
19943SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19944 PyObject *resultobj = 0;
19945 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19946 bool result;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 PyObject *swig_obj[1] ;
19950
19951 if (!args) SWIG_fail;
19952 swig_obj[0] = args;
19953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19956 }
19957 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 result = (bool)(arg1)->DeleteAllPages();
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 {
19965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19966 }
19967 return resultobj;
19968fail:
19969 return NULL;
19970}
19971
19972
19973SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj = 0;
19975 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19976 wxWindow *arg2 = (wxWindow *) 0 ;
19977 wxString *arg3 = 0 ;
19978 bool arg4 = (bool) false ;
19979 int arg5 = (int) -1 ;
19980 bool result;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 void *argp2 = 0 ;
19984 int res2 = 0 ;
19985 bool temp3 = false ;
19986 bool val4 ;
19987 int ecode4 = 0 ;
19988 int val5 ;
19989 int ecode5 = 0 ;
19990 PyObject * obj0 = 0 ;
19991 PyObject * obj1 = 0 ;
19992 PyObject * obj2 = 0 ;
19993 PyObject * obj3 = 0 ;
19994 PyObject * obj4 = 0 ;
19995 char * kwnames[] = {
19996 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19997 };
19998
19999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20001 if (!SWIG_IsOK(res1)) {
20002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20003 }
20004 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20006 if (!SWIG_IsOK(res2)) {
20007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20008 }
20009 arg2 = reinterpret_cast< wxWindow * >(argp2);
20010 {
20011 arg3 = wxString_in_helper(obj2);
20012 if (arg3 == NULL) SWIG_fail;
20013 temp3 = true;
20014 }
20015 if (obj3) {
20016 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20017 if (!SWIG_IsOK(ecode4)) {
20018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20019 }
20020 arg4 = static_cast< bool >(val4);
20021 }
20022 if (obj4) {
20023 ecode5 = SWIG_AsVal_int(obj4, &val5);
20024 if (!SWIG_IsOK(ecode5)) {
20025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20026 }
20027 arg5 = static_cast< int >(val5);
20028 }
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 {
20036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20037 }
20038 {
20039 if (temp3)
20040 delete arg3;
20041 }
20042 return resultobj;
20043fail:
20044 {
20045 if (temp3)
20046 delete arg3;
20047 }
20048 return NULL;
20049}
20050
20051
20052SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20053 PyObject *resultobj = 0;
20054 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20055 size_t arg2 ;
20056 wxWindow *arg3 = (wxWindow *) 0 ;
20057 wxString *arg4 = 0 ;
20058 bool arg5 = (bool) false ;
20059 int arg6 = (int) -1 ;
20060 bool result;
20061 void *argp1 = 0 ;
20062 int res1 = 0 ;
20063 size_t val2 ;
20064 int ecode2 = 0 ;
20065 void *argp3 = 0 ;
20066 int res3 = 0 ;
20067 bool temp4 = false ;
20068 bool val5 ;
20069 int ecode5 = 0 ;
20070 int val6 ;
20071 int ecode6 = 0 ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 PyObject * obj2 = 0 ;
20075 PyObject * obj3 = 0 ;
20076 PyObject * obj4 = 0 ;
20077 PyObject * obj5 = 0 ;
20078 char * kwnames[] = {
20079 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20080 };
20081
20082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20084 if (!SWIG_IsOK(res1)) {
20085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20086 }
20087 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20088 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20089 if (!SWIG_IsOK(ecode2)) {
20090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20091 }
20092 arg2 = static_cast< size_t >(val2);
20093 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20094 if (!SWIG_IsOK(res3)) {
20095 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20096 }
20097 arg3 = reinterpret_cast< wxWindow * >(argp3);
20098 {
20099 arg4 = wxString_in_helper(obj3);
20100 if (arg4 == NULL) SWIG_fail;
20101 temp4 = true;
20102 }
20103 if (obj4) {
20104 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20105 if (!SWIG_IsOK(ecode5)) {
20106 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20107 }
20108 arg5 = static_cast< bool >(val5);
20109 }
20110 if (obj5) {
20111 ecode6 = SWIG_AsVal_int(obj5, &val6);
20112 if (!SWIG_IsOK(ecode6)) {
20113 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20114 }
20115 arg6 = static_cast< int >(val6);
20116 }
20117 {
20118 PyThreadState* __tstate = wxPyBeginAllowThreads();
20119 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20120 wxPyEndAllowThreads(__tstate);
20121 if (PyErr_Occurred()) SWIG_fail;
20122 }
20123 {
20124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20125 }
20126 {
20127 if (temp4)
20128 delete arg4;
20129 }
20130 return resultobj;
20131fail:
20132 {
20133 if (temp4)
20134 delete arg4;
20135 }
20136 return NULL;
20137}
20138
20139
20140SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20141 PyObject *resultobj = 0;
20142 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20143 size_t arg2 ;
20144 int result;
20145 void *argp1 = 0 ;
20146 int res1 = 0 ;
20147 size_t val2 ;
20148 int ecode2 = 0 ;
20149 PyObject * obj0 = 0 ;
20150 PyObject * obj1 = 0 ;
20151 char * kwnames[] = {
20152 (char *) "self",(char *) "n", NULL
20153 };
20154
20155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20157 if (!SWIG_IsOK(res1)) {
20158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20159 }
20160 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20161 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20162 if (!SWIG_IsOK(ecode2)) {
20163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20164 }
20165 arg2 = static_cast< size_t >(val2);
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 result = (int)(arg1)->SetSelection(arg2);
20169 wxPyEndAllowThreads(__tstate);
20170 if (PyErr_Occurred()) SWIG_fail;
20171 }
20172 resultobj = SWIG_From_int(static_cast< int >(result));
20173 return resultobj;
20174fail:
20175 return NULL;
20176}
20177
20178
b39fe951
RD
20179SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20182 size_t arg2 ;
20183 int result;
20184 void *argp1 = 0 ;
20185 int res1 = 0 ;
20186 size_t val2 ;
20187 int ecode2 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 char * kwnames[] = {
20191 (char *) "self",(char *) "n", NULL
20192 };
20193
20194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20196 if (!SWIG_IsOK(res1)) {
20197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20198 }
20199 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20200 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20201 if (!SWIG_IsOK(ecode2)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20203 }
20204 arg2 = static_cast< size_t >(val2);
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (int)(arg1)->ChangeSelection(arg2);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_From_int(static_cast< int >(result));
20212 return resultobj;
20213fail:
20214 return NULL;
20215}
20216
20217
1bd55598
RD
20218SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20221 bool arg2 = (bool) true ;
20222 void *argp1 = 0 ;
20223 int res1 = 0 ;
20224 bool val2 ;
20225 int ecode2 = 0 ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 char * kwnames[] = {
20229 (char *) "self",(char *) "forward", NULL
20230 };
20231
20232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20234 if (!SWIG_IsOK(res1)) {
20235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20236 }
20237 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20238 if (obj1) {
20239 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20240 if (!SWIG_IsOK(ecode2)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20242 }
20243 arg2 = static_cast< bool >(val2);
20244 }
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 (arg1)->AdvanceSelection(arg2);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = SWIG_Py_Void();
20252 return resultobj;
20253fail:
20254 return NULL;
20255}
20256
20257
704eda0c
RD
20258SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = 0;
20260 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20261 wxPoint *arg2 = 0 ;
20262 long *arg3 = (long *) 0 ;
20263 int result;
20264 void *argp1 = 0 ;
20265 int res1 = 0 ;
20266 wxPoint temp2 ;
20267 long temp3 ;
20268 int res3 = SWIG_TMPOBJ ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "self",(char *) "pt", NULL
20273 };
20274
20275 arg3 = &temp3;
20276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20278 if (!SWIG_IsOK(res1)) {
20279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20280 }
20281 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20282 {
20283 arg2 = &temp2;
20284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20285 }
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20289 wxPyEndAllowThreads(__tstate);
20290 if (PyErr_Occurred()) SWIG_fail;
20291 }
20292 resultobj = SWIG_From_int(static_cast< int >(result));
20293 if (SWIG_IsTmpObj(res3)) {
20294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20295 } else {
20296 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20298 }
20299 return resultobj;
20300fail:
20301 return NULL;
20302}
20303
20304
1bd55598
RD
20305SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20306 PyObject *resultobj = 0;
20307 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20308 SwigValueWrapper<wxVisualAttributes > result;
20309 int val1 ;
20310 int ecode1 = 0 ;
20311 PyObject * obj0 = 0 ;
20312 char * kwnames[] = {
20313 (char *) "variant", NULL
20314 };
20315
20316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20317 if (obj0) {
20318 ecode1 = SWIG_AsVal_int(obj0, &val1);
20319 if (!SWIG_IsOK(ecode1)) {
20320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20321 }
20322 arg1 = static_cast< wxWindowVariant >(val1);
20323 }
20324 {
20325 if (!wxPyCheckForApp()) SWIG_fail;
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20332 return resultobj;
20333fail:
20334 return NULL;
20335}
20336
20337
20338SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20339 PyObject *obj;
20340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20341 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20342 return SWIG_Py_Void();
20343}
20344
20345SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj = 0;
20347 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20348 int arg2 = (int) 0 ;
20349 int arg3 = (int) -1 ;
20350 int arg4 = (int) -1 ;
20351 wxBookCtrlBaseEvent *result = 0 ;
20352 int val1 ;
20353 int ecode1 = 0 ;
20354 int val2 ;
20355 int ecode2 = 0 ;
20356 int val3 ;
20357 int ecode3 = 0 ;
20358 int val4 ;
20359 int ecode4 = 0 ;
20360 PyObject * obj0 = 0 ;
20361 PyObject * obj1 = 0 ;
20362 PyObject * obj2 = 0 ;
20363 PyObject * obj3 = 0 ;
20364 char * kwnames[] = {
20365 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20366 };
20367
20368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20369 if (obj0) {
20370 ecode1 = SWIG_AsVal_int(obj0, &val1);
20371 if (!SWIG_IsOK(ecode1)) {
20372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20373 }
20374 arg1 = static_cast< wxEventType >(val1);
20375 }
20376 if (obj1) {
20377 ecode2 = SWIG_AsVal_int(obj1, &val2);
20378 if (!SWIG_IsOK(ecode2)) {
20379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20380 }
20381 arg2 = static_cast< int >(val2);
20382 }
20383 if (obj2) {
20384 ecode3 = SWIG_AsVal_int(obj2, &val3);
20385 if (!SWIG_IsOK(ecode3)) {
20386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20387 }
20388 arg3 = static_cast< int >(val3);
20389 }
20390 if (obj3) {
20391 ecode4 = SWIG_AsVal_int(obj3, &val4);
20392 if (!SWIG_IsOK(ecode4)) {
20393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20394 }
20395 arg4 = static_cast< int >(val4);
20396 }
20397 {
20398 PyThreadState* __tstate = wxPyBeginAllowThreads();
20399 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20404 return resultobj;
20405fail:
20406 return NULL;
d55e5bfc
RD
20407}
20408
20409
1bd55598
RD
20410SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20411 PyObject *resultobj = 0;
20412 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20413 int result;
20414 void *argp1 = 0 ;
20415 int res1 = 0 ;
20416 PyObject *swig_obj[1] ;
20417
20418 if (!args) SWIG_fail;
20419 swig_obj[0] = args;
20420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20421 if (!SWIG_IsOK(res1)) {
20422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20423 }
20424 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20425 {
20426 PyThreadState* __tstate = wxPyBeginAllowThreads();
20427 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20428 wxPyEndAllowThreads(__tstate);
20429 if (PyErr_Occurred()) SWIG_fail;
20430 }
20431 resultobj = SWIG_From_int(static_cast< int >(result));
20432 return resultobj;
20433fail:
20434 return NULL;
20435}
20436
20437
20438SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20439 PyObject *resultobj = 0;
20440 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20441 int arg2 ;
20442 void *argp1 = 0 ;
20443 int res1 = 0 ;
20444 int val2 ;
20445 int ecode2 = 0 ;
20446 PyObject * obj0 = 0 ;
20447 PyObject * obj1 = 0 ;
20448 char * kwnames[] = {
20449 (char *) "self",(char *) "nSel", NULL
20450 };
20451
20452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20456 }
20457 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20458 ecode2 = SWIG_AsVal_int(obj1, &val2);
20459 if (!SWIG_IsOK(ecode2)) {
20460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20461 }
20462 arg2 = static_cast< int >(val2);
20463 {
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 (arg1)->SetSelection(arg2);
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_Py_Void();
20470 return resultobj;
20471fail:
20472 return NULL;
d55e5bfc
RD
20473}
20474
20475
1bd55598
RD
20476SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20477 PyObject *resultobj = 0;
20478 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20479 int result;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 PyObject *swig_obj[1] ;
20483
20484 if (!args) SWIG_fail;
20485 swig_obj[0] = args;
20486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20489 }
20490 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20494 wxPyEndAllowThreads(__tstate);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 }
20497 resultobj = SWIG_From_int(static_cast< int >(result));
20498 return resultobj;
20499fail:
20500 return NULL;
20501}
20502
20503
20504SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20505 PyObject *resultobj = 0;
20506 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20507 int arg2 ;
20508 void *argp1 = 0 ;
20509 int res1 = 0 ;
20510 int val2 ;
20511 int ecode2 = 0 ;
20512 PyObject * obj0 = 0 ;
20513 PyObject * obj1 = 0 ;
20514 char * kwnames[] = {
20515 (char *) "self",(char *) "nOldSel", NULL
20516 };
20517
20518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20520 if (!SWIG_IsOK(res1)) {
20521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20522 }
20523 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20524 ecode2 = SWIG_AsVal_int(obj1, &val2);
20525 if (!SWIG_IsOK(ecode2)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20527 }
20528 arg2 = static_cast< int >(val2);
20529 {
20530 PyThreadState* __tstate = wxPyBeginAllowThreads();
20531 (arg1)->SetOldSelection(arg2);
20532 wxPyEndAllowThreads(__tstate);
20533 if (PyErr_Occurred()) SWIG_fail;
20534 }
20535 resultobj = SWIG_Py_Void();
20536 return resultobj;
20537fail:
20538 return NULL;
20539}
20540
20541
20542SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20543 PyObject *obj;
20544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20545 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20546 return SWIG_Py_Void();
20547}
20548
20549SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20550 return SWIG_Python_InitShadowInstance(args);
20551}
20552
20553SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20554 PyObject *resultobj = 0;
20555 wxWindow *arg1 = (wxWindow *) 0 ;
20556 int arg2 = (int) -1 ;
20557 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20558 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20559 wxSize const &arg4_defvalue = wxDefaultSize ;
20560 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20561 long arg5 = (long) 0 ;
20562 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20563 wxString *arg6 = (wxString *) &arg6_defvalue ;
20564 wxNotebook *result = 0 ;
20565 void *argp1 = 0 ;
20566 int res1 = 0 ;
20567 int val2 ;
20568 int ecode2 = 0 ;
20569 wxPoint temp3 ;
20570 wxSize temp4 ;
20571 long val5 ;
20572 int ecode5 = 0 ;
20573 bool temp6 = false ;
20574 PyObject * obj0 = 0 ;
20575 PyObject * obj1 = 0 ;
20576 PyObject * obj2 = 0 ;
20577 PyObject * obj3 = 0 ;
20578 PyObject * obj4 = 0 ;
20579 PyObject * obj5 = 0 ;
20580 char * kwnames[] = {
20581 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20582 };
20583
20584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20586 if (!SWIG_IsOK(res1)) {
20587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20588 }
20589 arg1 = reinterpret_cast< wxWindow * >(argp1);
20590 if (obj1) {
20591 ecode2 = SWIG_AsVal_int(obj1, &val2);
20592 if (!SWIG_IsOK(ecode2)) {
20593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20594 }
20595 arg2 = static_cast< int >(val2);
20596 }
20597 if (obj2) {
20598 {
20599 arg3 = &temp3;
20600 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20601 }
1bd55598
RD
20602 }
20603 if (obj3) {
d55e5bfc 20604 {
1bd55598
RD
20605 arg4 = &temp4;
20606 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20607 }
1bd55598
RD
20608 }
20609 if (obj4) {
20610 ecode5 = SWIG_AsVal_long(obj4, &val5);
20611 if (!SWIG_IsOK(ecode5)) {
20612 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20613 }
20614 arg5 = static_cast< long >(val5);
20615 }
20616 if (obj5) {
d55e5bfc 20617 {
1bd55598
RD
20618 arg6 = wxString_in_helper(obj5);
20619 if (arg6 == NULL) SWIG_fail;
20620 temp6 = true;
d55e5bfc 20621 }
1bd55598
RD
20622 }
20623 {
20624 if (!wxPyCheckForApp()) SWIG_fail;
20625 PyThreadState* __tstate = wxPyBeginAllowThreads();
20626 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20627 wxPyEndAllowThreads(__tstate);
20628 if (PyErr_Occurred()) SWIG_fail;
20629 }
20630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20631 {
20632 if (temp6)
20633 delete arg6;
20634 }
20635 return resultobj;
20636fail:
20637 {
20638 if (temp6)
20639 delete arg6;
20640 }
20641 return NULL;
20642}
20643
20644
20645SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20646 PyObject *resultobj = 0;
20647 wxNotebook *result = 0 ;
20648
20649 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20650 {
20651 if (!wxPyCheckForApp()) SWIG_fail;
20652 PyThreadState* __tstate = wxPyBeginAllowThreads();
20653 result = (wxNotebook *)new wxNotebook();
20654 wxPyEndAllowThreads(__tstate);
20655 if (PyErr_Occurred()) SWIG_fail;
20656 }
20657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20658 return resultobj;
20659fail:
20660 return NULL;
20661}
20662
20663
20664SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20665 PyObject *resultobj = 0;
20666 wxNotebook *arg1 = (wxNotebook *) 0 ;
20667 wxWindow *arg2 = (wxWindow *) 0 ;
20668 int arg3 = (int) -1 ;
20669 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20670 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20671 wxSize const &arg5_defvalue = wxDefaultSize ;
20672 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20673 long arg6 = (long) 0 ;
20674 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20675 wxString *arg7 = (wxString *) &arg7_defvalue ;
20676 bool result;
20677 void *argp1 = 0 ;
20678 int res1 = 0 ;
20679 void *argp2 = 0 ;
20680 int res2 = 0 ;
20681 int val3 ;
20682 int ecode3 = 0 ;
20683 wxPoint temp4 ;
20684 wxSize temp5 ;
20685 long val6 ;
20686 int ecode6 = 0 ;
20687 bool temp7 = false ;
20688 PyObject * obj0 = 0 ;
20689 PyObject * obj1 = 0 ;
20690 PyObject * obj2 = 0 ;
20691 PyObject * obj3 = 0 ;
20692 PyObject * obj4 = 0 ;
20693 PyObject * obj5 = 0 ;
20694 PyObject * obj6 = 0 ;
20695 char * kwnames[] = {
20696 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20697 };
20698
20699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20701 if (!SWIG_IsOK(res1)) {
20702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20703 }
20704 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20706 if (!SWIG_IsOK(res2)) {
20707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20708 }
20709 arg2 = reinterpret_cast< wxWindow * >(argp2);
20710 if (obj2) {
20711 ecode3 = SWIG_AsVal_int(obj2, &val3);
20712 if (!SWIG_IsOK(ecode3)) {
20713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20714 }
20715 arg3 = static_cast< int >(val3);
20716 }
20717 if (obj3) {
d55e5bfc 20718 {
1bd55598
RD
20719 arg4 = &temp4;
20720 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20721 }
1bd55598
RD
20722 }
20723 if (obj4) {
d55e5bfc 20724 {
1bd55598
RD
20725 arg5 = &temp5;
20726 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20727 }
1bd55598
RD
20728 }
20729 if (obj5) {
20730 ecode6 = SWIG_AsVal_long(obj5, &val6);
20731 if (!SWIG_IsOK(ecode6)) {
20732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20733 }
20734 arg6 = static_cast< long >(val6);
20735 }
20736 if (obj6) {
d55e5bfc 20737 {
1bd55598
RD
20738 arg7 = wxString_in_helper(obj6);
20739 if (arg7 == NULL) SWIG_fail;
20740 temp7 = true;
d55e5bfc 20741 }
1bd55598
RD
20742 }
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20746 wxPyEndAllowThreads(__tstate);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 }
20749 {
20750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20751 }
20752 {
20753 if (temp7)
20754 delete arg7;
20755 }
20756 return resultobj;
20757fail:
20758 {
20759 if (temp7)
20760 delete arg7;
20761 }
20762 return NULL;
d55e5bfc
RD
20763}
20764
20765
1bd55598
RD
20766SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20767 PyObject *resultobj = 0;
20768 wxNotebook *arg1 = (wxNotebook *) 0 ;
20769 int result;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 PyObject *swig_obj[1] ;
20773
20774 if (!args) SWIG_fail;
20775 swig_obj[0] = args;
20776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20779 }
20780 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20781 {
20782 PyThreadState* __tstate = wxPyBeginAllowThreads();
20783 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20784 wxPyEndAllowThreads(__tstate);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 }
20787 resultobj = SWIG_From_int(static_cast< int >(result));
20788 return resultobj;
20789fail:
20790 return NULL;
20791}
20792
20793
20794SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20795 PyObject *resultobj = 0;
20796 wxNotebook *arg1 = (wxNotebook *) 0 ;
20797 wxSize *arg2 = 0 ;
20798 void *argp1 = 0 ;
20799 int res1 = 0 ;
20800 wxSize temp2 ;
20801 PyObject * obj0 = 0 ;
20802 PyObject * obj1 = 0 ;
20803 char * kwnames[] = {
20804 (char *) "self",(char *) "padding", NULL
20805 };
20806
20807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20809 if (!SWIG_IsOK(res1)) {
20810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20811 }
20812 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20813 {
20814 arg2 = &temp2;
20815 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20816 }
20817 {
20818 PyThreadState* __tstate = wxPyBeginAllowThreads();
20819 (arg1)->SetPadding((wxSize const &)*arg2);
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_Py_Void();
20824 return resultobj;
20825fail:
20826 return NULL;
20827}
20828
20829
20830SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20831 PyObject *resultobj = 0;
20832 wxNotebook *arg1 = (wxNotebook *) 0 ;
20833 wxSize *arg2 = 0 ;
20834 void *argp1 = 0 ;
20835 int res1 = 0 ;
20836 wxSize temp2 ;
20837 PyObject * obj0 = 0 ;
20838 PyObject * obj1 = 0 ;
20839 char * kwnames[] = {
20840 (char *) "self",(char *) "sz", NULL
20841 };
20842
20843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20845 if (!SWIG_IsOK(res1)) {
20846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20847 }
20848 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20849 {
20850 arg2 = &temp2;
20851 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20852 }
20853 {
20854 PyThreadState* __tstate = wxPyBeginAllowThreads();
20855 (arg1)->SetTabSize((wxSize const &)*arg2);
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 resultobj = SWIG_Py_Void();
20860 return resultobj;
20861fail:
20862 return NULL;
20863}
20864
20865
1bd55598
RD
20866SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20867 PyObject *resultobj = 0;
20868 wxNotebook *arg1 = (wxNotebook *) 0 ;
20869 wxColour result;
20870 void *argp1 = 0 ;
20871 int res1 = 0 ;
20872 PyObject *swig_obj[1] ;
20873
20874 if (!args) SWIG_fail;
20875 swig_obj[0] = args;
20876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20877 if (!SWIG_IsOK(res1)) {
20878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20879 }
20880 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20881 {
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20884 wxPyEndAllowThreads(__tstate);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 }
20887 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20888 return resultobj;
20889fail:
20890 return NULL;
20891}
20892
20893
20894SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20897 SwigValueWrapper<wxVisualAttributes > result;
20898 int val1 ;
20899 int ecode1 = 0 ;
20900 PyObject * obj0 = 0 ;
20901 char * kwnames[] = {
20902 (char *) "variant", NULL
20903 };
20904
20905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20906 if (obj0) {
20907 ecode1 = SWIG_AsVal_int(obj0, &val1);
20908 if (!SWIG_IsOK(ecode1)) {
20909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20910 }
20911 arg1 = static_cast< wxWindowVariant >(val1);
20912 }
20913 {
20914 if (!wxPyCheckForApp()) SWIG_fail;
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = wxNotebook::GetClassDefaultAttributes(arg1);
20917 wxPyEndAllowThreads(__tstate);
20918 if (PyErr_Occurred()) SWIG_fail;
20919 }
20920 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20921 return resultobj;
20922fail:
20923 return NULL;
20924}
20925
20926
b39fe951
RD
20927SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20928 PyObject *resultobj = 0;
20929 wxNotebook *arg1 = (wxNotebook *) 0 ;
20930 int arg2 ;
20931 bool result;
20932 void *argp1 = 0 ;
20933 int res1 = 0 ;
20934 int val2 ;
20935 int ecode2 = 0 ;
20936 PyObject * obj0 = 0 ;
20937 PyObject * obj1 = 0 ;
20938 char * kwnames[] = {
20939 (char *) "self",(char *) "nPage", NULL
20940 };
20941
20942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20944 if (!SWIG_IsOK(res1)) {
20945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20946 }
20947 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20948 ecode2 = SWIG_AsVal_int(obj1, &val2);
20949 if (!SWIG_IsOK(ecode2)) {
20950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20951 }
20952 arg2 = static_cast< int >(val2);
20953 {
20954 PyThreadState* __tstate = wxPyBeginAllowThreads();
20955 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20956 wxPyEndAllowThreads(__tstate);
20957 if (PyErr_Occurred()) SWIG_fail;
20958 }
20959 {
20960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20961 }
20962 return resultobj;
20963fail:
20964 return NULL;
20965}
20966
20967
20968SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20969 PyObject *resultobj = 0;
20970 wxNotebook *arg1 = (wxNotebook *) 0 ;
20971 int arg2 ;
20972 int arg3 = (int) -1 ;
20973 void *argp1 = 0 ;
20974 int res1 = 0 ;
20975 int val2 ;
20976 int ecode2 = 0 ;
20977 int val3 ;
20978 int ecode3 = 0 ;
20979 PyObject * obj0 = 0 ;
20980 PyObject * obj1 = 0 ;
20981 PyObject * obj2 = 0 ;
20982 char * kwnames[] = {
20983 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
20984 };
20985
20986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20988 if (!SWIG_IsOK(res1)) {
20989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20990 }
20991 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20992 ecode2 = SWIG_AsVal_int(obj1, &val2);
20993 if (!SWIG_IsOK(ecode2)) {
20994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
20995 }
20996 arg2 = static_cast< int >(val2);
20997 if (obj2) {
20998 ecode3 = SWIG_AsVal_int(obj2, &val3);
20999 if (!SWIG_IsOK(ecode3)) {
21000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21001 }
21002 arg3 = static_cast< int >(val3);
21003 }
21004 {
21005 PyThreadState* __tstate = wxPyBeginAllowThreads();
21006 (arg1)->SendPageChangedEvent(arg2,arg3);
21007 wxPyEndAllowThreads(__tstate);
21008 if (PyErr_Occurred()) SWIG_fail;
21009 }
21010 resultobj = SWIG_Py_Void();
21011 return resultobj;
21012fail:
21013 return NULL;
21014}
21015
21016
1bd55598
RD
21017SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21018 PyObject *obj;
21019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21020 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21021 return SWIG_Py_Void();
21022}
21023
21024SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21025 return SWIG_Python_InitShadowInstance(args);
21026}
21027
21028SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj = 0;
21030 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21031 int arg2 = (int) 0 ;
21032 int arg3 = (int) -1 ;
21033 int arg4 = (int) -1 ;
21034 wxNotebookEvent *result = 0 ;
21035 int val1 ;
21036 int ecode1 = 0 ;
21037 int val2 ;
21038 int ecode2 = 0 ;
21039 int val3 ;
21040 int ecode3 = 0 ;
21041 int val4 ;
21042 int ecode4 = 0 ;
21043 PyObject * obj0 = 0 ;
21044 PyObject * obj1 = 0 ;
21045 PyObject * obj2 = 0 ;
21046 PyObject * obj3 = 0 ;
21047 char * kwnames[] = {
21048 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21049 };
21050
21051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21052 if (obj0) {
21053 ecode1 = SWIG_AsVal_int(obj0, &val1);
21054 if (!SWIG_IsOK(ecode1)) {
21055 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21056 }
21057 arg1 = static_cast< wxEventType >(val1);
21058 }
21059 if (obj1) {
21060 ecode2 = SWIG_AsVal_int(obj1, &val2);
21061 if (!SWIG_IsOK(ecode2)) {
21062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21063 }
21064 arg2 = static_cast< int >(val2);
21065 }
21066 if (obj2) {
21067 ecode3 = SWIG_AsVal_int(obj2, &val3);
21068 if (!SWIG_IsOK(ecode3)) {
21069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21070 }
21071 arg3 = static_cast< int >(val3);
21072 }
21073 if (obj3) {
21074 ecode4 = SWIG_AsVal_int(obj3, &val4);
21075 if (!SWIG_IsOK(ecode4)) {
21076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21077 }
21078 arg4 = static_cast< int >(val4);
21079 }
21080 {
21081 PyThreadState* __tstate = wxPyBeginAllowThreads();
21082 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21083 wxPyEndAllowThreads(__tstate);
21084 if (PyErr_Occurred()) SWIG_fail;
21085 }
21086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21087 return resultobj;
21088fail:
21089 return NULL;
21090}
21091
21092
21093SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21094 PyObject *obj;
21095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21096 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21097 return SWIG_Py_Void();
21098}
21099
21100SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21101 return SWIG_Python_InitShadowInstance(args);
21102}
21103
21104SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21105 PyObject *resultobj = 0;
21106 wxWindow *arg1 = (wxWindow *) 0 ;
21107 int arg2 = (int) -1 ;
21108 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21109 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21110 wxSize const &arg4_defvalue = wxDefaultSize ;
21111 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21112 long arg5 = (long) 0 ;
21113 wxString const &arg6_defvalue = wxPyEmptyString ;
21114 wxString *arg6 = (wxString *) &arg6_defvalue ;
21115 wxListbook *result = 0 ;
21116 void *argp1 = 0 ;
21117 int res1 = 0 ;
21118 int val2 ;
21119 int ecode2 = 0 ;
21120 wxPoint temp3 ;
21121 wxSize temp4 ;
21122 long val5 ;
21123 int ecode5 = 0 ;
21124 bool temp6 = false ;
21125 PyObject * obj0 = 0 ;
21126 PyObject * obj1 = 0 ;
21127 PyObject * obj2 = 0 ;
21128 PyObject * obj3 = 0 ;
21129 PyObject * obj4 = 0 ;
21130 PyObject * obj5 = 0 ;
21131 char * kwnames[] = {
21132 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21133 };
21134
21135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21137 if (!SWIG_IsOK(res1)) {
21138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21139 }
21140 arg1 = reinterpret_cast< wxWindow * >(argp1);
21141 if (obj1) {
21142 ecode2 = SWIG_AsVal_int(obj1, &val2);
21143 if (!SWIG_IsOK(ecode2)) {
21144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21145 }
21146 arg2 = static_cast< int >(val2);
21147 }
21148 if (obj2) {
d55e5bfc 21149 {
1bd55598
RD
21150 arg3 = &temp3;
21151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21152 }
1bd55598
RD
21153 }
21154 if (obj3) {
d55e5bfc 21155 {
1bd55598
RD
21156 arg4 = &temp4;
21157 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21158 }
1bd55598
RD
21159 }
21160 if (obj4) {
21161 ecode5 = SWIG_AsVal_long(obj4, &val5);
21162 if (!SWIG_IsOK(ecode5)) {
21163 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21164 }
21165 arg5 = static_cast< long >(val5);
21166 }
21167 if (obj5) {
d55e5bfc 21168 {
1bd55598
RD
21169 arg6 = wxString_in_helper(obj5);
21170 if (arg6 == NULL) SWIG_fail;
21171 temp6 = true;
d55e5bfc 21172 }
1bd55598
RD
21173 }
21174 {
21175 if (!wxPyCheckForApp()) SWIG_fail;
21176 PyThreadState* __tstate = wxPyBeginAllowThreads();
21177 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21178 wxPyEndAllowThreads(__tstate);
21179 if (PyErr_Occurred()) SWIG_fail;
21180 }
21181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21182 {
21183 if (temp6)
21184 delete arg6;
21185 }
21186 return resultobj;
21187fail:
21188 {
21189 if (temp6)
21190 delete arg6;
21191 }
21192 return NULL;
21193}
21194
21195
21196SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21197 PyObject *resultobj = 0;
21198 wxListbook *result = 0 ;
21199
21200 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21201 {
21202 if (!wxPyCheckForApp()) SWIG_fail;
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (wxListbook *)new wxListbook();
21205 wxPyEndAllowThreads(__tstate);
21206 if (PyErr_Occurred()) SWIG_fail;
21207 }
21208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21209 return resultobj;
21210fail:
21211 return NULL;
21212}
21213
21214
21215SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21216 PyObject *resultobj = 0;
21217 wxListbook *arg1 = (wxListbook *) 0 ;
21218 wxWindow *arg2 = (wxWindow *) 0 ;
21219 int arg3 = (int) -1 ;
21220 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21221 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21222 wxSize const &arg5_defvalue = wxDefaultSize ;
21223 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21224 long arg6 = (long) 0 ;
21225 wxString const &arg7_defvalue = wxPyEmptyString ;
21226 wxString *arg7 = (wxString *) &arg7_defvalue ;
21227 bool result;
21228 void *argp1 = 0 ;
21229 int res1 = 0 ;
21230 void *argp2 = 0 ;
21231 int res2 = 0 ;
21232 int val3 ;
21233 int ecode3 = 0 ;
21234 wxPoint temp4 ;
21235 wxSize temp5 ;
21236 long val6 ;
21237 int ecode6 = 0 ;
21238 bool temp7 = false ;
21239 PyObject * obj0 = 0 ;
21240 PyObject * obj1 = 0 ;
21241 PyObject * obj2 = 0 ;
21242 PyObject * obj3 = 0 ;
21243 PyObject * obj4 = 0 ;
21244 PyObject * obj5 = 0 ;
21245 PyObject * obj6 = 0 ;
21246 char * kwnames[] = {
21247 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21248 };
21249
21250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21252 if (!SWIG_IsOK(res1)) {
21253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21254 }
21255 arg1 = reinterpret_cast< wxListbook * >(argp1);
21256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21257 if (!SWIG_IsOK(res2)) {
21258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21259 }
21260 arg2 = reinterpret_cast< wxWindow * >(argp2);
21261 if (obj2) {
21262 ecode3 = SWIG_AsVal_int(obj2, &val3);
21263 if (!SWIG_IsOK(ecode3)) {
21264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21265 }
21266 arg3 = static_cast< int >(val3);
21267 }
21268 if (obj3) {
d55e5bfc 21269 {
1bd55598
RD
21270 arg4 = &temp4;
21271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21272 }
1bd55598
RD
21273 }
21274 if (obj4) {
d55e5bfc 21275 {
1bd55598
RD
21276 arg5 = &temp5;
21277 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21278 }
1bd55598
RD
21279 }
21280 if (obj5) {
21281 ecode6 = SWIG_AsVal_long(obj5, &val6);
21282 if (!SWIG_IsOK(ecode6)) {
21283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21284 }
21285 arg6 = static_cast< long >(val6);
21286 }
21287 if (obj6) {
d55e5bfc 21288 {
1bd55598
RD
21289 arg7 = wxString_in_helper(obj6);
21290 if (arg7 == NULL) SWIG_fail;
21291 temp7 = true;
d55e5bfc 21292 }
1bd55598
RD
21293 }
21294 {
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 {
21301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21302 }
21303 {
21304 if (temp7)
21305 delete arg7;
21306 }
21307 return resultobj;
21308fail:
21309 {
21310 if (temp7)
21311 delete arg7;
21312 }
21313 return NULL;
d55e5bfc
RD
21314}
21315
21316
1bd55598
RD
21317SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21318 PyObject *resultobj = 0;
21319 wxListbook *arg1 = (wxListbook *) 0 ;
21320 wxListView *result = 0 ;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 PyObject *swig_obj[1] ;
21324
21325 if (!args) SWIG_fail;
21326 swig_obj[0] = args;
21327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21328 if (!SWIG_IsOK(res1)) {
21329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21330 }
21331 arg1 = reinterpret_cast< wxListbook * >(argp1);
21332 {
21333 PyThreadState* __tstate = wxPyBeginAllowThreads();
21334 result = (wxListView *)(arg1)->GetListView();
21335 wxPyEndAllowThreads(__tstate);
21336 if (PyErr_Occurred()) SWIG_fail;
21337 }
21338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21339 return resultobj;
21340fail:
21341 return NULL;
21342}
21343
21344
21345SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21346 PyObject *obj;
21347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21348 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21349 return SWIG_Py_Void();
21350}
21351
21352SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21353 return SWIG_Python_InitShadowInstance(args);
21354}
21355
21356SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21357 PyObject *resultobj = 0;
21358 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21359 int arg2 = (int) 0 ;
21360 int arg3 = (int) -1 ;
21361 int arg4 = (int) -1 ;
21362 wxListbookEvent *result = 0 ;
21363 int val1 ;
21364 int ecode1 = 0 ;
21365 int val2 ;
21366 int ecode2 = 0 ;
21367 int val3 ;
21368 int ecode3 = 0 ;
21369 int val4 ;
21370 int ecode4 = 0 ;
21371 PyObject * obj0 = 0 ;
21372 PyObject * obj1 = 0 ;
21373 PyObject * obj2 = 0 ;
21374 PyObject * obj3 = 0 ;
21375 char * kwnames[] = {
21376 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21377 };
21378
21379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21380 if (obj0) {
21381 ecode1 = SWIG_AsVal_int(obj0, &val1);
21382 if (!SWIG_IsOK(ecode1)) {
21383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21384 }
21385 arg1 = static_cast< wxEventType >(val1);
21386 }
21387 if (obj1) {
21388 ecode2 = SWIG_AsVal_int(obj1, &val2);
21389 if (!SWIG_IsOK(ecode2)) {
21390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21391 }
21392 arg2 = static_cast< int >(val2);
21393 }
21394 if (obj2) {
21395 ecode3 = SWIG_AsVal_int(obj2, &val3);
21396 if (!SWIG_IsOK(ecode3)) {
21397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21398 }
21399 arg3 = static_cast< int >(val3);
21400 }
21401 if (obj3) {
21402 ecode4 = SWIG_AsVal_int(obj3, &val4);
21403 if (!SWIG_IsOK(ecode4)) {
21404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21405 }
21406 arg4 = static_cast< int >(val4);
21407 }
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21415 return resultobj;
21416fail:
21417 return NULL;
21418}
21419
21420
21421SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21422 PyObject *obj;
21423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21424 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21425 return SWIG_Py_Void();
21426}
21427
21428SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21429 return SWIG_Python_InitShadowInstance(args);
21430}
21431
21432SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21433 PyObject *resultobj = 0;
21434 wxWindow *arg1 = (wxWindow *) 0 ;
21435 int arg2 ;
21436 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21437 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21438 wxSize const &arg4_defvalue = wxDefaultSize ;
21439 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21440 long arg5 = (long) 0 ;
21441 wxString const &arg6_defvalue = wxPyEmptyString ;
21442 wxString *arg6 = (wxString *) &arg6_defvalue ;
21443 wxChoicebook *result = 0 ;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 int val2 ;
21447 int ecode2 = 0 ;
21448 wxPoint temp3 ;
21449 wxSize temp4 ;
21450 long val5 ;
21451 int ecode5 = 0 ;
21452 bool temp6 = false ;
21453 PyObject * obj0 = 0 ;
21454 PyObject * obj1 = 0 ;
21455 PyObject * obj2 = 0 ;
21456 PyObject * obj3 = 0 ;
21457 PyObject * obj4 = 0 ;
21458 PyObject * obj5 = 0 ;
21459 char * kwnames[] = {
21460 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21461 };
21462
21463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21465 if (!SWIG_IsOK(res1)) {
21466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21467 }
21468 arg1 = reinterpret_cast< wxWindow * >(argp1);
21469 ecode2 = SWIG_AsVal_int(obj1, &val2);
21470 if (!SWIG_IsOK(ecode2)) {
21471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21472 }
21473 arg2 = static_cast< int >(val2);
21474 if (obj2) {
36ed4f51 21475 {
1bd55598
RD
21476 arg3 = &temp3;
21477 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21478 }
1bd55598
RD
21479 }
21480 if (obj3) {
36ed4f51 21481 {
1bd55598
RD
21482 arg4 = &temp4;
21483 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21484 }
1bd55598
RD
21485 }
21486 if (obj4) {
21487 ecode5 = SWIG_AsVal_long(obj4, &val5);
21488 if (!SWIG_IsOK(ecode5)) {
21489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21490 }
21491 arg5 = static_cast< long >(val5);
21492 }
21493 if (obj5) {
d55e5bfc 21494 {
1bd55598
RD
21495 arg6 = wxString_in_helper(obj5);
21496 if (arg6 == NULL) SWIG_fail;
21497 temp6 = true;
d55e5bfc 21498 }
1bd55598
RD
21499 }
21500 {
21501 if (!wxPyCheckForApp()) SWIG_fail;
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21504 wxPyEndAllowThreads(__tstate);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
21507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21508 {
21509 if (temp6)
21510 delete arg6;
21511 }
21512 return resultobj;
21513fail:
21514 {
21515 if (temp6)
21516 delete arg6;
21517 }
21518 return NULL;
d55e5bfc
RD
21519}
21520
21521
1bd55598
RD
21522SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523 PyObject *resultobj = 0;
21524 wxChoicebook *result = 0 ;
21525
21526 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21527 {
21528 if (!wxPyCheckForApp()) SWIG_fail;
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 result = (wxChoicebook *)new wxChoicebook();
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21535 return resultobj;
21536fail:
21537 return NULL;
21538}
21539
21540
21541SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21542 PyObject *resultobj = 0;
21543 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21544 wxWindow *arg2 = (wxWindow *) 0 ;
21545 int arg3 ;
21546 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21547 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21548 wxSize const &arg5_defvalue = wxDefaultSize ;
21549 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21550 long arg6 = (long) 0 ;
21551 wxString const &arg7_defvalue = wxPyEmptyString ;
21552 wxString *arg7 = (wxString *) &arg7_defvalue ;
21553 bool result;
21554 void *argp1 = 0 ;
21555 int res1 = 0 ;
21556 void *argp2 = 0 ;
21557 int res2 = 0 ;
21558 int val3 ;
21559 int ecode3 = 0 ;
21560 wxPoint temp4 ;
21561 wxSize temp5 ;
21562 long val6 ;
21563 int ecode6 = 0 ;
21564 bool temp7 = false ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 PyObject * obj2 = 0 ;
21568 PyObject * obj3 = 0 ;
21569 PyObject * obj4 = 0 ;
21570 PyObject * obj5 = 0 ;
21571 PyObject * obj6 = 0 ;
21572 char * kwnames[] = {
21573 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21574 };
21575
21576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21578 if (!SWIG_IsOK(res1)) {
21579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21580 }
21581 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21583 if (!SWIG_IsOK(res2)) {
21584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21585 }
21586 arg2 = reinterpret_cast< wxWindow * >(argp2);
21587 ecode3 = SWIG_AsVal_int(obj2, &val3);
21588 if (!SWIG_IsOK(ecode3)) {
21589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21590 }
21591 arg3 = static_cast< int >(val3);
21592 if (obj3) {
d55e5bfc 21593 {
1bd55598
RD
21594 arg4 = &temp4;
21595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21596 }
1bd55598
RD
21597 }
21598 if (obj4) {
d55e5bfc 21599 {
1bd55598
RD
21600 arg5 = &temp5;
21601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21602 }
1bd55598
RD
21603 }
21604 if (obj5) {
21605 ecode6 = SWIG_AsVal_long(obj5, &val6);
21606 if (!SWIG_IsOK(ecode6)) {
21607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21608 }
21609 arg6 = static_cast< long >(val6);
21610 }
21611 if (obj6) {
d55e5bfc 21612 {
1bd55598
RD
21613 arg7 = wxString_in_helper(obj6);
21614 if (arg7 == NULL) SWIG_fail;
21615 temp7 = true;
d55e5bfc 21616 }
1bd55598
RD
21617 }
21618 {
21619 PyThreadState* __tstate = wxPyBeginAllowThreads();
21620 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21621 wxPyEndAllowThreads(__tstate);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 {
21625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21626 }
21627 {
21628 if (temp7)
21629 delete arg7;
21630 }
21631 return resultobj;
21632fail:
21633 {
21634 if (temp7)
21635 delete arg7;
21636 }
21637 return NULL;
d55e5bfc
RD
21638}
21639
21640
1bd55598
RD
21641SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21642 PyObject *resultobj = 0;
21643 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21644 wxChoice *result = 0 ;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 PyObject *swig_obj[1] ;
21648
21649 if (!args) SWIG_fail;
21650 swig_obj[0] = args;
21651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21654 }
21655 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21656 {
21657 PyThreadState* __tstate = wxPyBeginAllowThreads();
21658 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21659 wxPyEndAllowThreads(__tstate);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21663 return resultobj;
21664fail:
21665 return NULL;
21666}
21667
21668
21669SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21670 PyObject *obj;
21671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21672 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21673 return SWIG_Py_Void();
21674}
21675
21676SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21677 return SWIG_Python_InitShadowInstance(args);
21678}
21679
21680SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj = 0;
21682 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21683 int arg2 = (int) 0 ;
21684 int arg3 = (int) -1 ;
21685 int arg4 = (int) -1 ;
21686 wxChoicebookEvent *result = 0 ;
21687 int val1 ;
21688 int ecode1 = 0 ;
21689 int val2 ;
21690 int ecode2 = 0 ;
21691 int val3 ;
21692 int ecode3 = 0 ;
21693 int val4 ;
21694 int ecode4 = 0 ;
21695 PyObject * obj0 = 0 ;
21696 PyObject * obj1 = 0 ;
21697 PyObject * obj2 = 0 ;
21698 PyObject * obj3 = 0 ;
21699 char * kwnames[] = {
21700 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21701 };
21702
21703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21704 if (obj0) {
21705 ecode1 = SWIG_AsVal_int(obj0, &val1);
21706 if (!SWIG_IsOK(ecode1)) {
21707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21708 }
21709 arg1 = static_cast< wxEventType >(val1);
21710 }
21711 if (obj1) {
21712 ecode2 = SWIG_AsVal_int(obj1, &val2);
21713 if (!SWIG_IsOK(ecode2)) {
21714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21715 }
21716 arg2 = static_cast< int >(val2);
21717 }
21718 if (obj2) {
21719 ecode3 = SWIG_AsVal_int(obj2, &val3);
21720 if (!SWIG_IsOK(ecode3)) {
21721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21722 }
21723 arg3 = static_cast< int >(val3);
21724 }
21725 if (obj3) {
21726 ecode4 = SWIG_AsVal_int(obj3, &val4);
21727 if (!SWIG_IsOK(ecode4)) {
21728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21729 }
21730 arg4 = static_cast< int >(val4);
21731 }
21732 {
21733 PyThreadState* __tstate = wxPyBeginAllowThreads();
21734 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21739 return resultobj;
21740fail:
21741 return NULL;
21742}
21743
21744
21745SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21746 PyObject *obj;
21747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21748 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21749 return SWIG_Py_Void();
21750}
21751
21752SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21753 return SWIG_Python_InitShadowInstance(args);
21754}
21755
21756SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21757 PyObject *resultobj = 0;
21758 wxWindow *arg1 = (wxWindow *) 0 ;
21759 int arg2 ;
21760 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21761 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21762 wxSize const &arg4_defvalue = wxDefaultSize ;
21763 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21764 long arg5 = (long) wxBK_DEFAULT ;
21765 wxString const &arg6_defvalue = wxPyEmptyString ;
21766 wxString *arg6 = (wxString *) &arg6_defvalue ;
21767 wxTreebook *result = 0 ;
21768 void *argp1 = 0 ;
21769 int res1 = 0 ;
21770 int val2 ;
21771 int ecode2 = 0 ;
21772 wxPoint temp3 ;
21773 wxSize temp4 ;
21774 long val5 ;
21775 int ecode5 = 0 ;
21776 bool temp6 = false ;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 PyObject * obj2 = 0 ;
21780 PyObject * obj3 = 0 ;
21781 PyObject * obj4 = 0 ;
21782 PyObject * obj5 = 0 ;
21783 char * kwnames[] = {
21784 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21785 };
21786
21787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21789 if (!SWIG_IsOK(res1)) {
21790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21791 }
21792 arg1 = reinterpret_cast< wxWindow * >(argp1);
21793 ecode2 = SWIG_AsVal_int(obj1, &val2);
21794 if (!SWIG_IsOK(ecode2)) {
21795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21796 }
21797 arg2 = static_cast< int >(val2);
21798 if (obj2) {
36ed4f51 21799 {
1bd55598
RD
21800 arg3 = &temp3;
21801 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21802 }
1bd55598
RD
21803 }
21804 if (obj3) {
36ed4f51 21805 {
1bd55598
RD
21806 arg4 = &temp4;
21807 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21808 }
1bd55598
RD
21809 }
21810 if (obj4) {
21811 ecode5 = SWIG_AsVal_long(obj4, &val5);
21812 if (!SWIG_IsOK(ecode5)) {
21813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21814 }
21815 arg5 = static_cast< long >(val5);
21816 }
21817 if (obj5) {
d55e5bfc 21818 {
1bd55598
RD
21819 arg6 = wxString_in_helper(obj5);
21820 if (arg6 == NULL) SWIG_fail;
21821 temp6 = true;
d55e5bfc 21822 }
1bd55598
RD
21823 }
21824 {
21825 if (!wxPyCheckForApp()) SWIG_fail;
21826 PyThreadState* __tstate = wxPyBeginAllowThreads();
21827 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21832 {
21833 if (temp6)
21834 delete arg6;
21835 }
21836 return resultobj;
21837fail:
21838 {
21839 if (temp6)
21840 delete arg6;
21841 }
21842 return NULL;
d55e5bfc
RD
21843}
21844
21845
1bd55598
RD
21846SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 PyObject *resultobj = 0;
21848 wxTreebook *result = 0 ;
21849
21850 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21851 {
21852 if (!wxPyCheckForApp()) SWIG_fail;
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = (wxTreebook *)new wxTreebook();
21855 wxPyEndAllowThreads(__tstate);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21859 return resultobj;
21860fail:
21861 return NULL;
21862}
21863
21864
21865SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21866 PyObject *resultobj = 0;
21867 wxTreebook *arg1 = (wxTreebook *) 0 ;
21868 wxWindow *arg2 = (wxWindow *) 0 ;
21869 int arg3 ;
21870 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21871 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21872 wxSize const &arg5_defvalue = wxDefaultSize ;
21873 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21874 long arg6 = (long) wxBK_DEFAULT ;
21875 wxString const &arg7_defvalue = wxPyEmptyString ;
21876 wxString *arg7 = (wxString *) &arg7_defvalue ;
21877 bool result;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 void *argp2 = 0 ;
21881 int res2 = 0 ;
21882 int val3 ;
21883 int ecode3 = 0 ;
21884 wxPoint temp4 ;
21885 wxSize temp5 ;
21886 long val6 ;
21887 int ecode6 = 0 ;
21888 bool temp7 = false ;
21889 PyObject * obj0 = 0 ;
21890 PyObject * obj1 = 0 ;
21891 PyObject * obj2 = 0 ;
21892 PyObject * obj3 = 0 ;
21893 PyObject * obj4 = 0 ;
21894 PyObject * obj5 = 0 ;
21895 PyObject * obj6 = 0 ;
21896 char * kwnames[] = {
21897 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21898 };
21899
21900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21902 if (!SWIG_IsOK(res1)) {
21903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21904 }
21905 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21906 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21907 if (!SWIG_IsOK(res2)) {
21908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21909 }
21910 arg2 = reinterpret_cast< wxWindow * >(argp2);
21911 ecode3 = SWIG_AsVal_int(obj2, &val3);
21912 if (!SWIG_IsOK(ecode3)) {
21913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21914 }
21915 arg3 = static_cast< int >(val3);
21916 if (obj3) {
36ed4f51 21917 {
1bd55598
RD
21918 arg4 = &temp4;
21919 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21920 }
1bd55598
RD
21921 }
21922 if (obj4) {
d55e5bfc 21923 {
1bd55598
RD
21924 arg5 = &temp5;
21925 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21926 }
1bd55598
RD
21927 }
21928 if (obj5) {
21929 ecode6 = SWIG_AsVal_long(obj5, &val6);
21930 if (!SWIG_IsOK(ecode6)) {
21931 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21932 }
21933 arg6 = static_cast< long >(val6);
21934 }
21935 if (obj6) {
36ed4f51 21936 {
1bd55598
RD
21937 arg7 = wxString_in_helper(obj6);
21938 if (arg7 == NULL) SWIG_fail;
21939 temp7 = true;
36ed4f51 21940 }
1bd55598
RD
21941 }
21942 {
21943 PyThreadState* __tstate = wxPyBeginAllowThreads();
21944 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21945 wxPyEndAllowThreads(__tstate);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 }
21948 {
21949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21950 }
21951 {
21952 if (temp7)
21953 delete arg7;
21954 }
21955 return resultobj;
21956fail:
21957 {
21958 if (temp7)
21959 delete arg7;
21960 }
21961 return NULL;
21962}
21963
21964
21965SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21966 PyObject *resultobj = 0;
21967 wxTreebook *arg1 = (wxTreebook *) 0 ;
21968 size_t arg2 ;
21969 wxWindow *arg3 = (wxWindow *) 0 ;
21970 wxString *arg4 = 0 ;
21971 bool arg5 = (bool) false ;
21972 int arg6 = (int) wxNOT_FOUND ;
21973 bool result;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 size_t val2 ;
21977 int ecode2 = 0 ;
21978 void *argp3 = 0 ;
21979 int res3 = 0 ;
21980 bool temp4 = false ;
21981 bool val5 ;
21982 int ecode5 = 0 ;
21983 int val6 ;
21984 int ecode6 = 0 ;
21985 PyObject * obj0 = 0 ;
21986 PyObject * obj1 = 0 ;
21987 PyObject * obj2 = 0 ;
21988 PyObject * obj3 = 0 ;
21989 PyObject * obj4 = 0 ;
21990 PyObject * obj5 = 0 ;
21991 char * kwnames[] = {
21992 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21993 };
21994
21995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21997 if (!SWIG_IsOK(res1)) {
21998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21999 }
22000 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22001 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22002 if (!SWIG_IsOK(ecode2)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22004 }
22005 arg2 = static_cast< size_t >(val2);
22006 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22007 if (!SWIG_IsOK(res3)) {
22008 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22009 }
22010 arg3 = reinterpret_cast< wxWindow * >(argp3);
22011 {
22012 arg4 = wxString_in_helper(obj3);
22013 if (arg4 == NULL) SWIG_fail;
22014 temp4 = true;
22015 }
22016 if (obj4) {
22017 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22018 if (!SWIG_IsOK(ecode5)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22020 }
22021 arg5 = static_cast< bool >(val5);
22022 }
22023 if (obj5) {
22024 ecode6 = SWIG_AsVal_int(obj5, &val6);
22025 if (!SWIG_IsOK(ecode6)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22027 }
22028 arg6 = static_cast< int >(val6);
22029 }
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 {
22037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22038 }
22039 {
22040 if (temp4)
22041 delete arg4;
22042 }
22043 return resultobj;
22044fail:
22045 {
22046 if (temp4)
22047 delete arg4;
22048 }
22049 return NULL;
22050}
22051
22052
22053SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22054 PyObject *resultobj = 0;
22055 wxTreebook *arg1 = (wxTreebook *) 0 ;
22056 wxWindow *arg2 = (wxWindow *) 0 ;
22057 wxString *arg3 = 0 ;
22058 bool arg4 = (bool) false ;
22059 int arg5 = (int) wxNOT_FOUND ;
22060 bool result;
22061 void *argp1 = 0 ;
22062 int res1 = 0 ;
22063 void *argp2 = 0 ;
22064 int res2 = 0 ;
22065 bool temp3 = false ;
22066 bool val4 ;
22067 int ecode4 = 0 ;
22068 int val5 ;
22069 int ecode5 = 0 ;
22070 PyObject * obj0 = 0 ;
22071 PyObject * obj1 = 0 ;
22072 PyObject * obj2 = 0 ;
22073 PyObject * obj3 = 0 ;
22074 PyObject * obj4 = 0 ;
22075 char * kwnames[] = {
22076 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22077 };
22078
22079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22081 if (!SWIG_IsOK(res1)) {
22082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22083 }
22084 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22086 if (!SWIG_IsOK(res2)) {
22087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22088 }
22089 arg2 = reinterpret_cast< wxWindow * >(argp2);
22090 {
22091 arg3 = wxString_in_helper(obj2);
22092 if (arg3 == NULL) SWIG_fail;
22093 temp3 = true;
22094 }
22095 if (obj3) {
22096 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22097 if (!SWIG_IsOK(ecode4)) {
22098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22099 }
22100 arg4 = static_cast< bool >(val4);
22101 }
22102 if (obj4) {
22103 ecode5 = SWIG_AsVal_int(obj4, &val5);
22104 if (!SWIG_IsOK(ecode5)) {
22105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22106 }
22107 arg5 = static_cast< int >(val5);
22108 }
22109 {
22110 PyThreadState* __tstate = wxPyBeginAllowThreads();
22111 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22112 wxPyEndAllowThreads(__tstate);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 }
22115 {
22116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22117 }
22118 {
22119 if (temp3)
22120 delete arg3;
22121 }
22122 return resultobj;
22123fail:
22124 {
22125 if (temp3)
22126 delete arg3;
22127 }
22128 return NULL;
22129}
22130
22131
22132SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj = 0;
22134 wxTreebook *arg1 = (wxTreebook *) 0 ;
22135 size_t arg2 ;
22136 bool result;
22137 void *argp1 = 0 ;
22138 int res1 = 0 ;
22139 size_t val2 ;
22140 int ecode2 = 0 ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 char * kwnames[] = {
22144 (char *) "self",(char *) "pos", NULL
22145 };
22146
22147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22149 if (!SWIG_IsOK(res1)) {
22150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22151 }
22152 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22153 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22154 if (!SWIG_IsOK(ecode2)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22156 }
22157 arg2 = static_cast< size_t >(val2);
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 {
22165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22166 }
22167 return resultobj;
22168fail:
22169 return NULL;
22170}
22171
22172
22173SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22174 PyObject *resultobj = 0;
22175 wxTreebook *arg1 = (wxTreebook *) 0 ;
22176 size_t arg2 ;
22177 bool arg3 = (bool) true ;
22178 bool result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 size_t val2 ;
22182 int ecode2 = 0 ;
22183 bool val3 ;
22184 int ecode3 = 0 ;
22185 PyObject * obj0 = 0 ;
22186 PyObject * obj1 = 0 ;
22187 PyObject * obj2 = 0 ;
22188 char * kwnames[] = {
22189 (char *) "self",(char *) "pos",(char *) "expand", NULL
22190 };
22191
22192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22196 }
22197 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22198 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22199 if (!SWIG_IsOK(ecode2)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22201 }
22202 arg2 = static_cast< size_t >(val2);
22203 if (obj2) {
22204 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22205 if (!SWIG_IsOK(ecode3)) {
22206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22207 }
22208 arg3 = static_cast< bool >(val3);
22209 }
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 {
22217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22218 }
22219 return resultobj;
22220fail:
22221 return NULL;
22222}
22223
22224
22225SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22226 PyObject *resultobj = 0;
22227 wxTreebook *arg1 = (wxTreebook *) 0 ;
22228 size_t arg2 ;
22229 bool result;
22230 void *argp1 = 0 ;
22231 int res1 = 0 ;
22232 size_t val2 ;
22233 int ecode2 = 0 ;
22234 PyObject * obj0 = 0 ;
22235 PyObject * obj1 = 0 ;
22236 char * kwnames[] = {
22237 (char *) "self",(char *) "pos", NULL
22238 };
22239
22240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22244 }
22245 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22246 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22247 if (!SWIG_IsOK(ecode2)) {
22248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22249 }
22250 arg2 = static_cast< size_t >(val2);
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = (bool)(arg1)->CollapseNode(arg2);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 {
22258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22259 }
22260 return resultobj;
22261fail:
22262 return NULL;
22263}
22264
22265
22266SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj = 0;
22268 wxTreebook *arg1 = (wxTreebook *) 0 ;
22269 size_t arg2 ;
22270 int result;
22271 void *argp1 = 0 ;
22272 int res1 = 0 ;
22273 size_t val2 ;
22274 int ecode2 = 0 ;
22275 PyObject * obj0 = 0 ;
22276 PyObject * obj1 = 0 ;
22277 char * kwnames[] = {
22278 (char *) "self",(char *) "pos", NULL
22279 };
22280
22281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22285 }
22286 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22287 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22288 if (!SWIG_IsOK(ecode2)) {
22289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22290 }
22291 arg2 = static_cast< size_t >(val2);
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 resultobj = SWIG_From_int(static_cast< int >(result));
22299 return resultobj;
22300fail:
22301 return NULL;
d55e5bfc
RD
22302}
22303
22304
1bd55598
RD
22305SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22307 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22308 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22309 void *argp1 = 0 ;
22310 int res1 = 0 ;
22311 PyObject *swig_obj[1] ;
22312
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22318 }
22319 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22322 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
10044bf1
RD
22326 {
22327 resultobj = wxPyMake_wxObject(result, (bool)0);
22328 }
1bd55598
RD
22329 return resultobj;
22330fail:
22331 return NULL;
22332}
22333
22334
22335SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22336 PyObject *obj;
22337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22338 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22339 return SWIG_Py_Void();
22340}
22341
22342SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22343 return SWIG_Python_InitShadowInstance(args);
22344}
22345
22346SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22347 PyObject *resultobj = 0;
22348 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22349 int arg2 = (int) 0 ;
22350 int arg3 = (int) wxNOT_FOUND ;
22351 int arg4 = (int) wxNOT_FOUND ;
22352 wxTreebookEvent *result = 0 ;
22353 int val1 ;
22354 int ecode1 = 0 ;
22355 int val2 ;
22356 int ecode2 = 0 ;
22357 int val3 ;
22358 int ecode3 = 0 ;
22359 int val4 ;
22360 int ecode4 = 0 ;
22361 PyObject * obj0 = 0 ;
22362 PyObject * obj1 = 0 ;
22363 PyObject * obj2 = 0 ;
22364 PyObject * obj3 = 0 ;
22365 char * kwnames[] = {
22366 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22367 };
22368
22369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22370 if (obj0) {
22371 ecode1 = SWIG_AsVal_int(obj0, &val1);
22372 if (!SWIG_IsOK(ecode1)) {
22373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22374 }
22375 arg1 = static_cast< wxEventType >(val1);
22376 }
22377 if (obj1) {
22378 ecode2 = SWIG_AsVal_int(obj1, &val2);
22379 if (!SWIG_IsOK(ecode2)) {
22380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22381 }
22382 arg2 = static_cast< int >(val2);
22383 }
22384 if (obj2) {
22385 ecode3 = SWIG_AsVal_int(obj2, &val3);
22386 if (!SWIG_IsOK(ecode3)) {
22387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22388 }
22389 arg3 = static_cast< int >(val3);
22390 }
22391 if (obj3) {
22392 ecode4 = SWIG_AsVal_int(obj3, &val4);
22393 if (!SWIG_IsOK(ecode4)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22395 }
22396 arg4 = static_cast< int >(val4);
22397 }
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22401 wxPyEndAllowThreads(__tstate);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
22404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22405 return resultobj;
22406fail:
22407 return NULL;
22408}
22409
22410
22411SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22412 PyObject *obj;
22413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22414 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22415 return SWIG_Py_Void();
22416}
22417
22418SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419 return SWIG_Python_InitShadowInstance(args);
22420}
22421
22422SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj = 0;
22424 wxWindow *arg1 = (wxWindow *) 0 ;
22425 int arg2 ;
22426 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22427 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22428 wxSize const &arg4_defvalue = wxDefaultSize ;
22429 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22430 long arg5 = (long) wxBK_DEFAULT ;
22431 wxString const &arg6_defvalue = wxPyEmptyString ;
22432 wxString *arg6 = (wxString *) &arg6_defvalue ;
22433 wxToolbook *result = 0 ;
22434 void *argp1 = 0 ;
22435 int res1 = 0 ;
22436 int val2 ;
22437 int ecode2 = 0 ;
22438 wxPoint temp3 ;
22439 wxSize temp4 ;
22440 long val5 ;
22441 int ecode5 = 0 ;
22442 bool temp6 = false ;
22443 PyObject * obj0 = 0 ;
22444 PyObject * obj1 = 0 ;
22445 PyObject * obj2 = 0 ;
22446 PyObject * obj3 = 0 ;
22447 PyObject * obj4 = 0 ;
22448 PyObject * obj5 = 0 ;
22449 char * kwnames[] = {
22450 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22451 };
22452
22453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22455 if (!SWIG_IsOK(res1)) {
22456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22457 }
22458 arg1 = reinterpret_cast< wxWindow * >(argp1);
22459 ecode2 = SWIG_AsVal_int(obj1, &val2);
22460 if (!SWIG_IsOK(ecode2)) {
22461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22462 }
22463 arg2 = static_cast< int >(val2);
22464 if (obj2) {
36ed4f51 22465 {
1bd55598
RD
22466 arg3 = &temp3;
22467 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22468 }
1bd55598
RD
22469 }
22470 if (obj3) {
36ed4f51 22471 {
1bd55598
RD
22472 arg4 = &temp4;
22473 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22474 }
1bd55598
RD
22475 }
22476 if (obj4) {
22477 ecode5 = SWIG_AsVal_long(obj4, &val5);
22478 if (!SWIG_IsOK(ecode5)) {
22479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22480 }
22481 arg5 = static_cast< long >(val5);
22482 }
22483 if (obj5) {
d55e5bfc 22484 {
1bd55598
RD
22485 arg6 = wxString_in_helper(obj5);
22486 if (arg6 == NULL) SWIG_fail;
22487 temp6 = true;
d55e5bfc 22488 }
1bd55598
RD
22489 }
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22497 {
22498 if (temp6)
22499 delete arg6;
22500 }
22501 return resultobj;
22502fail:
22503 {
22504 if (temp6)
22505 delete arg6;
22506 }
22507 return NULL;
d55e5bfc
RD
22508}
22509
22510
1bd55598
RD
22511SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22512 PyObject *resultobj = 0;
22513 wxToolbook *result = 0 ;
22514
22515 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22516 {
22517 PyThreadState* __tstate = wxPyBeginAllowThreads();
22518 result = (wxToolbook *)new wxToolbook();
22519 wxPyEndAllowThreads(__tstate);
22520 if (PyErr_Occurred()) SWIG_fail;
22521 }
22522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22523 return resultobj;
22524fail:
22525 return NULL;
22526}
22527
22528
22529SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22530 PyObject *resultobj = 0;
22531 wxToolbook *arg1 = (wxToolbook *) 0 ;
22532 wxWindow *arg2 = (wxWindow *) 0 ;
22533 int arg3 ;
22534 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22535 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22536 wxSize const &arg5_defvalue = wxDefaultSize ;
22537 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22538 long arg6 = (long) 0 ;
22539 wxString const &arg7_defvalue = wxEmptyString ;
22540 wxString *arg7 = (wxString *) &arg7_defvalue ;
22541 bool result;
22542 void *argp1 = 0 ;
22543 int res1 = 0 ;
22544 void *argp2 = 0 ;
22545 int res2 = 0 ;
22546 int val3 ;
22547 int ecode3 = 0 ;
22548 wxPoint temp4 ;
22549 wxSize temp5 ;
22550 long val6 ;
22551 int ecode6 = 0 ;
22552 bool temp7 = false ;
22553 PyObject * obj0 = 0 ;
22554 PyObject * obj1 = 0 ;
22555 PyObject * obj2 = 0 ;
22556 PyObject * obj3 = 0 ;
22557 PyObject * obj4 = 0 ;
22558 PyObject * obj5 = 0 ;
22559 PyObject * obj6 = 0 ;
22560 char * kwnames[] = {
22561 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22562 };
22563
22564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22568 }
22569 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22571 if (!SWIG_IsOK(res2)) {
22572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22573 }
22574 arg2 = reinterpret_cast< wxWindow * >(argp2);
22575 ecode3 = SWIG_AsVal_int(obj2, &val3);
22576 if (!SWIG_IsOK(ecode3)) {
22577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22578 }
22579 arg3 = static_cast< int >(val3);
22580 if (obj3) {
22581 {
22582 arg4 = &temp4;
22583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22584 }
1bd55598
RD
22585 }
22586 if (obj4) {
f20a2e1f 22587 {
1bd55598
RD
22588 arg5 = &temp5;
22589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22590 }
1bd55598
RD
22591 }
22592 if (obj5) {
22593 ecode6 = SWIG_AsVal_long(obj5, &val6);
22594 if (!SWIG_IsOK(ecode6)) {
22595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22596 }
22597 arg6 = static_cast< long >(val6);
22598 }
22599 if (obj6) {
f20a2e1f 22600 {
1bd55598
RD
22601 arg7 = wxString_in_helper(obj6);
22602 if (arg7 == NULL) SWIG_fail;
22603 temp7 = true;
f20a2e1f 22604 }
1bd55598
RD
22605 }
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 {
22613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22614 }
22615 {
22616 if (temp7)
22617 delete arg7;
22618 }
22619 return resultobj;
22620fail:
22621 {
22622 if (temp7)
22623 delete arg7;
22624 }
22625 return NULL;
f20a2e1f
RD
22626}
22627
22628
1bd55598
RD
22629SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22630 PyObject *resultobj = 0;
22631 wxToolbook *arg1 = (wxToolbook *) 0 ;
22632 wxToolBarBase *result = 0 ;
22633 void *argp1 = 0 ;
22634 int res1 = 0 ;
22635 PyObject *swig_obj[1] ;
22636
22637 if (!args) SWIG_fail;
22638 swig_obj[0] = args;
22639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22640 if (!SWIG_IsOK(res1)) {
22641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22642 }
22643 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22647 wxPyEndAllowThreads(__tstate);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 {
22651 resultobj = wxPyMake_wxObject(result, (bool)0);
22652 }
22653 return resultobj;
22654fail:
22655 return NULL;
d55e5bfc
RD
22656}
22657
22658
1bd55598
RD
22659SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22660 PyObject *resultobj = 0;
22661 wxToolbook *arg1 = (wxToolbook *) 0 ;
22662 void *argp1 = 0 ;
22663 int res1 = 0 ;
22664 PyObject *swig_obj[1] ;
22665
22666 if (!args) SWIG_fail;
22667 swig_obj[0] = args;
22668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22669 if (!SWIG_IsOK(res1)) {
22670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22671 }
22672 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 (arg1)->Realize();
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 resultobj = SWIG_Py_Void();
22680 return resultobj;
22681fail:
22682 return NULL;
22683}
22684
22685
22686SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22687 PyObject *obj;
22688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22689 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22690 return SWIG_Py_Void();
22691}
22692
22693SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22694 return SWIG_Python_InitShadowInstance(args);
22695}
22696
22697SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22698 PyObject *resultobj = 0;
22699 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22700 int arg2 = (int) 0 ;
22701 int arg3 = (int) wxNOT_FOUND ;
22702 int arg4 = (int) wxNOT_FOUND ;
22703 wxToolbookEvent *result = 0 ;
22704 int val1 ;
22705 int ecode1 = 0 ;
22706 int val2 ;
22707 int ecode2 = 0 ;
22708 int val3 ;
22709 int ecode3 = 0 ;
22710 int val4 ;
22711 int ecode4 = 0 ;
22712 PyObject * obj0 = 0 ;
22713 PyObject * obj1 = 0 ;
22714 PyObject * obj2 = 0 ;
22715 PyObject * obj3 = 0 ;
22716 char * kwnames[] = {
22717 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22718 };
22719
22720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22721 if (obj0) {
22722 ecode1 = SWIG_AsVal_int(obj0, &val1);
22723 if (!SWIG_IsOK(ecode1)) {
22724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22725 }
22726 arg1 = static_cast< wxEventType >(val1);
22727 }
22728 if (obj1) {
22729 ecode2 = SWIG_AsVal_int(obj1, &val2);
22730 if (!SWIG_IsOK(ecode2)) {
22731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22732 }
22733 arg2 = static_cast< int >(val2);
22734 }
22735 if (obj2) {
22736 ecode3 = SWIG_AsVal_int(obj2, &val3);
22737 if (!SWIG_IsOK(ecode3)) {
22738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22739 }
22740 arg3 = static_cast< int >(val3);
22741 }
22742 if (obj3) {
22743 ecode4 = SWIG_AsVal_int(obj3, &val4);
22744 if (!SWIG_IsOK(ecode4)) {
22745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22746 }
22747 arg4 = static_cast< int >(val4);
22748 }
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22752 wxPyEndAllowThreads(__tstate);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22756 return resultobj;
22757fail:
22758 return NULL;
d55e5bfc
RD
22759}
22760
22761
1bd55598
RD
22762SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22763 PyObject *obj;
22764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22765 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22766 return SWIG_Py_Void();
d55e5bfc
RD
22767}
22768
1bd55598
RD
22769SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22770 return SWIG_Python_InitShadowInstance(args);
22771}
d55e5bfc 22772
1bd55598
RD
22773SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22774 PyObject *resultobj = 0;
22775 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22776 int result;
22777 void *argp1 = 0 ;
22778 int res1 = 0 ;
22779 PyObject *swig_obj[1] ;
22780
22781 if (!args) SWIG_fail;
22782 swig_obj[0] = args;
22783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22784 if (!SWIG_IsOK(res1)) {
22785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22786 }
22787 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22788 {
22789 PyThreadState* __tstate = wxPyBeginAllowThreads();
22790 result = (int)(arg1)->GetId();
22791 wxPyEndAllowThreads(__tstate);
22792 if (PyErr_Occurred()) SWIG_fail;
22793 }
22794 resultobj = SWIG_From_int(static_cast< int >(result));
22795 return resultobj;
22796fail:
22797 return NULL;
d55e5bfc 22798}
1bd55598
RD
22799
22800
22801SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22802 PyObject *resultobj = 0;
22803 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22804 wxControl *result = 0 ;
22805 void *argp1 = 0 ;
22806 int res1 = 0 ;
22807 PyObject *swig_obj[1] ;
22808
22809 if (!args) SWIG_fail;
22810 swig_obj[0] = args;
22811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22812 if (!SWIG_IsOK(res1)) {
22813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22814 }
22815 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 result = (wxControl *)(arg1)->GetControl();
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 {
22823 resultobj = wxPyMake_wxObject(result, 0);
22824 }
22825 return resultobj;
22826fail:
22827 return NULL;
d55e5bfc
RD
22828}
22829
22830
1bd55598
RD
22831SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22832 PyObject *resultobj = 0;
22833 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22834 wxToolBarBase *result = 0 ;
22835 void *argp1 = 0 ;
22836 int res1 = 0 ;
22837 PyObject *swig_obj[1] ;
22838
22839 if (!args) SWIG_fail;
22840 swig_obj[0] = args;
22841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22842 if (!SWIG_IsOK(res1)) {
22843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22844 }
22845 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 result = (wxToolBarBase *)(arg1)->GetToolBar();
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 {
22853 resultobj = wxPyMake_wxObject(result, (bool)0);
22854 }
22855 return resultobj;
22856fail:
22857 return NULL;
d55e5bfc
RD
22858}
22859
22860
1bd55598
RD
22861SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22862 PyObject *resultobj = 0;
22863 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22864 int result;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 PyObject *swig_obj[1] ;
22868
22869 if (!args) SWIG_fail;
22870 swig_obj[0] = args;
22871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22872 if (!SWIG_IsOK(res1)) {
22873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22874 }
22875 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22876 {
22877 PyThreadState* __tstate = wxPyBeginAllowThreads();
22878 result = (int)(arg1)->IsButton();
22879 wxPyEndAllowThreads(__tstate);
22880 if (PyErr_Occurred()) SWIG_fail;
22881 }
22882 resultobj = SWIG_From_int(static_cast< int >(result));
22883 return resultobj;
22884fail:
22885 return NULL;
d55e5bfc
RD
22886}
22887
22888
1bd55598
RD
22889SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22890 PyObject *resultobj = 0;
22891 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22892 int result;
22893 void *argp1 = 0 ;
22894 int res1 = 0 ;
22895 PyObject *swig_obj[1] ;
22896
22897 if (!args) SWIG_fail;
22898 swig_obj[0] = args;
22899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22902 }
22903 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 result = (int)(arg1)->IsControl();
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = SWIG_From_int(static_cast< int >(result));
22911 return resultobj;
22912fail:
22913 return NULL;
d55e5bfc
RD
22914}
22915
22916
1bd55598
RD
22917SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22918 PyObject *resultobj = 0;
22919 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22920 int result;
22921 void *argp1 = 0 ;
22922 int res1 = 0 ;
22923 PyObject *swig_obj[1] ;
22924
22925 if (!args) SWIG_fail;
22926 swig_obj[0] = args;
22927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22930 }
22931 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 result = (int)(arg1)->IsSeparator();
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_From_int(static_cast< int >(result));
22939 return resultobj;
22940fail:
22941 return NULL;
d55e5bfc
RD
22942}
22943
22944
1bd55598
RD
22945SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22946 PyObject *resultobj = 0;
22947 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22948 int result;
22949 void *argp1 = 0 ;
22950 int res1 = 0 ;
22951 PyObject *swig_obj[1] ;
22952
22953 if (!args) SWIG_fail;
22954 swig_obj[0] = args;
22955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22958 }
22959 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 result = (int)(arg1)->GetStyle();
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_From_int(static_cast< int >(result));
22967 return resultobj;
22968fail:
22969 return NULL;
d55e5bfc
RD
22970}
22971
22972
1bd55598
RD
22973SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22976 wxItemKind result;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22986 }
22987 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (wxItemKind)(arg1)->GetKind();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_From_int(static_cast< int >(result));
22995 return resultobj;
22996fail:
22997 return NULL;
d55e5bfc
RD
22998}
22999
23000
1bd55598
RD
23001SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23004 bool result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 PyObject *swig_obj[1] ;
23008
23009 if (!args) SWIG_fail;
23010 swig_obj[0] = args;
23011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23014 }
23015 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (bool)(arg1)->IsEnabled();
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 {
23023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23024 }
23025 return resultobj;
23026fail:
23027 return NULL;
d55e5bfc
RD
23028}
23029
23030
1bd55598
RD
23031SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23032 PyObject *resultobj = 0;
23033 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23034 bool result;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 PyObject *swig_obj[1] ;
23038
23039 if (!args) SWIG_fail;
23040 swig_obj[0] = args;
23041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23044 }
23045 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 result = (bool)(arg1)->IsToggled();
23049 wxPyEndAllowThreads(__tstate);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 }
23052 {
23053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23054 }
23055 return resultobj;
23056fail:
23057 return NULL;
d55e5bfc
RD
23058}
23059
23060
1bd55598
RD
23061SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23062 PyObject *resultobj = 0;
23063 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23064 bool result;
23065 void *argp1 = 0 ;
23066 int res1 = 0 ;
23067 PyObject *swig_obj[1] ;
23068
23069 if (!args) SWIG_fail;
23070 swig_obj[0] = args;
23071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23072 if (!SWIG_IsOK(res1)) {
23073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23074 }
23075 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23076 {
23077 PyThreadState* __tstate = wxPyBeginAllowThreads();
23078 result = (bool)(arg1)->CanBeToggled();
23079 wxPyEndAllowThreads(__tstate);
23080 if (PyErr_Occurred()) SWIG_fail;
23081 }
23082 {
23083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23084 }
23085 return resultobj;
23086fail:
23087 return NULL;
d55e5bfc
RD
23088}
23089
23090
1bd55598
RD
23091SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23092 PyObject *resultobj = 0;
23093 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23094 wxBitmap *result = 0 ;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 PyObject *swig_obj[1] ;
23098
23099 if (!args) SWIG_fail;
23100 swig_obj[0] = args;
23101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23104 }
23105 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 23108 {
1bd55598
RD
23109 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23110 result = (wxBitmap *) &_result_ref;
36ed4f51 23111 }
1bd55598
RD
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 {
23116 wxBitmap* resultptr = new wxBitmap(*result);
23117 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23118 }
23119 return resultobj;
23120fail:
23121 return NULL;
d55e5bfc
RD
23122}
23123
23124
1bd55598
RD
23125SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23126 PyObject *resultobj = 0;
23127 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23128 wxBitmap *result = 0 ;
23129 void *argp1 = 0 ;
23130 int res1 = 0 ;
23131 PyObject *swig_obj[1] ;
23132
23133 if (!args) SWIG_fail;
23134 swig_obj[0] = args;
23135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23136 if (!SWIG_IsOK(res1)) {
23137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23138 }
23139 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23142 {
1bd55598
RD
23143 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23144 result = (wxBitmap *) &_result_ref;
d55e5bfc 23145 }
1bd55598
RD
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 {
23150 wxBitmap* resultptr = new wxBitmap(*result);
23151 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23152 }
23153 return resultobj;
23154fail:
23155 return NULL;
d55e5bfc
RD
23156}
23157
23158
1bd55598
RD
23159SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23160 PyObject *resultobj = 0;
23161 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23162 wxBitmap result;
23163 void *argp1 = 0 ;
23164 int res1 = 0 ;
23165 PyObject *swig_obj[1] ;
23166
23167 if (!args) SWIG_fail;
23168 swig_obj[0] = args;
23169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23170 if (!SWIG_IsOK(res1)) {
23171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23172 }
23173 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = (arg1)->GetBitmap();
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23181 return resultobj;
23182fail:
23183 return NULL;
d55e5bfc
RD
23184}
23185
23186
1bd55598
RD
23187SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23188 PyObject *resultobj = 0;
23189 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23190 wxString result;
23191 void *argp1 = 0 ;
23192 int res1 = 0 ;
23193 PyObject *swig_obj[1] ;
23194
23195 if (!args) SWIG_fail;
23196 swig_obj[0] = args;
23197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23198 if (!SWIG_IsOK(res1)) {
23199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23200 }
23201 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 result = (arg1)->GetLabel();
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 {
23209#if wxUSE_UNICODE
23210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23211#else
23212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23213#endif
23214 }
23215 return resultobj;
23216fail:
23217 return NULL;
d55e5bfc
RD
23218}
23219
23220
1bd55598
RD
23221SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23222 PyObject *resultobj = 0;
23223 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23224 wxString result;
23225 void *argp1 = 0 ;
23226 int res1 = 0 ;
23227 PyObject *swig_obj[1] ;
23228
23229 if (!args) SWIG_fail;
23230 swig_obj[0] = args;
23231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23232 if (!SWIG_IsOK(res1)) {
23233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23234 }
23235 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 result = (arg1)->GetShortHelp();
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 {
23243#if wxUSE_UNICODE
23244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23245#else
23246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23247#endif
23248 }
23249 return resultobj;
23250fail:
23251 return NULL;
d55e5bfc
RD
23252}
23253
23254
1bd55598
RD
23255SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23256 PyObject *resultobj = 0;
23257 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23258 wxString result;
23259 void *argp1 = 0 ;
23260 int res1 = 0 ;
23261 PyObject *swig_obj[1] ;
23262
23263 if (!args) SWIG_fail;
23264 swig_obj[0] = args;
23265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23266 if (!SWIG_IsOK(res1)) {
23267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23268 }
23269 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23270 {
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 result = (arg1)->GetLongHelp();
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 {
23277#if wxUSE_UNICODE
23278 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23279#else
23280 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23281#endif
23282 }
23283 return resultobj;
23284fail:
23285 return NULL;
23286}
23287
23288
23289SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23290 PyObject *resultobj = 0;
23291 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23292 bool arg2 ;
23293 bool result;
23294 void *argp1 = 0 ;
23295 int res1 = 0 ;
23296 bool val2 ;
23297 int ecode2 = 0 ;
23298 PyObject * obj0 = 0 ;
23299 PyObject * obj1 = 0 ;
23300 char * kwnames[] = {
23301 (char *) "self",(char *) "enable", NULL
23302 };
23303
23304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23306 if (!SWIG_IsOK(res1)) {
23307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23308 }
23309 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23310 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23311 if (!SWIG_IsOK(ecode2)) {
23312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23313 }
23314 arg2 = static_cast< bool >(val2);
23315 {
23316 PyThreadState* __tstate = wxPyBeginAllowThreads();
23317 result = (bool)(arg1)->Enable(arg2);
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 {
23322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23323 }
23324 return resultobj;
23325fail:
23326 return NULL;
d55e5bfc
RD
23327}
23328
23329
1bd55598
RD
23330SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23331 PyObject *resultobj = 0;
23332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23342 }
23343 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 (arg1)->Toggle();
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 resultobj = SWIG_Py_Void();
23351 return resultobj;
23352fail:
23353 return NULL;
23354}
23355
23356
23357SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23358 PyObject *resultobj = 0;
23359 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23360 bool arg2 ;
23361 bool result;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 bool val2 ;
23365 int ecode2 = 0 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "self",(char *) "toggle", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23376 }
23377 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23379 if (!SWIG_IsOK(ecode2)) {
23380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23381 }
23382 arg2 = static_cast< bool >(val2);
23383 {
23384 PyThreadState* __tstate = wxPyBeginAllowThreads();
23385 result = (bool)(arg1)->SetToggle(arg2);
23386 wxPyEndAllowThreads(__tstate);
23387 if (PyErr_Occurred()) SWIG_fail;
23388 }
23389 {
23390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23391 }
23392 return resultobj;
23393fail:
23394 return NULL;
23395}
23396
23397
23398SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23399 PyObject *resultobj = 0;
23400 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23401 wxString *arg2 = 0 ;
23402 bool result;
23403 void *argp1 = 0 ;
23404 int res1 = 0 ;
23405 bool temp2 = false ;
23406 PyObject * obj0 = 0 ;
23407 PyObject * obj1 = 0 ;
23408 char * kwnames[] = {
23409 (char *) "self",(char *) "help", NULL
23410 };
23411
23412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23414 if (!SWIG_IsOK(res1)) {
23415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23416 }
23417 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23418 {
23419 arg2 = wxString_in_helper(obj1);
23420 if (arg2 == NULL) SWIG_fail;
23421 temp2 = true;
23422 }
23423 {
23424 PyThreadState* __tstate = wxPyBeginAllowThreads();
23425 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 {
23430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23431 }
23432 {
23433 if (temp2)
23434 delete arg2;
23435 }
23436 return resultobj;
23437fail:
23438 {
23439 if (temp2)
23440 delete arg2;
23441 }
23442 return NULL;
23443}
23444
23445
23446SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj = 0;
23448 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23449 wxString *arg2 = 0 ;
23450 bool result;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 bool temp2 = false ;
23454 PyObject * obj0 = 0 ;
23455 PyObject * obj1 = 0 ;
23456 char * kwnames[] = {
23457 (char *) "self",(char *) "help", NULL
23458 };
23459
23460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23462 if (!SWIG_IsOK(res1)) {
23463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23464 }
23465 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23466 {
23467 arg2 = wxString_in_helper(obj1);
23468 if (arg2 == NULL) SWIG_fail;
23469 temp2 = true;
23470 }
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 {
23478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23479 }
23480 {
23481 if (temp2)
23482 delete arg2;
23483 }
23484 return resultobj;
23485fail:
23486 {
23487 if (temp2)
23488 delete arg2;
23489 }
23490 return NULL;
23491}
23492
23493
23494SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23495 PyObject *resultobj = 0;
23496 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23497 wxBitmap *arg2 = 0 ;
23498 void *argp1 = 0 ;
23499 int res1 = 0 ;
23500 void *argp2 = 0 ;
23501 int res2 = 0 ;
23502 PyObject * obj0 = 0 ;
23503 PyObject * obj1 = 0 ;
23504 char * kwnames[] = {
23505 (char *) "self",(char *) "bmp", NULL
23506 };
23507
23508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23510 if (!SWIG_IsOK(res1)) {
23511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23512 }
23513 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23515 if (!SWIG_IsOK(res2)) {
23516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23517 }
23518 if (!argp2) {
23519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23520 }
23521 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 resultobj = SWIG_Py_Void();
23529 return resultobj;
23530fail:
23531 return NULL;
23532}
23533
23534
23535SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23536 PyObject *resultobj = 0;
23537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23538 wxBitmap *arg2 = 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 void *argp2 = 0 ;
23542 int res2 = 0 ;
23543 PyObject * obj0 = 0 ;
23544 PyObject * obj1 = 0 ;
23545 char * kwnames[] = {
23546 (char *) "self",(char *) "bmp", NULL
23547 };
23548
23549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23551 if (!SWIG_IsOK(res1)) {
23552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23553 }
23554 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23556 if (!SWIG_IsOK(res2)) {
23557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23558 }
23559 if (!argp2) {
23560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23561 }
23562 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23563 {
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 resultobj = SWIG_Py_Void();
23570 return resultobj;
23571fail:
23572 return NULL;
23573}
23574
23575
23576SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23577 PyObject *resultobj = 0;
23578 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23579 wxString *arg2 = 0 ;
23580 void *argp1 = 0 ;
23581 int res1 = 0 ;
23582 bool temp2 = false ;
23583 PyObject * obj0 = 0 ;
23584 PyObject * obj1 = 0 ;
23585 char * kwnames[] = {
23586 (char *) "self",(char *) "label", NULL
23587 };
23588
23589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23591 if (!SWIG_IsOK(res1)) {
23592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23593 }
23594 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23595 {
23596 arg2 = wxString_in_helper(obj1);
23597 if (arg2 == NULL) SWIG_fail;
23598 temp2 = true;
23599 }
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 (arg1)->SetLabel((wxString const &)*arg2);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 resultobj = SWIG_Py_Void();
23607 {
23608 if (temp2)
23609 delete arg2;
23610 }
23611 return resultobj;
23612fail:
23613 {
23614 if (temp2)
23615 delete arg2;
23616 }
23617 return NULL;
d55e5bfc
RD
23618}
23619
23620
1bd55598
RD
23621SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23622 PyObject *resultobj = 0;
23623 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23624 void *argp1 = 0 ;
23625 int res1 = 0 ;
23626 PyObject *swig_obj[1] ;
23627
23628 if (!args) SWIG_fail;
23629 swig_obj[0] = args;
23630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23631 if (!SWIG_IsOK(res1)) {
23632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23633 }
23634 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 (arg1)->Detach();
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 resultobj = SWIG_Py_Void();
23642 return resultobj;
23643fail:
23644 return NULL;
23645}
23646
23647
23648SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj = 0;
23650 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23651 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23652 void *argp1 = 0 ;
23653 int res1 = 0 ;
23654 void *argp2 = 0 ;
23655 int res2 = 0 ;
23656 PyObject * obj0 = 0 ;
23657 PyObject * obj1 = 0 ;
23658 char * kwnames[] = {
23659 (char *) "self",(char *) "tbar", NULL
23660 };
23661
23662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23664 if (!SWIG_IsOK(res1)) {
23665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23666 }
23667 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23669 if (!SWIG_IsOK(res2)) {
23670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23671 }
23672 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23673 {
23674 PyThreadState* __tstate = wxPyBeginAllowThreads();
23675 (arg1)->Attach(arg2);
23676 wxPyEndAllowThreads(__tstate);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 }
23679 resultobj = SWIG_Py_Void();
23680 return resultobj;
23681fail:
23682 return NULL;
d55e5bfc
RD
23683}
23684
23685
1bd55598
RD
23686SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23687 PyObject *resultobj = 0;
23688 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23689 PyObject *result = 0 ;
23690 void *argp1 = 0 ;
23691 int res1 = 0 ;
23692 PyObject *swig_obj[1] ;
23693
23694 if (!args) SWIG_fail;
23695 swig_obj[0] = args;
23696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23697 if (!SWIG_IsOK(res1)) {
23698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23699 }
23700 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23701 {
23702 PyThreadState* __tstate = wxPyBeginAllowThreads();
23703 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23704 wxPyEndAllowThreads(__tstate);
23705 if (PyErr_Occurred()) SWIG_fail;
23706 }
23707 resultobj = result;
23708 return resultobj;
23709fail:
23710 return NULL;
23711}
23712
23713
23714SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23715 PyObject *resultobj = 0;
23716 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23717 PyObject *arg2 = (PyObject *) 0 ;
23718 void *argp1 = 0 ;
23719 int res1 = 0 ;
23720 PyObject * obj0 = 0 ;
23721 PyObject * obj1 = 0 ;
23722 char * kwnames[] = {
23723 (char *) "self",(char *) "clientData", NULL
23724 };
23725
23726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23728 if (!SWIG_IsOK(res1)) {
23729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23730 }
23731 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23732 arg2 = obj1;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 wxToolBarToolBase_SetClientData(arg1,arg2);
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_Py_Void();
23740 return resultobj;
23741fail:
23742 return NULL;
23743}
23744
23745
23746SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23747 PyObject *obj;
23748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23749 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23750 return SWIG_Py_Void();
23751}
23752
23753SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23754 PyObject *resultobj = 0;
23755 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23756 int arg2 ;
23757 wxString *arg3 = 0 ;
23758 wxBitmap *arg4 = 0 ;
23759 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23760 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23761 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23762 wxString const &arg7_defvalue = wxPyEmptyString ;
23763 wxString *arg7 = (wxString *) &arg7_defvalue ;
23764 wxString const &arg8_defvalue = wxPyEmptyString ;
23765 wxString *arg8 = (wxString *) &arg8_defvalue ;
23766 PyObject *arg9 = (PyObject *) NULL ;
23767 wxToolBarToolBase *result = 0 ;
23768 void *argp1 = 0 ;
23769 int res1 = 0 ;
23770 int val2 ;
23771 int ecode2 = 0 ;
23772 bool temp3 = false ;
23773 void *argp4 = 0 ;
23774 int res4 = 0 ;
23775 void *argp5 = 0 ;
23776 int res5 = 0 ;
23777 int val6 ;
23778 int ecode6 = 0 ;
23779 bool temp7 = false ;
23780 bool temp8 = false ;
23781 PyObject * obj0 = 0 ;
23782 PyObject * obj1 = 0 ;
23783 PyObject * obj2 = 0 ;
23784 PyObject * obj3 = 0 ;
23785 PyObject * obj4 = 0 ;
23786 PyObject * obj5 = 0 ;
23787 PyObject * obj6 = 0 ;
23788 PyObject * obj7 = 0 ;
23789 PyObject * obj8 = 0 ;
23790 char * kwnames[] = {
23791 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23792 };
23793
23794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23796 if (!SWIG_IsOK(res1)) {
23797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23798 }
23799 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23800 ecode2 = SWIG_AsVal_int(obj1, &val2);
23801 if (!SWIG_IsOK(ecode2)) {
23802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23803 }
23804 arg2 = static_cast< int >(val2);
23805 {
23806 arg3 = wxString_in_helper(obj2);
23807 if (arg3 == NULL) SWIG_fail;
23808 temp3 = true;
23809 }
23810 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23811 if (!SWIG_IsOK(res4)) {
23812 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23813 }
23814 if (!argp4) {
23815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23816 }
23817 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23818 if (obj4) {
23819 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23820 if (!SWIG_IsOK(res5)) {
23821 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23822 }
1bd55598
RD
23823 if (!argp5) {
23824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23825 }
1bd55598
RD
23826 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23827 }
23828 if (obj5) {
23829 ecode6 = SWIG_AsVal_int(obj5, &val6);
23830 if (!SWIG_IsOK(ecode6)) {
23831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23832 }
23833 arg6 = static_cast< wxItemKind >(val6);
23834 }
23835 if (obj6) {
f20a2e1f 23836 {
1bd55598
RD
23837 arg7 = wxString_in_helper(obj6);
23838 if (arg7 == NULL) SWIG_fail;
23839 temp7 = true;
f20a2e1f 23840 }
1bd55598
RD
23841 }
23842 if (obj7) {
f20a2e1f 23843 {
1bd55598
RD
23844 arg8 = wxString_in_helper(obj7);
23845 if (arg8 == NULL) SWIG_fail;
23846 temp8 = true;
d55e5bfc 23847 }
1bd55598
RD
23848 }
23849 if (obj8) {
23850 arg9 = obj8;
23851 }
23852 {
23853 PyThreadState* __tstate = wxPyBeginAllowThreads();
23854 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23855 wxPyEndAllowThreads(__tstate);
23856 if (PyErr_Occurred()) SWIG_fail;
23857 }
23858 {
23859 resultobj = wxPyMake_wxObject(result, (bool)0);
23860 }
23861 {
23862 if (temp3)
23863 delete arg3;
23864 }
23865 {
23866 if (temp7)
23867 delete arg7;
23868 }
23869 {
23870 if (temp8)
23871 delete arg8;
23872 }
23873 return resultobj;
23874fail:
23875 {
23876 if (temp3)
23877 delete arg3;
23878 }
23879 {
23880 if (temp7)
23881 delete arg7;
23882 }
23883 {
23884 if (temp8)
23885 delete arg8;
23886 }
23887 return NULL;
23888}
23889
23890
23891SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj = 0;
23893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23894 size_t arg2 ;
23895 int arg3 ;
23896 wxString *arg4 = 0 ;
23897 wxBitmap *arg5 = 0 ;
23898 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23899 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23900 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23901 wxString const &arg8_defvalue = wxPyEmptyString ;
23902 wxString *arg8 = (wxString *) &arg8_defvalue ;
23903 wxString const &arg9_defvalue = wxPyEmptyString ;
23904 wxString *arg9 = (wxString *) &arg9_defvalue ;
23905 PyObject *arg10 = (PyObject *) NULL ;
23906 wxToolBarToolBase *result = 0 ;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 size_t val2 ;
23910 int ecode2 = 0 ;
23911 int val3 ;
23912 int ecode3 = 0 ;
23913 bool temp4 = false ;
23914 void *argp5 = 0 ;
23915 int res5 = 0 ;
23916 void *argp6 = 0 ;
23917 int res6 = 0 ;
23918 int val7 ;
23919 int ecode7 = 0 ;
23920 bool temp8 = false ;
23921 bool temp9 = false ;
23922 PyObject * obj0 = 0 ;
23923 PyObject * obj1 = 0 ;
23924 PyObject * obj2 = 0 ;
23925 PyObject * obj3 = 0 ;
23926 PyObject * obj4 = 0 ;
23927 PyObject * obj5 = 0 ;
23928 PyObject * obj6 = 0 ;
23929 PyObject * obj7 = 0 ;
23930 PyObject * obj8 = 0 ;
23931 PyObject * obj9 = 0 ;
23932 char * kwnames[] = {
23933 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23934 };
23935
23936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23938 if (!SWIG_IsOK(res1)) {
23939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23940 }
23941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23942 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23943 if (!SWIG_IsOK(ecode2)) {
23944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23945 }
23946 arg2 = static_cast< size_t >(val2);
23947 ecode3 = SWIG_AsVal_int(obj2, &val3);
23948 if (!SWIG_IsOK(ecode3)) {
23949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23950 }
23951 arg3 = static_cast< int >(val3);
23952 {
23953 arg4 = wxString_in_helper(obj3);
23954 if (arg4 == NULL) SWIG_fail;
23955 temp4 = true;
23956 }
23957 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23958 if (!SWIG_IsOK(res5)) {
23959 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23960 }
23961 if (!argp5) {
23962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23963 }
23964 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23965 if (obj5) {
23966 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23967 if (!SWIG_IsOK(res6)) {
23968 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23969 }
1bd55598
RD
23970 if (!argp6) {
23971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23972 }
1bd55598
RD
23973 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23974 }
23975 if (obj6) {
23976 ecode7 = SWIG_AsVal_int(obj6, &val7);
23977 if (!SWIG_IsOK(ecode7)) {
23978 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23979 }
23980 arg7 = static_cast< wxItemKind >(val7);
23981 }
23982 if (obj7) {
d55e5bfc 23983 {
1bd55598
RD
23984 arg8 = wxString_in_helper(obj7);
23985 if (arg8 == NULL) SWIG_fail;
23986 temp8 = true;
d55e5bfc 23987 }
1bd55598
RD
23988 }
23989 if (obj8) {
d55e5bfc 23990 {
1bd55598
RD
23991 arg9 = wxString_in_helper(obj8);
23992 if (arg9 == NULL) SWIG_fail;
23993 temp9 = true;
d55e5bfc 23994 }
1bd55598
RD
23995 }
23996 if (obj9) {
23997 arg10 = obj9;
23998 }
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 resultobj = wxPyMake_wxObject(result, (bool)0);
24007 }
24008 {
24009 if (temp4)
24010 delete arg4;
24011 }
24012 {
24013 if (temp8)
24014 delete arg8;
24015 }
24016 {
24017 if (temp9)
24018 delete arg9;
24019 }
24020 return resultobj;
24021fail:
24022 {
24023 if (temp4)
24024 delete arg4;
24025 }
24026 {
24027 if (temp8)
24028 delete arg8;
24029 }
24030 {
24031 if (temp9)
24032 delete arg9;
24033 }
24034 return NULL;
24035}
24036
24037
24038SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24039 PyObject *resultobj = 0;
24040 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24041 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24042 wxToolBarToolBase *result = 0 ;
24043 void *argp1 = 0 ;
24044 int res1 = 0 ;
24045 void *argp2 = 0 ;
24046 int res2 = 0 ;
24047 PyObject * obj0 = 0 ;
24048 PyObject * obj1 = 0 ;
24049 char * kwnames[] = {
24050 (char *) "self",(char *) "tool", NULL
24051 };
24052
24053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24055 if (!SWIG_IsOK(res1)) {
24056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24057 }
24058 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24059 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24060 if (!SWIG_IsOK(res2)) {
24061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24062 }
24063 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24064 {
24065 PyThreadState* __tstate = wxPyBeginAllowThreads();
24066 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24067 wxPyEndAllowThreads(__tstate);
24068 if (PyErr_Occurred()) SWIG_fail;
24069 }
24070 {
24071 resultobj = wxPyMake_wxObject(result, (bool)0);
24072 }
24073 return resultobj;
24074fail:
24075 return NULL;
24076}
24077
24078
24079SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24080 PyObject *resultobj = 0;
24081 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24082 size_t arg2 ;
24083 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24084 wxToolBarToolBase *result = 0 ;
24085 void *argp1 = 0 ;
24086 int res1 = 0 ;
24087 size_t val2 ;
24088 int ecode2 = 0 ;
24089 void *argp3 = 0 ;
24090 int res3 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
24093 PyObject * obj2 = 0 ;
24094 char * kwnames[] = {
24095 (char *) "self",(char *) "pos",(char *) "tool", NULL
24096 };
24097
24098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24100 if (!SWIG_IsOK(res1)) {
24101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24102 }
24103 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24104 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24105 if (!SWIG_IsOK(ecode2)) {
24106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24107 }
24108 arg2 = static_cast< size_t >(val2);
24109 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24110 if (!SWIG_IsOK(res3)) {
24111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24112 }
24113 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24114 {
24115 PyThreadState* __tstate = wxPyBeginAllowThreads();
24116 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 {
24121 resultobj = wxPyMake_wxObject(result, (bool)0);
24122 }
24123 return resultobj;
24124fail:
24125 return NULL;
24126}
24127
24128
24129SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj = 0;
24131 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24132 wxControl *arg2 = (wxControl *) 0 ;
24133 wxToolBarToolBase *result = 0 ;
24134 void *argp1 = 0 ;
24135 int res1 = 0 ;
24136 void *argp2 = 0 ;
24137 int res2 = 0 ;
24138 PyObject * obj0 = 0 ;
24139 PyObject * obj1 = 0 ;
24140 char * kwnames[] = {
24141 (char *) "self",(char *) "control", NULL
24142 };
24143
24144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24146 if (!SWIG_IsOK(res1)) {
24147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24148 }
24149 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24151 if (!SWIG_IsOK(res2)) {
24152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24153 }
24154 arg2 = reinterpret_cast< wxControl * >(argp2);
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24158 wxPyEndAllowThreads(__tstate);
24159 if (PyErr_Occurred()) SWIG_fail;
24160 }
24161 {
24162 resultobj = wxPyMake_wxObject(result, (bool)0);
24163 }
24164 return resultobj;
24165fail:
24166 return NULL;
24167}
24168
24169
24170SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24171 PyObject *resultobj = 0;
24172 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24173 size_t arg2 ;
24174 wxControl *arg3 = (wxControl *) 0 ;
24175 wxToolBarToolBase *result = 0 ;
24176 void *argp1 = 0 ;
24177 int res1 = 0 ;
24178 size_t val2 ;
24179 int ecode2 = 0 ;
24180 void *argp3 = 0 ;
24181 int res3 = 0 ;
24182 PyObject * obj0 = 0 ;
24183 PyObject * obj1 = 0 ;
24184 PyObject * obj2 = 0 ;
24185 char * kwnames[] = {
24186 (char *) "self",(char *) "pos",(char *) "control", NULL
24187 };
24188
24189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24191 if (!SWIG_IsOK(res1)) {
24192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24193 }
24194 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24195 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24196 if (!SWIG_IsOK(ecode2)) {
24197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24198 }
24199 arg2 = static_cast< size_t >(val2);
24200 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24201 if (!SWIG_IsOK(res3)) {
24202 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24203 }
24204 arg3 = reinterpret_cast< wxControl * >(argp3);
24205 {
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 {
24212 resultobj = wxPyMake_wxObject(result, (bool)0);
24213 }
24214 return resultobj;
24215fail:
24216 return NULL;
24217}
24218
24219
24220SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24221 PyObject *resultobj = 0;
24222 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24223 int arg2 ;
24224 wxControl *result = 0 ;
24225 void *argp1 = 0 ;
24226 int res1 = 0 ;
24227 int val2 ;
24228 int ecode2 = 0 ;
24229 PyObject * obj0 = 0 ;
24230 PyObject * obj1 = 0 ;
24231 char * kwnames[] = {
24232 (char *) "self",(char *) "id", NULL
24233 };
24234
24235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24237 if (!SWIG_IsOK(res1)) {
24238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24239 }
24240 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24241 ecode2 = SWIG_AsVal_int(obj1, &val2);
24242 if (!SWIG_IsOK(ecode2)) {
24243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24244 }
24245 arg2 = static_cast< int >(val2);
24246 {
24247 PyThreadState* __tstate = wxPyBeginAllowThreads();
24248 result = (wxControl *)(arg1)->FindControl(arg2);
24249 wxPyEndAllowThreads(__tstate);
24250 if (PyErr_Occurred()) SWIG_fail;
24251 }
24252 {
24253 resultobj = wxPyMake_wxObject(result, 0);
24254 }
24255 return resultobj;
24256fail:
24257 return NULL;
d55e5bfc
RD
24258}
24259
24260
1bd55598
RD
24261SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24262 PyObject *resultobj = 0;
24263 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24264 wxToolBarToolBase *result = 0 ;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 PyObject *swig_obj[1] ;
24268
24269 if (!args) SWIG_fail;
24270 swig_obj[0] = args;
24271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24272 if (!SWIG_IsOK(res1)) {
24273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24274 }
24275 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24276 {
24277 PyThreadState* __tstate = wxPyBeginAllowThreads();
24278 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24279 wxPyEndAllowThreads(__tstate);
24280 if (PyErr_Occurred()) SWIG_fail;
24281 }
24282 {
24283 resultobj = wxPyMake_wxObject(result, (bool)0);
24284 }
24285 return resultobj;
24286fail:
24287 return NULL;
24288}
24289
24290
24291SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24292 PyObject *resultobj = 0;
24293 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24294 size_t arg2 ;
24295 wxToolBarToolBase *result = 0 ;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 size_t val2 ;
24299 int ecode2 = 0 ;
24300 PyObject * obj0 = 0 ;
24301 PyObject * obj1 = 0 ;
24302 char * kwnames[] = {
24303 (char *) "self",(char *) "pos", NULL
24304 };
24305
24306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24308 if (!SWIG_IsOK(res1)) {
24309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24310 }
24311 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24312 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24313 if (!SWIG_IsOK(ecode2)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24315 }
24316 arg2 = static_cast< size_t >(val2);
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 {
24324 resultobj = wxPyMake_wxObject(result, (bool)0);
24325 }
24326 return resultobj;
24327fail:
24328 return NULL;
24329}
24330
24331
24332SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24333 PyObject *resultobj = 0;
24334 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24335 int arg2 ;
24336 wxToolBarToolBase *result = 0 ;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 int val2 ;
24340 int ecode2 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char * kwnames[] = {
24344 (char *) "self",(char *) "id", NULL
24345 };
24346
24347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24351 }
24352 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24353 ecode2 = SWIG_AsVal_int(obj1, &val2);
24354 if (!SWIG_IsOK(ecode2)) {
24355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24356 }
24357 arg2 = static_cast< int >(val2);
24358 {
24359 PyThreadState* __tstate = wxPyBeginAllowThreads();
24360 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 {
24365 resultobj = wxPyMake_wxObject(result, (bool)0);
24366 }
24367 return resultobj;
24368fail:
24369 return NULL;
24370}
24371
24372
24373SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj = 0;
24375 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24376 size_t arg2 ;
24377 bool result;
24378 void *argp1 = 0 ;
24379 int res1 = 0 ;
24380 size_t val2 ;
24381 int ecode2 = 0 ;
24382 PyObject * obj0 = 0 ;
24383 PyObject * obj1 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "self",(char *) "pos", NULL
24386 };
24387
24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24392 }
24393 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24394 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24395 if (!SWIG_IsOK(ecode2)) {
24396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24397 }
24398 arg2 = static_cast< size_t >(val2);
24399 {
24400 PyThreadState* __tstate = wxPyBeginAllowThreads();
24401 result = (bool)(arg1)->DeleteToolByPos(arg2);
24402 wxPyEndAllowThreads(__tstate);
24403 if (PyErr_Occurred()) SWIG_fail;
24404 }
24405 {
24406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24407 }
24408 return resultobj;
24409fail:
24410 return NULL;
24411}
24412
24413
24414SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj = 0;
24416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24417 int arg2 ;
24418 bool result;
24419 void *argp1 = 0 ;
24420 int res1 = 0 ;
24421 int val2 ;
24422 int ecode2 = 0 ;
24423 PyObject * obj0 = 0 ;
24424 PyObject * obj1 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "self",(char *) "id", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24433 }
24434 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24435 ecode2 = SWIG_AsVal_int(obj1, &val2);
24436 if (!SWIG_IsOK(ecode2)) {
24437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24438 }
24439 arg2 = static_cast< int >(val2);
24440 {
24441 PyThreadState* __tstate = wxPyBeginAllowThreads();
24442 result = (bool)(arg1)->DeleteTool(arg2);
24443 wxPyEndAllowThreads(__tstate);
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 {
24447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24448 }
24449 return resultobj;
24450fail:
24451 return NULL;
d55e5bfc
RD
24452}
24453
24454
1bd55598
RD
24455SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24456 PyObject *resultobj = 0;
24457 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 PyObject *swig_obj[1] ;
24461
24462 if (!args) SWIG_fail;
24463 swig_obj[0] = args;
24464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24467 }
24468 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 (arg1)->ClearTools();
24472 wxPyEndAllowThreads(__tstate);
24473 if (PyErr_Occurred()) SWIG_fail;
24474 }
24475 resultobj = SWIG_Py_Void();
24476 return resultobj;
24477fail:
24478 return NULL;
d55e5bfc
RD
24479}
24480
24481
1bd55598
RD
24482SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24483 PyObject *resultobj = 0;
24484 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24485 bool result;
24486 void *argp1 = 0 ;
24487 int res1 = 0 ;
24488 PyObject *swig_obj[1] ;
24489
24490 if (!args) SWIG_fail;
24491 swig_obj[0] = args;
24492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24493 if (!SWIG_IsOK(res1)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24495 }
24496 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (bool)(arg1)->Realize();
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 {
24504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24505 }
24506 return resultobj;
24507fail:
24508 return NULL;
24509}
24510
24511
24512SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24513 PyObject *resultobj = 0;
24514 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24515 int arg2 ;
24516 bool arg3 ;
24517 void *argp1 = 0 ;
24518 int res1 = 0 ;
24519 int val2 ;
24520 int ecode2 = 0 ;
24521 bool val3 ;
24522 int ecode3 = 0 ;
24523 PyObject * obj0 = 0 ;
24524 PyObject * obj1 = 0 ;
24525 PyObject * obj2 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "self",(char *) "id",(char *) "enable", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24534 }
24535 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24536 ecode2 = SWIG_AsVal_int(obj1, &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24539 }
24540 arg2 = static_cast< int >(val2);
24541 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24542 if (!SWIG_IsOK(ecode3)) {
24543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24544 }
24545 arg3 = static_cast< bool >(val3);
24546 {
24547 PyThreadState* __tstate = wxPyBeginAllowThreads();
24548 (arg1)->EnableTool(arg2,arg3);
24549 wxPyEndAllowThreads(__tstate);
24550 if (PyErr_Occurred()) SWIG_fail;
24551 }
24552 resultobj = SWIG_Py_Void();
24553 return resultobj;
24554fail:
24555 return NULL;
24556}
24557
24558
24559SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24560 PyObject *resultobj = 0;
24561 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24562 int arg2 ;
24563 bool arg3 ;
24564 void *argp1 = 0 ;
24565 int res1 = 0 ;
24566 int val2 ;
24567 int ecode2 = 0 ;
24568 bool val3 ;
24569 int ecode3 = 0 ;
24570 PyObject * obj0 = 0 ;
24571 PyObject * obj1 = 0 ;
24572 PyObject * obj2 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "self",(char *) "id",(char *) "toggle", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24581 }
24582 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24583 ecode2 = SWIG_AsVal_int(obj1, &val2);
24584 if (!SWIG_IsOK(ecode2)) {
24585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24586 }
24587 arg2 = static_cast< int >(val2);
24588 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24589 if (!SWIG_IsOK(ecode3)) {
24590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24591 }
24592 arg3 = static_cast< bool >(val3);
24593 {
24594 PyThreadState* __tstate = wxPyBeginAllowThreads();
24595 (arg1)->ToggleTool(arg2,arg3);
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 resultobj = SWIG_Py_Void();
24600 return resultobj;
24601fail:
24602 return NULL;
24603}
24604
24605
24606SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24607 PyObject *resultobj = 0;
24608 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24609 int arg2 ;
24610 bool arg3 ;
24611 void *argp1 = 0 ;
24612 int res1 = 0 ;
24613 int val2 ;
24614 int ecode2 = 0 ;
24615 bool val3 ;
24616 int ecode3 = 0 ;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 PyObject * obj2 = 0 ;
24620 char * kwnames[] = {
24621 (char *) "self",(char *) "id",(char *) "toggle", NULL
24622 };
24623
24624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24626 if (!SWIG_IsOK(res1)) {
24627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24628 }
24629 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24630 ecode2 = SWIG_AsVal_int(obj1, &val2);
24631 if (!SWIG_IsOK(ecode2)) {
24632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24633 }
24634 arg2 = static_cast< int >(val2);
24635 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24636 if (!SWIG_IsOK(ecode3)) {
24637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24638 }
24639 arg3 = static_cast< bool >(val3);
24640 {
24641 PyThreadState* __tstate = wxPyBeginAllowThreads();
24642 (arg1)->SetToggle(arg2,arg3);
24643 wxPyEndAllowThreads(__tstate);
24644 if (PyErr_Occurred()) SWIG_fail;
24645 }
24646 resultobj = SWIG_Py_Void();
24647 return resultobj;
24648fail:
24649 return NULL;
24650}
24651
24652
24653SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24654 PyObject *resultobj = 0;
24655 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24656 int arg2 ;
24657 PyObject *result = 0 ;
24658 void *argp1 = 0 ;
24659 int res1 = 0 ;
24660 int val2 ;
24661 int ecode2 = 0 ;
24662 PyObject * obj0 = 0 ;
24663 PyObject * obj1 = 0 ;
24664 char * kwnames[] = {
24665 (char *) "self",(char *) "id", NULL
24666 };
24667
24668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24672 }
24673 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24674 ecode2 = SWIG_AsVal_int(obj1, &val2);
24675 if (!SWIG_IsOK(ecode2)) {
24676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24677 }
24678 arg2 = static_cast< int >(val2);
24679 {
24680 PyThreadState* __tstate = wxPyBeginAllowThreads();
24681 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24682 wxPyEndAllowThreads(__tstate);
24683 if (PyErr_Occurred()) SWIG_fail;
24684 }
24685 resultobj = result;
24686 return resultobj;
24687fail:
24688 return NULL;
24689}
24690
24691
24692SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj = 0;
24694 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24695 int arg2 ;
24696 PyObject *arg3 = (PyObject *) 0 ;
24697 void *argp1 = 0 ;
24698 int res1 = 0 ;
24699 int val2 ;
24700 int ecode2 = 0 ;
24701 PyObject * obj0 = 0 ;
24702 PyObject * obj1 = 0 ;
24703 PyObject * obj2 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "self",(char *) "id",(char *) "clientData", NULL
24706 };
24707
24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24710 if (!SWIG_IsOK(res1)) {
24711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24712 }
24713 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24714 ecode2 = SWIG_AsVal_int(obj1, &val2);
24715 if (!SWIG_IsOK(ecode2)) {
24716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24717 }
24718 arg2 = static_cast< int >(val2);
24719 arg3 = obj2;
24720 {
24721 PyThreadState* __tstate = wxPyBeginAllowThreads();
24722 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 resultobj = SWIG_Py_Void();
24727 return resultobj;
24728fail:
24729 return NULL;
24730}
24731
24732
24733SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24736 int arg2 ;
24737 int result;
24738 void *argp1 = 0 ;
24739 int res1 = 0 ;
24740 int val2 ;
24741 int ecode2 = 0 ;
24742 PyObject * obj0 = 0 ;
24743 PyObject * obj1 = 0 ;
24744 char * kwnames[] = {
24745 (char *) "self",(char *) "id", NULL
24746 };
24747
24748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24750 if (!SWIG_IsOK(res1)) {
24751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24752 }
24753 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24754 ecode2 = SWIG_AsVal_int(obj1, &val2);
24755 if (!SWIG_IsOK(ecode2)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24757 }
24758 arg2 = static_cast< int >(val2);
24759 {
24760 PyThreadState* __tstate = wxPyBeginAllowThreads();
24761 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 resultobj = SWIG_From_int(static_cast< int >(result));
24766 return resultobj;
24767fail:
24768 return NULL;
24769}
24770
24771
24772SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj = 0;
24774 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24775 int arg2 ;
24776 bool result;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 int val2 ;
24780 int ecode2 = 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "self",(char *) "id", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24791 }
24792 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24793 ecode2 = SWIG_AsVal_int(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24796 }
24797 arg2 = static_cast< int >(val2);
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 result = (bool)(arg1)->GetToolState(arg2);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 {
24805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24806 }
24807 return resultobj;
24808fail:
24809 return NULL;
24810}
24811
24812
24813SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24814 PyObject *resultobj = 0;
24815 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24816 int arg2 ;
24817 bool result;
24818 void *argp1 = 0 ;
24819 int res1 = 0 ;
24820 int val2 ;
24821 int ecode2 = 0 ;
24822 PyObject * obj0 = 0 ;
24823 PyObject * obj1 = 0 ;
24824 char * kwnames[] = {
24825 (char *) "self",(char *) "id", NULL
24826 };
24827
24828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24830 if (!SWIG_IsOK(res1)) {
24831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24832 }
24833 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24834 ecode2 = SWIG_AsVal_int(obj1, &val2);
24835 if (!SWIG_IsOK(ecode2)) {
24836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24837 }
24838 arg2 = static_cast< int >(val2);
24839 {
24840 PyThreadState* __tstate = wxPyBeginAllowThreads();
24841 result = (bool)(arg1)->GetToolEnabled(arg2);
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 {
24846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24847 }
24848 return resultobj;
24849fail:
24850 return NULL;
24851}
24852
24853
24854SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj = 0;
24856 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24857 int arg2 ;
24858 wxString *arg3 = 0 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 int val2 ;
24862 int ecode2 = 0 ;
24863 bool temp3 = false ;
24864 PyObject * obj0 = 0 ;
24865 PyObject * obj1 = 0 ;
24866 PyObject * obj2 = 0 ;
24867 char * kwnames[] = {
24868 (char *) "self",(char *) "id",(char *) "helpString", NULL
24869 };
24870
24871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24873 if (!SWIG_IsOK(res1)) {
24874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24875 }
24876 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24877 ecode2 = SWIG_AsVal_int(obj1, &val2);
24878 if (!SWIG_IsOK(ecode2)) {
24879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24880 }
24881 arg2 = static_cast< int >(val2);
24882 {
24883 arg3 = wxString_in_helper(obj2);
24884 if (arg3 == NULL) SWIG_fail;
24885 temp3 = true;
24886 }
24887 {
24888 PyThreadState* __tstate = wxPyBeginAllowThreads();
24889 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24890 wxPyEndAllowThreads(__tstate);
24891 if (PyErr_Occurred()) SWIG_fail;
24892 }
24893 resultobj = SWIG_Py_Void();
24894 {
24895 if (temp3)
24896 delete arg3;
24897 }
24898 return resultobj;
24899fail:
24900 {
24901 if (temp3)
24902 delete arg3;
24903 }
24904 return NULL;
24905}
24906
24907
24908SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24909 PyObject *resultobj = 0;
24910 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24911 int arg2 ;
24912 wxString result;
24913 void *argp1 = 0 ;
24914 int res1 = 0 ;
24915 int val2 ;
24916 int ecode2 = 0 ;
24917 PyObject * obj0 = 0 ;
24918 PyObject * obj1 = 0 ;
24919 char * kwnames[] = {
24920 (char *) "self",(char *) "id", NULL
24921 };
24922
24923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24925 if (!SWIG_IsOK(res1)) {
24926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24927 }
24928 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24929 ecode2 = SWIG_AsVal_int(obj1, &val2);
24930 if (!SWIG_IsOK(ecode2)) {
24931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24932 }
24933 arg2 = static_cast< int >(val2);
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (arg1)->GetToolShortHelp(arg2);
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 {
24941#if wxUSE_UNICODE
24942 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24943#else
24944 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24945#endif
24946 }
24947 return resultobj;
24948fail:
24949 return NULL;
24950}
24951
24952
24953SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj = 0;
24955 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24956 int arg2 ;
24957 wxString *arg3 = 0 ;
24958 void *argp1 = 0 ;
24959 int res1 = 0 ;
24960 int val2 ;
24961 int ecode2 = 0 ;
24962 bool temp3 = false ;
24963 PyObject * obj0 = 0 ;
24964 PyObject * obj1 = 0 ;
24965 PyObject * obj2 = 0 ;
24966 char * kwnames[] = {
24967 (char *) "self",(char *) "id",(char *) "helpString", NULL
24968 };
24969
24970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24972 if (!SWIG_IsOK(res1)) {
24973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24974 }
24975 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24976 ecode2 = SWIG_AsVal_int(obj1, &val2);
24977 if (!SWIG_IsOK(ecode2)) {
24978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24979 }
24980 arg2 = static_cast< int >(val2);
24981 {
24982 arg3 = wxString_in_helper(obj2);
24983 if (arg3 == NULL) SWIG_fail;
24984 temp3 = true;
24985 }
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_Py_Void();
24993 {
24994 if (temp3)
24995 delete arg3;
24996 }
24997 return resultobj;
24998fail:
24999 {
25000 if (temp3)
25001 delete arg3;
25002 }
25003 return NULL;
25004}
25005
25006
25007SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25008 PyObject *resultobj = 0;
25009 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25010 int arg2 ;
25011 wxString result;
25012 void *argp1 = 0 ;
25013 int res1 = 0 ;
25014 int val2 ;
25015 int ecode2 = 0 ;
25016 PyObject * obj0 = 0 ;
25017 PyObject * obj1 = 0 ;
25018 char * kwnames[] = {
25019 (char *) "self",(char *) "id", NULL
25020 };
25021
25022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25024 if (!SWIG_IsOK(res1)) {
25025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25026 }
25027 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25028 ecode2 = SWIG_AsVal_int(obj1, &val2);
25029 if (!SWIG_IsOK(ecode2)) {
25030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25031 }
25032 arg2 = static_cast< int >(val2);
25033 {
25034 PyThreadState* __tstate = wxPyBeginAllowThreads();
25035 result = (arg1)->GetToolLongHelp(arg2);
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 {
25040#if wxUSE_UNICODE
25041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25042#else
25043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25044#endif
25045 }
25046 return resultobj;
25047fail:
25048 return NULL;
25049}
25050
25051
25052SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj = 0;
25054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25055 int arg2 ;
25056 int arg3 ;
25057 void *argp1 = 0 ;
25058 int res1 = 0 ;
25059 int val2 ;
25060 int ecode2 = 0 ;
25061 int val3 ;
25062 int ecode3 = 0 ;
25063 PyObject * obj0 = 0 ;
25064 PyObject * obj1 = 0 ;
25065 PyObject * obj2 = 0 ;
25066 char * kwnames[] = {
25067 (char *) "self",(char *) "x",(char *) "y", NULL
25068 };
25069
25070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25072 if (!SWIG_IsOK(res1)) {
25073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25074 }
25075 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25076 ecode2 = SWIG_AsVal_int(obj1, &val2);
25077 if (!SWIG_IsOK(ecode2)) {
25078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25079 }
25080 arg2 = static_cast< int >(val2);
25081 ecode3 = SWIG_AsVal_int(obj2, &val3);
25082 if (!SWIG_IsOK(ecode3)) {
25083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25084 }
25085 arg3 = static_cast< int >(val3);
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 (arg1)->SetMargins(arg2,arg3);
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 resultobj = SWIG_Py_Void();
25093 return resultobj;
25094fail:
25095 return NULL;
25096}
25097
25098
25099SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25100 PyObject *resultobj = 0;
25101 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25102 wxSize *arg2 = 0 ;
25103 void *argp1 = 0 ;
25104 int res1 = 0 ;
25105 wxSize temp2 ;
25106 PyObject * obj0 = 0 ;
25107 PyObject * obj1 = 0 ;
25108 char * kwnames[] = {
25109 (char *) "self",(char *) "size", NULL
25110 };
25111
25112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25114 if (!SWIG_IsOK(res1)) {
25115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25116 }
25117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25118 {
25119 arg2 = &temp2;
25120 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25121 }
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 (arg1)->SetMargins((wxSize const &)*arg2);
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 resultobj = SWIG_Py_Void();
25129 return resultobj;
25130fail:
25131 return NULL;
25132}
25133
25134
25135SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25136 PyObject *resultobj = 0;
25137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25138 int arg2 ;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 int val2 ;
25142 int ecode2 = 0 ;
25143 PyObject * obj0 = 0 ;
25144 PyObject * obj1 = 0 ;
25145 char * kwnames[] = {
25146 (char *) "self",(char *) "packing", NULL
25147 };
25148
25149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25151 if (!SWIG_IsOK(res1)) {
25152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25153 }
25154 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25155 ecode2 = SWIG_AsVal_int(obj1, &val2);
25156 if (!SWIG_IsOK(ecode2)) {
25157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25158 }
25159 arg2 = static_cast< int >(val2);
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 (arg1)->SetToolPacking(arg2);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_Py_Void();
25167 return resultobj;
25168fail:
25169 return NULL;
25170}
25171
25172
25173SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25174 PyObject *resultobj = 0;
25175 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25176 int arg2 ;
25177 void *argp1 = 0 ;
25178 int res1 = 0 ;
25179 int val2 ;
25180 int ecode2 = 0 ;
25181 PyObject * obj0 = 0 ;
25182 PyObject * obj1 = 0 ;
25183 char * kwnames[] = {
25184 (char *) "self",(char *) "separation", NULL
25185 };
25186
25187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25189 if (!SWIG_IsOK(res1)) {
25190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25191 }
25192 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25193 ecode2 = SWIG_AsVal_int(obj1, &val2);
25194 if (!SWIG_IsOK(ecode2)) {
25195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25196 }
25197 arg2 = static_cast< int >(val2);
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 (arg1)->SetToolSeparation(arg2);
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 resultobj = SWIG_Py_Void();
25205 return resultobj;
25206fail:
25207 return NULL;
d55e5bfc
RD
25208}
25209
25210
1bd55598
RD
25211SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25212 PyObject *resultobj = 0;
25213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25214 wxSize result;
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
25217 PyObject *swig_obj[1] ;
25218
25219 if (!args) SWIG_fail;
25220 swig_obj[0] = args;
25221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25222 if (!SWIG_IsOK(res1)) {
25223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25224 }
25225 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (arg1)->GetToolMargins();
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25233 return resultobj;
25234fail:
25235 return NULL;
d55e5bfc
RD
25236}
25237
25238
1bd55598
RD
25239SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25240 PyObject *resultobj = 0;
25241 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25242 wxSize result;
25243 void *argp1 = 0 ;
25244 int res1 = 0 ;
25245 PyObject *swig_obj[1] ;
25246
25247 if (!args) SWIG_fail;
25248 swig_obj[0] = args;
25249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25250 if (!SWIG_IsOK(res1)) {
25251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25252 }
25253 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 result = (arg1)->GetMargins();
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25261 return resultobj;
25262fail:
25263 return NULL;
d55e5bfc
RD
25264}
25265
25266
1bd55598
RD
25267SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25268 PyObject *resultobj = 0;
25269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25270 int result;
25271 void *argp1 = 0 ;
25272 int res1 = 0 ;
25273 PyObject *swig_obj[1] ;
25274
25275 if (!args) SWIG_fail;
25276 swig_obj[0] = args;
25277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 {
25283 PyThreadState* __tstate = wxPyBeginAllowThreads();
25284 result = (int)(arg1)->GetToolPacking();
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_From_int(static_cast< int >(result));
25289 return resultobj;
25290fail:
25291 return NULL;
d55e5bfc
RD
25292}
25293
25294
1bd55598
RD
25295SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25296 PyObject *resultobj = 0;
25297 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25298 int result;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 PyObject *swig_obj[1] ;
25302
25303 if (!args) SWIG_fail;
25304 swig_obj[0] = args;
25305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25308 }
25309 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25310 {
25311 PyThreadState* __tstate = wxPyBeginAllowThreads();
25312 result = (int)(arg1)->GetToolSeparation();
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_From_int(static_cast< int >(result));
25317 return resultobj;
25318fail:
25319 return NULL;
25320}
25321
25322
25323SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25324 PyObject *resultobj = 0;
25325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25326 int arg2 ;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 int val2 ;
25330 int ecode2 = 0 ;
25331 PyObject * obj0 = 0 ;
25332 PyObject * obj1 = 0 ;
25333 char * kwnames[] = {
25334 (char *) "self",(char *) "nRows", NULL
25335 };
25336
25337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25341 }
25342 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25343 ecode2 = SWIG_AsVal_int(obj1, &val2);
25344 if (!SWIG_IsOK(ecode2)) {
25345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25346 }
25347 arg2 = static_cast< int >(val2);
25348 {
25349 PyThreadState* __tstate = wxPyBeginAllowThreads();
25350 (arg1)->SetRows(arg2);
25351 wxPyEndAllowThreads(__tstate);
25352 if (PyErr_Occurred()) SWIG_fail;
25353 }
25354 resultobj = SWIG_Py_Void();
25355 return resultobj;
25356fail:
25357 return NULL;
25358}
25359
25360
25361SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25362 PyObject *resultobj = 0;
25363 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25364 int arg2 ;
25365 int arg3 ;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 int val2 ;
25369 int ecode2 = 0 ;
25370 int val3 ;
25371 int ecode3 = 0 ;
25372 PyObject * obj0 = 0 ;
25373 PyObject * obj1 = 0 ;
25374 PyObject * obj2 = 0 ;
25375 char * kwnames[] = {
25376 (char *) "self",(char *) "rows",(char *) "cols", NULL
25377 };
25378
25379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25381 if (!SWIG_IsOK(res1)) {
25382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25383 }
25384 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25385 ecode2 = SWIG_AsVal_int(obj1, &val2);
25386 if (!SWIG_IsOK(ecode2)) {
25387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25388 }
25389 arg2 = static_cast< int >(val2);
25390 ecode3 = SWIG_AsVal_int(obj2, &val3);
25391 if (!SWIG_IsOK(ecode3)) {
25392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25393 }
25394 arg3 = static_cast< int >(val3);
25395 {
25396 PyThreadState* __tstate = wxPyBeginAllowThreads();
25397 (arg1)->SetMaxRowsCols(arg2,arg3);
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_Py_Void();
25402 return resultobj;
25403fail:
25404 return NULL;
d55e5bfc
RD
25405}
25406
25407
1bd55598
RD
25408SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25409 PyObject *resultobj = 0;
25410 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25411 int result;
25412 void *argp1 = 0 ;
25413 int res1 = 0 ;
25414 PyObject *swig_obj[1] ;
25415
25416 if (!args) SWIG_fail;
25417 swig_obj[0] = args;
25418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25419 if (!SWIG_IsOK(res1)) {
25420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25421 }
25422 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 result = (int)(arg1)->GetMaxRows();
25426 wxPyEndAllowThreads(__tstate);
25427 if (PyErr_Occurred()) SWIG_fail;
25428 }
25429 resultobj = SWIG_From_int(static_cast< int >(result));
25430 return resultobj;
25431fail:
25432 return NULL;
d55e5bfc
RD
25433}
25434
25435
1bd55598
RD
25436SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25437 PyObject *resultobj = 0;
25438 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25439 int result;
25440 void *argp1 = 0 ;
25441 int res1 = 0 ;
25442 PyObject *swig_obj[1] ;
25443
25444 if (!args) SWIG_fail;
25445 swig_obj[0] = args;
25446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25449 }
25450 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 result = (int)(arg1)->GetMaxCols();
25454 wxPyEndAllowThreads(__tstate);
25455 if (PyErr_Occurred()) SWIG_fail;
25456 }
25457 resultobj = SWIG_From_int(static_cast< int >(result));
25458 return resultobj;
25459fail:
25460 return NULL;
25461}
25462
25463
25464SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25465 PyObject *resultobj = 0;
25466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25467 wxSize *arg2 = 0 ;
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 wxSize temp2 ;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 char * kwnames[] = {
25474 (char *) "self",(char *) "size", NULL
25475 };
25476
25477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25479 if (!SWIG_IsOK(res1)) {
25480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25481 }
25482 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25483 {
25484 arg2 = &temp2;
25485 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25486 }
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 resultobj = SWIG_Py_Void();
25494 return resultobj;
25495fail:
25496 return NULL;
d55e5bfc
RD
25497}
25498
25499
1bd55598
RD
25500SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25501 PyObject *resultobj = 0;
25502 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25503 wxSize result;
25504 void *argp1 = 0 ;
25505 int res1 = 0 ;
25506 PyObject *swig_obj[1] ;
25507
25508 if (!args) SWIG_fail;
25509 swig_obj[0] = args;
25510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25511 if (!SWIG_IsOK(res1)) {
25512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25513 }
25514 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 result = (arg1)->GetToolBitmapSize();
25518 wxPyEndAllowThreads(__tstate);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25522 return resultobj;
25523fail:
25524 return NULL;
d55e5bfc
RD
25525}
25526
25527
1bd55598
RD
25528SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25529 PyObject *resultobj = 0;
25530 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25531 wxSize result;
25532 void *argp1 = 0 ;
25533 int res1 = 0 ;
25534 PyObject *swig_obj[1] ;
25535
25536 if (!args) SWIG_fail;
25537 swig_obj[0] = args;
25538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25539 if (!SWIG_IsOK(res1)) {
25540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25541 }
25542 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25543 {
25544 PyThreadState* __tstate = wxPyBeginAllowThreads();
25545 result = (arg1)->GetToolSize();
25546 wxPyEndAllowThreads(__tstate);
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
25549 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25550 return resultobj;
25551fail:
25552 return NULL;
25553}
25554
25555
25556SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25557 PyObject *resultobj = 0;
25558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25559 int arg2 ;
25560 int arg3 ;
25561 wxToolBarToolBase *result = 0 ;
25562 void *argp1 = 0 ;
25563 int res1 = 0 ;
25564 int val2 ;
25565 int ecode2 = 0 ;
25566 int val3 ;
25567 int ecode3 = 0 ;
25568 PyObject * obj0 = 0 ;
25569 PyObject * obj1 = 0 ;
25570 PyObject * obj2 = 0 ;
25571 char * kwnames[] = {
25572 (char *) "self",(char *) "x",(char *) "y", NULL
25573 };
25574
25575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25577 if (!SWIG_IsOK(res1)) {
25578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25579 }
25580 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25581 ecode2 = SWIG_AsVal_int(obj1, &val2);
25582 if (!SWIG_IsOK(ecode2)) {
25583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25584 }
25585 arg2 = static_cast< int >(val2);
25586 ecode3 = SWIG_AsVal_int(obj2, &val3);
25587 if (!SWIG_IsOK(ecode3)) {
25588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25589 }
25590 arg3 = static_cast< int >(val3);
25591 {
25592 PyThreadState* __tstate = wxPyBeginAllowThreads();
25593 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 {
25598 resultobj = wxPyMake_wxObject(result, (bool)0);
25599 }
25600 return resultobj;
25601fail:
25602 return NULL;
25603}
25604
25605
25606SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25607 PyObject *resultobj = 0;
25608 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25609 int arg2 ;
25610 wxToolBarToolBase *result = 0 ;
25611 void *argp1 = 0 ;
25612 int res1 = 0 ;
25613 int val2 ;
25614 int ecode2 = 0 ;
25615 PyObject * obj0 = 0 ;
25616 PyObject * obj1 = 0 ;
25617 char * kwnames[] = {
25618 (char *) "self",(char *) "toolid", NULL
25619 };
25620
25621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25623 if (!SWIG_IsOK(res1)) {
25624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25625 }
25626 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25627 ecode2 = SWIG_AsVal_int(obj1, &val2);
25628 if (!SWIG_IsOK(ecode2)) {
25629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25630 }
25631 arg2 = static_cast< int >(val2);
25632 {
25633 PyThreadState* __tstate = wxPyBeginAllowThreads();
25634 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25635 wxPyEndAllowThreads(__tstate);
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 {
25639 resultobj = wxPyMake_wxObject(result, (bool)0);
25640 }
25641 return resultobj;
25642fail:
25643 return NULL;
d55e5bfc
RD
25644}
25645
25646
1bd55598
RD
25647SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25648 PyObject *resultobj = 0;
25649 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25650 bool result;
25651 void *argp1 = 0 ;
25652 int res1 = 0 ;
25653 PyObject *swig_obj[1] ;
25654
25655 if (!args) SWIG_fail;
25656 swig_obj[0] = args;
25657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25658 if (!SWIG_IsOK(res1)) {
25659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25660 }
25661 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25662 {
25663 PyThreadState* __tstate = wxPyBeginAllowThreads();
25664 result = (bool)(arg1)->IsVertical();
25665 wxPyEndAllowThreads(__tstate);
25666 if (PyErr_Occurred()) SWIG_fail;
25667 }
25668 {
25669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25670 }
25671 return resultobj;
25672fail:
25673 return NULL;
d55e5bfc
RD
25674}
25675
25676
1bd55598
RD
25677SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25678 PyObject *resultobj = 0;
25679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25680 size_t result;
25681 void *argp1 = 0 ;
25682 int res1 = 0 ;
25683 PyObject *swig_obj[1] ;
25684
25685 if (!args) SWIG_fail;
25686 swig_obj[0] = args;
25687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25688 if (!SWIG_IsOK(res1)) {
25689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25690 }
25691 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25699 return resultobj;
25700fail:
25701 return NULL;
25702}
25703
25704
25705SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25706 PyObject *obj;
25707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25708 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25709 return SWIG_Py_Void();
25710}
25711
25712SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25713 PyObject *resultobj = 0;
25714 wxWindow *arg1 = (wxWindow *) 0 ;
25715 int arg2 = (int) -1 ;
25716 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25717 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25718 wxSize const &arg4_defvalue = wxDefaultSize ;
25719 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25720 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25721 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25722 wxString *arg6 = (wxString *) &arg6_defvalue ;
25723 wxToolBar *result = 0 ;
25724 void *argp1 = 0 ;
25725 int res1 = 0 ;
25726 int val2 ;
25727 int ecode2 = 0 ;
25728 wxPoint temp3 ;
25729 wxSize temp4 ;
25730 long val5 ;
25731 int ecode5 = 0 ;
25732 bool temp6 = false ;
25733 PyObject * obj0 = 0 ;
25734 PyObject * obj1 = 0 ;
25735 PyObject * obj2 = 0 ;
25736 PyObject * obj3 = 0 ;
25737 PyObject * obj4 = 0 ;
25738 PyObject * obj5 = 0 ;
25739 char * kwnames[] = {
25740 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25741 };
25742
25743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25745 if (!SWIG_IsOK(res1)) {
25746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25747 }
25748 arg1 = reinterpret_cast< wxWindow * >(argp1);
25749 if (obj1) {
25750 ecode2 = SWIG_AsVal_int(obj1, &val2);
25751 if (!SWIG_IsOK(ecode2)) {
25752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25753 }
25754 arg2 = static_cast< int >(val2);
25755 }
25756 if (obj2) {
d55e5bfc 25757 {
1bd55598
RD
25758 arg3 = &temp3;
25759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25760 }
1bd55598
RD
25761 }
25762 if (obj3) {
d55e5bfc 25763 {
1bd55598
RD
25764 arg4 = &temp4;
25765 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25766 }
1bd55598
RD
25767 }
25768 if (obj4) {
25769 ecode5 = SWIG_AsVal_long(obj4, &val5);
25770 if (!SWIG_IsOK(ecode5)) {
25771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25772 }
25773 arg5 = static_cast< long >(val5);
25774 }
25775 if (obj5) {
36ed4f51 25776 {
1bd55598
RD
25777 arg6 = wxString_in_helper(obj5);
25778 if (arg6 == NULL) SWIG_fail;
25779 temp6 = true;
36ed4f51 25780 }
1bd55598
RD
25781 }
25782 {
25783 if (!wxPyCheckForApp()) SWIG_fail;
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25786 wxPyEndAllowThreads(__tstate);
25787 if (PyErr_Occurred()) SWIG_fail;
25788 }
25789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25790 {
25791 if (temp6)
25792 delete arg6;
25793 }
25794 return resultobj;
25795fail:
25796 {
25797 if (temp6)
25798 delete arg6;
25799 }
25800 return NULL;
d55e5bfc
RD
25801}
25802
25803
1bd55598
RD
25804SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25805 PyObject *resultobj = 0;
25806 wxToolBar *result = 0 ;
25807
25808 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25809 {
25810 if (!wxPyCheckForApp()) SWIG_fail;
25811 PyThreadState* __tstate = wxPyBeginAllowThreads();
25812 result = (wxToolBar *)new wxToolBar();
25813 wxPyEndAllowThreads(__tstate);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 }
25816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25817 return resultobj;
25818fail:
25819 return NULL;
25820}
25821
25822
25823SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25824 PyObject *resultobj = 0;
25825 wxToolBar *arg1 = (wxToolBar *) 0 ;
25826 wxWindow *arg2 = (wxWindow *) 0 ;
25827 int arg3 = (int) -1 ;
25828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25830 wxSize const &arg5_defvalue = wxDefaultSize ;
25831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25832 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25833 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25834 wxString *arg7 = (wxString *) &arg7_defvalue ;
25835 bool result;
25836 void *argp1 = 0 ;
25837 int res1 = 0 ;
25838 void *argp2 = 0 ;
25839 int res2 = 0 ;
25840 int val3 ;
25841 int ecode3 = 0 ;
25842 wxPoint temp4 ;
25843 wxSize temp5 ;
25844 long val6 ;
25845 int ecode6 = 0 ;
25846 bool temp7 = false ;
25847 PyObject * obj0 = 0 ;
25848 PyObject * obj1 = 0 ;
25849 PyObject * obj2 = 0 ;
25850 PyObject * obj3 = 0 ;
25851 PyObject * obj4 = 0 ;
25852 PyObject * obj5 = 0 ;
25853 PyObject * obj6 = 0 ;
25854 char * kwnames[] = {
25855 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25856 };
25857
25858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25860 if (!SWIG_IsOK(res1)) {
25861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25862 }
25863 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25864 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25865 if (!SWIG_IsOK(res2)) {
25866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25867 }
25868 arg2 = reinterpret_cast< wxWindow * >(argp2);
25869 if (obj2) {
25870 ecode3 = SWIG_AsVal_int(obj2, &val3);
25871 if (!SWIG_IsOK(ecode3)) {
25872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25873 }
25874 arg3 = static_cast< int >(val3);
25875 }
25876 if (obj3) {
d55e5bfc 25877 {
1bd55598
RD
25878 arg4 = &temp4;
25879 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25880 }
1bd55598
RD
25881 }
25882 if (obj4) {
d55e5bfc 25883 {
1bd55598
RD
25884 arg5 = &temp5;
25885 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25886 }
1bd55598
RD
25887 }
25888 if (obj5) {
25889 ecode6 = SWIG_AsVal_long(obj5, &val6);
25890 if (!SWIG_IsOK(ecode6)) {
25891 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25892 }
25893 arg6 = static_cast< long >(val6);
25894 }
25895 if (obj6) {
36ed4f51 25896 {
1bd55598
RD
25897 arg7 = wxString_in_helper(obj6);
25898 if (arg7 == NULL) SWIG_fail;
25899 temp7 = true;
36ed4f51 25900 }
1bd55598
RD
25901 }
25902 {
25903 PyThreadState* __tstate = wxPyBeginAllowThreads();
25904 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 {
25909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25910 }
25911 {
25912 if (temp7)
25913 delete arg7;
25914 }
25915 return resultobj;
25916fail:
25917 {
25918 if (temp7)
25919 delete arg7;
25920 }
25921 return NULL;
25922}
25923
25924
1bd55598
RD
25925SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25926 PyObject *resultobj = 0;
25927 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25928 SwigValueWrapper<wxVisualAttributes > result;
25929 int val1 ;
25930 int ecode1 = 0 ;
25931 PyObject * obj0 = 0 ;
25932 char * kwnames[] = {
25933 (char *) "variant", NULL
25934 };
25935
25936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25937 if (obj0) {
25938 ecode1 = SWIG_AsVal_int(obj0, &val1);
25939 if (!SWIG_IsOK(ecode1)) {
25940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25941 }
25942 arg1 = static_cast< wxWindowVariant >(val1);
25943 }
25944 {
25945 if (!wxPyCheckForApp()) SWIG_fail;
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = wxToolBar::GetClassDefaultAttributes(arg1);
25948 wxPyEndAllowThreads(__tstate);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25952 return resultobj;
25953fail:
25954 return NULL;
d55e5bfc
RD
25955}
25956
25957
1bd55598
RD
25958SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25959 PyObject *obj;
25960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25961 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25962 return SWIG_Py_Void();
d55e5bfc
RD
25963}
25964
1bd55598
RD
25965SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 return SWIG_Python_InitShadowInstance(args);
25967}
d55e5bfc 25968
1bd55598
RD
25969SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25970 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25971 return 1;
d55e5bfc
RD
25972}
25973
25974
1bd55598
RD
25975SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25976 PyObject *pyobj = 0;
25977
25978 {
25979#if wxUSE_UNICODE
25980 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25981#else
25982 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25983#endif
25984 }
25985 return pyobj;
25986}
25987
25988
25989SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj = 0;
25991 wxColour const &arg1_defvalue = wxNullColour ;
25992 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25993 wxColour const &arg2_defvalue = wxNullColour ;
25994 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25995 wxFont const &arg3_defvalue = wxNullFont ;
25996 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25997 wxListItemAttr *result = 0 ;
25998 wxColour temp1 ;
25999 wxColour temp2 ;
26000 void *argp3 = 0 ;
26001 int res3 = 0 ;
26002 PyObject * obj0 = 0 ;
26003 PyObject * obj1 = 0 ;
26004 PyObject * obj2 = 0 ;
26005 char * kwnames[] = {
26006 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26007 };
26008
26009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26010 if (obj0) {
d55e5bfc 26011 {
1bd55598
RD
26012 arg1 = &temp1;
26013 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26014 }
1bd55598
RD
26015 }
26016 if (obj1) {
36ed4f51 26017 {
1bd55598
RD
26018 arg2 = &temp2;
26019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 26020 }
1bd55598
RD
26021 }
26022 if (obj2) {
26023 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26024 if (!SWIG_IsOK(res3)) {
26025 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 26026 }
1bd55598
RD
26027 if (!argp3) {
26028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 26029 }
1bd55598
RD
26030 arg3 = reinterpret_cast< wxFont * >(argp3);
26031 }
26032 {
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26039 return resultobj;
26040fail:
26041 return NULL;
d55e5bfc
RD
26042}
26043
26044
1bd55598
RD
26045SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26046 PyObject *resultobj = 0;
26047 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26048 void *argp1 = 0 ;
26049 int res1 = 0 ;
26050 PyObject *swig_obj[1] ;
26051
26052 if (!args) SWIG_fail;
26053 swig_obj[0] = args;
26054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26055 if (!SWIG_IsOK(res1)) {
26056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26057 }
26058 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26059 {
26060 PyThreadState* __tstate = wxPyBeginAllowThreads();
26061 delete arg1;
d55e5bfc 26062
1bd55598
RD
26063 wxPyEndAllowThreads(__tstate);
26064 if (PyErr_Occurred()) SWIG_fail;
26065 }
26066 resultobj = SWIG_Py_Void();
26067 return resultobj;
26068fail:
26069 return NULL;
26070}
26071
26072
26073SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26074 PyObject *resultobj = 0;
26075 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26076 wxColour *arg2 = 0 ;
26077 void *argp1 = 0 ;
26078 int res1 = 0 ;
26079 wxColour temp2 ;
26080 PyObject * obj0 = 0 ;
26081 PyObject * obj1 = 0 ;
26082 char * kwnames[] = {
26083 (char *) "self",(char *) "colText", NULL
26084 };
26085
26086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26088 if (!SWIG_IsOK(res1)) {
26089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26090 }
26091 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26092 {
26093 arg2 = &temp2;
26094 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26095 }
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 (arg1)->SetTextColour((wxColour const &)*arg2);
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 return resultobj;
26104fail:
26105 return NULL;
26106}
26107
26108
26109SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj = 0;
26111 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26112 wxColour *arg2 = 0 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 wxColour temp2 ;
26116 PyObject * obj0 = 0 ;
26117 PyObject * obj1 = 0 ;
26118 char * kwnames[] = {
26119 (char *) "self",(char *) "colBack", NULL
26120 };
26121
26122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26124 if (!SWIG_IsOK(res1)) {
26125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26126 }
26127 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26128 {
26129 arg2 = &temp2;
26130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26131 }
26132 {
26133 PyThreadState* __tstate = wxPyBeginAllowThreads();
26134 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26135 wxPyEndAllowThreads(__tstate);
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 resultobj = SWIG_Py_Void();
26139 return resultobj;
26140fail:
26141 return NULL;
26142}
26143
26144
26145SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26146 PyObject *resultobj = 0;
26147 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26148 wxFont *arg2 = 0 ;
26149 void *argp1 = 0 ;
26150 int res1 = 0 ;
26151 void *argp2 = 0 ;
26152 int res2 = 0 ;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 char * kwnames[] = {
26156 (char *) "self",(char *) "font", NULL
26157 };
26158
26159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26161 if (!SWIG_IsOK(res1)) {
26162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26163 }
26164 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26166 if (!SWIG_IsOK(res2)) {
26167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26168 }
26169 if (!argp2) {
26170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26171 }
26172 arg2 = reinterpret_cast< wxFont * >(argp2);
26173 {
26174 PyThreadState* __tstate = wxPyBeginAllowThreads();
26175 (arg1)->SetFont((wxFont const &)*arg2);
26176 wxPyEndAllowThreads(__tstate);
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 resultobj = SWIG_Py_Void();
26180 return resultobj;
26181fail:
26182 return NULL;
d55e5bfc
RD
26183}
26184
26185
1bd55598
RD
26186SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26187 PyObject *resultobj = 0;
26188 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26189 bool result;
26190 void *argp1 = 0 ;
26191 int res1 = 0 ;
26192 PyObject *swig_obj[1] ;
26193
26194 if (!args) SWIG_fail;
26195 swig_obj[0] = args;
26196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26197 if (!SWIG_IsOK(res1)) {
26198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26199 }
26200 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26201 {
26202 PyThreadState* __tstate = wxPyBeginAllowThreads();
26203 result = (bool)(arg1)->HasTextColour();
26204 wxPyEndAllowThreads(__tstate);
26205 if (PyErr_Occurred()) SWIG_fail;
26206 }
26207 {
26208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26209 }
26210 return resultobj;
26211fail:
26212 return NULL;
f20a2e1f
RD
26213}
26214
26215
1bd55598
RD
26216SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26217 PyObject *resultobj = 0;
26218 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26219 bool result;
26220 void *argp1 = 0 ;
26221 int res1 = 0 ;
26222 PyObject *swig_obj[1] ;
26223
26224 if (!args) SWIG_fail;
26225 swig_obj[0] = args;
26226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26227 if (!SWIG_IsOK(res1)) {
26228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26229 }
26230 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26231 {
26232 PyThreadState* __tstate = wxPyBeginAllowThreads();
26233 result = (bool)(arg1)->HasBackgroundColour();
26234 wxPyEndAllowThreads(__tstate);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 {
26238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26239 }
26240 return resultobj;
26241fail:
26242 return NULL;
d55e5bfc 26243}
1bd55598
RD
26244
26245
26246SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26247 PyObject *resultobj = 0;
26248 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26249 bool result;
26250 void *argp1 = 0 ;
26251 int res1 = 0 ;
26252 PyObject *swig_obj[1] ;
26253
26254 if (!args) SWIG_fail;
26255 swig_obj[0] = args;
26256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26257 if (!SWIG_IsOK(res1)) {
26258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26259 }
26260 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26261 {
26262 PyThreadState* __tstate = wxPyBeginAllowThreads();
26263 result = (bool)(arg1)->HasFont();
26264 wxPyEndAllowThreads(__tstate);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 {
26268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26269 }
26270 return resultobj;
26271fail:
26272 return NULL;
d55e5bfc
RD
26273}
26274
26275
1bd55598
RD
26276SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26277 PyObject *resultobj = 0;
26278 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26279 wxColour result;
26280 void *argp1 = 0 ;
26281 int res1 = 0 ;
26282 PyObject *swig_obj[1] ;
26283
26284 if (!args) SWIG_fail;
26285 swig_obj[0] = args;
26286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26287 if (!SWIG_IsOK(res1)) {
26288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26289 }
26290 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26291 {
26292 PyThreadState* __tstate = wxPyBeginAllowThreads();
26293 result = (arg1)->GetTextColour();
26294 wxPyEndAllowThreads(__tstate);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26298 return resultobj;
26299fail:
26300 return NULL;
d55e5bfc
RD
26301}
26302
26303
1bd55598
RD
26304SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26305 PyObject *resultobj = 0;
26306 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26307 wxColour result;
26308 void *argp1 = 0 ;
26309 int res1 = 0 ;
26310 PyObject *swig_obj[1] ;
26311
26312 if (!args) SWIG_fail;
26313 swig_obj[0] = args;
26314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26315 if (!SWIG_IsOK(res1)) {
26316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26317 }
26318 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 result = (arg1)->GetBackgroundColour();
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26326 return resultobj;
26327fail:
26328 return NULL;
d55e5bfc
RD
26329}
26330
26331
1bd55598
RD
26332SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 PyObject *resultobj = 0;
26334 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26335 wxFont result;
26336 void *argp1 = 0 ;
26337 int res1 = 0 ;
26338 PyObject *swig_obj[1] ;
26339
26340 if (!args) SWIG_fail;
26341 swig_obj[0] = args;
26342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26345 }
26346 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 result = (arg1)->GetFont();
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26354 return resultobj;
26355fail:
26356 return NULL;
26357}
26358
26359
26360SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26361 PyObject *resultobj = 0;
26362 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26363 wxListItemAttr *arg2 = 0 ;
26364 void *argp1 = 0 ;
26365 int res1 = 0 ;
26366 void *argp2 = 0 ;
26367 int res2 = 0 ;
26368 PyObject * obj0 = 0 ;
26369 PyObject * obj1 = 0 ;
26370 char * kwnames[] = {
26371 (char *) "self",(char *) "source", NULL
26372 };
26373
26374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26376 if (!SWIG_IsOK(res1)) {
26377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26378 }
26379 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26381 if (!SWIG_IsOK(res2)) {
26382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26383 }
26384 if (!argp2) {
26385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26386 }
26387 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26388 {
26389 PyThreadState* __tstate = wxPyBeginAllowThreads();
26390 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26391 wxPyEndAllowThreads(__tstate);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 }
26394 resultobj = SWIG_Py_Void();
26395 return resultobj;
26396fail:
26397 return NULL;
121b9a67
RD
26398}
26399
26400
1bd55598
RD
26401SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26402 PyObject *resultobj = 0;
26403 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26404 void *argp1 = 0 ;
26405 int res1 = 0 ;
26406 PyObject *swig_obj[1] ;
26407
26408 if (!args) SWIG_fail;
26409 swig_obj[0] = args;
26410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26411 if (!SWIG_IsOK(res1)) {
26412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26413 }
26414 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26415 {
26416 PyThreadState* __tstate = wxPyBeginAllowThreads();
26417 wxListItemAttr_Destroy(arg1);
26418 wxPyEndAllowThreads(__tstate);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 resultobj = SWIG_Py_Void();
26422 return resultobj;
26423fail:
26424 return NULL;
121b9a67
RD
26425}
26426
26427
1bd55598
RD
26428SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26429 PyObject *obj;
26430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26431 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26432 return SWIG_Py_Void();
121b9a67
RD
26433}
26434
1bd55598
RD
26435SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26436 return SWIG_Python_InitShadowInstance(args);
26437}
121b9a67 26438
1bd55598
RD
26439SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26440 PyObject *resultobj = 0;
26441 wxListItem *result = 0 ;
26442
26443 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 result = (wxListItem *)new wxListItem();
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
3ecece7e 26450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
26451 return resultobj;
26452fail:
26453 return NULL;
121b9a67
RD
26454}
26455
26456
1bd55598
RD
26457SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26458 PyObject *resultobj = 0;
26459 wxListItem *arg1 = (wxListItem *) 0 ;
26460 void *argp1 = 0 ;
26461 int res1 = 0 ;
26462 PyObject *swig_obj[1] ;
26463
26464 if (!args) SWIG_fail;
26465 swig_obj[0] = args;
26466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26467 if (!SWIG_IsOK(res1)) {
26468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26469 }
26470 arg1 = reinterpret_cast< wxListItem * >(argp1);
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 delete arg1;
f20a2e1f 26474
1bd55598
RD
26475 wxPyEndAllowThreads(__tstate);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 resultobj = SWIG_Py_Void();
26479 return resultobj;
26480fail:
26481 return NULL;
f20a2e1f
RD
26482}
26483
26484
1bd55598
RD
26485SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26486 PyObject *resultobj = 0;
26487 wxListItem *arg1 = (wxListItem *) 0 ;
26488 void *argp1 = 0 ;
26489 int res1 = 0 ;
26490 PyObject *swig_obj[1] ;
26491
26492 if (!args) SWIG_fail;
26493 swig_obj[0] = args;
26494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26495 if (!SWIG_IsOK(res1)) {
26496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26497 }
26498 arg1 = reinterpret_cast< wxListItem * >(argp1);
26499 {
26500 PyThreadState* __tstate = wxPyBeginAllowThreads();
26501 (arg1)->Clear();
26502 wxPyEndAllowThreads(__tstate);
26503 if (PyErr_Occurred()) SWIG_fail;
26504 }
26505 resultobj = SWIG_Py_Void();
26506 return resultobj;
26507fail:
26508 return NULL;
d55e5bfc 26509}
1bd55598
RD
26510
26511
26512SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26513 PyObject *resultobj = 0;
26514 wxListItem *arg1 = (wxListItem *) 0 ;
26515 void *argp1 = 0 ;
26516 int res1 = 0 ;
26517 PyObject *swig_obj[1] ;
26518
26519 if (!args) SWIG_fail;
26520 swig_obj[0] = args;
26521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26522 if (!SWIG_IsOK(res1)) {
26523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26524 }
26525 arg1 = reinterpret_cast< wxListItem * >(argp1);
26526 {
26527 PyThreadState* __tstate = wxPyBeginAllowThreads();
26528 (arg1)->ClearAttributes();
26529 wxPyEndAllowThreads(__tstate);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 resultobj = SWIG_Py_Void();
26533 return resultobj;
26534fail:
26535 return NULL;
26536}
26537
26538
26539SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26540 PyObject *resultobj = 0;
26541 wxListItem *arg1 = (wxListItem *) 0 ;
26542 long arg2 ;
26543 void *argp1 = 0 ;
26544 int res1 = 0 ;
26545 long val2 ;
26546 int ecode2 = 0 ;
26547 PyObject * obj0 = 0 ;
26548 PyObject * obj1 = 0 ;
26549 char * kwnames[] = {
26550 (char *) "self",(char *) "mask", NULL
26551 };
26552
26553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26555 if (!SWIG_IsOK(res1)) {
26556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26557 }
26558 arg1 = reinterpret_cast< wxListItem * >(argp1);
26559 ecode2 = SWIG_AsVal_long(obj1, &val2);
26560 if (!SWIG_IsOK(ecode2)) {
26561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26562 }
26563 arg2 = static_cast< long >(val2);
26564 {
26565 PyThreadState* __tstate = wxPyBeginAllowThreads();
26566 (arg1)->SetMask(arg2);
26567 wxPyEndAllowThreads(__tstate);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 }
26570 resultobj = SWIG_Py_Void();
26571 return resultobj;
26572fail:
26573 return NULL;
26574}
26575
26576
26577SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26578 PyObject *resultobj = 0;
26579 wxListItem *arg1 = (wxListItem *) 0 ;
26580 long arg2 ;
26581 void *argp1 = 0 ;
26582 int res1 = 0 ;
26583 long val2 ;
26584 int ecode2 = 0 ;
26585 PyObject * obj0 = 0 ;
26586 PyObject * obj1 = 0 ;
26587 char * kwnames[] = {
26588 (char *) "self",(char *) "id", NULL
26589 };
26590
26591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26593 if (!SWIG_IsOK(res1)) {
26594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26595 }
26596 arg1 = reinterpret_cast< wxListItem * >(argp1);
26597 ecode2 = SWIG_AsVal_long(obj1, &val2);
26598 if (!SWIG_IsOK(ecode2)) {
26599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26600 }
26601 arg2 = static_cast< long >(val2);
26602 {
26603 PyThreadState* __tstate = wxPyBeginAllowThreads();
26604 (arg1)->SetId(arg2);
26605 wxPyEndAllowThreads(__tstate);
26606 if (PyErr_Occurred()) SWIG_fail;
26607 }
26608 resultobj = SWIG_Py_Void();
26609 return resultobj;
26610fail:
26611 return NULL;
26612}
26613
26614
26615SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26616 PyObject *resultobj = 0;
26617 wxListItem *arg1 = (wxListItem *) 0 ;
26618 int arg2 ;
26619 void *argp1 = 0 ;
26620 int res1 = 0 ;
26621 int val2 ;
26622 int ecode2 = 0 ;
26623 PyObject * obj0 = 0 ;
26624 PyObject * obj1 = 0 ;
26625 char * kwnames[] = {
26626 (char *) "self",(char *) "col", NULL
26627 };
26628
26629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26631 if (!SWIG_IsOK(res1)) {
26632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26633 }
26634 arg1 = reinterpret_cast< wxListItem * >(argp1);
26635 ecode2 = SWIG_AsVal_int(obj1, &val2);
26636 if (!SWIG_IsOK(ecode2)) {
26637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26638 }
26639 arg2 = static_cast< int >(val2);
26640 {
26641 PyThreadState* __tstate = wxPyBeginAllowThreads();
26642 (arg1)->SetColumn(arg2);
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 resultobj = SWIG_Py_Void();
26647 return resultobj;
26648fail:
26649 return NULL;
26650}
26651
26652
26653SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj = 0;
26655 wxListItem *arg1 = (wxListItem *) 0 ;
26656 long arg2 ;
26657 void *argp1 = 0 ;
26658 int res1 = 0 ;
26659 long val2 ;
26660 int ecode2 = 0 ;
26661 PyObject * obj0 = 0 ;
26662 PyObject * obj1 = 0 ;
26663 char * kwnames[] = {
26664 (char *) "self",(char *) "state", NULL
26665 };
26666
26667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26669 if (!SWIG_IsOK(res1)) {
26670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26671 }
26672 arg1 = reinterpret_cast< wxListItem * >(argp1);
26673 ecode2 = SWIG_AsVal_long(obj1, &val2);
26674 if (!SWIG_IsOK(ecode2)) {
26675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26676 }
26677 arg2 = static_cast< long >(val2);
26678 {
26679 PyThreadState* __tstate = wxPyBeginAllowThreads();
26680 (arg1)->SetState(arg2);
26681 wxPyEndAllowThreads(__tstate);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_Py_Void();
26685 return resultobj;
26686fail:
26687 return NULL;
26688}
26689
26690
26691SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj = 0;
26693 wxListItem *arg1 = (wxListItem *) 0 ;
26694 long arg2 ;
26695 void *argp1 = 0 ;
26696 int res1 = 0 ;
26697 long val2 ;
26698 int ecode2 = 0 ;
26699 PyObject * obj0 = 0 ;
26700 PyObject * obj1 = 0 ;
26701 char * kwnames[] = {
26702 (char *) "self",(char *) "stateMask", NULL
26703 };
26704
26705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26707 if (!SWIG_IsOK(res1)) {
26708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26709 }
26710 arg1 = reinterpret_cast< wxListItem * >(argp1);
26711 ecode2 = SWIG_AsVal_long(obj1, &val2);
26712 if (!SWIG_IsOK(ecode2)) {
26713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26714 }
26715 arg2 = static_cast< long >(val2);
26716 {
26717 PyThreadState* __tstate = wxPyBeginAllowThreads();
26718 (arg1)->SetStateMask(arg2);
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 resultobj = SWIG_Py_Void();
26723 return resultobj;
26724fail:
26725 return NULL;
26726}
26727
26728
26729SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26730 PyObject *resultobj = 0;
26731 wxListItem *arg1 = (wxListItem *) 0 ;
26732 wxString *arg2 = 0 ;
26733 void *argp1 = 0 ;
26734 int res1 = 0 ;
26735 bool temp2 = false ;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 char * kwnames[] = {
26739 (char *) "self",(char *) "text", NULL
26740 };
26741
26742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26744 if (!SWIG_IsOK(res1)) {
26745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26746 }
26747 arg1 = reinterpret_cast< wxListItem * >(argp1);
26748 {
26749 arg2 = wxString_in_helper(obj1);
26750 if (arg2 == NULL) SWIG_fail;
26751 temp2 = true;
26752 }
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 (arg1)->SetText((wxString const &)*arg2);
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 resultobj = SWIG_Py_Void();
26760 {
26761 if (temp2)
26762 delete arg2;
26763 }
26764 return resultobj;
26765fail:
26766 {
26767 if (temp2)
26768 delete arg2;
26769 }
26770 return NULL;
26771}
26772
26773
26774SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = 0;
26776 wxListItem *arg1 = (wxListItem *) 0 ;
26777 int arg2 ;
26778 void *argp1 = 0 ;
26779 int res1 = 0 ;
26780 int val2 ;
26781 int ecode2 = 0 ;
26782 PyObject * obj0 = 0 ;
26783 PyObject * obj1 = 0 ;
26784 char * kwnames[] = {
26785 (char *) "self",(char *) "image", NULL
26786 };
26787
26788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26790 if (!SWIG_IsOK(res1)) {
26791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26792 }
26793 arg1 = reinterpret_cast< wxListItem * >(argp1);
26794 ecode2 = SWIG_AsVal_int(obj1, &val2);
26795 if (!SWIG_IsOK(ecode2)) {
26796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26797 }
26798 arg2 = static_cast< int >(val2);
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 (arg1)->SetImage(arg2);
26802 wxPyEndAllowThreads(__tstate);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 }
26805 resultobj = SWIG_Py_Void();
26806 return resultobj;
26807fail:
26808 return NULL;
26809}
26810
26811
26812SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26813 PyObject *resultobj = 0;
26814 wxListItem *arg1 = (wxListItem *) 0 ;
26815 long arg2 ;
26816 void *argp1 = 0 ;
26817 int res1 = 0 ;
26818 long val2 ;
26819 int ecode2 = 0 ;
26820 PyObject * obj0 = 0 ;
26821 PyObject * obj1 = 0 ;
26822 char * kwnames[] = {
26823 (char *) "self",(char *) "data", NULL
26824 };
26825
26826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26828 if (!SWIG_IsOK(res1)) {
26829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26830 }
26831 arg1 = reinterpret_cast< wxListItem * >(argp1);
26832 ecode2 = SWIG_AsVal_long(obj1, &val2);
26833 if (!SWIG_IsOK(ecode2)) {
26834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26835 }
26836 arg2 = static_cast< long >(val2);
26837 {
26838 PyThreadState* __tstate = wxPyBeginAllowThreads();
26839 (arg1)->SetData(arg2);
26840 wxPyEndAllowThreads(__tstate);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 }
26843 resultobj = SWIG_Py_Void();
26844 return resultobj;
26845fail:
26846 return NULL;
26847}
26848
26849
26850SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26851 PyObject *resultobj = 0;
26852 wxListItem *arg1 = (wxListItem *) 0 ;
26853 int arg2 ;
26854 void *argp1 = 0 ;
26855 int res1 = 0 ;
26856 int val2 ;
26857 int ecode2 = 0 ;
26858 PyObject * obj0 = 0 ;
26859 PyObject * obj1 = 0 ;
26860 char * kwnames[] = {
26861 (char *) "self",(char *) "width", NULL
26862 };
26863
26864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26866 if (!SWIG_IsOK(res1)) {
26867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26868 }
26869 arg1 = reinterpret_cast< wxListItem * >(argp1);
26870 ecode2 = SWIG_AsVal_int(obj1, &val2);
26871 if (!SWIG_IsOK(ecode2)) {
26872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26873 }
26874 arg2 = static_cast< int >(val2);
26875 {
26876 PyThreadState* __tstate = wxPyBeginAllowThreads();
26877 (arg1)->SetWidth(arg2);
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 resultobj = SWIG_Py_Void();
26882 return resultobj;
26883fail:
26884 return NULL;
26885}
26886
26887
26888SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26889 PyObject *resultobj = 0;
26890 wxListItem *arg1 = (wxListItem *) 0 ;
26891 wxListColumnFormat arg2 ;
26892 void *argp1 = 0 ;
26893 int res1 = 0 ;
26894 int val2 ;
26895 int ecode2 = 0 ;
26896 PyObject * obj0 = 0 ;
26897 PyObject * obj1 = 0 ;
26898 char * kwnames[] = {
26899 (char *) "self",(char *) "align", NULL
26900 };
26901
26902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26904 if (!SWIG_IsOK(res1)) {
26905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26906 }
26907 arg1 = reinterpret_cast< wxListItem * >(argp1);
26908 ecode2 = SWIG_AsVal_int(obj1, &val2);
26909 if (!SWIG_IsOK(ecode2)) {
26910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26911 }
26912 arg2 = static_cast< wxListColumnFormat >(val2);
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 (arg1)->SetAlign(arg2);
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_Py_Void();
26920 return resultobj;
26921fail:
26922 return NULL;
26923}
26924
26925
26926SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj = 0;
26928 wxListItem *arg1 = (wxListItem *) 0 ;
26929 wxColour *arg2 = 0 ;
26930 void *argp1 = 0 ;
26931 int res1 = 0 ;
26932 wxColour temp2 ;
26933 PyObject * obj0 = 0 ;
26934 PyObject * obj1 = 0 ;
26935 char * kwnames[] = {
26936 (char *) "self",(char *) "colText", NULL
26937 };
26938
26939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26941 if (!SWIG_IsOK(res1)) {
26942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26943 }
26944 arg1 = reinterpret_cast< wxListItem * >(argp1);
26945 {
26946 arg2 = &temp2;
26947 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26948 }
26949 {
26950 PyThreadState* __tstate = wxPyBeginAllowThreads();
26951 (arg1)->SetTextColour((wxColour const &)*arg2);
26952 wxPyEndAllowThreads(__tstate);
26953 if (PyErr_Occurred()) SWIG_fail;
26954 }
26955 resultobj = SWIG_Py_Void();
26956 return resultobj;
26957fail:
26958 return NULL;
26959}
26960
26961
26962SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26963 PyObject *resultobj = 0;
26964 wxListItem *arg1 = (wxListItem *) 0 ;
26965 wxColour *arg2 = 0 ;
26966 void *argp1 = 0 ;
26967 int res1 = 0 ;
26968 wxColour temp2 ;
26969 PyObject * obj0 = 0 ;
26970 PyObject * obj1 = 0 ;
26971 char * kwnames[] = {
26972 (char *) "self",(char *) "colBack", NULL
26973 };
26974
26975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26977 if (!SWIG_IsOK(res1)) {
26978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26979 }
26980 arg1 = reinterpret_cast< wxListItem * >(argp1);
26981 {
26982 arg2 = &temp2;
26983 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26984 }
26985 {
26986 PyThreadState* __tstate = wxPyBeginAllowThreads();
26987 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26988 wxPyEndAllowThreads(__tstate);
26989 if (PyErr_Occurred()) SWIG_fail;
26990 }
26991 resultobj = SWIG_Py_Void();
26992 return resultobj;
26993fail:
26994 return NULL;
26995}
26996
26997
26998SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26999 PyObject *resultobj = 0;
27000 wxListItem *arg1 = (wxListItem *) 0 ;
27001 wxFont *arg2 = 0 ;
27002 void *argp1 = 0 ;
27003 int res1 = 0 ;
27004 void *argp2 = 0 ;
27005 int res2 = 0 ;
27006 PyObject * obj0 = 0 ;
27007 PyObject * obj1 = 0 ;
27008 char * kwnames[] = {
27009 (char *) "self",(char *) "font", NULL
27010 };
27011
27012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27014 if (!SWIG_IsOK(res1)) {
27015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27016 }
27017 arg1 = reinterpret_cast< wxListItem * >(argp1);
27018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27019 if (!SWIG_IsOK(res2)) {
27020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27021 }
27022 if (!argp2) {
27023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27024 }
27025 arg2 = reinterpret_cast< wxFont * >(argp2);
27026 {
27027 PyThreadState* __tstate = wxPyBeginAllowThreads();
27028 (arg1)->SetFont((wxFont const &)*arg2);
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
27032 resultobj = SWIG_Py_Void();
27033 return resultobj;
27034fail:
27035 return NULL;
d55e5bfc
RD
27036}
27037
27038
1bd55598
RD
27039SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27040 PyObject *resultobj = 0;
27041 wxListItem *arg1 = (wxListItem *) 0 ;
27042 long result;
27043 void *argp1 = 0 ;
27044 int res1 = 0 ;
27045 PyObject *swig_obj[1] ;
27046
27047 if (!args) SWIG_fail;
27048 swig_obj[0] = args;
27049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27050 if (!SWIG_IsOK(res1)) {
27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27052 }
27053 arg1 = reinterpret_cast< wxListItem * >(argp1);
27054 {
27055 PyThreadState* __tstate = wxPyBeginAllowThreads();
27056 result = (long)(arg1)->GetMask();
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 resultobj = SWIG_From_long(static_cast< long >(result));
27061 return resultobj;
27062fail:
27063 return NULL;
d55e5bfc
RD
27064}
27065
27066
1bd55598
RD
27067SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27068 PyObject *resultobj = 0;
27069 wxListItem *arg1 = (wxListItem *) 0 ;
27070 long result;
27071 void *argp1 = 0 ;
27072 int res1 = 0 ;
27073 PyObject *swig_obj[1] ;
27074
27075 if (!args) SWIG_fail;
27076 swig_obj[0] = args;
27077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27078 if (!SWIG_IsOK(res1)) {
27079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27080 }
27081 arg1 = reinterpret_cast< wxListItem * >(argp1);
27082 {
27083 PyThreadState* __tstate = wxPyBeginAllowThreads();
27084 result = (long)(arg1)->GetId();
27085 wxPyEndAllowThreads(__tstate);
27086 if (PyErr_Occurred()) SWIG_fail;
27087 }
27088 resultobj = SWIG_From_long(static_cast< long >(result));
27089 return resultobj;
27090fail:
27091 return NULL;
d55e5bfc
RD
27092}
27093
27094
1bd55598
RD
27095SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27096 PyObject *resultobj = 0;
27097 wxListItem *arg1 = (wxListItem *) 0 ;
27098 int result;
27099 void *argp1 = 0 ;
27100 int res1 = 0 ;
27101 PyObject *swig_obj[1] ;
27102
27103 if (!args) SWIG_fail;
27104 swig_obj[0] = args;
27105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27106 if (!SWIG_IsOK(res1)) {
27107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27108 }
27109 arg1 = reinterpret_cast< wxListItem * >(argp1);
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (int)(arg1)->GetColumn();
27113 wxPyEndAllowThreads(__tstate);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 resultobj = SWIG_From_int(static_cast< int >(result));
27117 return resultobj;
27118fail:
27119 return NULL;
d55e5bfc
RD
27120}
27121
27122
1bd55598
RD
27123SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27124 PyObject *resultobj = 0;
27125 wxListItem *arg1 = (wxListItem *) 0 ;
27126 long result;
27127 void *argp1 = 0 ;
27128 int res1 = 0 ;
27129 PyObject *swig_obj[1] ;
27130
27131 if (!args) SWIG_fail;
27132 swig_obj[0] = args;
27133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27136 }
27137 arg1 = reinterpret_cast< wxListItem * >(argp1);
27138 {
27139 PyThreadState* __tstate = wxPyBeginAllowThreads();
27140 result = (long)(arg1)->GetState();
27141 wxPyEndAllowThreads(__tstate);
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = SWIG_From_long(static_cast< long >(result));
27145 return resultobj;
27146fail:
27147 return NULL;
8fb0e70a
RD
27148}
27149
27150
1bd55598
RD
27151SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27152 PyObject *resultobj = 0;
27153 wxListItem *arg1 = (wxListItem *) 0 ;
27154 wxString *result = 0 ;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 PyObject *swig_obj[1] ;
27158
27159 if (!args) SWIG_fail;
27160 swig_obj[0] = args;
27161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27162 if (!SWIG_IsOK(res1)) {
27163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27164 }
27165 arg1 = reinterpret_cast< wxListItem * >(argp1);
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27168 {
1bd55598
RD
27169 wxString const &_result_ref = (arg1)->GetText();
27170 result = (wxString *) &_result_ref;
36ed4f51 27171 }
1bd55598
RD
27172 wxPyEndAllowThreads(__tstate);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 {
27176#if wxUSE_UNICODE
27177 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27178#else
27179 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27180#endif
27181 }
27182 return resultobj;
27183fail:
27184 return NULL;
d55e5bfc
RD
27185}
27186
27187
1bd55598
RD
27188SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27189 PyObject *resultobj = 0;
27190 wxListItem *arg1 = (wxListItem *) 0 ;
27191 int result;
27192 void *argp1 = 0 ;
27193 int res1 = 0 ;
27194 PyObject *swig_obj[1] ;
27195
27196 if (!args) SWIG_fail;
27197 swig_obj[0] = args;
27198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27199 if (!SWIG_IsOK(res1)) {
27200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27201 }
27202 arg1 = reinterpret_cast< wxListItem * >(argp1);
27203 {
27204 PyThreadState* __tstate = wxPyBeginAllowThreads();
27205 result = (int)(arg1)->GetImage();
27206 wxPyEndAllowThreads(__tstate);
27207 if (PyErr_Occurred()) SWIG_fail;
27208 }
27209 resultobj = SWIG_From_int(static_cast< int >(result));
27210 return resultobj;
27211fail:
27212 return NULL;
d55e5bfc
RD
27213}
27214
27215
1bd55598
RD
27216SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27217 PyObject *resultobj = 0;
27218 wxListItem *arg1 = (wxListItem *) 0 ;
27219 long result;
27220 void *argp1 = 0 ;
27221 int res1 = 0 ;
27222 PyObject *swig_obj[1] ;
27223
27224 if (!args) SWIG_fail;
27225 swig_obj[0] = args;
27226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27227 if (!SWIG_IsOK(res1)) {
27228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27229 }
27230 arg1 = reinterpret_cast< wxListItem * >(argp1);
27231 {
27232 PyThreadState* __tstate = wxPyBeginAllowThreads();
27233 result = (long)(arg1)->GetData();
27234 wxPyEndAllowThreads(__tstate);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
27237 resultobj = SWIG_From_long(static_cast< long >(result));
27238 return resultobj;
27239fail:
27240 return NULL;
d55e5bfc
RD
27241}
27242
27243
1bd55598
RD
27244SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxListItem *arg1 = (wxListItem *) 0 ;
27247 int result;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 PyObject *swig_obj[1] ;
27251
27252 if (!args) SWIG_fail;
27253 swig_obj[0] = args;
27254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27257 }
27258 arg1 = reinterpret_cast< wxListItem * >(argp1);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 result = (int)(arg1)->GetWidth();
27262 wxPyEndAllowThreads(__tstate);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 resultobj = SWIG_From_int(static_cast< int >(result));
27266 return resultobj;
27267fail:
27268 return NULL;
d55e5bfc
RD
27269}
27270
27271
1bd55598
RD
27272SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 wxListColumnFormat result;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 PyObject *swig_obj[1] ;
27279
27280 if (!args) SWIG_fail;
27281 swig_obj[0] = args;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 result = (wxListColumnFormat)(arg1)->GetAlign();
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_From_int(static_cast< int >(result));
27294 return resultobj;
27295fail:
27296 return NULL;
d55e5bfc
RD
27297}
27298
27299
1bd55598
RD
27300SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 PyObject *resultobj = 0;
27302 wxListItem *arg1 = (wxListItem *) 0 ;
27303 wxListItemAttr *result = 0 ;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (wxListItemAttr *)(arg1)->GetAttributes();
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27322 return resultobj;
27323fail:
27324 return NULL;
d55e5bfc
RD
27325}
27326
27327
1bd55598
RD
27328SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27329 PyObject *resultobj = 0;
27330 wxListItem *arg1 = (wxListItem *) 0 ;
27331 bool result;
27332 void *argp1 = 0 ;
27333 int res1 = 0 ;
27334 PyObject *swig_obj[1] ;
27335
27336 if (!args) SWIG_fail;
27337 swig_obj[0] = args;
27338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27339 if (!SWIG_IsOK(res1)) {
27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27341 }
27342 arg1 = reinterpret_cast< wxListItem * >(argp1);
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (bool)(arg1)->HasAttributes();
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 {
27350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27351 }
27352 return resultobj;
27353fail:
27354 return NULL;
d55e5bfc
RD
27355}
27356
27357
1bd55598
RD
27358SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27359 PyObject *resultobj = 0;
27360 wxListItem *arg1 = (wxListItem *) 0 ;
27361 wxColour result;
27362 void *argp1 = 0 ;
27363 int res1 = 0 ;
27364 PyObject *swig_obj[1] ;
27365
27366 if (!args) SWIG_fail;
27367 swig_obj[0] = args;
27368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27369 if (!SWIG_IsOK(res1)) {
27370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27371 }
27372 arg1 = reinterpret_cast< wxListItem * >(argp1);
27373 {
27374 PyThreadState* __tstate = wxPyBeginAllowThreads();
27375 result = ((wxListItem const *)arg1)->GetTextColour();
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27380 return resultobj;
27381fail:
27382 return NULL;
d55e5bfc
RD
27383}
27384
27385
1bd55598
RD
27386SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27387 PyObject *resultobj = 0;
27388 wxListItem *arg1 = (wxListItem *) 0 ;
27389 wxColour result;
27390 void *argp1 = 0 ;
27391 int res1 = 0 ;
27392 PyObject *swig_obj[1] ;
27393
27394 if (!args) SWIG_fail;
27395 swig_obj[0] = args;
27396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27397 if (!SWIG_IsOK(res1)) {
27398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27399 }
27400 arg1 = reinterpret_cast< wxListItem * >(argp1);
27401 {
27402 PyThreadState* __tstate = wxPyBeginAllowThreads();
27403 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27404 wxPyEndAllowThreads(__tstate);
27405 if (PyErr_Occurred()) SWIG_fail;
27406 }
27407 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27408 return resultobj;
27409fail:
27410 return NULL;
d55e5bfc
RD
27411}
27412
27413
1bd55598
RD
27414SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 wxFont result;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 PyObject *swig_obj[1] ;
27421
27422 if (!args) SWIG_fail;
27423 swig_obj[0] = args;
27424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27425 if (!SWIG_IsOK(res1)) {
27426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27427 }
27428 arg1 = reinterpret_cast< wxListItem * >(argp1);
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 result = ((wxListItem const *)arg1)->GetFont();
27432 wxPyEndAllowThreads(__tstate);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27436 return resultobj;
27437fail:
27438 return NULL;
27439}
27440
27441
27442SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27443 PyObject *resultobj = 0;
27444 wxListItem *arg1 = (wxListItem *) 0 ;
27445 long arg2 ;
27446 void *argp1 = 0 ;
27447 int res1 = 0 ;
27448 long val2 ;
27449 int ecode2 = 0 ;
27450 PyObject *swig_obj[2] ;
27451
27452 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27454 if (!SWIG_IsOK(res1)) {
27455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27456 }
27457 arg1 = reinterpret_cast< wxListItem * >(argp1);
27458 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27459 if (!SWIG_IsOK(ecode2)) {
27460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27461 }
27462 arg2 = static_cast< long >(val2);
27463 if (arg1) (arg1)->m_mask = arg2;
27464
27465 resultobj = SWIG_Py_Void();
27466 return resultobj;
27467fail:
27468 return NULL;
d55e5bfc
RD
27469}
27470
27471
1bd55598
RD
27472SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27473 PyObject *resultobj = 0;
27474 wxListItem *arg1 = (wxListItem *) 0 ;
27475 long result;
27476 void *argp1 = 0 ;
27477 int res1 = 0 ;
27478 PyObject *swig_obj[1] ;
27479
27480 if (!args) SWIG_fail;
27481 swig_obj[0] = args;
27482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27483 if (!SWIG_IsOK(res1)) {
27484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27485 }
27486 arg1 = reinterpret_cast< wxListItem * >(argp1);
27487 result = (long) ((arg1)->m_mask);
27488 resultobj = SWIG_From_long(static_cast< long >(result));
27489 return resultobj;
27490fail:
27491 return NULL;
27492}
27493
27494
27495SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27496 PyObject *resultobj = 0;
27497 wxListItem *arg1 = (wxListItem *) 0 ;
27498 long arg2 ;
27499 void *argp1 = 0 ;
27500 int res1 = 0 ;
27501 long val2 ;
27502 int ecode2 = 0 ;
27503 PyObject *swig_obj[2] ;
27504
27505 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27507 if (!SWIG_IsOK(res1)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27509 }
27510 arg1 = reinterpret_cast< wxListItem * >(argp1);
27511 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27512 if (!SWIG_IsOK(ecode2)) {
27513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27514 }
27515 arg2 = static_cast< long >(val2);
27516 if (arg1) (arg1)->m_itemId = arg2;
27517
27518 resultobj = SWIG_Py_Void();
27519 return resultobj;
27520fail:
27521 return NULL;
7e08d4ef
RD
27522}
27523
27524
1bd55598
RD
27525SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27526 PyObject *resultobj = 0;
27527 wxListItem *arg1 = (wxListItem *) 0 ;
27528 long result;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 PyObject *swig_obj[1] ;
27532
27533 if (!args) SWIG_fail;
27534 swig_obj[0] = args;
27535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27536 if (!SWIG_IsOK(res1)) {
27537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27538 }
27539 arg1 = reinterpret_cast< wxListItem * >(argp1);
27540 result = (long) ((arg1)->m_itemId);
27541 resultobj = SWIG_From_long(static_cast< long >(result));
27542 return resultobj;
27543fail:
27544 return NULL;
27545}
27546
27547
27548SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27549 PyObject *resultobj = 0;
27550 wxListItem *arg1 = (wxListItem *) 0 ;
27551 int arg2 ;
27552 void *argp1 = 0 ;
27553 int res1 = 0 ;
27554 int val2 ;
27555 int ecode2 = 0 ;
27556 PyObject *swig_obj[2] ;
27557
27558 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27560 if (!SWIG_IsOK(res1)) {
27561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27562 }
27563 arg1 = reinterpret_cast< wxListItem * >(argp1);
27564 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27565 if (!SWIG_IsOK(ecode2)) {
27566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27567 }
27568 arg2 = static_cast< int >(val2);
27569 if (arg1) (arg1)->m_col = arg2;
27570
27571 resultobj = SWIG_Py_Void();
27572 return resultobj;
27573fail:
27574 return NULL;
7e08d4ef
RD
27575}
27576
27577
1bd55598
RD
27578SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListItem *arg1 = (wxListItem *) 0 ;
27581 int result;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 PyObject *swig_obj[1] ;
27585
27586 if (!args) SWIG_fail;
27587 swig_obj[0] = args;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 result = (int) ((arg1)->m_col);
27594 resultobj = SWIG_From_int(static_cast< int >(result));
27595 return resultobj;
27596fail:
27597 return NULL;
27598}
27599
27600
27601SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27602 PyObject *resultobj = 0;
27603 wxListItem *arg1 = (wxListItem *) 0 ;
27604 long arg2 ;
27605 void *argp1 = 0 ;
27606 int res1 = 0 ;
27607 long val2 ;
27608 int ecode2 = 0 ;
27609 PyObject *swig_obj[2] ;
27610
27611 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListItem * >(argp1);
27617 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27618 if (!SWIG_IsOK(ecode2)) {
27619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27620 }
27621 arg2 = static_cast< long >(val2);
27622 if (arg1) (arg1)->m_state = arg2;
27623
27624 resultobj = SWIG_Py_Void();
27625 return resultobj;
27626fail:
27627 return NULL;
7e08d4ef
RD
27628}
27629
27630
1bd55598
RD
27631SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *resultobj = 0;
27633 wxListItem *arg1 = (wxListItem *) 0 ;
27634 long result;
27635 void *argp1 = 0 ;
27636 int res1 = 0 ;
27637 PyObject *swig_obj[1] ;
27638
27639 if (!args) SWIG_fail;
27640 swig_obj[0] = args;
27641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27642 if (!SWIG_IsOK(res1)) {
27643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27644 }
27645 arg1 = reinterpret_cast< wxListItem * >(argp1);
27646 result = (long) ((arg1)->m_state);
27647 resultobj = SWIG_From_long(static_cast< long >(result));
27648 return resultobj;
27649fail:
27650 return NULL;
27651}
27652
27653
27654SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxListItem *arg1 = (wxListItem *) 0 ;
27657 long arg2 ;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 long val2 ;
27661 int ecode2 = 0 ;
27662 PyObject *swig_obj[2] ;
27663
27664 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27668 }
27669 arg1 = reinterpret_cast< wxListItem * >(argp1);
27670 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27671 if (!SWIG_IsOK(ecode2)) {
27672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27673 }
27674 arg2 = static_cast< long >(val2);
27675 if (arg1) (arg1)->m_stateMask = arg2;
27676
27677 resultobj = SWIG_Py_Void();
27678 return resultobj;
27679fail:
27680 return NULL;
7e08d4ef
RD
27681}
27682
27683
1bd55598
RD
27684SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27685 PyObject *resultobj = 0;
27686 wxListItem *arg1 = (wxListItem *) 0 ;
27687 long result;
27688 void *argp1 = 0 ;
27689 int res1 = 0 ;
27690 PyObject *swig_obj[1] ;
27691
27692 if (!args) SWIG_fail;
27693 swig_obj[0] = args;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27697 }
27698 arg1 = reinterpret_cast< wxListItem * >(argp1);
27699 result = (long) ((arg1)->m_stateMask);
27700 resultobj = SWIG_From_long(static_cast< long >(result));
27701 return resultobj;
27702fail:
27703 return NULL;
27704}
27705
27706
27707SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27708 PyObject *resultobj = 0;
27709 wxListItem *arg1 = (wxListItem *) 0 ;
27710 wxString *arg2 = (wxString *) 0 ;
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
27713 bool temp2 = false ;
27714 PyObject *swig_obj[2] ;
27715
27716 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27718 if (!SWIG_IsOK(res1)) {
27719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27720 }
27721 arg1 = reinterpret_cast< wxListItem * >(argp1);
27722 {
27723 arg2 = wxString_in_helper(swig_obj[1]);
27724 if (arg2 == NULL) SWIG_fail;
27725 temp2 = true;
27726 }
27727 if (arg1) (arg1)->m_text = *arg2;
27728
27729 resultobj = SWIG_Py_Void();
27730 {
27731 if (temp2)
27732 delete arg2;
27733 }
27734 return resultobj;
27735fail:
27736 {
27737 if (temp2)
27738 delete arg2;
27739 }
27740 return NULL;
7e08d4ef
RD
27741}
27742
27743
1bd55598
RD
27744SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27745 PyObject *resultobj = 0;
27746 wxListItem *arg1 = (wxListItem *) 0 ;
27747 wxString *result = 0 ;
27748 void *argp1 = 0 ;
27749 int res1 = 0 ;
27750 PyObject *swig_obj[1] ;
27751
27752 if (!args) SWIG_fail;
27753 swig_obj[0] = args;
27754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27755 if (!SWIG_IsOK(res1)) {
27756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27757 }
27758 arg1 = reinterpret_cast< wxListItem * >(argp1);
27759 result = (wxString *)& ((arg1)->m_text);
27760 {
27761#if wxUSE_UNICODE
27762 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27763#else
27764 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27765#endif
27766 }
27767 return resultobj;
27768fail:
27769 return NULL;
d55e5bfc
RD
27770}
27771
27772
1bd55598
RD
27773SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27774 PyObject *resultobj = 0;
27775 wxListItem *arg1 = (wxListItem *) 0 ;
27776 int arg2 ;
27777 void *argp1 = 0 ;
27778 int res1 = 0 ;
27779 int val2 ;
27780 int ecode2 = 0 ;
27781 PyObject *swig_obj[2] ;
27782
27783 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27785 if (!SWIG_IsOK(res1)) {
27786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27787 }
27788 arg1 = reinterpret_cast< wxListItem * >(argp1);
27789 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27790 if (!SWIG_IsOK(ecode2)) {
27791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27792 }
27793 arg2 = static_cast< int >(val2);
27794 if (arg1) (arg1)->m_image = arg2;
27795
27796 resultobj = SWIG_Py_Void();
27797 return resultobj;
27798fail:
27799 return NULL;
d55e5bfc
RD
27800}
27801
27802
1bd55598
RD
27803SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27804 PyObject *resultobj = 0;
27805 wxListItem *arg1 = (wxListItem *) 0 ;
27806 int result;
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
27809 PyObject *swig_obj[1] ;
27810
27811 if (!args) SWIG_fail;
27812 swig_obj[0] = args;
27813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27814 if (!SWIG_IsOK(res1)) {
27815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27816 }
27817 arg1 = reinterpret_cast< wxListItem * >(argp1);
27818 result = (int) ((arg1)->m_image);
27819 resultobj = SWIG_From_int(static_cast< int >(result));
27820 return resultobj;
27821fail:
27822 return NULL;
27823}
27824
27825
27826SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27827 PyObject *resultobj = 0;
27828 wxListItem *arg1 = (wxListItem *) 0 ;
27829 long arg2 ;
27830 void *argp1 = 0 ;
27831 int res1 = 0 ;
27832 long val2 ;
27833 int ecode2 = 0 ;
27834 PyObject *swig_obj[2] ;
27835
27836 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27838 if (!SWIG_IsOK(res1)) {
27839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27840 }
27841 arg1 = reinterpret_cast< wxListItem * >(argp1);
27842 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27843 if (!SWIG_IsOK(ecode2)) {
27844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27845 }
27846 arg2 = static_cast< long >(val2);
27847 if (arg1) (arg1)->m_data = arg2;
27848
27849 resultobj = SWIG_Py_Void();
27850 return resultobj;
27851fail:
27852 return NULL;
d55e5bfc
RD
27853}
27854
27855
1bd55598
RD
27856SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27857 PyObject *resultobj = 0;
27858 wxListItem *arg1 = (wxListItem *) 0 ;
27859 long result;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 PyObject *swig_obj[1] ;
27863
27864 if (!args) SWIG_fail;
27865 swig_obj[0] = args;
27866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27867 if (!SWIG_IsOK(res1)) {
27868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27869 }
27870 arg1 = reinterpret_cast< wxListItem * >(argp1);
27871 result = (long) ((arg1)->m_data);
27872 resultobj = SWIG_From_long(static_cast< long >(result));
27873 return resultobj;
27874fail:
27875 return NULL;
27876}
27877
27878
27879SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27880 PyObject *resultobj = 0;
27881 wxListItem *arg1 = (wxListItem *) 0 ;
27882 int arg2 ;
27883 void *argp1 = 0 ;
27884 int res1 = 0 ;
27885 int val2 ;
27886 int ecode2 = 0 ;
27887 PyObject *swig_obj[2] ;
27888
27889 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27891 if (!SWIG_IsOK(res1)) {
27892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27893 }
27894 arg1 = reinterpret_cast< wxListItem * >(argp1);
27895 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27896 if (!SWIG_IsOK(ecode2)) {
27897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27898 }
27899 arg2 = static_cast< int >(val2);
27900 if (arg1) (arg1)->m_format = arg2;
27901
27902 resultobj = SWIG_Py_Void();
27903 return resultobj;
27904fail:
27905 return NULL;
d55e5bfc
RD
27906}
27907
27908
1bd55598
RD
27909SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27910 PyObject *resultobj = 0;
27911 wxListItem *arg1 = (wxListItem *) 0 ;
27912 int result;
27913 void *argp1 = 0 ;
27914 int res1 = 0 ;
27915 PyObject *swig_obj[1] ;
27916
27917 if (!args) SWIG_fail;
27918 swig_obj[0] = args;
27919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27920 if (!SWIG_IsOK(res1)) {
27921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27922 }
27923 arg1 = reinterpret_cast< wxListItem * >(argp1);
27924 result = (int) ((arg1)->m_format);
27925 resultobj = SWIG_From_int(static_cast< int >(result));
27926 return resultobj;
27927fail:
27928 return NULL;
27929}
27930
27931
27932SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27933 PyObject *resultobj = 0;
27934 wxListItem *arg1 = (wxListItem *) 0 ;
27935 int arg2 ;
27936 void *argp1 = 0 ;
27937 int res1 = 0 ;
27938 int val2 ;
27939 int ecode2 = 0 ;
27940 PyObject *swig_obj[2] ;
27941
27942 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27944 if (!SWIG_IsOK(res1)) {
27945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27946 }
27947 arg1 = reinterpret_cast< wxListItem * >(argp1);
27948 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27949 if (!SWIG_IsOK(ecode2)) {
27950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27951 }
27952 arg2 = static_cast< int >(val2);
27953 if (arg1) (arg1)->m_width = arg2;
27954
27955 resultobj = SWIG_Py_Void();
27956 return resultobj;
27957fail:
27958 return NULL;
d55e5bfc
RD
27959}
27960
27961
1bd55598
RD
27962SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27963 PyObject *resultobj = 0;
27964 wxListItem *arg1 = (wxListItem *) 0 ;
27965 int result;
27966 void *argp1 = 0 ;
27967 int res1 = 0 ;
27968 PyObject *swig_obj[1] ;
27969
27970 if (!args) SWIG_fail;
27971 swig_obj[0] = args;
27972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27973 if (!SWIG_IsOK(res1)) {
27974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27975 }
27976 arg1 = reinterpret_cast< wxListItem * >(argp1);
27977 result = (int) ((arg1)->m_width);
27978 resultobj = SWIG_From_int(static_cast< int >(result));
27979 return resultobj;
27980fail:
27981 return NULL;
27982}
27983
27984
27985SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *obj;
27987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27988 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27989 return SWIG_Py_Void();
27990}
27991
27992SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27993 return SWIG_Python_InitShadowInstance(args);
27994}
27995
27996SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27997 PyObject *resultobj = 0;
27998 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27999 int arg2 = (int) 0 ;
28000 wxListEvent *result = 0 ;
28001 int val1 ;
28002 int ecode1 = 0 ;
28003 int val2 ;
28004 int ecode2 = 0 ;
28005 PyObject * obj0 = 0 ;
28006 PyObject * obj1 = 0 ;
28007 char * kwnames[] = {
28008 (char *) "commandType",(char *) "id", NULL
28009 };
28010
28011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28012 if (obj0) {
28013 ecode1 = SWIG_AsVal_int(obj0, &val1);
28014 if (!SWIG_IsOK(ecode1)) {
28015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28016 }
28017 arg1 = static_cast< wxEventType >(val1);
28018 }
28019 if (obj1) {
28020 ecode2 = SWIG_AsVal_int(obj1, &val2);
28021 if (!SWIG_IsOK(ecode2)) {
28022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28023 }
28024 arg2 = static_cast< int >(val2);
28025 }
28026 {
28027 PyThreadState* __tstate = wxPyBeginAllowThreads();
28028 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28029 wxPyEndAllowThreads(__tstate);
28030 if (PyErr_Occurred()) SWIG_fail;
28031 }
28032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28033 return resultobj;
28034fail:
28035 return NULL;
28036}
28037
28038
28039SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28040 PyObject *resultobj = 0;
28041 wxListEvent *arg1 = (wxListEvent *) 0 ;
28042 int arg2 ;
28043 void *argp1 = 0 ;
28044 int res1 = 0 ;
28045 int val2 ;
28046 int ecode2 = 0 ;
28047 PyObject *swig_obj[2] ;
28048
28049 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28051 if (!SWIG_IsOK(res1)) {
28052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28053 }
28054 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28055 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28056 if (!SWIG_IsOK(ecode2)) {
28057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28058 }
28059 arg2 = static_cast< int >(val2);
28060 if (arg1) (arg1)->m_code = arg2;
28061
28062 resultobj = SWIG_Py_Void();
28063 return resultobj;
28064fail:
28065 return NULL;
d55e5bfc
RD
28066}
28067
28068
1bd55598
RD
28069SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28070 PyObject *resultobj = 0;
28071 wxListEvent *arg1 = (wxListEvent *) 0 ;
28072 int result;
28073 void *argp1 = 0 ;
28074 int res1 = 0 ;
28075 PyObject *swig_obj[1] ;
28076
28077 if (!args) SWIG_fail;
28078 swig_obj[0] = args;
28079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28080 if (!SWIG_IsOK(res1)) {
28081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28082 }
28083 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28084 result = (int) ((arg1)->m_code);
28085 resultobj = SWIG_From_int(static_cast< int >(result));
28086 return resultobj;
28087fail:
28088 return NULL;
28089}
28090
28091
28092SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28093 PyObject *resultobj = 0;
28094 wxListEvent *arg1 = (wxListEvent *) 0 ;
28095 long arg2 ;
28096 void *argp1 = 0 ;
28097 int res1 = 0 ;
28098 long val2 ;
28099 int ecode2 = 0 ;
28100 PyObject *swig_obj[2] ;
28101
28102 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28104 if (!SWIG_IsOK(res1)) {
28105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28106 }
28107 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28108 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28109 if (!SWIG_IsOK(ecode2)) {
28110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28111 }
28112 arg2 = static_cast< long >(val2);
28113 if (arg1) (arg1)->m_oldItemIndex = arg2;
28114
28115 resultobj = SWIG_Py_Void();
28116 return resultobj;
28117fail:
28118 return NULL;
d55e5bfc
RD
28119}
28120
28121
1bd55598
RD
28122SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28123 PyObject *resultobj = 0;
28124 wxListEvent *arg1 = (wxListEvent *) 0 ;
28125 long result;
28126 void *argp1 = 0 ;
28127 int res1 = 0 ;
28128 PyObject *swig_obj[1] ;
28129
28130 if (!args) SWIG_fail;
28131 swig_obj[0] = args;
28132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28133 if (!SWIG_IsOK(res1)) {
28134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28135 }
28136 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28137 result = (long) ((arg1)->m_oldItemIndex);
28138 resultobj = SWIG_From_long(static_cast< long >(result));
28139 return resultobj;
28140fail:
28141 return NULL;
28142}
28143
28144
28145SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28146 PyObject *resultobj = 0;
28147 wxListEvent *arg1 = (wxListEvent *) 0 ;
28148 long arg2 ;
28149 void *argp1 = 0 ;
28150 int res1 = 0 ;
28151 long val2 ;
28152 int ecode2 = 0 ;
28153 PyObject *swig_obj[2] ;
28154
28155 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28157 if (!SWIG_IsOK(res1)) {
28158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28159 }
28160 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28161 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28162 if (!SWIG_IsOK(ecode2)) {
28163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28164 }
28165 arg2 = static_cast< long >(val2);
28166 if (arg1) (arg1)->m_itemIndex = arg2;
28167
28168 resultobj = SWIG_Py_Void();
28169 return resultobj;
28170fail:
28171 return NULL;
f20a2e1f
RD
28172}
28173
28174
1bd55598
RD
28175SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28176 PyObject *resultobj = 0;
28177 wxListEvent *arg1 = (wxListEvent *) 0 ;
28178 long result;
28179 void *argp1 = 0 ;
28180 int res1 = 0 ;
28181 PyObject *swig_obj[1] ;
28182
28183 if (!args) SWIG_fail;
28184 swig_obj[0] = args;
28185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28186 if (!SWIG_IsOK(res1)) {
28187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28188 }
28189 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28190 result = (long) ((arg1)->m_itemIndex);
28191 resultobj = SWIG_From_long(static_cast< long >(result));
28192 return resultobj;
28193fail:
28194 return NULL;
28195}
28196
28197
28198SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28199 PyObject *resultobj = 0;
28200 wxListEvent *arg1 = (wxListEvent *) 0 ;
28201 int arg2 ;
28202 void *argp1 = 0 ;
28203 int res1 = 0 ;
28204 int val2 ;
28205 int ecode2 = 0 ;
28206 PyObject *swig_obj[2] ;
28207
28208 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28210 if (!SWIG_IsOK(res1)) {
28211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28212 }
28213 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28214 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28215 if (!SWIG_IsOK(ecode2)) {
28216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28217 }
28218 arg2 = static_cast< int >(val2);
28219 if (arg1) (arg1)->m_col = arg2;
28220
28221 resultobj = SWIG_Py_Void();
28222 return resultobj;
28223fail:
28224 return NULL;
d55e5bfc
RD
28225}
28226
28227
1bd55598
RD
28228SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *resultobj = 0;
28230 wxListEvent *arg1 = (wxListEvent *) 0 ;
28231 int result;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 PyObject *swig_obj[1] ;
28235
28236 if (!args) SWIG_fail;
28237 swig_obj[0] = args;
28238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28239 if (!SWIG_IsOK(res1)) {
28240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28241 }
28242 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28243 result = (int) ((arg1)->m_col);
28244 resultobj = SWIG_From_int(static_cast< int >(result));
28245 return resultobj;
28246fail:
28247 return NULL;
28248}
28249
28250
28251SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 wxPoint *arg2 = (wxPoint *) 0 ;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 void *argp2 = 0 ;
28258 int res2 = 0 ;
28259 PyObject *swig_obj[2] ;
28260
28261 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28263 if (!SWIG_IsOK(res1)) {
28264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28265 }
28266 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28267 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28268 if (!SWIG_IsOK(res2)) {
28269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28270 }
28271 arg2 = reinterpret_cast< wxPoint * >(argp2);
28272 if (arg1) (arg1)->m_pointDrag = *arg2;
28273
28274 resultobj = SWIG_Py_Void();
28275 return resultobj;
28276fail:
28277 return NULL;
d55e5bfc
RD
28278}
28279
28280
1bd55598
RD
28281SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28282 PyObject *resultobj = 0;
28283 wxListEvent *arg1 = (wxListEvent *) 0 ;
28284 wxPoint *result = 0 ;
28285 void *argp1 = 0 ;
28286 int res1 = 0 ;
28287 PyObject *swig_obj[1] ;
28288
28289 if (!args) SWIG_fail;
28290 swig_obj[0] = args;
28291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28292 if (!SWIG_IsOK(res1)) {
28293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28294 }
28295 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28296 result = (wxPoint *)& ((arg1)->m_pointDrag);
28297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28298 return resultobj;
28299fail:
28300 return NULL;
28301}
28302
28303
28304SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 PyObject *resultobj = 0;
28306 wxListEvent *arg1 = (wxListEvent *) 0 ;
28307 wxListItem *result = 0 ;
28308 void *argp1 = 0 ;
28309 int res1 = 0 ;
28310 PyObject *swig_obj[1] ;
28311
28312 if (!args) SWIG_fail;
28313 swig_obj[0] = args;
28314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28315 if (!SWIG_IsOK(res1)) {
28316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28317 }
28318 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28319 result = (wxListItem *)& ((arg1)->m_item);
28320 {
3ecece7e 28321 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
28322 }
28323 return resultobj;
28324fail:
28325 return NULL;
d55e5bfc
RD
28326}
28327
28328
1bd55598
RD
28329SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *resultobj = 0;
28331 wxListEvent *arg1 = (wxListEvent *) 0 ;
28332 int result;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 PyObject *swig_obj[1] ;
28336
28337 if (!args) SWIG_fail;
28338 swig_obj[0] = args;
28339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28342 }
28343 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28344 {
28345 PyThreadState* __tstate = wxPyBeginAllowThreads();
28346 result = (int)(arg1)->GetKeyCode();
28347 wxPyEndAllowThreads(__tstate);
28348 if (PyErr_Occurred()) SWIG_fail;
28349 }
28350 resultobj = SWIG_From_int(static_cast< int >(result));
28351 return resultobj;
28352fail:
28353 return NULL;
d55e5bfc
RD
28354}
28355
28356
1bd55598
RD
28357SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28358 PyObject *resultobj = 0;
28359 wxListEvent *arg1 = (wxListEvent *) 0 ;
28360 long result;
28361 void *argp1 = 0 ;
28362 int res1 = 0 ;
28363 PyObject *swig_obj[1] ;
28364
28365 if (!args) SWIG_fail;
28366 swig_obj[0] = args;
28367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28368 if (!SWIG_IsOK(res1)) {
28369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28370 }
28371 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28372 {
28373 PyThreadState* __tstate = wxPyBeginAllowThreads();
28374 result = (long)(arg1)->GetIndex();
28375 wxPyEndAllowThreads(__tstate);
28376 if (PyErr_Occurred()) SWIG_fail;
28377 }
28378 resultobj = SWIG_From_long(static_cast< long >(result));
28379 return resultobj;
28380fail:
28381 return NULL;
d55e5bfc
RD
28382}
28383
28384
1bd55598
RD
28385SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28386 PyObject *resultobj = 0;
28387 wxListEvent *arg1 = (wxListEvent *) 0 ;
28388 int result;
28389 void *argp1 = 0 ;
28390 int res1 = 0 ;
28391 PyObject *swig_obj[1] ;
28392
28393 if (!args) SWIG_fail;
28394 swig_obj[0] = args;
28395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28396 if (!SWIG_IsOK(res1)) {
28397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28398 }
28399 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28400 {
28401 PyThreadState* __tstate = wxPyBeginAllowThreads();
28402 result = (int)(arg1)->GetColumn();
28403 wxPyEndAllowThreads(__tstate);
28404 if (PyErr_Occurred()) SWIG_fail;
28405 }
28406 resultobj = SWIG_From_int(static_cast< int >(result));
28407 return resultobj;
28408fail:
28409 return NULL;
d55e5bfc
RD
28410}
28411
28412
1bd55598
RD
28413SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28414 PyObject *resultobj = 0;
28415 wxListEvent *arg1 = (wxListEvent *) 0 ;
28416 wxPoint result;
28417 void *argp1 = 0 ;
28418 int res1 = 0 ;
28419 PyObject *swig_obj[1] ;
28420
28421 if (!args) SWIG_fail;
28422 swig_obj[0] = args;
28423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28424 if (!SWIG_IsOK(res1)) {
28425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28426 }
28427 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (arg1)->GetPoint();
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28435 return resultobj;
28436fail:
28437 return NULL;
d55e5bfc
RD
28438}
28439
28440
1bd55598
RD
28441SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28442 PyObject *resultobj = 0;
28443 wxListEvent *arg1 = (wxListEvent *) 0 ;
28444 wxString *result = 0 ;
28445 void *argp1 = 0 ;
28446 int res1 = 0 ;
28447 PyObject *swig_obj[1] ;
28448
28449 if (!args) SWIG_fail;
28450 swig_obj[0] = args;
28451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28452 if (!SWIG_IsOK(res1)) {
28453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28454 }
28455 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28456 {
28457 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28458 {
1bd55598
RD
28459 wxString const &_result_ref = (arg1)->GetLabel();
28460 result = (wxString *) &_result_ref;
d55e5bfc 28461 }
1bd55598
RD
28462 wxPyEndAllowThreads(__tstate);
28463 if (PyErr_Occurred()) SWIG_fail;
28464 }
28465 {
28466#if wxUSE_UNICODE
28467 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28468#else
28469 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28470#endif
28471 }
28472 return resultobj;
28473fail:
28474 return NULL;
d55e5bfc
RD
28475}
28476
28477
1bd55598
RD
28478SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28479 PyObject *resultobj = 0;
28480 wxListEvent *arg1 = (wxListEvent *) 0 ;
28481 wxString *result = 0 ;
28482 void *argp1 = 0 ;
28483 int res1 = 0 ;
28484 PyObject *swig_obj[1] ;
28485
28486 if (!args) SWIG_fail;
28487 swig_obj[0] = args;
28488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28489 if (!SWIG_IsOK(res1)) {
28490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28491 }
28492 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28493 {
28494 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28495 {
1bd55598
RD
28496 wxString const &_result_ref = (arg1)->GetText();
28497 result = (wxString *) &_result_ref;
36ed4f51 28498 }
1bd55598
RD
28499 wxPyEndAllowThreads(__tstate);
28500 if (PyErr_Occurred()) SWIG_fail;
28501 }
28502 {
28503#if wxUSE_UNICODE
28504 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28505#else
28506 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28507#endif
28508 }
28509 return resultobj;
28510fail:
28511 return NULL;
d55e5bfc
RD
28512}
28513
28514
1bd55598
RD
28515SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28516 PyObject *resultobj = 0;
28517 wxListEvent *arg1 = (wxListEvent *) 0 ;
28518 int result;
28519 void *argp1 = 0 ;
28520 int res1 = 0 ;
28521 PyObject *swig_obj[1] ;
28522
28523 if (!args) SWIG_fail;
28524 swig_obj[0] = args;
28525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28528 }
28529 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28530 {
28531 PyThreadState* __tstate = wxPyBeginAllowThreads();
28532 result = (int)(arg1)->GetImage();
28533 wxPyEndAllowThreads(__tstate);
28534 if (PyErr_Occurred()) SWIG_fail;
28535 }
28536 resultobj = SWIG_From_int(static_cast< int >(result));
28537 return resultobj;
28538fail:
28539 return NULL;
d55e5bfc
RD
28540}
28541
28542
1bd55598
RD
28543SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28544 PyObject *resultobj = 0;
28545 wxListEvent *arg1 = (wxListEvent *) 0 ;
28546 long result;
28547 void *argp1 = 0 ;
28548 int res1 = 0 ;
28549 PyObject *swig_obj[1] ;
28550
28551 if (!args) SWIG_fail;
28552 swig_obj[0] = args;
28553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28554 if (!SWIG_IsOK(res1)) {
28555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28556 }
28557 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28558 {
28559 PyThreadState* __tstate = wxPyBeginAllowThreads();
28560 result = (long)(arg1)->GetData();
28561 wxPyEndAllowThreads(__tstate);
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_From_long(static_cast< long >(result));
28565 return resultobj;
28566fail:
28567 return NULL;
d55e5bfc
RD
28568}
28569
28570
1bd55598
RD
28571SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28572 PyObject *resultobj = 0;
28573 wxListEvent *arg1 = (wxListEvent *) 0 ;
28574 long result;
28575 void *argp1 = 0 ;
28576 int res1 = 0 ;
28577 PyObject *swig_obj[1] ;
28578
28579 if (!args) SWIG_fail;
28580 swig_obj[0] = args;
28581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28582 if (!SWIG_IsOK(res1)) {
28583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28584 }
28585 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28586 {
28587 PyThreadState* __tstate = wxPyBeginAllowThreads();
28588 result = (long)(arg1)->GetMask();
28589 wxPyEndAllowThreads(__tstate);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 resultobj = SWIG_From_long(static_cast< long >(result));
28593 return resultobj;
28594fail:
28595 return NULL;
d55e5bfc
RD
28596}
28597
28598
1bd55598
RD
28599SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28600 PyObject *resultobj = 0;
28601 wxListEvent *arg1 = (wxListEvent *) 0 ;
28602 wxListItem *result = 0 ;
28603 void *argp1 = 0 ;
28604 int res1 = 0 ;
28605 PyObject *swig_obj[1] ;
28606
28607 if (!args) SWIG_fail;
28608 swig_obj[0] = args;
28609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28612 }
28613 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28614 {
28615 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28616 {
1bd55598
RD
28617 wxListItem const &_result_ref = (arg1)->GetItem();
28618 result = (wxListItem *) &_result_ref;
d55e5bfc 28619 }
1bd55598
RD
28620 wxPyEndAllowThreads(__tstate);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28624 return resultobj;
28625fail:
28626 return NULL;
d55e5bfc
RD
28627}
28628
28629
1bd55598
RD
28630SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28631 PyObject *resultobj = 0;
28632 wxListEvent *arg1 = (wxListEvent *) 0 ;
28633 long result;
28634 void *argp1 = 0 ;
28635 int res1 = 0 ;
28636 PyObject *swig_obj[1] ;
28637
28638 if (!args) SWIG_fail;
28639 swig_obj[0] = args;
28640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28641 if (!SWIG_IsOK(res1)) {
28642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28643 }
28644 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28645 {
28646 PyThreadState* __tstate = wxPyBeginAllowThreads();
28647 result = (long)(arg1)->GetCacheFrom();
28648 wxPyEndAllowThreads(__tstate);
28649 if (PyErr_Occurred()) SWIG_fail;
28650 }
28651 resultobj = SWIG_From_long(static_cast< long >(result));
28652 return resultobj;
28653fail:
28654 return NULL;
d55e5bfc
RD
28655}
28656
28657
1bd55598
RD
28658SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28659 PyObject *resultobj = 0;
28660 wxListEvent *arg1 = (wxListEvent *) 0 ;
28661 long result;
28662 void *argp1 = 0 ;
28663 int res1 = 0 ;
28664 PyObject *swig_obj[1] ;
28665
28666 if (!args) SWIG_fail;
28667 swig_obj[0] = args;
28668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28669 if (!SWIG_IsOK(res1)) {
28670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28671 }
28672 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28673 {
28674 PyThreadState* __tstate = wxPyBeginAllowThreads();
28675 result = (long)(arg1)->GetCacheTo();
28676 wxPyEndAllowThreads(__tstate);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 }
28679 resultobj = SWIG_From_long(static_cast< long >(result));
28680 return resultobj;
28681fail:
28682 return NULL;
7e08d4ef
RD
28683}
28684
28685
1bd55598
RD
28686SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28687 PyObject *resultobj = 0;
28688 wxListEvent *arg1 = (wxListEvent *) 0 ;
28689 bool result;
28690 void *argp1 = 0 ;
28691 int res1 = 0 ;
28692 PyObject *swig_obj[1] ;
28693
28694 if (!args) SWIG_fail;
28695 swig_obj[0] = args;
28696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28699 }
28700 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28701 {
28702 PyThreadState* __tstate = wxPyBeginAllowThreads();
28703 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28704 wxPyEndAllowThreads(__tstate);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 {
28708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28709 }
28710 return resultobj;
28711fail:
28712 return NULL;
28713}
28714
28715
28716SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28717 PyObject *resultobj = 0;
28718 wxListEvent *arg1 = (wxListEvent *) 0 ;
28719 bool arg2 ;
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
28722 bool val2 ;
28723 int ecode2 = 0 ;
28724 PyObject * obj0 = 0 ;
28725 PyObject * obj1 = 0 ;
28726 char * kwnames[] = {
28727 (char *) "self",(char *) "editCancelled", NULL
28728 };
28729
28730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28732 if (!SWIG_IsOK(res1)) {
28733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28734 }
28735 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28736 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28737 if (!SWIG_IsOK(ecode2)) {
28738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28739 }
28740 arg2 = static_cast< bool >(val2);
28741 {
28742 PyThreadState* __tstate = wxPyBeginAllowThreads();
28743 (arg1)->SetEditCanceled(arg2);
28744 wxPyEndAllowThreads(__tstate);
28745 if (PyErr_Occurred()) SWIG_fail;
28746 }
28747 resultobj = SWIG_Py_Void();
28748 return resultobj;
28749fail:
28750 return NULL;
28751}
28752
28753
28754SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28755 PyObject *obj;
28756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28757 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28758 return SWIG_Py_Void();
28759}
28760
28761SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28762 return SWIG_Python_InitShadowInstance(args);
28763}
28764
28765SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28766 PyObject *resultobj = 0;
28767 wxWindow *arg1 = (wxWindow *) 0 ;
28768 int arg2 = (int) -1 ;
28769 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28770 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28771 wxSize const &arg4_defvalue = wxDefaultSize ;
28772 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28773 long arg5 = (long) wxLC_ICON ;
28774 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28775 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28776 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28777 wxString *arg7 = (wxString *) &arg7_defvalue ;
28778 wxPyListCtrl *result = 0 ;
28779 void *argp1 = 0 ;
28780 int res1 = 0 ;
28781 int val2 ;
28782 int ecode2 = 0 ;
28783 wxPoint temp3 ;
28784 wxSize temp4 ;
28785 long val5 ;
28786 int ecode5 = 0 ;
28787 void *argp6 = 0 ;
28788 int res6 = 0 ;
28789 bool temp7 = false ;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 PyObject * obj2 = 0 ;
28793 PyObject * obj3 = 0 ;
28794 PyObject * obj4 = 0 ;
28795 PyObject * obj5 = 0 ;
28796 PyObject * obj6 = 0 ;
28797 char * kwnames[] = {
28798 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28799 };
28800
28801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28803 if (!SWIG_IsOK(res1)) {
28804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28805 }
28806 arg1 = reinterpret_cast< wxWindow * >(argp1);
28807 if (obj1) {
28808 ecode2 = SWIG_AsVal_int(obj1, &val2);
28809 if (!SWIG_IsOK(ecode2)) {
28810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28811 }
28812 arg2 = static_cast< int >(val2);
28813 }
28814 if (obj2) {
7e08d4ef 28815 {
1bd55598
RD
28816 arg3 = &temp3;
28817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28818 }
1bd55598
RD
28819 }
28820 if (obj3) {
7e08d4ef 28821 {
1bd55598
RD
28822 arg4 = &temp4;
28823 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28824 }
1bd55598
RD
28825 }
28826 if (obj4) {
28827 ecode5 = SWIG_AsVal_long(obj4, &val5);
28828 if (!SWIG_IsOK(ecode5)) {
28829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28830 }
28831 arg5 = static_cast< long >(val5);
28832 }
28833 if (obj5) {
28834 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28835 if (!SWIG_IsOK(res6)) {
28836 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28837 }
1bd55598
RD
28838 if (!argp6) {
28839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28840 }
1bd55598
RD
28841 arg6 = reinterpret_cast< wxValidator * >(argp6);
28842 }
28843 if (obj6) {
7e08d4ef 28844 {
1bd55598
RD
28845 arg7 = wxString_in_helper(obj6);
28846 if (arg7 == NULL) SWIG_fail;
28847 temp7 = true;
7e08d4ef 28848 }
1bd55598
RD
28849 }
28850 {
28851 if (!wxPyCheckForApp()) SWIG_fail;
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28858 {
28859 if (temp7)
28860 delete arg7;
28861 }
28862 return resultobj;
28863fail:
28864 {
28865 if (temp7)
28866 delete arg7;
28867 }
28868 return NULL;
7e08d4ef
RD
28869}
28870
28871
1bd55598
RD
28872SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28873 PyObject *resultobj = 0;
28874 wxPyListCtrl *result = 0 ;
28875
28876 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28877 {
28878 if (!wxPyCheckForApp()) SWIG_fail;
28879 PyThreadState* __tstate = wxPyBeginAllowThreads();
28880 result = (wxPyListCtrl *)new wxPyListCtrl();
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28885 return resultobj;
28886fail:
28887 return NULL;
28888}
28889
28890
28891SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28892 PyObject *resultobj = 0;
28893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28894 wxWindow *arg2 = (wxWindow *) 0 ;
28895 int arg3 = (int) -1 ;
28896 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28897 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28898 wxSize const &arg5_defvalue = wxDefaultSize ;
28899 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28900 long arg6 = (long) wxLC_ICON ;
28901 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28902 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28903 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28904 wxString *arg8 = (wxString *) &arg8_defvalue ;
28905 bool result;
28906 void *argp1 = 0 ;
28907 int res1 = 0 ;
28908 void *argp2 = 0 ;
28909 int res2 = 0 ;
28910 int val3 ;
28911 int ecode3 = 0 ;
28912 wxPoint temp4 ;
28913 wxSize temp5 ;
28914 long val6 ;
28915 int ecode6 = 0 ;
28916 void *argp7 = 0 ;
28917 int res7 = 0 ;
28918 bool temp8 = false ;
28919 PyObject * obj0 = 0 ;
28920 PyObject * obj1 = 0 ;
28921 PyObject * obj2 = 0 ;
28922 PyObject * obj3 = 0 ;
28923 PyObject * obj4 = 0 ;
28924 PyObject * obj5 = 0 ;
28925 PyObject * obj6 = 0 ;
28926 PyObject * obj7 = 0 ;
28927 char * kwnames[] = {
28928 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28929 };
28930
28931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28933 if (!SWIG_IsOK(res1)) {
28934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28935 }
28936 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28938 if (!SWIG_IsOK(res2)) {
28939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28940 }
28941 arg2 = reinterpret_cast< wxWindow * >(argp2);
28942 if (obj2) {
28943 ecode3 = SWIG_AsVal_int(obj2, &val3);
28944 if (!SWIG_IsOK(ecode3)) {
28945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28946 }
28947 arg3 = static_cast< int >(val3);
28948 }
28949 if (obj3) {
7e08d4ef 28950 {
1bd55598
RD
28951 arg4 = &temp4;
28952 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28953 }
1bd55598
RD
28954 }
28955 if (obj4) {
7e08d4ef 28956 {
1bd55598
RD
28957 arg5 = &temp5;
28958 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28959 }
1bd55598
RD
28960 }
28961 if (obj5) {
28962 ecode6 = SWIG_AsVal_long(obj5, &val6);
28963 if (!SWIG_IsOK(ecode6)) {
28964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28965 }
28966 arg6 = static_cast< long >(val6);
28967 }
28968 if (obj6) {
28969 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28970 if (!SWIG_IsOK(res7)) {
28971 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28972 }
1bd55598
RD
28973 if (!argp7) {
28974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28975 }
1bd55598
RD
28976 arg7 = reinterpret_cast< wxValidator * >(argp7);
28977 }
28978 if (obj7) {
7e08d4ef 28979 {
1bd55598
RD
28980 arg8 = wxString_in_helper(obj7);
28981 if (arg8 == NULL) SWIG_fail;
28982 temp8 = true;
7e08d4ef 28983 }
1bd55598
RD
28984 }
28985 {
28986 PyThreadState* __tstate = wxPyBeginAllowThreads();
28987 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28988 wxPyEndAllowThreads(__tstate);
28989 if (PyErr_Occurred()) SWIG_fail;
28990 }
28991 {
28992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28993 }
28994 {
28995 if (temp8)
28996 delete arg8;
28997 }
28998 return resultobj;
28999fail:
29000 {
29001 if (temp8)
29002 delete arg8;
29003 }
29004 return NULL;
29005}
29006
29007
29008SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj = 0;
29010 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29011 PyObject *arg2 = (PyObject *) 0 ;
29012 PyObject *arg3 = (PyObject *) 0 ;
29013 void *argp1 = 0 ;
29014 int res1 = 0 ;
29015 PyObject * obj0 = 0 ;
29016 PyObject * obj1 = 0 ;
29017 PyObject * obj2 = 0 ;
29018 char * kwnames[] = {
29019 (char *) "self",(char *) "self",(char *) "_class", NULL
29020 };
29021
29022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29024 if (!SWIG_IsOK(res1)) {
29025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29026 }
29027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29028 arg2 = obj1;
29029 arg3 = obj2;
29030 {
29031 PyThreadState* __tstate = wxPyBeginAllowThreads();
29032 (arg1)->_setCallbackInfo(arg2,arg3);
29033 wxPyEndAllowThreads(__tstate);
29034 if (PyErr_Occurred()) SWIG_fail;
29035 }
29036 resultobj = SWIG_Py_Void();
29037 return resultobj;
29038fail:
29039 return NULL;
29040}
29041
29042
29043SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29044 PyObject *resultobj = 0;
29045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29046 int arg2 ;
29047 wxListItem *result = 0 ;
29048 void *argp1 = 0 ;
29049 int res1 = 0 ;
29050 int val2 ;
29051 int ecode2 = 0 ;
29052 PyObject * obj0 = 0 ;
29053 PyObject * obj1 = 0 ;
29054 char * kwnames[] = {
29055 (char *) "self",(char *) "col", NULL
29056 };
29057
29058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29060 if (!SWIG_IsOK(res1)) {
29061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29062 }
29063 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29064 ecode2 = SWIG_AsVal_int(obj1, &val2);
29065 if (!SWIG_IsOK(ecode2)) {
29066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29067 }
29068 arg2 = static_cast< int >(val2);
29069 {
29070 PyThreadState* __tstate = wxPyBeginAllowThreads();
29071 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29072 wxPyEndAllowThreads(__tstate);
29073 if (PyErr_Occurred()) SWIG_fail;
29074 }
29075 {
3ecece7e 29076 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29077 }
29078 return resultobj;
29079fail:
29080 return NULL;
29081}
29082
29083
29084SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29085 PyObject *resultobj = 0;
29086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29087 int arg2 ;
29088 wxListItem *arg3 = 0 ;
29089 bool result;
29090 void *argp1 = 0 ;
29091 int res1 = 0 ;
29092 int val2 ;
29093 int ecode2 = 0 ;
29094 void *argp3 = 0 ;
29095 int res3 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 PyObject * obj2 = 0 ;
29099 char * kwnames[] = {
29100 (char *) "self",(char *) "col",(char *) "item", NULL
29101 };
29102
29103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29105 if (!SWIG_IsOK(res1)) {
29106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29107 }
29108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29109 ecode2 = SWIG_AsVal_int(obj1, &val2);
29110 if (!SWIG_IsOK(ecode2)) {
29111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29112 }
29113 arg2 = static_cast< int >(val2);
29114 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29115 if (!SWIG_IsOK(res3)) {
29116 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29117 }
29118 if (!argp3) {
29119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29120 }
29121 arg3 = reinterpret_cast< wxListItem * >(argp3);
29122 {
29123 PyThreadState* __tstate = wxPyBeginAllowThreads();
29124 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29125 wxPyEndAllowThreads(__tstate);
29126 if (PyErr_Occurred()) SWIG_fail;
29127 }
29128 {
29129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29130 }
29131 return resultobj;
29132fail:
29133 return NULL;
29134}
29135
29136
29137SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29138 PyObject *resultobj = 0;
29139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29140 int arg2 ;
29141 int result;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 int val2 ;
29145 int ecode2 = 0 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "col", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29156 }
29157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29158 ecode2 = SWIG_AsVal_int(obj1, &val2);
29159 if (!SWIG_IsOK(ecode2)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29161 }
29162 arg2 = static_cast< int >(val2);
29163 {
29164 PyThreadState* __tstate = wxPyBeginAllowThreads();
29165 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29166 wxPyEndAllowThreads(__tstate);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
29169 resultobj = SWIG_From_int(static_cast< int >(result));
29170 return resultobj;
29171fail:
29172 return NULL;
29173}
29174
29175
29176SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29177 PyObject *resultobj = 0;
29178 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29179 int arg2 ;
29180 int arg3 ;
29181 bool result;
29182 void *argp1 = 0 ;
29183 int res1 = 0 ;
29184 int val2 ;
29185 int ecode2 = 0 ;
29186 int val3 ;
29187 int ecode3 = 0 ;
29188 PyObject * obj0 = 0 ;
29189 PyObject * obj1 = 0 ;
29190 PyObject * obj2 = 0 ;
29191 char * kwnames[] = {
29192 (char *) "self",(char *) "col",(char *) "width", NULL
29193 };
29194
29195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29197 if (!SWIG_IsOK(res1)) {
29198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29199 }
29200 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29201 ecode2 = SWIG_AsVal_int(obj1, &val2);
29202 if (!SWIG_IsOK(ecode2)) {
29203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29204 }
29205 arg2 = static_cast< int >(val2);
29206 ecode3 = SWIG_AsVal_int(obj2, &val3);
29207 if (!SWIG_IsOK(ecode3)) {
29208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29209 }
29210 arg3 = static_cast< int >(val3);
29211 {
29212 PyThreadState* __tstate = wxPyBeginAllowThreads();
29213 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29214 wxPyEndAllowThreads(__tstate);
29215 if (PyErr_Occurred()) SWIG_fail;
29216 }
29217 {
29218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29219 }
29220 return resultobj;
29221fail:
29222 return NULL;
7e08d4ef
RD
29223}
29224
29225
1bd55598
RD
29226SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29227 PyObject *resultobj = 0;
29228 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29229 int result;
29230 void *argp1 = 0 ;
29231 int res1 = 0 ;
29232 PyObject *swig_obj[1] ;
29233
29234 if (!args) SWIG_fail;
29235 swig_obj[0] = args;
29236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29237 if (!SWIG_IsOK(res1)) {
29238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29239 }
29240 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29241 {
29242 PyThreadState* __tstate = wxPyBeginAllowThreads();
29243 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 resultobj = SWIG_From_int(static_cast< int >(result));
29248 return resultobj;
29249fail:
29250 return NULL;
7e08d4ef
RD
29251}
29252
29253
1bd55598
RD
29254SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29255 PyObject *resultobj = 0;
29256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29257 wxRect result;
29258 void *argp1 = 0 ;
29259 int res1 = 0 ;
29260 PyObject *swig_obj[1] ;
29261
29262 if (!args) SWIG_fail;
29263 swig_obj[0] = args;
29264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29265 if (!SWIG_IsOK(res1)) {
29266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29267 }
29268 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29269 {
29270 PyThreadState* __tstate = wxPyBeginAllowThreads();
29271 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29272 wxPyEndAllowThreads(__tstate);
29273 if (PyErr_Occurred()) SWIG_fail;
29274 }
29275 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29276 return resultobj;
29277fail:
29278 return NULL;
7e08d4ef
RD
29279}
29280
29281
1bd55598
RD
29282SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29283 PyObject *resultobj = 0;
29284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29285 wxTextCtrl *result = 0 ;
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 PyObject *swig_obj[1] ;
29289
29290 if (!args) SWIG_fail;
29291 swig_obj[0] = args;
29292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29295 }
29296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29297 {
29298 PyThreadState* __tstate = wxPyBeginAllowThreads();
29299 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29300 wxPyEndAllowThreads(__tstate);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 {
29304 resultobj = wxPyMake_wxObject(result, 0);
29305 }
29306 return resultobj;
29307fail:
29308 return NULL;
29309}
29310
29311
29312SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29313 PyObject *resultobj = 0;
29314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29315 long arg2 ;
29316 int arg3 = (int) 0 ;
29317 wxListItem *result = 0 ;
29318 void *argp1 = 0 ;
29319 int res1 = 0 ;
29320 long val2 ;
29321 int ecode2 = 0 ;
29322 int val3 ;
29323 int ecode3 = 0 ;
29324 PyObject * obj0 = 0 ;
29325 PyObject * obj1 = 0 ;
29326 PyObject * obj2 = 0 ;
29327 char * kwnames[] = {
29328 (char *) "self",(char *) "itemId",(char *) "col", NULL
29329 };
29330
29331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29335 }
29336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29337 ecode2 = SWIG_AsVal_long(obj1, &val2);
29338 if (!SWIG_IsOK(ecode2)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29340 }
29341 arg2 = static_cast< long >(val2);
29342 if (obj2) {
29343 ecode3 = SWIG_AsVal_int(obj2, &val3);
29344 if (!SWIG_IsOK(ecode3)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29346 }
29347 arg3 = static_cast< int >(val3);
29348 }
29349 {
29350 PyThreadState* __tstate = wxPyBeginAllowThreads();
29351 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29352 wxPyEndAllowThreads(__tstate);
29353 if (PyErr_Occurred()) SWIG_fail;
29354 }
29355 {
3ecece7e 29356 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29357 }
29358 return resultobj;
29359fail:
29360 return NULL;
29361}
29362
29363
29364SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29365 PyObject *resultobj = 0;
29366 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29367 wxListItem *arg2 = 0 ;
29368 bool result;
29369 void *argp1 = 0 ;
29370 int res1 = 0 ;
29371 void *argp2 = 0 ;
29372 int res2 = 0 ;
29373 PyObject * obj0 = 0 ;
29374 PyObject * obj1 = 0 ;
29375 char * kwnames[] = {
29376 (char *) "self",(char *) "info", NULL
29377 };
29378
29379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29381 if (!SWIG_IsOK(res1)) {
29382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29383 }
29384 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29386 if (!SWIG_IsOK(res2)) {
29387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29388 }
29389 if (!argp2) {
29390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29391 }
29392 arg2 = reinterpret_cast< wxListItem * >(argp2);
29393 {
29394 PyThreadState* __tstate = wxPyBeginAllowThreads();
29395 result = (bool)(arg1)->SetItem(*arg2);
29396 wxPyEndAllowThreads(__tstate);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 }
29399 {
29400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29401 }
29402 return resultobj;
29403fail:
29404 return NULL;
29405}
29406
29407
29408SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29409 PyObject *resultobj = 0;
29410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29411 long arg2 ;
29412 int arg3 ;
29413 wxString *arg4 = 0 ;
29414 int arg5 = (int) -1 ;
29415 long result;
29416 void *argp1 = 0 ;
29417 int res1 = 0 ;
29418 long val2 ;
29419 int ecode2 = 0 ;
29420 int val3 ;
29421 int ecode3 = 0 ;
29422 bool temp4 = false ;
29423 int val5 ;
29424 int ecode5 = 0 ;
29425 PyObject * obj0 = 0 ;
29426 PyObject * obj1 = 0 ;
29427 PyObject * obj2 = 0 ;
29428 PyObject * obj3 = 0 ;
29429 PyObject * obj4 = 0 ;
29430 char * kwnames[] = {
29431 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29432 };
29433
29434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29436 if (!SWIG_IsOK(res1)) {
29437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29438 }
29439 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29440 ecode2 = SWIG_AsVal_long(obj1, &val2);
29441 if (!SWIG_IsOK(ecode2)) {
29442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29443 }
29444 arg2 = static_cast< long >(val2);
29445 ecode3 = SWIG_AsVal_int(obj2, &val3);
29446 if (!SWIG_IsOK(ecode3)) {
29447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29448 }
29449 arg3 = static_cast< int >(val3);
29450 {
29451 arg4 = wxString_in_helper(obj3);
29452 if (arg4 == NULL) SWIG_fail;
29453 temp4 = true;
29454 }
29455 if (obj4) {
29456 ecode5 = SWIG_AsVal_int(obj4, &val5);
29457 if (!SWIG_IsOK(ecode5)) {
29458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29459 }
29460 arg5 = static_cast< int >(val5);
29461 }
29462 {
29463 PyThreadState* __tstate = wxPyBeginAllowThreads();
29464 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29465 wxPyEndAllowThreads(__tstate);
29466 if (PyErr_Occurred()) SWIG_fail;
29467 }
29468 resultobj = SWIG_From_long(static_cast< long >(result));
29469 {
29470 if (temp4)
29471 delete arg4;
29472 }
29473 return resultobj;
29474fail:
29475 {
29476 if (temp4)
29477 delete arg4;
29478 }
29479 return NULL;
29480}
29481
29482
29483SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29484 PyObject *resultobj = 0;
29485 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29486 long arg2 ;
29487 long arg3 ;
29488 int result;
29489 void *argp1 = 0 ;
29490 int res1 = 0 ;
29491 long val2 ;
29492 int ecode2 = 0 ;
29493 long val3 ;
29494 int ecode3 = 0 ;
29495 PyObject * obj0 = 0 ;
29496 PyObject * obj1 = 0 ;
29497 PyObject * obj2 = 0 ;
29498 char * kwnames[] = {
29499 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29500 };
29501
29502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29504 if (!SWIG_IsOK(res1)) {
29505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29506 }
29507 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29508 ecode2 = SWIG_AsVal_long(obj1, &val2);
29509 if (!SWIG_IsOK(ecode2)) {
29510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29511 }
29512 arg2 = static_cast< long >(val2);
29513 ecode3 = SWIG_AsVal_long(obj2, &val3);
29514 if (!SWIG_IsOK(ecode3)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29516 }
29517 arg3 = static_cast< long >(val3);
29518 {
29519 PyThreadState* __tstate = wxPyBeginAllowThreads();
29520 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29521 wxPyEndAllowThreads(__tstate);
29522 if (PyErr_Occurred()) SWIG_fail;
29523 }
29524 resultobj = SWIG_From_int(static_cast< int >(result));
29525 return resultobj;
29526fail:
29527 return NULL;
29528}
29529
29530
29531SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29532 PyObject *resultobj = 0;
29533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29534 long arg2 ;
29535 long arg3 ;
29536 long arg4 ;
29537 bool result;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 long val2 ;
29541 int ecode2 = 0 ;
29542 long val3 ;
29543 int ecode3 = 0 ;
29544 long val4 ;
29545 int ecode4 = 0 ;
29546 PyObject * obj0 = 0 ;
29547 PyObject * obj1 = 0 ;
29548 PyObject * obj2 = 0 ;
29549 PyObject * obj3 = 0 ;
29550 char * kwnames[] = {
29551 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29552 };
29553
29554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29556 if (!SWIG_IsOK(res1)) {
29557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29558 }
29559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29560 ecode2 = SWIG_AsVal_long(obj1, &val2);
29561 if (!SWIG_IsOK(ecode2)) {
29562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29563 }
29564 arg2 = static_cast< long >(val2);
29565 ecode3 = SWIG_AsVal_long(obj2, &val3);
29566 if (!SWIG_IsOK(ecode3)) {
29567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29568 }
29569 arg3 = static_cast< long >(val3);
29570 ecode4 = SWIG_AsVal_long(obj3, &val4);
29571 if (!SWIG_IsOK(ecode4)) {
29572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29573 }
29574 arg4 = static_cast< long >(val4);
29575 {
29576 PyThreadState* __tstate = wxPyBeginAllowThreads();
29577 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29578 wxPyEndAllowThreads(__tstate);
29579 if (PyErr_Occurred()) SWIG_fail;
29580 }
29581 {
29582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29583 }
29584 return resultobj;
29585fail:
29586 return NULL;
29587}
29588
29589
29590SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29591 PyObject *resultobj = 0;
29592 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29593 long arg2 ;
29594 int arg3 ;
29595 int arg4 = (int) -1 ;
29596 bool result;
29597 void *argp1 = 0 ;
29598 int res1 = 0 ;
29599 long val2 ;
29600 int ecode2 = 0 ;
29601 int val3 ;
29602 int ecode3 = 0 ;
29603 int val4 ;
29604 int ecode4 = 0 ;
29605 PyObject * obj0 = 0 ;
29606 PyObject * obj1 = 0 ;
29607 PyObject * obj2 = 0 ;
29608 PyObject * obj3 = 0 ;
29609 char * kwnames[] = {
29610 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29611 };
29612
29613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29615 if (!SWIG_IsOK(res1)) {
29616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29617 }
29618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29619 ecode2 = SWIG_AsVal_long(obj1, &val2);
29620 if (!SWIG_IsOK(ecode2)) {
29621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29622 }
29623 arg2 = static_cast< long >(val2);
29624 ecode3 = SWIG_AsVal_int(obj2, &val3);
29625 if (!SWIG_IsOK(ecode3)) {
29626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29627 }
29628 arg3 = static_cast< int >(val3);
29629 if (obj3) {
29630 ecode4 = SWIG_AsVal_int(obj3, &val4);
29631 if (!SWIG_IsOK(ecode4)) {
29632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29633 }
29634 arg4 = static_cast< int >(val4);
29635 }
29636 {
29637 PyThreadState* __tstate = wxPyBeginAllowThreads();
29638 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29639 wxPyEndAllowThreads(__tstate);
29640 if (PyErr_Occurred()) SWIG_fail;
29641 }
29642 {
29643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29644 }
29645 return resultobj;
29646fail:
29647 return NULL;
29648}
29649
29650
29651SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29652 PyObject *resultobj = 0;
29653 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29654 long arg2 ;
29655 long arg3 ;
29656 int arg4 ;
29657 bool result;
29658 void *argp1 = 0 ;
29659 int res1 = 0 ;
29660 long val2 ;
29661 int ecode2 = 0 ;
29662 long val3 ;
29663 int ecode3 = 0 ;
29664 int val4 ;
29665 int ecode4 = 0 ;
29666 PyObject * obj0 = 0 ;
29667 PyObject * obj1 = 0 ;
29668 PyObject * obj2 = 0 ;
29669 PyObject * obj3 = 0 ;
29670 char * kwnames[] = {
29671 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29672 };
29673
29674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29676 if (!SWIG_IsOK(res1)) {
29677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29678 }
29679 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29680 ecode2 = SWIG_AsVal_long(obj1, &val2);
29681 if (!SWIG_IsOK(ecode2)) {
29682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29683 }
29684 arg2 = static_cast< long >(val2);
29685 ecode3 = SWIG_AsVal_long(obj2, &val3);
29686 if (!SWIG_IsOK(ecode3)) {
29687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29688 }
29689 arg3 = static_cast< long >(val3);
29690 ecode4 = SWIG_AsVal_int(obj3, &val4);
29691 if (!SWIG_IsOK(ecode4)) {
29692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29693 }
29694 arg4 = static_cast< int >(val4);
29695 {
29696 PyThreadState* __tstate = wxPyBeginAllowThreads();
29697 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29698 wxPyEndAllowThreads(__tstate);
29699 if (PyErr_Occurred()) SWIG_fail;
29700 }
29701 {
29702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29703 }
29704 return resultobj;
29705fail:
29706 return NULL;
29707}
29708
29709
29710SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29711 PyObject *resultobj = 0;
29712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29713 long arg2 ;
29714 wxString result;
29715 void *argp1 = 0 ;
29716 int res1 = 0 ;
29717 long val2 ;
29718 int ecode2 = 0 ;
29719 PyObject * obj0 = 0 ;
29720 PyObject * obj1 = 0 ;
29721 char * kwnames[] = {
29722 (char *) "self",(char *) "item", NULL
29723 };
29724
29725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29727 if (!SWIG_IsOK(res1)) {
29728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29729 }
29730 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29731 ecode2 = SWIG_AsVal_long(obj1, &val2);
29732 if (!SWIG_IsOK(ecode2)) {
29733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29734 }
29735 arg2 = static_cast< long >(val2);
29736 {
29737 PyThreadState* __tstate = wxPyBeginAllowThreads();
29738 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29739 wxPyEndAllowThreads(__tstate);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 {
29743#if wxUSE_UNICODE
29744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29745#else
29746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29747#endif
29748 }
29749 return resultobj;
29750fail:
29751 return NULL;
29752}
29753
29754
29755SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29756 PyObject *resultobj = 0;
29757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29758 long arg2 ;
29759 wxString *arg3 = 0 ;
29760 void *argp1 = 0 ;
29761 int res1 = 0 ;
29762 long val2 ;
29763 int ecode2 = 0 ;
29764 bool temp3 = false ;
29765 PyObject * obj0 = 0 ;
29766 PyObject * obj1 = 0 ;
29767 PyObject * obj2 = 0 ;
29768 char * kwnames[] = {
29769 (char *) "self",(char *) "item",(char *) "str", NULL
29770 };
29771
29772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29774 if (!SWIG_IsOK(res1)) {
29775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29776 }
29777 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29778 ecode2 = SWIG_AsVal_long(obj1, &val2);
29779 if (!SWIG_IsOK(ecode2)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29781 }
29782 arg2 = static_cast< long >(val2);
29783 {
29784 arg3 = wxString_in_helper(obj2);
29785 if (arg3 == NULL) SWIG_fail;
29786 temp3 = true;
29787 }
29788 {
29789 PyThreadState* __tstate = wxPyBeginAllowThreads();
29790 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 resultobj = SWIG_Py_Void();
29795 {
29796 if (temp3)
29797 delete arg3;
29798 }
29799 return resultobj;
29800fail:
29801 {
29802 if (temp3)
29803 delete arg3;
29804 }
29805 return NULL;
29806}
29807
29808
29809SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29810 PyObject *resultobj = 0;
29811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29812 long arg2 ;
29813 long result;
29814 void *argp1 = 0 ;
29815 int res1 = 0 ;
29816 long val2 ;
29817 int ecode2 = 0 ;
29818 PyObject * obj0 = 0 ;
29819 PyObject * obj1 = 0 ;
29820 char * kwnames[] = {
29821 (char *) "self",(char *) "item", NULL
29822 };
29823
29824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29826 if (!SWIG_IsOK(res1)) {
29827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29828 }
29829 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29830 ecode2 = SWIG_AsVal_long(obj1, &val2);
29831 if (!SWIG_IsOK(ecode2)) {
29832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29833 }
29834 arg2 = static_cast< long >(val2);
29835 {
29836 PyThreadState* __tstate = wxPyBeginAllowThreads();
29837 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29838 wxPyEndAllowThreads(__tstate);
29839 if (PyErr_Occurred()) SWIG_fail;
29840 }
29841 resultobj = SWIG_From_long(static_cast< long >(result));
29842 return resultobj;
29843fail:
29844 return NULL;
29845}
29846
29847
29848SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29849 PyObject *resultobj = 0;
29850 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29851 long arg2 ;
29852 long arg3 ;
29853 bool result;
29854 void *argp1 = 0 ;
29855 int res1 = 0 ;
29856 long val2 ;
29857 int ecode2 = 0 ;
29858 long val3 ;
29859 int ecode3 = 0 ;
29860 PyObject * obj0 = 0 ;
29861 PyObject * obj1 = 0 ;
29862 PyObject * obj2 = 0 ;
29863 char * kwnames[] = {
29864 (char *) "self",(char *) "item",(char *) "data", NULL
29865 };
29866
29867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29869 if (!SWIG_IsOK(res1)) {
29870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29871 }
29872 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29873 ecode2 = SWIG_AsVal_long(obj1, &val2);
29874 if (!SWIG_IsOK(ecode2)) {
29875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29876 }
29877 arg2 = static_cast< long >(val2);
29878 ecode3 = SWIG_AsVal_long(obj2, &val3);
29879 if (!SWIG_IsOK(ecode3)) {
29880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29881 }
29882 arg3 = static_cast< long >(val3);
29883 {
29884 PyThreadState* __tstate = wxPyBeginAllowThreads();
29885 result = (bool)(arg1)->SetItemData(arg2,arg3);
29886 wxPyEndAllowThreads(__tstate);
29887 if (PyErr_Occurred()) SWIG_fail;
29888 }
29889 {
29890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29891 }
29892 return resultobj;
29893fail:
29894 return NULL;
29895}
29896
29897
29898SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29899 PyObject *resultobj = 0;
29900 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29901 long arg2 ;
29902 wxPoint result;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 long val2 ;
29906 int ecode2 = 0 ;
29907 PyObject * obj0 = 0 ;
29908 PyObject * obj1 = 0 ;
29909 char * kwnames[] = {
29910 (char *) "self",(char *) "item", NULL
29911 };
29912
29913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29915 if (!SWIG_IsOK(res1)) {
29916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29917 }
29918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29919 ecode2 = SWIG_AsVal_long(obj1, &val2);
29920 if (!SWIG_IsOK(ecode2)) {
29921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29922 }
29923 arg2 = static_cast< long >(val2);
29924 {
29925 PyThreadState* __tstate = wxPyBeginAllowThreads();
29926 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29927 wxPyEndAllowThreads(__tstate);
29928 if (PyErr_Occurred()) SWIG_fail;
29929 }
29930 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29931 return resultobj;
29932fail:
29933 return NULL;
29934}
29935
29936
29937SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29938 PyObject *resultobj = 0;
29939 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29940 long arg2 ;
29941 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29942 wxRect result;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 long val2 ;
29946 int ecode2 = 0 ;
29947 int val3 ;
29948 int ecode3 = 0 ;
29949 PyObject * obj0 = 0 ;
29950 PyObject * obj1 = 0 ;
29951 PyObject * obj2 = 0 ;
29952 char * kwnames[] = {
29953 (char *) "self",(char *) "item",(char *) "code", NULL
29954 };
29955
29956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29958 if (!SWIG_IsOK(res1)) {
29959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29960 }
29961 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29962 ecode2 = SWIG_AsVal_long(obj1, &val2);
29963 if (!SWIG_IsOK(ecode2)) {
29964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29965 }
29966 arg2 = static_cast< long >(val2);
29967 if (obj2) {
29968 ecode3 = SWIG_AsVal_int(obj2, &val3);
29969 if (!SWIG_IsOK(ecode3)) {
29970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29971 }
29972 arg3 = static_cast< int >(val3);
29973 }
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29981 return resultobj;
29982fail:
29983 return NULL;
29984}
29985
29986
29987SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj = 0;
29989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29990 long arg2 ;
29991 wxPoint *arg3 = 0 ;
29992 bool result;
29993 void *argp1 = 0 ;
29994 int res1 = 0 ;
29995 long val2 ;
29996 int ecode2 = 0 ;
29997 wxPoint temp3 ;
29998 PyObject * obj0 = 0 ;
29999 PyObject * obj1 = 0 ;
30000 PyObject * obj2 = 0 ;
30001 char * kwnames[] = {
30002 (char *) "self",(char *) "item",(char *) "pos", NULL
30003 };
30004
30005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30007 if (!SWIG_IsOK(res1)) {
30008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30009 }
30010 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30011 ecode2 = SWIG_AsVal_long(obj1, &val2);
30012 if (!SWIG_IsOK(ecode2)) {
30013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30014 }
30015 arg2 = static_cast< long >(val2);
30016 {
30017 arg3 = &temp3;
30018 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30019 }
30020 {
30021 PyThreadState* __tstate = wxPyBeginAllowThreads();
30022 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30023 wxPyEndAllowThreads(__tstate);
30024 if (PyErr_Occurred()) SWIG_fail;
30025 }
30026 {
30027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30028 }
30029 return resultobj;
30030fail:
30031 return NULL;
7e08d4ef
RD
30032}
30033
30034
1bd55598
RD
30035SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30036 PyObject *resultobj = 0;
30037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30038 int result;
30039 void *argp1 = 0 ;
30040 int res1 = 0 ;
30041 PyObject *swig_obj[1] ;
30042
30043 if (!args) SWIG_fail;
30044 swig_obj[0] = args;
30045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30046 if (!SWIG_IsOK(res1)) {
30047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30048 }
30049 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30050 {
30051 PyThreadState* __tstate = wxPyBeginAllowThreads();
30052 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30053 wxPyEndAllowThreads(__tstate);
30054 if (PyErr_Occurred()) SWIG_fail;
30055 }
30056 resultobj = SWIG_From_int(static_cast< int >(result));
30057 return resultobj;
30058fail:
30059 return NULL;
7e08d4ef
RD
30060}
30061
30062
1bd55598
RD
30063SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30064 PyObject *resultobj = 0;
30065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30066 int result;
30067 void *argp1 = 0 ;
30068 int res1 = 0 ;
30069 PyObject *swig_obj[1] ;
30070
30071 if (!args) SWIG_fail;
30072 swig_obj[0] = args;
30073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30074 if (!SWIG_IsOK(res1)) {
30075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30076 }
30077 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30078 {
30079 PyThreadState* __tstate = wxPyBeginAllowThreads();
30080 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30081 wxPyEndAllowThreads(__tstate);
30082 if (PyErr_Occurred()) SWIG_fail;
30083 }
30084 resultobj = SWIG_From_int(static_cast< int >(result));
30085 return resultobj;
30086fail:
30087 return NULL;
7e08d4ef
RD
30088}
30089
30090
1bd55598
RD
30091SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30092 PyObject *resultobj = 0;
30093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30094 wxSize result;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 PyObject *swig_obj[1] ;
30098
30099 if (!args) SWIG_fail;
30100 swig_obj[0] = args;
30101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30113 return resultobj;
30114fail:
30115 return NULL;
30116}
30117
30118
30119SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30120 PyObject *resultobj = 0;
30121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30122 int arg2 ;
30123 bool arg3 = (bool) false ;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 int val2 ;
30127 int ecode2 = 0 ;
30128 bool val3 ;
30129 int ecode3 = 0 ;
30130 PyObject * obj0 = 0 ;
30131 PyObject * obj1 = 0 ;
30132 PyObject * obj2 = 0 ;
30133 char * kwnames[] = {
30134 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30135 };
30136
30137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30139 if (!SWIG_IsOK(res1)) {
30140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30141 }
30142 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30143 ecode2 = SWIG_AsVal_int(obj1, &val2);
30144 if (!SWIG_IsOK(ecode2)) {
30145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30146 }
30147 arg2 = static_cast< int >(val2);
30148 if (obj2) {
30149 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30150 if (!SWIG_IsOK(ecode3)) {
30151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30152 }
30153 arg3 = static_cast< bool >(val3);
30154 }
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 (arg1)->SetItemSpacing(arg2,arg3);
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 resultobj = SWIG_Py_Void();
30162 return resultobj;
30163fail:
30164 return NULL;
7e08d4ef
RD
30165}
30166
30167
1bd55598
RD
30168SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30169 PyObject *resultobj = 0;
30170 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30171 int result;
30172 void *argp1 = 0 ;
30173 int res1 = 0 ;
30174 PyObject *swig_obj[1] ;
30175
30176 if (!args) SWIG_fail;
30177 swig_obj[0] = args;
30178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30181 }
30182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30183 {
30184 PyThreadState* __tstate = wxPyBeginAllowThreads();
30185 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30186 wxPyEndAllowThreads(__tstate);
30187 if (PyErr_Occurred()) SWIG_fail;
30188 }
30189 resultobj = SWIG_From_int(static_cast< int >(result));
30190 return resultobj;
30191fail:
30192 return NULL;
7e08d4ef
RD
30193}
30194
30195
1bd55598
RD
30196SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30197 PyObject *resultobj = 0;
30198 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30199 wxColour result;
30200 void *argp1 = 0 ;
30201 int res1 = 0 ;
30202 PyObject *swig_obj[1] ;
30203
30204 if (!args) SWIG_fail;
30205 swig_obj[0] = args;
30206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30207 if (!SWIG_IsOK(res1)) {
30208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30209 }
30210 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30211 {
30212 PyThreadState* __tstate = wxPyBeginAllowThreads();
30213 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30218 return resultobj;
30219fail:
30220 return NULL;
30221}
30222
30223
30224SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj = 0;
30226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30227 wxColour *arg2 = 0 ;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 wxColour temp2 ;
30231 PyObject * obj0 = 0 ;
30232 PyObject * obj1 = 0 ;
30233 char * kwnames[] = {
30234 (char *) "self",(char *) "col", NULL
30235 };
30236
30237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30239 if (!SWIG_IsOK(res1)) {
30240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30241 }
30242 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30243 {
30244 arg2 = &temp2;
30245 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30246 }
30247 {
30248 PyThreadState* __tstate = wxPyBeginAllowThreads();
30249 (arg1)->SetTextColour((wxColour const &)*arg2);
30250 wxPyEndAllowThreads(__tstate);
30251 if (PyErr_Occurred()) SWIG_fail;
30252 }
30253 resultobj = SWIG_Py_Void();
30254 return resultobj;
30255fail:
30256 return NULL;
7e08d4ef
RD
30257}
30258
30259
1bd55598
RD
30260SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30261 PyObject *resultobj = 0;
30262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30263 long result;
30264 void *argp1 = 0 ;
30265 int res1 = 0 ;
30266 PyObject *swig_obj[1] ;
30267
30268 if (!args) SWIG_fail;
30269 swig_obj[0] = args;
30270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30271 if (!SWIG_IsOK(res1)) {
30272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30273 }
30274 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30278 wxPyEndAllowThreads(__tstate);
30279 if (PyErr_Occurred()) SWIG_fail;
30280 }
30281 resultobj = SWIG_From_long(static_cast< long >(result));
30282 return resultobj;
30283fail:
30284 return NULL;
30285}
30286
30287
30288SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj = 0;
30290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30291 long arg2 ;
30292 bool arg3 = (bool) true ;
30293 void *argp1 = 0 ;
30294 int res1 = 0 ;
30295 long val2 ;
30296 int ecode2 = 0 ;
30297 bool val3 ;
30298 int ecode3 = 0 ;
30299 PyObject * obj0 = 0 ;
30300 PyObject * obj1 = 0 ;
30301 PyObject * obj2 = 0 ;
30302 char * kwnames[] = {
30303 (char *) "self",(char *) "style",(char *) "add", NULL
30304 };
30305
30306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30308 if (!SWIG_IsOK(res1)) {
30309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30310 }
30311 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30312 ecode2 = SWIG_AsVal_long(obj1, &val2);
30313 if (!SWIG_IsOK(ecode2)) {
30314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30315 }
30316 arg2 = static_cast< long >(val2);
30317 if (obj2) {
30318 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30319 if (!SWIG_IsOK(ecode3)) {
30320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30321 }
30322 arg3 = static_cast< bool >(val3);
30323 }
30324 {
30325 PyThreadState* __tstate = wxPyBeginAllowThreads();
30326 (arg1)->SetSingleStyle(arg2,arg3);
30327 wxPyEndAllowThreads(__tstate);
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 resultobj = SWIG_Py_Void();
30331 return resultobj;
30332fail:
30333 return NULL;
30334}
30335
30336
30337SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30338 PyObject *resultobj = 0;
30339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30340 long arg2 ;
30341 int arg3 = (int) wxLIST_NEXT_ALL ;
30342 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30343 long result;
30344 void *argp1 = 0 ;
30345 int res1 = 0 ;
30346 long val2 ;
30347 int ecode2 = 0 ;
30348 int val3 ;
30349 int ecode3 = 0 ;
30350 int val4 ;
30351 int ecode4 = 0 ;
30352 PyObject * obj0 = 0 ;
30353 PyObject * obj1 = 0 ;
30354 PyObject * obj2 = 0 ;
30355 PyObject * obj3 = 0 ;
30356 char * kwnames[] = {
30357 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30358 };
30359
30360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30362 if (!SWIG_IsOK(res1)) {
30363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30364 }
30365 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30366 ecode2 = SWIG_AsVal_long(obj1, &val2);
30367 if (!SWIG_IsOK(ecode2)) {
30368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30369 }
30370 arg2 = static_cast< long >(val2);
30371 if (obj2) {
30372 ecode3 = SWIG_AsVal_int(obj2, &val3);
30373 if (!SWIG_IsOK(ecode3)) {
30374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30375 }
30376 arg3 = static_cast< int >(val3);
30377 }
30378 if (obj3) {
30379 ecode4 = SWIG_AsVal_int(obj3, &val4);
30380 if (!SWIG_IsOK(ecode4)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30382 }
30383 arg4 = static_cast< int >(val4);
30384 }
30385 {
30386 PyThreadState* __tstate = wxPyBeginAllowThreads();
30387 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30388 wxPyEndAllowThreads(__tstate);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 resultobj = SWIG_From_long(static_cast< long >(result));
30392 return resultobj;
30393fail:
30394 return NULL;
30395}
30396
30397
30398SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30399 PyObject *resultobj = 0;
30400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30401 int arg2 ;
30402 wxImageList *result = 0 ;
30403 void *argp1 = 0 ;
30404 int res1 = 0 ;
30405 int val2 ;
30406 int ecode2 = 0 ;
30407 PyObject * obj0 = 0 ;
30408 PyObject * obj1 = 0 ;
30409 char * kwnames[] = {
30410 (char *) "self",(char *) "which", NULL
30411 };
30412
30413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30417 }
30418 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30419 ecode2 = SWIG_AsVal_int(obj1, &val2);
30420 if (!SWIG_IsOK(ecode2)) {
30421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30422 }
30423 arg2 = static_cast< int >(val2);
30424 {
30425 PyThreadState* __tstate = wxPyBeginAllowThreads();
30426 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30427 wxPyEndAllowThreads(__tstate);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 }
3ecece7e
RD
30430 {
30431 resultobj = wxPyMake_wxObject(result, (bool)0);
30432 }
1bd55598
RD
30433 return resultobj;
30434fail:
30435 return NULL;
30436}
30437
30438
30439SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj = 0;
30441 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30442 wxImageList *arg2 = (wxImageList *) 0 ;
30443 int arg3 ;
30444 void *argp1 = 0 ;
30445 int res1 = 0 ;
30446 void *argp2 = 0 ;
30447 int res2 = 0 ;
30448 int val3 ;
30449 int ecode3 = 0 ;
30450 PyObject * obj0 = 0 ;
30451 PyObject * obj1 = 0 ;
30452 PyObject * obj2 = 0 ;
30453 char * kwnames[] = {
30454 (char *) "self",(char *) "imageList",(char *) "which", NULL
30455 };
30456
30457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30459 if (!SWIG_IsOK(res1)) {
30460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30461 }
30462 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30463 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30464 if (!SWIG_IsOK(res2)) {
30465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30466 }
30467 arg2 = reinterpret_cast< wxImageList * >(argp2);
30468 ecode3 = SWIG_AsVal_int(obj2, &val3);
30469 if (!SWIG_IsOK(ecode3)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30471 }
30472 arg3 = static_cast< int >(val3);
30473 {
30474 PyThreadState* __tstate = wxPyBeginAllowThreads();
30475 (arg1)->SetImageList(arg2,arg3);
30476 wxPyEndAllowThreads(__tstate);
30477 if (PyErr_Occurred()) SWIG_fail;
30478 }
30479 resultobj = SWIG_Py_Void();
30480 return resultobj;
30481fail:
30482 return NULL;
30483}
30484
30485
30486SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30487 PyObject *resultobj = 0;
30488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30489 wxImageList *arg2 = (wxImageList *) 0 ;
30490 int arg3 ;
30491 void *argp1 = 0 ;
30492 int res1 = 0 ;
30493 int res2 = 0 ;
30494 int val3 ;
30495 int ecode3 = 0 ;
30496 PyObject * obj0 = 0 ;
30497 PyObject * obj1 = 0 ;
30498 PyObject * obj2 = 0 ;
30499 char * kwnames[] = {
30500 (char *) "self",(char *) "imageList",(char *) "which", NULL
30501 };
30502
30503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30505 if (!SWIG_IsOK(res1)) {
30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30507 }
30508 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30509 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30510 if (!SWIG_IsOK(res2)) {
30511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30512 }
30513 ecode3 = SWIG_AsVal_int(obj2, &val3);
30514 if (!SWIG_IsOK(ecode3)) {
30515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30516 }
30517 arg3 = static_cast< int >(val3);
30518 {
30519 PyThreadState* __tstate = wxPyBeginAllowThreads();
30520 (arg1)->AssignImageList(arg2,arg3);
30521 wxPyEndAllowThreads(__tstate);
30522 if (PyErr_Occurred()) SWIG_fail;
30523 }
30524 resultobj = SWIG_Py_Void();
30525 return resultobj;
30526fail:
30527 return NULL;
7e08d4ef
RD
30528}
30529
30530
1bd55598
RD
30531SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30532 PyObject *resultobj = 0;
30533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30534 bool result;
30535 void *argp1 = 0 ;
30536 int res1 = 0 ;
30537 PyObject *swig_obj[1] ;
30538
30539 if (!args) SWIG_fail;
30540 swig_obj[0] = args;
30541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30542 if (!SWIG_IsOK(res1)) {
30543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30544 }
30545 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30546 {
30547 PyThreadState* __tstate = wxPyBeginAllowThreads();
30548 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30549 wxPyEndAllowThreads(__tstate);
30550 if (PyErr_Occurred()) SWIG_fail;
30551 }
30552 {
30553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30554 }
30555 return resultobj;
30556fail:
30557 return NULL;
44bf767a
RD
30558}
30559
30560
1bd55598
RD
30561SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30562 PyObject *resultobj = 0;
30563 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30564 bool result;
30565 void *argp1 = 0 ;
30566 int res1 = 0 ;
30567 PyObject *swig_obj[1] ;
30568
30569 if (!args) SWIG_fail;
30570 swig_obj[0] = args;
30571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30572 if (!SWIG_IsOK(res1)) {
30573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30574 }
30575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30576 {
30577 PyThreadState* __tstate = wxPyBeginAllowThreads();
30578 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30579 wxPyEndAllowThreads(__tstate);
30580 if (PyErr_Occurred()) SWIG_fail;
30581 }
30582 {
30583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30584 }
30585 return resultobj;
30586fail:
30587 return NULL;
30588}
30589
30590
30591SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30592 PyObject *resultobj = 0;
30593 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30594 long arg2 ;
30595 void *argp1 = 0 ;
30596 int res1 = 0 ;
30597 long val2 ;
30598 int ecode2 = 0 ;
30599 PyObject * obj0 = 0 ;
30600 PyObject * obj1 = 0 ;
30601 char * kwnames[] = {
30602 (char *) "self",(char *) "item", NULL
30603 };
30604
30605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30607 if (!SWIG_IsOK(res1)) {
30608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30609 }
30610 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30611 ecode2 = SWIG_AsVal_long(obj1, &val2);
30612 if (!SWIG_IsOK(ecode2)) {
30613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30614 }
30615 arg2 = static_cast< long >(val2);
30616 {
30617 PyThreadState* __tstate = wxPyBeginAllowThreads();
30618 (arg1)->RefreshItem(arg2);
30619 wxPyEndAllowThreads(__tstate);
30620 if (PyErr_Occurred()) SWIG_fail;
30621 }
30622 resultobj = SWIG_Py_Void();
30623 return resultobj;
30624fail:
30625 return NULL;
30626}
30627
30628
30629SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30630 PyObject *resultobj = 0;
30631 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30632 long arg2 ;
30633 long arg3 ;
30634 void *argp1 = 0 ;
30635 int res1 = 0 ;
30636 long val2 ;
30637 int ecode2 = 0 ;
30638 long val3 ;
30639 int ecode3 = 0 ;
30640 PyObject * obj0 = 0 ;
30641 PyObject * obj1 = 0 ;
30642 PyObject * obj2 = 0 ;
30643 char * kwnames[] = {
30644 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30645 };
30646
30647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30649 if (!SWIG_IsOK(res1)) {
30650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30651 }
30652 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30653 ecode2 = SWIG_AsVal_long(obj1, &val2);
30654 if (!SWIG_IsOK(ecode2)) {
30655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30656 }
30657 arg2 = static_cast< long >(val2);
30658 ecode3 = SWIG_AsVal_long(obj2, &val3);
30659 if (!SWIG_IsOK(ecode3)) {
30660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30661 }
30662 arg3 = static_cast< long >(val3);
30663 {
30664 PyThreadState* __tstate = wxPyBeginAllowThreads();
30665 (arg1)->RefreshItems(arg2,arg3);
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 resultobj = SWIG_Py_Void();
30670 return resultobj;
30671fail:
30672 return NULL;
30673}
30674
30675
30676SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj = 0;
30678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30679 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30680 bool result;
30681 void *argp1 = 0 ;
30682 int res1 = 0 ;
30683 int val2 ;
30684 int ecode2 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 PyObject * obj1 = 0 ;
30687 char * kwnames[] = {
30688 (char *) "self",(char *) "flag", NULL
30689 };
30690
30691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30695 }
30696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30697 if (obj1) {
30698 ecode2 = SWIG_AsVal_int(obj1, &val2);
30699 if (!SWIG_IsOK(ecode2)) {
30700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30701 }
30702 arg2 = static_cast< int >(val2);
30703 }
30704 {
30705 PyThreadState* __tstate = wxPyBeginAllowThreads();
30706 result = (bool)(arg1)->Arrange(arg2);
30707 wxPyEndAllowThreads(__tstate);
30708 if (PyErr_Occurred()) SWIG_fail;
30709 }
30710 {
30711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30712 }
30713 return resultobj;
30714fail:
30715 return NULL;
30716}
30717
30718
30719SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30720 PyObject *resultobj = 0;
30721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30722 long arg2 ;
30723 bool result;
30724 void *argp1 = 0 ;
30725 int res1 = 0 ;
30726 long val2 ;
30727 int ecode2 = 0 ;
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
30730 char * kwnames[] = {
30731 (char *) "self",(char *) "item", NULL
30732 };
30733
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30738 }
30739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30740 ecode2 = SWIG_AsVal_long(obj1, &val2);
30741 if (!SWIG_IsOK(ecode2)) {
30742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30743 }
30744 arg2 = static_cast< long >(val2);
30745 {
30746 PyThreadState* __tstate = wxPyBeginAllowThreads();
30747 result = (bool)(arg1)->DeleteItem(arg2);
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 {
30752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30753 }
30754 return resultobj;
30755fail:
30756 return NULL;
d55e5bfc
RD
30757}
30758
30759
1bd55598
RD
30760SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30761 PyObject *resultobj = 0;
30762 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30763 bool result;
30764 void *argp1 = 0 ;
30765 int res1 = 0 ;
30766 PyObject *swig_obj[1] ;
30767
30768 if (!args) SWIG_fail;
30769 swig_obj[0] = args;
30770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30771 if (!SWIG_IsOK(res1)) {
30772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30773 }
30774 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30775 {
30776 PyThreadState* __tstate = wxPyBeginAllowThreads();
30777 result = (bool)(arg1)->DeleteAllItems();
30778 wxPyEndAllowThreads(__tstate);
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
30781 {
30782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30783 }
30784 return resultobj;
30785fail:
30786 return NULL;
30787}
30788
30789
30790SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30791 PyObject *resultobj = 0;
30792 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30793 int arg2 ;
30794 bool result;
30795 void *argp1 = 0 ;
30796 int res1 = 0 ;
30797 int val2 ;
30798 int ecode2 = 0 ;
30799 PyObject * obj0 = 0 ;
30800 PyObject * obj1 = 0 ;
30801 char * kwnames[] = {
30802 (char *) "self",(char *) "col", NULL
30803 };
30804
30805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30807 if (!SWIG_IsOK(res1)) {
30808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30809 }
30810 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30811 ecode2 = SWIG_AsVal_int(obj1, &val2);
30812 if (!SWIG_IsOK(ecode2)) {
30813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30814 }
30815 arg2 = static_cast< int >(val2);
30816 {
30817 PyThreadState* __tstate = wxPyBeginAllowThreads();
30818 result = (bool)(arg1)->DeleteColumn(arg2);
30819 wxPyEndAllowThreads(__tstate);
30820 if (PyErr_Occurred()) SWIG_fail;
30821 }
30822 {
30823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30824 }
30825 return resultobj;
30826fail:
30827 return NULL;
b411df4a
RD
30828}
30829
30830
1bd55598
RD
30831SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30832 PyObject *resultobj = 0;
30833 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30834 bool result;
30835 void *argp1 = 0 ;
30836 int res1 = 0 ;
30837 PyObject *swig_obj[1] ;
30838
30839 if (!args) SWIG_fail;
30840 swig_obj[0] = args;
30841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30842 if (!SWIG_IsOK(res1)) {
30843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30844 }
30845 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30846 {
30847 PyThreadState* __tstate = wxPyBeginAllowThreads();
30848 result = (bool)(arg1)->DeleteAllColumns();
30849 wxPyEndAllowThreads(__tstate);
30850 if (PyErr_Occurred()) SWIG_fail;
30851 }
30852 {
30853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30854 }
30855 return resultobj;
30856fail:
30857 return NULL;
b411df4a
RD
30858}
30859
30860
1bd55598
RD
30861SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30862 PyObject *resultobj = 0;
30863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30864 void *argp1 = 0 ;
30865 int res1 = 0 ;
30866 PyObject *swig_obj[1] ;
30867
30868 if (!args) SWIG_fail;
30869 swig_obj[0] = args;
30870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30871 if (!SWIG_IsOK(res1)) {
30872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30873 }
30874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30875 {
30876 PyThreadState* __tstate = wxPyBeginAllowThreads();
30877 (arg1)->ClearAll();
30878 wxPyEndAllowThreads(__tstate);
30879 if (PyErr_Occurred()) SWIG_fail;
30880 }
30881 resultobj = SWIG_Py_Void();
30882 return resultobj;
30883fail:
30884 return NULL;
30885}
30886
30887
30888SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30889 PyObject *resultobj = 0;
30890 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30891 long arg2 ;
30892 void *argp1 = 0 ;
30893 int res1 = 0 ;
30894 long val2 ;
30895 int ecode2 = 0 ;
30896 PyObject * obj0 = 0 ;
30897 PyObject * obj1 = 0 ;
30898 char * kwnames[] = {
30899 (char *) "self",(char *) "item", NULL
30900 };
30901
30902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30904 if (!SWIG_IsOK(res1)) {
30905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30906 }
30907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30908 ecode2 = SWIG_AsVal_long(obj1, &val2);
30909 if (!SWIG_IsOK(ecode2)) {
30910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30911 }
30912 arg2 = static_cast< long >(val2);
30913 {
30914 PyThreadState* __tstate = wxPyBeginAllowThreads();
30915 (arg1)->EditLabel(arg2);
30916 wxPyEndAllowThreads(__tstate);
30917 if (PyErr_Occurred()) SWIG_fail;
30918 }
30919 resultobj = SWIG_Py_Void();
30920 return resultobj;
30921fail:
30922 return NULL;
30923}
30924
30925
30926SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30927 PyObject *resultobj = 0;
30928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30929 long arg2 ;
30930 bool result;
30931 void *argp1 = 0 ;
30932 int res1 = 0 ;
30933 long val2 ;
30934 int ecode2 = 0 ;
30935 PyObject * obj0 = 0 ;
30936 PyObject * obj1 = 0 ;
30937 char * kwnames[] = {
30938 (char *) "self",(char *) "item", NULL
30939 };
30940
30941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30943 if (!SWIG_IsOK(res1)) {
30944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30945 }
30946 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30947 ecode2 = SWIG_AsVal_long(obj1, &val2);
30948 if (!SWIG_IsOK(ecode2)) {
30949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30950 }
30951 arg2 = static_cast< long >(val2);
30952 {
30953 PyThreadState* __tstate = wxPyBeginAllowThreads();
30954 result = (bool)(arg1)->EnsureVisible(arg2);
30955 wxPyEndAllowThreads(__tstate);
30956 if (PyErr_Occurred()) SWIG_fail;
30957 }
30958 {
30959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30960 }
30961 return resultobj;
30962fail:
30963 return NULL;
30964}
30965
30966
30967SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30968 PyObject *resultobj = 0;
30969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30970 long arg2 ;
30971 wxString *arg3 = 0 ;
30972 bool arg4 = (bool) false ;
30973 long result;
30974 void *argp1 = 0 ;
30975 int res1 = 0 ;
30976 long val2 ;
30977 int ecode2 = 0 ;
30978 bool temp3 = false ;
30979 bool val4 ;
30980 int ecode4 = 0 ;
30981 PyObject * obj0 = 0 ;
30982 PyObject * obj1 = 0 ;
30983 PyObject * obj2 = 0 ;
30984 PyObject * obj3 = 0 ;
30985 char * kwnames[] = {
30986 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30987 };
30988
30989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30991 if (!SWIG_IsOK(res1)) {
30992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30993 }
30994 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30995 ecode2 = SWIG_AsVal_long(obj1, &val2);
30996 if (!SWIG_IsOK(ecode2)) {
30997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30998 }
30999 arg2 = static_cast< long >(val2);
31000 {
31001 arg3 = wxString_in_helper(obj2);
31002 if (arg3 == NULL) SWIG_fail;
31003 temp3 = true;
31004 }
31005 if (obj3) {
31006 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31007 if (!SWIG_IsOK(ecode4)) {
31008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31009 }
31010 arg4 = static_cast< bool >(val4);
31011 }
31012 {
31013 PyThreadState* __tstate = wxPyBeginAllowThreads();
31014 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31015 wxPyEndAllowThreads(__tstate);
31016 if (PyErr_Occurred()) SWIG_fail;
31017 }
31018 resultobj = SWIG_From_long(static_cast< long >(result));
31019 {
31020 if (temp3)
31021 delete arg3;
31022 }
31023 return resultobj;
31024fail:
31025 {
31026 if (temp3)
31027 delete arg3;
31028 }
31029 return NULL;
31030}
31031
31032
31033SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31036 long arg2 ;
31037 long arg3 ;
31038 long result;
31039 void *argp1 = 0 ;
31040 int res1 = 0 ;
31041 long val2 ;
31042 int ecode2 = 0 ;
31043 long val3 ;
31044 int ecode3 = 0 ;
31045 PyObject * obj0 = 0 ;
31046 PyObject * obj1 = 0 ;
31047 PyObject * obj2 = 0 ;
31048 char * kwnames[] = {
31049 (char *) "self",(char *) "start",(char *) "data", NULL
31050 };
31051
31052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31054 if (!SWIG_IsOK(res1)) {
31055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31056 }
31057 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31058 ecode2 = SWIG_AsVal_long(obj1, &val2);
31059 if (!SWIG_IsOK(ecode2)) {
31060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31061 }
31062 arg2 = static_cast< long >(val2);
31063 ecode3 = SWIG_AsVal_long(obj2, &val3);
31064 if (!SWIG_IsOK(ecode3)) {
31065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31066 }
31067 arg3 = static_cast< long >(val3);
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (long)(arg1)->FindItem(arg2,arg3);
31071 wxPyEndAllowThreads(__tstate);
31072 if (PyErr_Occurred()) SWIG_fail;
31073 }
31074 resultobj = SWIG_From_long(static_cast< long >(result));
31075 return resultobj;
31076fail:
31077 return NULL;
31078}
31079
31080
31081SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj = 0;
31083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31084 long arg2 ;
31085 wxPoint *arg3 = 0 ;
31086 int arg4 ;
31087 long result;
31088 void *argp1 = 0 ;
31089 int res1 = 0 ;
31090 long val2 ;
31091 int ecode2 = 0 ;
31092 wxPoint temp3 ;
31093 int val4 ;
31094 int ecode4 = 0 ;
31095 PyObject * obj0 = 0 ;
31096 PyObject * obj1 = 0 ;
31097 PyObject * obj2 = 0 ;
31098 PyObject * obj3 = 0 ;
31099 char * kwnames[] = {
31100 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31101 };
31102
31103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31105 if (!SWIG_IsOK(res1)) {
31106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31107 }
31108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31109 ecode2 = SWIG_AsVal_long(obj1, &val2);
31110 if (!SWIG_IsOK(ecode2)) {
31111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31112 }
31113 arg2 = static_cast< long >(val2);
31114 {
31115 arg3 = &temp3;
31116 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31117 }
31118 ecode4 = SWIG_AsVal_int(obj3, &val4);
31119 if (!SWIG_IsOK(ecode4)) {
31120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31121 }
31122 arg4 = static_cast< int >(val4);
31123 {
31124 PyThreadState* __tstate = wxPyBeginAllowThreads();
31125 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31126 wxPyEndAllowThreads(__tstate);
31127 if (PyErr_Occurred()) SWIG_fail;
31128 }
31129 resultobj = SWIG_From_long(static_cast< long >(result));
31130 return resultobj;
31131fail:
31132 return NULL;
31133}
31134
31135
31136SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31137 PyObject *resultobj = 0;
31138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31139 wxPoint *arg2 = 0 ;
31140 int *arg3 = 0 ;
31141 long result;
31142 void *argp1 = 0 ;
31143 int res1 = 0 ;
31144 wxPoint temp2 ;
31145 int temp3 ;
31146 int res3 = SWIG_TMPOBJ ;
31147 PyObject * obj0 = 0 ;
31148 PyObject * obj1 = 0 ;
31149 char * kwnames[] = {
31150 (char *) "self",(char *) "point", NULL
31151 };
31152
31153 arg3 = &temp3;
31154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31156 if (!SWIG_IsOK(res1)) {
31157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31158 }
31159 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31160 {
31161 arg2 = &temp2;
31162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31163 }
31164 {
31165 PyThreadState* __tstate = wxPyBeginAllowThreads();
31166 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31167 wxPyEndAllowThreads(__tstate);
31168 if (PyErr_Occurred()) SWIG_fail;
31169 }
31170 resultobj = SWIG_From_long(static_cast< long >(result));
31171 if (SWIG_IsTmpObj(res3)) {
31172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31173 } else {
31174 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31176 }
31177 return resultobj;
31178fail:
31179 return NULL;
31180}
31181
31182
704eda0c
RD
31183SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31184 PyObject *resultobj = 0;
31185 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31186 wxPoint *arg2 = 0 ;
31187 int *arg3 = 0 ;
31188 long *arg4 = (long *) 0 ;
31189 long result;
31190 void *argp1 = 0 ;
31191 int res1 = 0 ;
31192 wxPoint temp2 ;
31193 int temp3 ;
31194 int res3 = SWIG_TMPOBJ ;
31195 long temp4 ;
31196 int res4 = SWIG_TMPOBJ ;
31197 PyObject * obj0 = 0 ;
31198 PyObject * obj1 = 0 ;
31199 char * kwnames[] = {
31200 (char *) "self",(char *) "point", NULL
31201 };
31202
31203 arg3 = &temp3;
31204 arg4 = &temp4;
31205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31207 if (!SWIG_IsOK(res1)) {
31208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31209 }
31210 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31211 {
31212 arg2 = &temp2;
31213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31214 }
31215 {
31216 PyThreadState* __tstate = wxPyBeginAllowThreads();
31217 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 resultobj = SWIG_From_long(static_cast< long >(result));
31222 if (SWIG_IsTmpObj(res3)) {
31223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31224 } else {
31225 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31226 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31227 }
31228 if (SWIG_IsTmpObj(res4)) {
31229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31230 } else {
31231 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31233 }
31234 return resultobj;
31235fail:
31236 return NULL;
31237}
31238
31239
1bd55598
RD
31240SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31241 PyObject *resultobj = 0;
31242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31243 wxListItem *arg2 = 0 ;
31244 long result;
31245 void *argp1 = 0 ;
31246 int res1 = 0 ;
31247 void *argp2 = 0 ;
31248 int res2 = 0 ;
31249 PyObject * obj0 = 0 ;
31250 PyObject * obj1 = 0 ;
31251 char * kwnames[] = {
31252 (char *) "self",(char *) "info", NULL
31253 };
31254
31255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31257 if (!SWIG_IsOK(res1)) {
31258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31259 }
31260 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31262 if (!SWIG_IsOK(res2)) {
31263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31264 }
31265 if (!argp2) {
31266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31267 }
31268 arg2 = reinterpret_cast< wxListItem * >(argp2);
31269 {
31270 PyThreadState* __tstate = wxPyBeginAllowThreads();
31271 result = (long)(arg1)->InsertItem(*arg2);
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 resultobj = SWIG_From_long(static_cast< long >(result));
31276 return resultobj;
31277fail:
31278 return NULL;
31279}
31280
31281
31282SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31283 PyObject *resultobj = 0;
31284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31285 long arg2 ;
31286 wxString *arg3 = 0 ;
31287 int arg4 = (int) -1 ;
31288 long result;
31289 void *argp1 = 0 ;
31290 int res1 = 0 ;
31291 long val2 ;
31292 int ecode2 = 0 ;
31293 bool temp3 = false ;
31294 int val4 ;
31295 int ecode4 = 0 ;
31296 PyObject * obj0 = 0 ;
31297 PyObject * obj1 = 0 ;
31298 PyObject * obj2 = 0 ;
31299 PyObject * obj3 = 0 ;
31300 char * kwnames[] = {
31301 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31302 };
31303
31304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31306 if (!SWIG_IsOK(res1)) {
31307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31308 }
31309 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31310 ecode2 = SWIG_AsVal_long(obj1, &val2);
31311 if (!SWIG_IsOK(ecode2)) {
31312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31313 }
31314 arg2 = static_cast< long >(val2);
31315 {
31316 arg3 = wxString_in_helper(obj2);
31317 if (arg3 == NULL) SWIG_fail;
31318 temp3 = true;
31319 }
31320 if (obj3) {
31321 ecode4 = SWIG_AsVal_int(obj3, &val4);
31322 if (!SWIG_IsOK(ecode4)) {
31323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31324 }
31325 arg4 = static_cast< int >(val4);
31326 }
31327 {
31328 PyThreadState* __tstate = wxPyBeginAllowThreads();
31329 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31330 wxPyEndAllowThreads(__tstate);
31331 if (PyErr_Occurred()) SWIG_fail;
31332 }
31333 resultobj = SWIG_From_long(static_cast< long >(result));
31334 {
31335 if (temp3)
31336 delete arg3;
31337 }
31338 return resultobj;
31339fail:
31340 {
31341 if (temp3)
31342 delete arg3;
31343 }
31344 return NULL;
31345}
31346
31347
31348SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31349 PyObject *resultobj = 0;
31350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31351 long arg2 ;
31352 int arg3 ;
31353 long result;
31354 void *argp1 = 0 ;
31355 int res1 = 0 ;
31356 long val2 ;
31357 int ecode2 = 0 ;
31358 int val3 ;
31359 int ecode3 = 0 ;
31360 PyObject * obj0 = 0 ;
31361 PyObject * obj1 = 0 ;
31362 PyObject * obj2 = 0 ;
31363 char * kwnames[] = {
31364 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31365 };
31366
31367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31371 }
31372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31373 ecode2 = SWIG_AsVal_long(obj1, &val2);
31374 if (!SWIG_IsOK(ecode2)) {
31375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31376 }
31377 arg2 = static_cast< long >(val2);
31378 ecode3 = SWIG_AsVal_int(obj2, &val3);
31379 if (!SWIG_IsOK(ecode3)) {
31380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31381 }
31382 arg3 = static_cast< int >(val3);
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (long)(arg1)->InsertItem(arg2,arg3);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_From_long(static_cast< long >(result));
31390 return resultobj;
31391fail:
31392 return NULL;
31393}
31394
31395
31396SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31397 PyObject *resultobj = 0;
31398 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31399 long arg2 ;
31400 wxString *arg3 = 0 ;
31401 int arg4 ;
31402 long result;
31403 void *argp1 = 0 ;
31404 int res1 = 0 ;
31405 long val2 ;
31406 int ecode2 = 0 ;
31407 bool temp3 = false ;
31408 int val4 ;
31409 int ecode4 = 0 ;
31410 PyObject * obj0 = 0 ;
31411 PyObject * obj1 = 0 ;
31412 PyObject * obj2 = 0 ;
31413 PyObject * obj3 = 0 ;
31414 char * kwnames[] = {
31415 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31416 };
31417
31418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31420 if (!SWIG_IsOK(res1)) {
31421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31422 }
31423 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31424 ecode2 = SWIG_AsVal_long(obj1, &val2);
31425 if (!SWIG_IsOK(ecode2)) {
31426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31427 }
31428 arg2 = static_cast< long >(val2);
31429 {
31430 arg3 = wxString_in_helper(obj2);
31431 if (arg3 == NULL) SWIG_fail;
31432 temp3 = true;
31433 }
31434 ecode4 = SWIG_AsVal_int(obj3, &val4);
31435 if (!SWIG_IsOK(ecode4)) {
31436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31437 }
31438 arg4 = static_cast< int >(val4);
31439 {
31440 PyThreadState* __tstate = wxPyBeginAllowThreads();
31441 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31442 wxPyEndAllowThreads(__tstate);
31443 if (PyErr_Occurred()) SWIG_fail;
31444 }
31445 resultobj = SWIG_From_long(static_cast< long >(result));
31446 {
31447 if (temp3)
31448 delete arg3;
31449 }
31450 return resultobj;
31451fail:
31452 {
31453 if (temp3)
31454 delete arg3;
31455 }
31456 return NULL;
31457}
31458
31459
31460SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31461 PyObject *resultobj = 0;
31462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31463 long arg2 ;
31464 wxListItem *arg3 = 0 ;
31465 long result;
31466 void *argp1 = 0 ;
31467 int res1 = 0 ;
31468 long val2 ;
31469 int ecode2 = 0 ;
31470 void *argp3 = 0 ;
31471 int res3 = 0 ;
31472 PyObject * obj0 = 0 ;
31473 PyObject * obj1 = 0 ;
31474 PyObject * obj2 = 0 ;
31475 char * kwnames[] = {
31476 (char *) "self",(char *) "col",(char *) "info", NULL
31477 };
31478
31479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31481 if (!SWIG_IsOK(res1)) {
31482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31483 }
31484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31485 ecode2 = SWIG_AsVal_long(obj1, &val2);
31486 if (!SWIG_IsOK(ecode2)) {
31487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31488 }
31489 arg2 = static_cast< long >(val2);
31490 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31491 if (!SWIG_IsOK(res3)) {
31492 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31493 }
31494 if (!argp3) {
31495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31496 }
31497 arg3 = reinterpret_cast< wxListItem * >(argp3);
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 resultobj = SWIG_From_long(static_cast< long >(result));
31505 return resultobj;
31506fail:
31507 return NULL;
31508}
31509
31510
31511SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31512 PyObject *resultobj = 0;
31513 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31514 long arg2 ;
31515 wxString *arg3 = 0 ;
31516 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31517 int arg5 = (int) -1 ;
31518 long result;
31519 void *argp1 = 0 ;
31520 int res1 = 0 ;
31521 long val2 ;
31522 int ecode2 = 0 ;
31523 bool temp3 = false ;
31524 int val4 ;
31525 int ecode4 = 0 ;
31526 int val5 ;
31527 int ecode5 = 0 ;
31528 PyObject * obj0 = 0 ;
31529 PyObject * obj1 = 0 ;
31530 PyObject * obj2 = 0 ;
31531 PyObject * obj3 = 0 ;
31532 PyObject * obj4 = 0 ;
31533 char * kwnames[] = {
31534 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31535 };
31536
31537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31539 if (!SWIG_IsOK(res1)) {
31540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31541 }
31542 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31543 ecode2 = SWIG_AsVal_long(obj1, &val2);
31544 if (!SWIG_IsOK(ecode2)) {
31545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31546 }
31547 arg2 = static_cast< long >(val2);
31548 {
31549 arg3 = wxString_in_helper(obj2);
31550 if (arg3 == NULL) SWIG_fail;
31551 temp3 = true;
31552 }
31553 if (obj3) {
31554 ecode4 = SWIG_AsVal_int(obj3, &val4);
31555 if (!SWIG_IsOK(ecode4)) {
31556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31557 }
31558 arg4 = static_cast< int >(val4);
31559 }
31560 if (obj4) {
31561 ecode5 = SWIG_AsVal_int(obj4, &val5);
31562 if (!SWIG_IsOK(ecode5)) {
31563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31564 }
31565 arg5 = static_cast< int >(val5);
31566 }
31567 {
31568 PyThreadState* __tstate = wxPyBeginAllowThreads();
31569 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31570 wxPyEndAllowThreads(__tstate);
31571 if (PyErr_Occurred()) SWIG_fail;
31572 }
31573 resultobj = SWIG_From_long(static_cast< long >(result));
31574 {
31575 if (temp3)
31576 delete arg3;
31577 }
31578 return resultobj;
31579fail:
31580 {
31581 if (temp3)
31582 delete arg3;
31583 }
31584 return NULL;
31585}
31586
31587
31588SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31589 PyObject *resultobj = 0;
31590 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31591 long arg2 ;
31592 void *argp1 = 0 ;
31593 int res1 = 0 ;
31594 long val2 ;
31595 int ecode2 = 0 ;
31596 PyObject * obj0 = 0 ;
31597 PyObject * obj1 = 0 ;
31598 char * kwnames[] = {
31599 (char *) "self",(char *) "count", NULL
31600 };
31601
31602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31604 if (!SWIG_IsOK(res1)) {
31605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31606 }
31607 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31608 ecode2 = SWIG_AsVal_long(obj1, &val2);
31609 if (!SWIG_IsOK(ecode2)) {
31610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31611 }
31612 arg2 = static_cast< long >(val2);
31613 {
31614 PyThreadState* __tstate = wxPyBeginAllowThreads();
31615 (arg1)->SetItemCount(arg2);
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 resultobj = SWIG_Py_Void();
31620 return resultobj;
31621fail:
31622 return NULL;
31623}
31624
31625
31626SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31627 PyObject *resultobj = 0;
31628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31629 int arg2 ;
31630 int arg3 ;
31631 bool result;
31632 void *argp1 = 0 ;
31633 int res1 = 0 ;
31634 int val2 ;
31635 int ecode2 = 0 ;
31636 int val3 ;
31637 int ecode3 = 0 ;
31638 PyObject * obj0 = 0 ;
31639 PyObject * obj1 = 0 ;
31640 PyObject * obj2 = 0 ;
31641 char * kwnames[] = {
31642 (char *) "self",(char *) "dx",(char *) "dy", NULL
31643 };
31644
31645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31647 if (!SWIG_IsOK(res1)) {
31648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31649 }
31650 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31651 ecode2 = SWIG_AsVal_int(obj1, &val2);
31652 if (!SWIG_IsOK(ecode2)) {
31653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31654 }
31655 arg2 = static_cast< int >(val2);
31656 ecode3 = SWIG_AsVal_int(obj2, &val3);
31657 if (!SWIG_IsOK(ecode3)) {
31658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31659 }
31660 arg3 = static_cast< int >(val3);
31661 {
31662 PyThreadState* __tstate = wxPyBeginAllowThreads();
31663 result = (bool)(arg1)->ScrollList(arg2,arg3);
31664 wxPyEndAllowThreads(__tstate);
31665 if (PyErr_Occurred()) SWIG_fail;
31666 }
31667 {
31668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31669 }
31670 return resultobj;
31671fail:
31672 return NULL;
31673}
31674
31675
31676SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31677 PyObject *resultobj = 0;
31678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31679 long arg2 ;
31680 wxColour *arg3 = 0 ;
31681 void *argp1 = 0 ;
31682 int res1 = 0 ;
31683 long val2 ;
31684 int ecode2 = 0 ;
31685 wxColour temp3 ;
31686 PyObject * obj0 = 0 ;
31687 PyObject * obj1 = 0 ;
31688 PyObject * obj2 = 0 ;
31689 char * kwnames[] = {
31690 (char *) "self",(char *) "item",(char *) "col", NULL
31691 };
31692
31693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31695 if (!SWIG_IsOK(res1)) {
31696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31697 }
31698 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31699 ecode2 = SWIG_AsVal_long(obj1, &val2);
31700 if (!SWIG_IsOK(ecode2)) {
31701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31702 }
31703 arg2 = static_cast< long >(val2);
31704 {
31705 arg3 = &temp3;
31706 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31707 }
31708 {
31709 PyThreadState* __tstate = wxPyBeginAllowThreads();
31710 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31711 wxPyEndAllowThreads(__tstate);
31712 if (PyErr_Occurred()) SWIG_fail;
31713 }
31714 resultobj = SWIG_Py_Void();
31715 return resultobj;
31716fail:
31717 return NULL;
31718}
31719
31720
31721SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31722 PyObject *resultobj = 0;
31723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31724 long arg2 ;
31725 wxColour result;
31726 void *argp1 = 0 ;
31727 int res1 = 0 ;
31728 long val2 ;
31729 int ecode2 = 0 ;
31730 PyObject * obj0 = 0 ;
31731 PyObject * obj1 = 0 ;
31732 char * kwnames[] = {
31733 (char *) "self",(char *) "item", NULL
31734 };
31735
31736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31738 if (!SWIG_IsOK(res1)) {
31739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31740 }
31741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31742 ecode2 = SWIG_AsVal_long(obj1, &val2);
31743 if (!SWIG_IsOK(ecode2)) {
31744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31745 }
31746 arg2 = static_cast< long >(val2);
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
31749 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31754 return resultobj;
31755fail:
31756 return NULL;
31757}
31758
31759
31760SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31761 PyObject *resultobj = 0;
31762 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31763 long arg2 ;
31764 wxColour *arg3 = 0 ;
31765 void *argp1 = 0 ;
31766 int res1 = 0 ;
31767 long val2 ;
31768 int ecode2 = 0 ;
31769 wxColour temp3 ;
31770 PyObject * obj0 = 0 ;
31771 PyObject * obj1 = 0 ;
31772 PyObject * obj2 = 0 ;
31773 char * kwnames[] = {
31774 (char *) "self",(char *) "item",(char *) "col", NULL
31775 };
31776
31777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31779 if (!SWIG_IsOK(res1)) {
31780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31781 }
31782 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31783 ecode2 = SWIG_AsVal_long(obj1, &val2);
31784 if (!SWIG_IsOK(ecode2)) {
31785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31786 }
31787 arg2 = static_cast< long >(val2);
31788 {
31789 arg3 = &temp3;
31790 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31791 }
31792 {
31793 PyThreadState* __tstate = wxPyBeginAllowThreads();
31794 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31795 wxPyEndAllowThreads(__tstate);
31796 if (PyErr_Occurred()) SWIG_fail;
31797 }
31798 resultobj = SWIG_Py_Void();
31799 return resultobj;
31800fail:
31801 return NULL;
31802}
31803
31804
31805SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31806 PyObject *resultobj = 0;
31807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31808 long arg2 ;
31809 wxColour result;
31810 void *argp1 = 0 ;
31811 int res1 = 0 ;
31812 long val2 ;
31813 int ecode2 = 0 ;
31814 PyObject * obj0 = 0 ;
31815 PyObject * obj1 = 0 ;
31816 char * kwnames[] = {
31817 (char *) "self",(char *) "item", NULL
31818 };
31819
31820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31822 if (!SWIG_IsOK(res1)) {
31823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31824 }
31825 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31826 ecode2 = SWIG_AsVal_long(obj1, &val2);
31827 if (!SWIG_IsOK(ecode2)) {
31828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31829 }
31830 arg2 = static_cast< long >(val2);
31831 {
31832 PyThreadState* __tstate = wxPyBeginAllowThreads();
31833 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31834 wxPyEndAllowThreads(__tstate);
31835 if (PyErr_Occurred()) SWIG_fail;
31836 }
31837 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31838 return resultobj;
31839fail:
31840 return NULL;
31841}
31842
31843
31844SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31845 PyObject *resultobj = 0;
31846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31847 long arg2 ;
31848 wxFont *arg3 = 0 ;
31849 void *argp1 = 0 ;
31850 int res1 = 0 ;
31851 long val2 ;
31852 int ecode2 = 0 ;
31853 void *argp3 = 0 ;
31854 int res3 = 0 ;
31855 PyObject * obj0 = 0 ;
31856 PyObject * obj1 = 0 ;
31857 PyObject * obj2 = 0 ;
31858 char * kwnames[] = {
31859 (char *) "self",(char *) "item",(char *) "f", NULL
31860 };
31861
31862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31864 if (!SWIG_IsOK(res1)) {
31865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31866 }
31867 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31868 ecode2 = SWIG_AsVal_long(obj1, &val2);
31869 if (!SWIG_IsOK(ecode2)) {
31870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31871 }
31872 arg2 = static_cast< long >(val2);
31873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31874 if (!SWIG_IsOK(res3)) {
31875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31876 }
31877 if (!argp3) {
31878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31879 }
31880 arg3 = reinterpret_cast< wxFont * >(argp3);
31881 {
31882 PyThreadState* __tstate = wxPyBeginAllowThreads();
31883 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31884 wxPyEndAllowThreads(__tstate);
31885 if (PyErr_Occurred()) SWIG_fail;
31886 }
31887 resultobj = SWIG_Py_Void();
31888 return resultobj;
31889fail:
31890 return NULL;
31891}
31892
31893
31894SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31895 PyObject *resultobj = 0;
31896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31897 long arg2 ;
31898 wxFont result;
31899 void *argp1 = 0 ;
31900 int res1 = 0 ;
31901 long val2 ;
31902 int ecode2 = 0 ;
31903 PyObject * obj0 = 0 ;
31904 PyObject * obj1 = 0 ;
31905 char * kwnames[] = {
31906 (char *) "self",(char *) "item", NULL
31907 };
31908
31909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31911 if (!SWIG_IsOK(res1)) {
31912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31913 }
31914 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31915 ecode2 = SWIG_AsVal_long(obj1, &val2);
31916 if (!SWIG_IsOK(ecode2)) {
31917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31918 }
31919 arg2 = static_cast< long >(val2);
31920 {
31921 PyThreadState* __tstate = wxPyBeginAllowThreads();
31922 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31923 wxPyEndAllowThreads(__tstate);
31924 if (PyErr_Occurred()) SWIG_fail;
31925 }
31926 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31927 return resultobj;
31928fail:
31929 return NULL;
31930}
31931
31932
31933SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31934 PyObject *resultobj = 0;
31935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31936 PyObject *arg2 = (PyObject *) 0 ;
31937 bool result;
31938 void *argp1 = 0 ;
31939 int res1 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 PyObject * obj1 = 0 ;
31942 char * kwnames[] = {
31943 (char *) "self",(char *) "func", NULL
31944 };
31945
31946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31948 if (!SWIG_IsOK(res1)) {
31949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31950 }
31951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31952 arg2 = obj1;
31953 {
31954 PyThreadState* __tstate = wxPyBeginAllowThreads();
31955 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31956 wxPyEndAllowThreads(__tstate);
31957 if (PyErr_Occurred()) SWIG_fail;
31958 }
31959 {
31960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31961 }
31962 return resultobj;
31963fail:
31964 return NULL;
b411df4a
RD
31965}
31966
31967
1bd55598
RD
31968SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31969 PyObject *resultobj = 0;
31970 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31971 wxWindow *result = 0 ;
31972 void *argp1 = 0 ;
31973 int res1 = 0 ;
31974 PyObject *swig_obj[1] ;
31975
31976 if (!args) SWIG_fail;
31977 swig_obj[0] = args;
31978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31979 if (!SWIG_IsOK(res1)) {
31980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31981 }
31982 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31983 {
31984 PyThreadState* __tstate = wxPyBeginAllowThreads();
31985 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31986 wxPyEndAllowThreads(__tstate);
31987 if (PyErr_Occurred()) SWIG_fail;
31988 }
31989 {
31990 resultobj = wxPyMake_wxObject(result, 0);
31991 }
31992 return resultobj;
31993fail:
31994 return NULL;
7993762b
RD
31995}
31996
31997
1bd55598
RD
31998SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31999 PyObject *resultobj = 0;
32000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32001 SwigValueWrapper<wxVisualAttributes > result;
32002 int val1 ;
32003 int ecode1 = 0 ;
32004 PyObject * obj0 = 0 ;
32005 char * kwnames[] = {
32006 (char *) "variant", NULL
32007 };
32008
32009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32010 if (obj0) {
32011 ecode1 = SWIG_AsVal_int(obj0, &val1);
32012 if (!SWIG_IsOK(ecode1)) {
32013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32014 }
32015 arg1 = static_cast< wxWindowVariant >(val1);
32016 }
32017 {
32018 if (!wxPyCheckForApp()) SWIG_fail;
32019 PyThreadState* __tstate = wxPyBeginAllowThreads();
32020 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32021 wxPyEndAllowThreads(__tstate);
32022 if (PyErr_Occurred()) SWIG_fail;
32023 }
32024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32025 return resultobj;
32026fail:
32027 return NULL;
32028}
32029
32030
32031SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32032 PyObject *obj;
32033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32034 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32035 return SWIG_Py_Void();
32036}
32037
32038SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32039 return SWIG_Python_InitShadowInstance(args);
32040}
32041
32042SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32043 PyObject *resultobj = 0;
32044 wxWindow *arg1 = (wxWindow *) 0 ;
32045 int arg2 = (int) -1 ;
32046 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32047 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32048 wxSize const &arg4_defvalue = wxDefaultSize ;
32049 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32050 long arg5 = (long) wxLC_REPORT ;
32051 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32052 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32053 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32054 wxString *arg7 = (wxString *) &arg7_defvalue ;
32055 wxListView *result = 0 ;
32056 void *argp1 = 0 ;
32057 int res1 = 0 ;
32058 int val2 ;
32059 int ecode2 = 0 ;
32060 wxPoint temp3 ;
32061 wxSize temp4 ;
32062 long val5 ;
32063 int ecode5 = 0 ;
32064 void *argp6 = 0 ;
32065 int res6 = 0 ;
32066 bool temp7 = false ;
32067 PyObject * obj0 = 0 ;
32068 PyObject * obj1 = 0 ;
32069 PyObject * obj2 = 0 ;
32070 PyObject * obj3 = 0 ;
32071 PyObject * obj4 = 0 ;
32072 PyObject * obj5 = 0 ;
32073 PyObject * obj6 = 0 ;
32074 char * kwnames[] = {
32075 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32076 };
32077
32078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32080 if (!SWIG_IsOK(res1)) {
32081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32082 }
32083 arg1 = reinterpret_cast< wxWindow * >(argp1);
32084 if (obj1) {
32085 ecode2 = SWIG_AsVal_int(obj1, &val2);
32086 if (!SWIG_IsOK(ecode2)) {
32087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32088 }
32089 arg2 = static_cast< int >(val2);
32090 }
32091 if (obj2) {
b411df4a 32092 {
1bd55598
RD
32093 arg3 = &temp3;
32094 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 32095 }
1bd55598
RD
32096 }
32097 if (obj3) {
32098 {
32099 arg4 = &temp4;
32100 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 32101 }
1bd55598
RD
32102 }
32103 if (obj4) {
32104 ecode5 = SWIG_AsVal_long(obj4, &val5);
32105 if (!SWIG_IsOK(ecode5)) {
32106 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32107 }
32108 arg5 = static_cast< long >(val5);
32109 }
32110 if (obj5) {
32111 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32112 if (!SWIG_IsOK(res6)) {
32113 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32114 }
1bd55598
RD
32115 if (!argp6) {
32116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32117 }
1bd55598
RD
32118 arg6 = reinterpret_cast< wxValidator * >(argp6);
32119 }
32120 if (obj6) {
b411df4a 32121 {
1bd55598
RD
32122 arg7 = wxString_in_helper(obj6);
32123 if (arg7 == NULL) SWIG_fail;
32124 temp7 = true;
b411df4a 32125 }
1bd55598
RD
32126 }
32127 {
32128 if (!wxPyCheckForApp()) SWIG_fail;
32129 PyThreadState* __tstate = wxPyBeginAllowThreads();
32130 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32131 wxPyEndAllowThreads(__tstate);
32132 if (PyErr_Occurred()) SWIG_fail;
32133 }
32134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32135 {
32136 if (temp7)
32137 delete arg7;
32138 }
32139 return resultobj;
32140fail:
32141 {
32142 if (temp7)
32143 delete arg7;
32144 }
32145 return NULL;
b411df4a
RD
32146}
32147
32148
1bd55598
RD
32149SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32150 PyObject *resultobj = 0;
32151 wxListView *result = 0 ;
32152
32153 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32154 {
32155 if (!wxPyCheckForApp()) SWIG_fail;
32156 PyThreadState* __tstate = wxPyBeginAllowThreads();
32157 result = (wxListView *)new wxListView();
32158 wxPyEndAllowThreads(__tstate);
32159 if (PyErr_Occurred()) SWIG_fail;
32160 }
32161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32162 return resultobj;
32163fail:
32164 return NULL;
32165}
32166
32167
32168SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32169 PyObject *resultobj = 0;
32170 wxListView *arg1 = (wxListView *) 0 ;
32171 wxWindow *arg2 = (wxWindow *) 0 ;
32172 int arg3 = (int) -1 ;
32173 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32174 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32175 wxSize const &arg5_defvalue = wxDefaultSize ;
32176 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32177 long arg6 = (long) wxLC_REPORT ;
32178 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32179 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32180 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32181 wxString *arg8 = (wxString *) &arg8_defvalue ;
32182 bool result;
32183 void *argp1 = 0 ;
32184 int res1 = 0 ;
32185 void *argp2 = 0 ;
32186 int res2 = 0 ;
32187 int val3 ;
32188 int ecode3 = 0 ;
32189 wxPoint temp4 ;
32190 wxSize temp5 ;
32191 long val6 ;
32192 int ecode6 = 0 ;
32193 void *argp7 = 0 ;
32194 int res7 = 0 ;
32195 bool temp8 = false ;
32196 PyObject * obj0 = 0 ;
32197 PyObject * obj1 = 0 ;
32198 PyObject * obj2 = 0 ;
32199 PyObject * obj3 = 0 ;
32200 PyObject * obj4 = 0 ;
32201 PyObject * obj5 = 0 ;
32202 PyObject * obj6 = 0 ;
32203 PyObject * obj7 = 0 ;
32204 char * kwnames[] = {
32205 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32206 };
32207
32208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32210 if (!SWIG_IsOK(res1)) {
32211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32212 }
32213 arg1 = reinterpret_cast< wxListView * >(argp1);
32214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32215 if (!SWIG_IsOK(res2)) {
32216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32217 }
32218 arg2 = reinterpret_cast< wxWindow * >(argp2);
32219 if (obj2) {
32220 ecode3 = SWIG_AsVal_int(obj2, &val3);
32221 if (!SWIG_IsOK(ecode3)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32223 }
32224 arg3 = static_cast< int >(val3);
32225 }
32226 if (obj3) {
d55e5bfc 32227 {
1bd55598
RD
32228 arg4 = &temp4;
32229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32230 }
1bd55598
RD
32231 }
32232 if (obj4) {
36ed4f51 32233 {
1bd55598
RD
32234 arg5 = &temp5;
32235 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 32236 }
1bd55598
RD
32237 }
32238 if (obj5) {
32239 ecode6 = SWIG_AsVal_long(obj5, &val6);
32240 if (!SWIG_IsOK(ecode6)) {
32241 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32242 }
32243 arg6 = static_cast< long >(val6);
32244 }
32245 if (obj6) {
32246 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32247 if (!SWIG_IsOK(res7)) {
32248 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 32249 }
1bd55598
RD
32250 if (!argp7) {
32251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32252 }
32253 arg7 = reinterpret_cast< wxValidator * >(argp7);
32254 }
32255 if (obj7) {
d55e5bfc 32256 {
1bd55598
RD
32257 arg8 = wxString_in_helper(obj7);
32258 if (arg8 == NULL) SWIG_fail;
32259 temp8 = true;
d55e5bfc 32260 }
1bd55598
RD
32261 }
32262 {
32263 PyThreadState* __tstate = wxPyBeginAllowThreads();
32264 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32265 wxPyEndAllowThreads(__tstate);
32266 if (PyErr_Occurred()) SWIG_fail;
32267 }
32268 {
32269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32270 }
32271 {
32272 if (temp8)
32273 delete arg8;
32274 }
32275 return resultobj;
32276fail:
32277 {
32278 if (temp8)
32279 delete arg8;
32280 }
32281 return NULL;
32282}
32283
32284
32285SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32286 PyObject *resultobj = 0;
32287 wxListView *arg1 = (wxListView *) 0 ;
32288 long arg2 ;
32289 bool arg3 = (bool) true ;
32290 void *argp1 = 0 ;
32291 int res1 = 0 ;
32292 long val2 ;
32293 int ecode2 = 0 ;
32294 bool val3 ;
32295 int ecode3 = 0 ;
32296 PyObject * obj0 = 0 ;
32297 PyObject * obj1 = 0 ;
32298 PyObject * obj2 = 0 ;
32299 char * kwnames[] = {
32300 (char *) "self",(char *) "n",(char *) "on", NULL
32301 };
32302
32303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32305 if (!SWIG_IsOK(res1)) {
32306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32307 }
32308 arg1 = reinterpret_cast< wxListView * >(argp1);
32309 ecode2 = SWIG_AsVal_long(obj1, &val2);
32310 if (!SWIG_IsOK(ecode2)) {
32311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32312 }
32313 arg2 = static_cast< long >(val2);
32314 if (obj2) {
32315 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32316 if (!SWIG_IsOK(ecode3)) {
32317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32318 }
32319 arg3 = static_cast< bool >(val3);
32320 }
32321 {
32322 PyThreadState* __tstate = wxPyBeginAllowThreads();
32323 (arg1)->Select(arg2,arg3);
32324 wxPyEndAllowThreads(__tstate);
32325 if (PyErr_Occurred()) SWIG_fail;
32326 }
32327 resultobj = SWIG_Py_Void();
32328 return resultobj;
32329fail:
32330 return NULL;
32331}
32332
32333
32334SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32335 PyObject *resultobj = 0;
32336 wxListView *arg1 = (wxListView *) 0 ;
32337 long arg2 ;
32338 void *argp1 = 0 ;
32339 int res1 = 0 ;
32340 long val2 ;
32341 int ecode2 = 0 ;
32342 PyObject * obj0 = 0 ;
32343 PyObject * obj1 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "index", NULL
32346 };
32347
32348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32350 if (!SWIG_IsOK(res1)) {
32351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32352 }
32353 arg1 = reinterpret_cast< wxListView * >(argp1);
32354 ecode2 = SWIG_AsVal_long(obj1, &val2);
32355 if (!SWIG_IsOK(ecode2)) {
32356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32357 }
32358 arg2 = static_cast< long >(val2);
32359 {
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
32361 (arg1)->Focus(arg2);
32362 wxPyEndAllowThreads(__tstate);
32363 if (PyErr_Occurred()) SWIG_fail;
32364 }
32365 resultobj = SWIG_Py_Void();
32366 return resultobj;
32367fail:
32368 return NULL;
d55e5bfc
RD
32369}
32370
32371
1bd55598
RD
32372SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 PyObject *resultobj = 0;
32374 wxListView *arg1 = (wxListView *) 0 ;
32375 long result;
32376 void *argp1 = 0 ;
32377 int res1 = 0 ;
32378 PyObject *swig_obj[1] ;
32379
32380 if (!args) SWIG_fail;
32381 swig_obj[0] = args;
32382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32383 if (!SWIG_IsOK(res1)) {
32384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32385 }
32386 arg1 = reinterpret_cast< wxListView * >(argp1);
32387 {
32388 PyThreadState* __tstate = wxPyBeginAllowThreads();
32389 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 resultobj = SWIG_From_long(static_cast< long >(result));
32394 return resultobj;
32395fail:
32396 return NULL;
32397}
32398
32399
32400SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32401 PyObject *resultobj = 0;
32402 wxListView *arg1 = (wxListView *) 0 ;
32403 long arg2 ;
32404 long result;
32405 void *argp1 = 0 ;
32406 int res1 = 0 ;
32407 long val2 ;
32408 int ecode2 = 0 ;
32409 PyObject * obj0 = 0 ;
32410 PyObject * obj1 = 0 ;
32411 char * kwnames[] = {
32412 (char *) "self",(char *) "item", NULL
32413 };
32414
32415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32417 if (!SWIG_IsOK(res1)) {
32418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32419 }
32420 arg1 = reinterpret_cast< wxListView * >(argp1);
32421 ecode2 = SWIG_AsVal_long(obj1, &val2);
32422 if (!SWIG_IsOK(ecode2)) {
32423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32424 }
32425 arg2 = static_cast< long >(val2);
32426 {
32427 PyThreadState* __tstate = wxPyBeginAllowThreads();
32428 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32429 wxPyEndAllowThreads(__tstate);
32430 if (PyErr_Occurred()) SWIG_fail;
32431 }
32432 resultobj = SWIG_From_long(static_cast< long >(result));
32433 return resultobj;
32434fail:
32435 return NULL;
d55e5bfc
RD
32436}
32437
32438
1bd55598
RD
32439SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32440 PyObject *resultobj = 0;
32441 wxListView *arg1 = (wxListView *) 0 ;
32442 long result;
32443 void *argp1 = 0 ;
32444 int res1 = 0 ;
32445 PyObject *swig_obj[1] ;
32446
32447 if (!args) SWIG_fail;
32448 swig_obj[0] = args;
32449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32450 if (!SWIG_IsOK(res1)) {
32451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32452 }
32453 arg1 = reinterpret_cast< wxListView * >(argp1);
32454 {
32455 PyThreadState* __tstate = wxPyBeginAllowThreads();
32456 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32457 wxPyEndAllowThreads(__tstate);
32458 if (PyErr_Occurred()) SWIG_fail;
32459 }
32460 resultobj = SWIG_From_long(static_cast< long >(result));
32461 return resultobj;
32462fail:
32463 return NULL;
32464}
32465
32466
32467SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32468 PyObject *resultobj = 0;
32469 wxListView *arg1 = (wxListView *) 0 ;
32470 long arg2 ;
32471 bool result;
32472 void *argp1 = 0 ;
32473 int res1 = 0 ;
32474 long val2 ;
32475 int ecode2 = 0 ;
32476 PyObject * obj0 = 0 ;
32477 PyObject * obj1 = 0 ;
32478 char * kwnames[] = {
32479 (char *) "self",(char *) "index", NULL
32480 };
32481
32482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32484 if (!SWIG_IsOK(res1)) {
32485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32486 }
32487 arg1 = reinterpret_cast< wxListView * >(argp1);
32488 ecode2 = SWIG_AsVal_long(obj1, &val2);
32489 if (!SWIG_IsOK(ecode2)) {
32490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32491 }
32492 arg2 = static_cast< long >(val2);
32493 {
32494 PyThreadState* __tstate = wxPyBeginAllowThreads();
32495 result = (bool)(arg1)->IsSelected(arg2);
32496 wxPyEndAllowThreads(__tstate);
32497 if (PyErr_Occurred()) SWIG_fail;
32498 }
32499 {
32500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32501 }
32502 return resultobj;
32503fail:
32504 return NULL;
32505}
32506
32507
32508SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32509 PyObject *resultobj = 0;
32510 wxListView *arg1 = (wxListView *) 0 ;
32511 int arg2 ;
32512 int arg3 ;
32513 void *argp1 = 0 ;
32514 int res1 = 0 ;
32515 int val2 ;
32516 int ecode2 = 0 ;
32517 int val3 ;
32518 int ecode3 = 0 ;
32519 PyObject * obj0 = 0 ;
32520 PyObject * obj1 = 0 ;
32521 PyObject * obj2 = 0 ;
32522 char * kwnames[] = {
32523 (char *) "self",(char *) "col",(char *) "image", NULL
32524 };
32525
32526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32528 if (!SWIG_IsOK(res1)) {
32529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32530 }
32531 arg1 = reinterpret_cast< wxListView * >(argp1);
32532 ecode2 = SWIG_AsVal_int(obj1, &val2);
32533 if (!SWIG_IsOK(ecode2)) {
32534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32535 }
32536 arg2 = static_cast< int >(val2);
32537 ecode3 = SWIG_AsVal_int(obj2, &val3);
32538 if (!SWIG_IsOK(ecode3)) {
32539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32540 }
32541 arg3 = static_cast< int >(val3);
32542 {
32543 PyThreadState* __tstate = wxPyBeginAllowThreads();
32544 (arg1)->SetColumnImage(arg2,arg3);
32545 wxPyEndAllowThreads(__tstate);
32546 if (PyErr_Occurred()) SWIG_fail;
32547 }
32548 resultobj = SWIG_Py_Void();
32549 return resultobj;
32550fail:
32551 return NULL;
32552}
32553
32554
32555SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32556 PyObject *resultobj = 0;
32557 wxListView *arg1 = (wxListView *) 0 ;
32558 int arg2 ;
32559 void *argp1 = 0 ;
32560 int res1 = 0 ;
32561 int val2 ;
32562 int ecode2 = 0 ;
32563 PyObject * obj0 = 0 ;
32564 PyObject * obj1 = 0 ;
32565 char * kwnames[] = {
32566 (char *) "self",(char *) "col", NULL
32567 };
32568
32569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32571 if (!SWIG_IsOK(res1)) {
32572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32573 }
32574 arg1 = reinterpret_cast< wxListView * >(argp1);
32575 ecode2 = SWIG_AsVal_int(obj1, &val2);
32576 if (!SWIG_IsOK(ecode2)) {
32577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32578 }
32579 arg2 = static_cast< int >(val2);
32580 {
32581 PyThreadState* __tstate = wxPyBeginAllowThreads();
32582 (arg1)->ClearColumnImage(arg2);
32583 wxPyEndAllowThreads(__tstate);
32584 if (PyErr_Occurred()) SWIG_fail;
32585 }
32586 resultobj = SWIG_Py_Void();
32587 return resultobj;
32588fail:
32589 return NULL;
d55e5bfc
RD
32590}
32591
32592
1bd55598
RD
32593SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32594 PyObject *obj;
32595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32596 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32597 return SWIG_Py_Void();
d55e5bfc
RD
32598}
32599
1bd55598
RD
32600SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32601 return SWIG_Python_InitShadowInstance(args);
32602}
d55e5bfc 32603
1bd55598
RD
32604SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32605 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32606 return 1;
d55e5bfc
RD
32607}
32608
32609
1bd55598
RD
32610SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32611 PyObject *pyobj = 0;
32612
32613 {
32614#if wxUSE_UNICODE
32615 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32616#else
32617 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32618#endif
32619 }
32620 return pyobj;
d55e5bfc
RD
32621}
32622
32623
1bd55598
RD
32624SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32625 PyObject *resultobj = 0;
32626 wxTreeItemId *result = 0 ;
32627
32628 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32629 {
32630 PyThreadState* __tstate = wxPyBeginAllowThreads();
32631 result = (wxTreeItemId *)new wxTreeItemId();
32632 wxPyEndAllowThreads(__tstate);
32633 if (PyErr_Occurred()) SWIG_fail;
32634 }
32635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32636 return resultobj;
32637fail:
32638 return NULL;
d55e5bfc
RD
32639}
32640
32641
1bd55598
RD
32642SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32643 PyObject *resultobj = 0;
32644 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32645 void *argp1 = 0 ;
32646 int res1 = 0 ;
32647 PyObject *swig_obj[1] ;
32648
32649 if (!args) SWIG_fail;
32650 swig_obj[0] = args;
32651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32652 if (!SWIG_IsOK(res1)) {
32653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32654 }
32655 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32656 {
32657 PyThreadState* __tstate = wxPyBeginAllowThreads();
32658 delete arg1;
d55e5bfc 32659
1bd55598
RD
32660 wxPyEndAllowThreads(__tstate);
32661 if (PyErr_Occurred()) SWIG_fail;
32662 }
32663 resultobj = SWIG_Py_Void();
32664 return resultobj;
32665fail:
32666 return NULL;
d55e5bfc
RD
32667}
32668
32669
1bd55598
RD
32670SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32671 PyObject *resultobj = 0;
32672 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32673 bool result;
32674 void *argp1 = 0 ;
32675 int res1 = 0 ;
32676 PyObject *swig_obj[1] ;
32677
32678 if (!args) SWIG_fail;
32679 swig_obj[0] = args;
32680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32681 if (!SWIG_IsOK(res1)) {
32682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32683 }
32684 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32685 {
32686 PyThreadState* __tstate = wxPyBeginAllowThreads();
32687 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32688 wxPyEndAllowThreads(__tstate);
32689 if (PyErr_Occurred()) SWIG_fail;
32690 }
32691 {
32692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32693 }
32694 return resultobj;
32695fail:
32696 return NULL;
32697}
32698
32699
32700SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32701 PyObject *resultobj = 0;
32702 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32703 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32704 bool result;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 void *argp2 = 0 ;
32708 int res2 = 0 ;
32709 PyObject * obj0 = 0 ;
32710 PyObject * obj1 = 0 ;
32711 char * kwnames[] = {
32712 (char *) "self",(char *) "other", NULL
32713 };
32714
32715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32717 if (!SWIG_IsOK(res1)) {
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32719 }
32720 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32722 if (!SWIG_IsOK(res2)) {
32723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32724 }
32725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32726 {
32727 PyThreadState* __tstate = wxPyBeginAllowThreads();
32728 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32729 wxPyEndAllowThreads(__tstate);
32730 if (PyErr_Occurred()) SWIG_fail;
32731 }
32732 {
32733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32734 }
32735 return resultobj;
32736fail:
32737 return NULL;
32738}
32739
32740
32741SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32742 PyObject *resultobj = 0;
32743 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32744 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32745 bool result;
32746 void *argp1 = 0 ;
32747 int res1 = 0 ;
32748 void *argp2 = 0 ;
32749 int res2 = 0 ;
32750 PyObject * obj0 = 0 ;
32751 PyObject * obj1 = 0 ;
32752 char * kwnames[] = {
32753 (char *) "self",(char *) "other", NULL
32754 };
32755
32756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32758 if (!SWIG_IsOK(res1)) {
32759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32760 }
32761 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32763 if (!SWIG_IsOK(res2)) {
32764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32765 }
32766 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32767 {
32768 PyThreadState* __tstate = wxPyBeginAllowThreads();
32769 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32770 wxPyEndAllowThreads(__tstate);
32771 if (PyErr_Occurred()) SWIG_fail;
32772 }
32773 {
32774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32775 }
32776 return resultobj;
32777fail:
32778 return NULL;
d55e5bfc
RD
32779}
32780
32781
1bd55598
RD
32782SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32783 PyObject *resultobj = 0;
32784 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32785 void *arg2 = (void *) 0 ;
32786 void *argp1 = 0 ;
32787 int res1 = 0 ;
32788 int res2 ;
32789 PyObject *swig_obj[2] ;
32790
32791 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32793 if (!SWIG_IsOK(res1)) {
32794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32795 }
32796 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32797 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32798 if (!SWIG_IsOK(res2)) {
32799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32800 }
32801 if (arg1) (arg1)->m_pItem = arg2;
32802
32803 resultobj = SWIG_Py_Void();
32804 return resultobj;
32805fail:
32806 return NULL;
d55e5bfc
RD
32807}
32808
32809
1bd55598
RD
32810SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32811 PyObject *resultobj = 0;
32812 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32813 void *result = 0 ;
32814 void *argp1 = 0 ;
32815 int res1 = 0 ;
32816 PyObject *swig_obj[1] ;
32817
32818 if (!args) SWIG_fail;
32819 swig_obj[0] = args;
32820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32821 if (!SWIG_IsOK(res1)) {
32822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32823 }
32824 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32825 result = (void *) ((arg1)->m_pItem);
32826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32827 return resultobj;
32828fail:
32829 return NULL;
d55e5bfc
RD
32830}
32831
32832
1bd55598
RD
32833SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32834 PyObject *obj;
32835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32836 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32837 return SWIG_Py_Void();
d55e5bfc
RD
32838}
32839
1bd55598
RD
32840SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32841 return SWIG_Python_InitShadowInstance(args);
32842}
d55e5bfc 32843
1bd55598
RD
32844SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32845 PyObject *resultobj = 0;
32846 PyObject *arg1 = (PyObject *) NULL ;
32847 wxPyTreeItemData *result = 0 ;
32848 PyObject * obj0 = 0 ;
32849 char * kwnames[] = {
32850 (char *) "obj", NULL
32851 };
32852
32853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32854 if (obj0) {
32855 arg1 = obj0;
32856 }
32857 {
32858 PyThreadState* __tstate = wxPyBeginAllowThreads();
32859 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32860 wxPyEndAllowThreads(__tstate);
32861 if (PyErr_Occurred()) SWIG_fail;
32862 }
32863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32864 return resultobj;
32865fail:
32866 return NULL;
d55e5bfc
RD
32867}
32868
32869
1bd55598
RD
32870SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32871 PyObject *resultobj = 0;
32872 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32873 void *argp1 = 0 ;
32874 int res1 = 0 ;
32875 PyObject *swig_obj[1] ;
32876
32877 if (!args) SWIG_fail;
32878 swig_obj[0] = args;
32879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32880 if (!SWIG_IsOK(res1)) {
32881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32882 }
32883 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32884 {
32885 PyThreadState* __tstate = wxPyBeginAllowThreads();
32886 delete arg1;
d55e5bfc 32887
1bd55598
RD
32888 wxPyEndAllowThreads(__tstate);
32889 if (PyErr_Occurred()) SWIG_fail;
32890 }
32891 resultobj = SWIG_Py_Void();
32892 return resultobj;
32893fail:
32894 return NULL;
d55e5bfc
RD
32895}
32896
32897
1bd55598
RD
32898SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32899 PyObject *resultobj = 0;
32900 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32901 PyObject *result = 0 ;
32902 void *argp1 = 0 ;
32903 int res1 = 0 ;
32904 PyObject *swig_obj[1] ;
32905
32906 if (!args) SWIG_fail;
32907 swig_obj[0] = args;
32908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32909 if (!SWIG_IsOK(res1)) {
32910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32911 }
32912 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32913 {
32914 PyThreadState* __tstate = wxPyBeginAllowThreads();
32915 result = (PyObject *)(arg1)->GetData();
32916 wxPyEndAllowThreads(__tstate);
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 resultobj = result;
32920 return resultobj;
32921fail:
32922 return NULL;
32923}
32924
32925
32926SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32927 PyObject *resultobj = 0;
32928 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32929 PyObject *arg2 = (PyObject *) 0 ;
32930 void *argp1 = 0 ;
32931 int res1 = 0 ;
32932 PyObject * obj0 = 0 ;
32933 PyObject * obj1 = 0 ;
32934 char * kwnames[] = {
32935 (char *) "self",(char *) "obj", NULL
32936 };
32937
32938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32940 if (!SWIG_IsOK(res1)) {
32941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32942 }
32943 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32944 arg2 = obj1;
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
32947 (arg1)->SetData(arg2);
32948 wxPyEndAllowThreads(__tstate);
32949 if (PyErr_Occurred()) SWIG_fail;
32950 }
32951 resultobj = SWIG_Py_Void();
32952 return resultobj;
32953fail:
32954 return NULL;
d55e5bfc
RD
32955}
32956
32957
1bd55598
RD
32958SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32959 PyObject *resultobj = 0;
32960 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32961 wxTreeItemId *result = 0 ;
32962 void *argp1 = 0 ;
32963 int res1 = 0 ;
32964 PyObject *swig_obj[1] ;
32965
32966 if (!args) SWIG_fail;
32967 swig_obj[0] = args;
32968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32969 if (!SWIG_IsOK(res1)) {
32970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32971 }
32972 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32973 {
32974 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32975 {
1bd55598
RD
32976 wxTreeItemId const &_result_ref = (arg1)->GetId();
32977 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32978 }
1bd55598
RD
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32983 return resultobj;
32984fail:
32985 return NULL;
32986}
32987
32988
32989SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32990 PyObject *resultobj = 0;
32991 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32992 wxTreeItemId *arg2 = 0 ;
32993 void *argp1 = 0 ;
32994 int res1 = 0 ;
32995 void *argp2 = 0 ;
32996 int res2 = 0 ;
32997 PyObject * obj0 = 0 ;
32998 PyObject * obj1 = 0 ;
32999 char * kwnames[] = {
33000 (char *) "self",(char *) "id", NULL
33001 };
33002
33003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33005 if (!SWIG_IsOK(res1)) {
33006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33007 }
33008 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33010 if (!SWIG_IsOK(res2)) {
33011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33012 }
33013 if (!argp2) {
33014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33015 }
33016 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33017 {
33018 PyThreadState* __tstate = wxPyBeginAllowThreads();
33019 (arg1)->SetId((wxTreeItemId const &)*arg2);
33020 wxPyEndAllowThreads(__tstate);
33021 if (PyErr_Occurred()) SWIG_fail;
33022 }
33023 resultobj = SWIG_Py_Void();
33024 return resultobj;
33025fail:
33026 return NULL;
d55e5bfc
RD
33027}
33028
33029
1bd55598
RD
33030SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33031 PyObject *resultobj = 0;
33032 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33033 void *argp1 = 0 ;
33034 int res1 = 0 ;
33035 PyObject *swig_obj[1] ;
33036
33037 if (!args) SWIG_fail;
33038 swig_obj[0] = args;
33039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33040 if (!SWIG_IsOK(res1)) {
33041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33042 }
33043 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 wxPyTreeItemData_Destroy(arg1);
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 return resultobj;
33052fail:
33053 return NULL;
d55e5bfc
RD
33054}
33055
33056
1bd55598
RD
33057SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *obj;
33059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33060 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33061 return SWIG_Py_Void();
d55e5bfc
RD
33062}
33063
1bd55598
RD
33064SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33065 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
33066}
33067
b02396e8
RD
33068SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33069 {
33070 void *argp = 0;
33071 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33072 if (!SWIG_IsOK(res)) {
33073 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33074 }
33075 if (!argp) {
33076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33077 } else {
33078 wxTreeItemId * temp;
33079 temp = reinterpret_cast< wxTreeItemId * >(argp);
33080 wxNullTreeItemId = *temp;
33081 if (SWIG_IsNewObj(res)) delete temp;
33082 }
33083 }
33084 return 0;
33085fail:
33086 return 1;
33087}
33088
33089
33090SWIGINTERN PyObject *NullTreeItemId_get(void) {
33091 PyObject *pyobj = 0;
33092
33093 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33094 return pyobj;
33095}
33096
33097
33098SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
33099 PyObject *resultobj = 0;
33100 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33101 int arg2 = (int) 0 ;
33102 wxTreeEvent *result = 0 ;
33103 int val1 ;
33104 int ecode1 = 0 ;
33105 int val2 ;
33106 int ecode2 = 0 ;
1bd55598 33107
b02396e8
RD
33108 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33109 if (swig_obj[0]) {
33110 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
33111 if (!SWIG_IsOK(ecode1)) {
33112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33113 }
33114 arg1 = static_cast< wxEventType >(val1);
33115 }
b02396e8
RD
33116 if (swig_obj[1]) {
33117 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
33118 if (!SWIG_IsOK(ecode2)) {
33119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33120 }
33121 arg2 = static_cast< int >(val2);
33122 }
33123 {
33124 PyThreadState* __tstate = wxPyBeginAllowThreads();
33125 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33126 wxPyEndAllowThreads(__tstate);
33127 if (PyErr_Occurred()) SWIG_fail;
33128 }
33129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33130 return resultobj;
33131fail:
33132 return NULL;
d55e5bfc
RD
33133}
33134
33135
b02396e8
RD
33136SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33137 PyObject *resultobj = 0;
33138 wxEventType arg1 ;
33139 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33140 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33141 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33142 wxTreeEvent *result = 0 ;
33143 int val1 ;
33144 int ecode1 = 0 ;
33145 void *argp2 = 0 ;
33146 int res2 = 0 ;
33147 void *argp3 = 0 ;
33148 int res3 = 0 ;
33149
33150 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33151 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33152 if (!SWIG_IsOK(ecode1)) {
33153 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33154 }
33155 arg1 = static_cast< wxEventType >(val1);
33156 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33157 if (!SWIG_IsOK(res2)) {
33158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33159 }
33160 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33161 if (swig_obj[2]) {
33162 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33163 if (!SWIG_IsOK(res3)) {
33164 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33165 }
33166 if (!argp3) {
33167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33168 }
33169 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33170 }
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33174 wxPyEndAllowThreads(__tstate);
33175 if (PyErr_Occurred()) SWIG_fail;
33176 }
33177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33178 return resultobj;
33179fail:
33180 return NULL;
33181}
33182
33183
33184SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33185 int argc;
33186 PyObject *argv[4];
33187
33188 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33189 --argc;
33190 if ((argc >= 0) && (argc <= 2)) {
33191 int _v = 0;
33192 if (argc > 1) {
33193 {
33194 {
33195 int res = SWIG_AsVal_int(argv[1], NULL);
33196 _v = SWIG_CheckState(res);
33197 }
33198 }
33199 if (!_v) goto check_1;
33200 }
33201 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33202 }
33203check_1:
33204
33205 if ((argc >= 2) && (argc <= 3)) {
33206 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33207 }
33208
33209fail:
33210 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33211 return NULL;
33212}
33213
33214
1bd55598
RD
33215SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33216 PyObject *resultobj = 0;
33217 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33218 wxTreeItemId result;
33219 void *argp1 = 0 ;
33220 int res1 = 0 ;
33221 PyObject *swig_obj[1] ;
33222
33223 if (!args) SWIG_fail;
33224 swig_obj[0] = args;
33225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33226 if (!SWIG_IsOK(res1)) {
33227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33228 }
33229 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
33232 result = ((wxTreeEvent const *)arg1)->GetItem();
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
33236 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33237 return resultobj;
33238fail:
33239 return NULL;
33240}
33241
33242
33243SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33244 PyObject *resultobj = 0;
33245 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33246 wxTreeItemId *arg2 = 0 ;
33247 void *argp1 = 0 ;
33248 int res1 = 0 ;
33249 void *argp2 = 0 ;
33250 int res2 = 0 ;
33251 PyObject * obj0 = 0 ;
33252 PyObject * obj1 = 0 ;
33253 char * kwnames[] = {
33254 (char *) "self",(char *) "item", NULL
33255 };
33256
33257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33259 if (!SWIG_IsOK(res1)) {
33260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33261 }
33262 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33264 if (!SWIG_IsOK(res2)) {
33265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33266 }
33267 if (!argp2) {
33268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33269 }
33270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33271 {
33272 PyThreadState* __tstate = wxPyBeginAllowThreads();
33273 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = SWIG_Py_Void();
33278 return resultobj;
33279fail:
33280 return NULL;
d55e5bfc
RD
33281}
33282
33283
1bd55598
RD
33284SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33285 PyObject *resultobj = 0;
33286 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33287 wxTreeItemId result;
33288 void *argp1 = 0 ;
33289 int res1 = 0 ;
33290 PyObject *swig_obj[1] ;
33291
33292 if (!args) SWIG_fail;
33293 swig_obj[0] = args;
33294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33295 if (!SWIG_IsOK(res1)) {
33296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33297 }
33298 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33299 {
33300 PyThreadState* __tstate = wxPyBeginAllowThreads();
33301 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33302 wxPyEndAllowThreads(__tstate);
33303 if (PyErr_Occurred()) SWIG_fail;
33304 }
33305 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33306 return resultobj;
33307fail:
33308 return NULL;
33309}
33310
33311
33312SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33313 PyObject *resultobj = 0;
33314 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33315 wxTreeItemId *arg2 = 0 ;
33316 void *argp1 = 0 ;
33317 int res1 = 0 ;
33318 void *argp2 = 0 ;
33319 int res2 = 0 ;
33320 PyObject * obj0 = 0 ;
33321 PyObject * obj1 = 0 ;
33322 char * kwnames[] = {
33323 (char *) "self",(char *) "item", NULL
33324 };
33325
33326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33330 }
33331 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33333 if (!SWIG_IsOK(res2)) {
33334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33335 }
33336 if (!argp2) {
33337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33338 }
33339 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33340 {
33341 PyThreadState* __tstate = wxPyBeginAllowThreads();
33342 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33343 wxPyEndAllowThreads(__tstate);
33344 if (PyErr_Occurred()) SWIG_fail;
33345 }
33346 resultobj = SWIG_Py_Void();
33347 return resultobj;
33348fail:
33349 return NULL;
d55e5bfc
RD
33350}
33351
33352
1bd55598
RD
33353SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33354 PyObject *resultobj = 0;
33355 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33356 wxPoint result;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 PyObject *swig_obj[1] ;
33360
33361 if (!args) SWIG_fail;
33362 swig_obj[0] = args;
33363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33366 }
33367 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33368 {
33369 PyThreadState* __tstate = wxPyBeginAllowThreads();
33370 result = ((wxTreeEvent const *)arg1)->GetPoint();
33371 wxPyEndAllowThreads(__tstate);
33372 if (PyErr_Occurred()) SWIG_fail;
33373 }
33374 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33375 return resultobj;
33376fail:
33377 return NULL;
33378}
33379
33380
33381SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33382 PyObject *resultobj = 0;
33383 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33384 wxPoint *arg2 = 0 ;
33385 void *argp1 = 0 ;
33386 int res1 = 0 ;
33387 wxPoint temp2 ;
33388 PyObject * obj0 = 0 ;
33389 PyObject * obj1 = 0 ;
33390 char * kwnames[] = {
33391 (char *) "self",(char *) "pt", NULL
33392 };
33393
33394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33396 if (!SWIG_IsOK(res1)) {
33397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33398 }
33399 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33400 {
33401 arg2 = &temp2;
33402 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33403 }
33404 {
33405 PyThreadState* __tstate = wxPyBeginAllowThreads();
33406 (arg1)->SetPoint((wxPoint const &)*arg2);
33407 wxPyEndAllowThreads(__tstate);
33408 if (PyErr_Occurred()) SWIG_fail;
33409 }
33410 resultobj = SWIG_Py_Void();
33411 return resultobj;
33412fail:
33413 return NULL;
d55e5bfc
RD
33414}
33415
33416
1bd55598
RD
33417SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33418 PyObject *resultobj = 0;
33419 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33420 wxKeyEvent *result = 0 ;
33421 void *argp1 = 0 ;
33422 int res1 = 0 ;
33423 PyObject *swig_obj[1] ;
33424
33425 if (!args) SWIG_fail;
33426 swig_obj[0] = args;
33427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33428 if (!SWIG_IsOK(res1)) {
33429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33430 }
33431 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33432 {
33433 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33434 {
1bd55598
RD
33435 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33436 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33437 }
1bd55598
RD
33438 wxPyEndAllowThreads(__tstate);
33439 if (PyErr_Occurred()) SWIG_fail;
33440 }
33441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33442 return resultobj;
33443fail:
33444 return NULL;
d55e5bfc
RD
33445}
33446
33447
1bd55598
RD
33448SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33449 PyObject *resultobj = 0;
33450 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33451 int result;
33452 void *argp1 = 0 ;
33453 int res1 = 0 ;
33454 PyObject *swig_obj[1] ;
33455
33456 if (!args) SWIG_fail;
33457 swig_obj[0] = args;
33458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33459 if (!SWIG_IsOK(res1)) {
33460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33461 }
33462 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33463 {
33464 PyThreadState* __tstate = wxPyBeginAllowThreads();
33465 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33466 wxPyEndAllowThreads(__tstate);
33467 if (PyErr_Occurred()) SWIG_fail;
33468 }
33469 resultobj = SWIG_From_int(static_cast< int >(result));
33470 return resultobj;
33471fail:
33472 return NULL;
33473}
33474
33475
33476SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33477 PyObject *resultobj = 0;
33478 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33479 wxKeyEvent *arg2 = 0 ;
33480 void *argp1 = 0 ;
33481 int res1 = 0 ;
33482 void *argp2 = 0 ;
33483 int res2 = 0 ;
33484 PyObject * obj0 = 0 ;
33485 PyObject * obj1 = 0 ;
33486 char * kwnames[] = {
33487 (char *) "self",(char *) "evt", NULL
33488 };
33489
33490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33492 if (!SWIG_IsOK(res1)) {
33493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33494 }
33495 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33497 if (!SWIG_IsOK(res2)) {
33498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33499 }
33500 if (!argp2) {
33501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33502 }
33503 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33504 {
33505 PyThreadState* __tstate = wxPyBeginAllowThreads();
33506 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33507 wxPyEndAllowThreads(__tstate);
33508 if (PyErr_Occurred()) SWIG_fail;
33509 }
33510 resultobj = SWIG_Py_Void();
33511 return resultobj;
33512fail:
33513 return NULL;
d55e5bfc
RD
33514}
33515
33516
1bd55598
RD
33517SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33518 PyObject *resultobj = 0;
33519 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33520 wxString *result = 0 ;
33521 void *argp1 = 0 ;
33522 int res1 = 0 ;
33523 PyObject *swig_obj[1] ;
33524
33525 if (!args) SWIG_fail;
33526 swig_obj[0] = args;
33527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33528 if (!SWIG_IsOK(res1)) {
33529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33530 }
33531 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33532 {
33533 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33534 {
1bd55598
RD
33535 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33536 result = (wxString *) &_result_ref;
d55e5bfc 33537 }
1bd55598
RD
33538 wxPyEndAllowThreads(__tstate);
33539 if (PyErr_Occurred()) SWIG_fail;
33540 }
33541 {
33542#if wxUSE_UNICODE
33543 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33544#else
33545 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33546#endif
33547 }
33548 return resultobj;
33549fail:
33550 return NULL;
33551}
33552
33553
33554SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33555 PyObject *resultobj = 0;
33556 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33557 wxString *arg2 = 0 ;
33558 void *argp1 = 0 ;
33559 int res1 = 0 ;
33560 bool temp2 = false ;
33561 PyObject * obj0 = 0 ;
33562 PyObject * obj1 = 0 ;
33563 char * kwnames[] = {
33564 (char *) "self",(char *) "label", NULL
33565 };
33566
33567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33569 if (!SWIG_IsOK(res1)) {
33570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33571 }
33572 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33573 {
33574 arg2 = wxString_in_helper(obj1);
33575 if (arg2 == NULL) SWIG_fail;
33576 temp2 = true;
33577 }
33578 {
33579 PyThreadState* __tstate = wxPyBeginAllowThreads();
33580 (arg1)->SetLabel((wxString const &)*arg2);
33581 wxPyEndAllowThreads(__tstate);
33582 if (PyErr_Occurred()) SWIG_fail;
33583 }
33584 resultobj = SWIG_Py_Void();
33585 {
33586 if (temp2)
33587 delete arg2;
33588 }
33589 return resultobj;
33590fail:
33591 {
33592 if (temp2)
33593 delete arg2;
33594 }
33595 return NULL;
d55e5bfc
RD
33596}
33597
33598
1bd55598
RD
33599SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *resultobj = 0;
33601 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33602 bool result;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 PyObject *swig_obj[1] ;
33606
33607 if (!args) SWIG_fail;
33608 swig_obj[0] = args;
33609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33612 }
33613 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33614 {
33615 PyThreadState* __tstate = wxPyBeginAllowThreads();
33616 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33617 wxPyEndAllowThreads(__tstate);
33618 if (PyErr_Occurred()) SWIG_fail;
33619 }
33620 {
33621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33622 }
33623 return resultobj;
33624fail:
33625 return NULL;
33626}
33627
33628
33629SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33630 PyObject *resultobj = 0;
33631 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33632 bool arg2 ;
33633 void *argp1 = 0 ;
33634 int res1 = 0 ;
33635 bool val2 ;
33636 int ecode2 = 0 ;
33637 PyObject * obj0 = 0 ;
33638 PyObject * obj1 = 0 ;
33639 char * kwnames[] = {
33640 (char *) "self",(char *) "editCancelled", NULL
33641 };
33642
33643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33645 if (!SWIG_IsOK(res1)) {
33646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33647 }
33648 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33649 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33650 if (!SWIG_IsOK(ecode2)) {
33651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33652 }
33653 arg2 = static_cast< bool >(val2);
33654 {
33655 PyThreadState* __tstate = wxPyBeginAllowThreads();
33656 (arg1)->SetEditCanceled(arg2);
33657 wxPyEndAllowThreads(__tstate);
33658 if (PyErr_Occurred()) SWIG_fail;
33659 }
33660 resultobj = SWIG_Py_Void();
33661 return resultobj;
33662fail:
33663 return NULL;
33664}
33665
33666
33667SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33668 PyObject *resultobj = 0;
33669 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33670 wxString *arg2 = 0 ;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 bool temp2 = false ;
33674 PyObject * obj0 = 0 ;
33675 PyObject * obj1 = 0 ;
33676 char * kwnames[] = {
33677 (char *) "self",(char *) "toolTip", NULL
33678 };
33679
33680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33682 if (!SWIG_IsOK(res1)) {
33683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33684 }
33685 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33686 {
33687 arg2 = wxString_in_helper(obj1);
33688 if (arg2 == NULL) SWIG_fail;
33689 temp2 = true;
33690 }
33691 {
33692 PyThreadState* __tstate = wxPyBeginAllowThreads();
33693 (arg1)->SetToolTip((wxString const &)*arg2);
33694 wxPyEndAllowThreads(__tstate);
33695 if (PyErr_Occurred()) SWIG_fail;
33696 }
33697 resultobj = SWIG_Py_Void();
33698 {
33699 if (temp2)
33700 delete arg2;
33701 }
33702 return resultobj;
33703fail:
33704 {
33705 if (temp2)
33706 delete arg2;
33707 }
33708 return NULL;
d55e5bfc
RD
33709}
33710
33711
1bd55598
RD
33712SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33713 PyObject *resultobj = 0;
33714 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33715 wxString result;
33716 void *argp1 = 0 ;
33717 int res1 = 0 ;
33718 PyObject *swig_obj[1] ;
33719
33720 if (!args) SWIG_fail;
33721 swig_obj[0] = args;
33722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33725 }
33726 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33727 {
33728 PyThreadState* __tstate = wxPyBeginAllowThreads();
33729 result = (arg1)->GetToolTip();
33730 wxPyEndAllowThreads(__tstate);
33731 if (PyErr_Occurred()) SWIG_fail;
33732 }
33733 {
33734#if wxUSE_UNICODE
33735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33736#else
33737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33738#endif
33739 }
33740 return resultobj;
33741fail:
33742 return NULL;
33743}
33744
33745
33746SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33747 PyObject *obj;
33748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33749 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33750 return SWIG_Py_Void();
33751}
33752
33753SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33754 return SWIG_Python_InitShadowInstance(args);
33755}
33756
33757SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33758 PyObject *resultobj = 0;
33759 wxWindow *arg1 = (wxWindow *) 0 ;
33760 int arg2 = (int) -1 ;
33761 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33762 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33763 wxSize const &arg4_defvalue = wxDefaultSize ;
33764 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33765 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33766 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33767 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33768 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33769 wxString *arg7 = (wxString *) &arg7_defvalue ;
33770 wxPyTreeCtrl *result = 0 ;
33771 void *argp1 = 0 ;
33772 int res1 = 0 ;
33773 int val2 ;
33774 int ecode2 = 0 ;
33775 wxPoint temp3 ;
33776 wxSize temp4 ;
33777 long val5 ;
33778 int ecode5 = 0 ;
33779 void *argp6 = 0 ;
33780 int res6 = 0 ;
33781 bool temp7 = false ;
33782 PyObject * obj0 = 0 ;
33783 PyObject * obj1 = 0 ;
33784 PyObject * obj2 = 0 ;
33785 PyObject * obj3 = 0 ;
33786 PyObject * obj4 = 0 ;
33787 PyObject * obj5 = 0 ;
33788 PyObject * obj6 = 0 ;
33789 char * kwnames[] = {
33790 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33791 };
33792
33793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33795 if (!SWIG_IsOK(res1)) {
33796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33797 }
33798 arg1 = reinterpret_cast< wxWindow * >(argp1);
33799 if (obj1) {
33800 ecode2 = SWIG_AsVal_int(obj1, &val2);
33801 if (!SWIG_IsOK(ecode2)) {
33802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33803 }
33804 arg2 = static_cast< int >(val2);
33805 }
33806 if (obj2) {
d55e5bfc 33807 {
1bd55598
RD
33808 arg3 = &temp3;
33809 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33810 }
1bd55598
RD
33811 }
33812 if (obj3) {
36ed4f51 33813 {
1bd55598
RD
33814 arg4 = &temp4;
33815 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33816 }
1bd55598
RD
33817 }
33818 if (obj4) {
33819 ecode5 = SWIG_AsVal_long(obj4, &val5);
33820 if (!SWIG_IsOK(ecode5)) {
33821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33822 }
33823 arg5 = static_cast< long >(val5);
33824 }
33825 if (obj5) {
33826 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33827 if (!SWIG_IsOK(res6)) {
33828 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33829 }
1bd55598
RD
33830 if (!argp6) {
33831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33832 }
1bd55598
RD
33833 arg6 = reinterpret_cast< wxValidator * >(argp6);
33834 }
33835 if (obj6) {
d55e5bfc 33836 {
1bd55598
RD
33837 arg7 = wxString_in_helper(obj6);
33838 if (arg7 == NULL) SWIG_fail;
33839 temp7 = true;
d55e5bfc 33840 }
1bd55598
RD
33841 }
33842 {
33843 if (!wxPyCheckForApp()) SWIG_fail;
33844 PyThreadState* __tstate = wxPyBeginAllowThreads();
33845 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33846 wxPyEndAllowThreads(__tstate);
33847 if (PyErr_Occurred()) SWIG_fail;
33848 }
33849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33850 {
33851 if (temp7)
33852 delete arg7;
33853 }
33854 return resultobj;
33855fail:
33856 {
33857 if (temp7)
33858 delete arg7;
33859 }
33860 return NULL;
33861}
33862
33863
33864SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33865 PyObject *resultobj = 0;
33866 wxPyTreeCtrl *result = 0 ;
33867
33868 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33869 {
33870 if (!wxPyCheckForApp()) SWIG_fail;
33871 PyThreadState* __tstate = wxPyBeginAllowThreads();
33872 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33873 wxPyEndAllowThreads(__tstate);
33874 if (PyErr_Occurred()) SWIG_fail;
33875 }
33876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33877 return resultobj;
33878fail:
33879 return NULL;
33880}
33881
33882
33883SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33884 PyObject *resultobj = 0;
33885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33886 wxWindow *arg2 = (wxWindow *) 0 ;
33887 int arg3 = (int) -1 ;
33888 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33889 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33890 wxSize const &arg5_defvalue = wxDefaultSize ;
33891 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33892 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33893 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33894 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33895 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33896 wxString *arg8 = (wxString *) &arg8_defvalue ;
33897 bool result;
33898 void *argp1 = 0 ;
33899 int res1 = 0 ;
33900 void *argp2 = 0 ;
33901 int res2 = 0 ;
33902 int val3 ;
33903 int ecode3 = 0 ;
33904 wxPoint temp4 ;
33905 wxSize temp5 ;
33906 long val6 ;
33907 int ecode6 = 0 ;
33908 void *argp7 = 0 ;
33909 int res7 = 0 ;
33910 bool temp8 = false ;
33911 PyObject * obj0 = 0 ;
33912 PyObject * obj1 = 0 ;
33913 PyObject * obj2 = 0 ;
33914 PyObject * obj3 = 0 ;
33915 PyObject * obj4 = 0 ;
33916 PyObject * obj5 = 0 ;
33917 PyObject * obj6 = 0 ;
33918 PyObject * obj7 = 0 ;
33919 char * kwnames[] = {
33920 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33921 };
33922
33923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33925 if (!SWIG_IsOK(res1)) {
33926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33927 }
33928 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33930 if (!SWIG_IsOK(res2)) {
33931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33932 }
33933 arg2 = reinterpret_cast< wxWindow * >(argp2);
33934 if (obj2) {
33935 ecode3 = SWIG_AsVal_int(obj2, &val3);
33936 if (!SWIG_IsOK(ecode3)) {
33937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33938 }
33939 arg3 = static_cast< int >(val3);
33940 }
33941 if (obj3) {
d55e5bfc 33942 {
1bd55598
RD
33943 arg4 = &temp4;
33944 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33945 }
1bd55598
RD
33946 }
33947 if (obj4) {
d55e5bfc 33948 {
1bd55598
RD
33949 arg5 = &temp5;
33950 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33951 }
1bd55598
RD
33952 }
33953 if (obj5) {
33954 ecode6 = SWIG_AsVal_long(obj5, &val6);
33955 if (!SWIG_IsOK(ecode6)) {
33956 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33957 }
33958 arg6 = static_cast< long >(val6);
33959 }
33960 if (obj6) {
33961 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33962 if (!SWIG_IsOK(res7)) {
33963 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33964 }
1bd55598
RD
33965 if (!argp7) {
33966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33967 }
1bd55598
RD
33968 arg7 = reinterpret_cast< wxValidator * >(argp7);
33969 }
33970 if (obj7) {
d55e5bfc 33971 {
1bd55598
RD
33972 arg8 = wxString_in_helper(obj7);
33973 if (arg8 == NULL) SWIG_fail;
33974 temp8 = true;
d55e5bfc 33975 }
1bd55598
RD
33976 }
33977 {
33978 PyThreadState* __tstate = wxPyBeginAllowThreads();
33979 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33980 wxPyEndAllowThreads(__tstate);
33981 if (PyErr_Occurred()) SWIG_fail;
33982 }
33983 {
33984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33985 }
33986 {
33987 if (temp8)
33988 delete arg8;
33989 }
33990 return resultobj;
33991fail:
33992 {
33993 if (temp8)
33994 delete arg8;
33995 }
33996 return NULL;
33997}
33998
33999
34000SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34001 PyObject *resultobj = 0;
34002 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34003 PyObject *arg2 = (PyObject *) 0 ;
34004 PyObject *arg3 = (PyObject *) 0 ;
34005 void *argp1 = 0 ;
34006 int res1 = 0 ;
34007 PyObject * obj0 = 0 ;
34008 PyObject * obj1 = 0 ;
34009 PyObject * obj2 = 0 ;
34010 char * kwnames[] = {
34011 (char *) "self",(char *) "self",(char *) "_class", NULL
34012 };
34013
34014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34016 if (!SWIG_IsOK(res1)) {
34017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34018 }
34019 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34020 arg2 = obj1;
34021 arg3 = obj2;
34022 {
34023 PyThreadState* __tstate = wxPyBeginAllowThreads();
34024 (arg1)->_setCallbackInfo(arg2,arg3);
34025 wxPyEndAllowThreads(__tstate);
34026 if (PyErr_Occurred()) SWIG_fail;
34027 }
34028 resultobj = SWIG_Py_Void();
34029 return resultobj;
34030fail:
34031 return NULL;
d55e5bfc
RD
34032}
34033
34034
1bd55598
RD
34035SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34036 PyObject *resultobj = 0;
34037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34038 unsigned int result;
1bd55598
RD
34039 void *argp1 = 0 ;
34040 int res1 = 0 ;
34041 PyObject *swig_obj[1] ;
34042
34043 if (!args) SWIG_fail;
34044 swig_obj[0] = args;
34045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34046 if (!SWIG_IsOK(res1)) {
34047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34048 }
34049 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34050 {
34051 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34052 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
34053 wxPyEndAllowThreads(__tstate);
34054 if (PyErr_Occurred()) SWIG_fail;
34055 }
e9d6f3a4 34056 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
34057 return resultobj;
34058fail:
34059 return NULL;
d55e5bfc
RD
34060}
34061
34062
1bd55598
RD
34063SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34064 PyObject *resultobj = 0;
34065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34066 unsigned int result;
34067 void *argp1 = 0 ;
34068 int res1 = 0 ;
34069 PyObject *swig_obj[1] ;
34070
34071 if (!args) SWIG_fail;
34072 swig_obj[0] = args;
34073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34074 if (!SWIG_IsOK(res1)) {
34075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34076 }
34077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34085 return resultobj;
34086fail:
34087 return NULL;
34088}
34089
34090
34091SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34094 unsigned int arg2 ;
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 unsigned int val2 ;
34098 int ecode2 = 0 ;
34099 PyObject * obj0 = 0 ;
34100 PyObject * obj1 = 0 ;
34101 char * kwnames[] = {
34102 (char *) "self",(char *) "indent", NULL
34103 };
34104
34105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34107 if (!SWIG_IsOK(res1)) {
34108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34109 }
34110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34111 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34112 if (!SWIG_IsOK(ecode2)) {
34113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34114 }
34115 arg2 = static_cast< unsigned int >(val2);
34116 {
34117 PyThreadState* __tstate = wxPyBeginAllowThreads();
34118 (arg1)->SetIndent(arg2);
34119 wxPyEndAllowThreads(__tstate);
34120 if (PyErr_Occurred()) SWIG_fail;
34121 }
34122 resultobj = SWIG_Py_Void();
34123 return resultobj;
34124fail:
34125 return NULL;
d55e5bfc
RD
34126}
34127
34128
1bd55598
RD
34129SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34130 PyObject *resultobj = 0;
34131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34132 unsigned int result;
34133 void *argp1 = 0 ;
34134 int res1 = 0 ;
34135 PyObject *swig_obj[1] ;
34136
34137 if (!args) SWIG_fail;
34138 swig_obj[0] = args;
34139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34140 if (!SWIG_IsOK(res1)) {
34141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34142 }
34143 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34144 {
34145 PyThreadState* __tstate = wxPyBeginAllowThreads();
34146 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34147 wxPyEndAllowThreads(__tstate);
34148 if (PyErr_Occurred()) SWIG_fail;
34149 }
34150 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34151 return resultobj;
34152fail:
34153 return NULL;
34154}
34155
34156
34157SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34158 PyObject *resultobj = 0;
34159 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34160 unsigned int arg2 ;
34161 void *argp1 = 0 ;
34162 int res1 = 0 ;
34163 unsigned int val2 ;
34164 int ecode2 = 0 ;
34165 PyObject * obj0 = 0 ;
34166 PyObject * obj1 = 0 ;
34167 char * kwnames[] = {
34168 (char *) "self",(char *) "spacing", NULL
34169 };
34170
34171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34173 if (!SWIG_IsOK(res1)) {
34174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34175 }
34176 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34177 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34178 if (!SWIG_IsOK(ecode2)) {
34179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34180 }
34181 arg2 = static_cast< unsigned int >(val2);
34182 {
34183 PyThreadState* __tstate = wxPyBeginAllowThreads();
34184 (arg1)->SetSpacing(arg2);
34185 wxPyEndAllowThreads(__tstate);
34186 if (PyErr_Occurred()) SWIG_fail;
34187 }
34188 resultobj = SWIG_Py_Void();
34189 return resultobj;
34190fail:
34191 return NULL;
d55e5bfc
RD
34192}
34193
34194
1bd55598
RD
34195SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34196 PyObject *resultobj = 0;
34197 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34198 wxImageList *result = 0 ;
34199 void *argp1 = 0 ;
34200 int res1 = 0 ;
34201 PyObject *swig_obj[1] ;
34202
34203 if (!args) SWIG_fail;
34204 swig_obj[0] = args;
34205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34206 if (!SWIG_IsOK(res1)) {
34207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34208 }
34209 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34210 {
34211 PyThreadState* __tstate = wxPyBeginAllowThreads();
34212 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34213 wxPyEndAllowThreads(__tstate);
34214 if (PyErr_Occurred()) SWIG_fail;
34215 }
3ecece7e
RD
34216 {
34217 resultobj = wxPyMake_wxObject(result, (bool)0);
34218 }
1bd55598
RD
34219 return resultobj;
34220fail:
34221 return NULL;
d55e5bfc
RD
34222}
34223
34224
1bd55598
RD
34225SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34226 PyObject *resultobj = 0;
34227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34228 wxImageList *result = 0 ;
34229 void *argp1 = 0 ;
34230 int res1 = 0 ;
34231 PyObject *swig_obj[1] ;
34232
34233 if (!args) SWIG_fail;
34234 swig_obj[0] = args;
34235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34236 if (!SWIG_IsOK(res1)) {
34237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34238 }
34239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34240 {
34241 PyThreadState* __tstate = wxPyBeginAllowThreads();
34242 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34243 wxPyEndAllowThreads(__tstate);
34244 if (PyErr_Occurred()) SWIG_fail;
34245 }
3ecece7e
RD
34246 {
34247 resultobj = wxPyMake_wxObject(result, (bool)0);
34248 }
1bd55598
RD
34249 return resultobj;
34250fail:
34251 return NULL;
34252}
34253
34254
34255SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34256 PyObject *resultobj = 0;
34257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34258 wxImageList *arg2 = (wxImageList *) 0 ;
34259 void *argp1 = 0 ;
34260 int res1 = 0 ;
34261 void *argp2 = 0 ;
34262 int res2 = 0 ;
34263 PyObject * obj0 = 0 ;
34264 PyObject * obj1 = 0 ;
34265 char * kwnames[] = {
34266 (char *) "self",(char *) "imageList", NULL
34267 };
34268
34269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34271 if (!SWIG_IsOK(res1)) {
34272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34273 }
34274 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34276 if (!SWIG_IsOK(res2)) {
34277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34278 }
34279 arg2 = reinterpret_cast< wxImageList * >(argp2);
34280 {
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 (arg1)->SetImageList(arg2);
34283 wxPyEndAllowThreads(__tstate);
34284 if (PyErr_Occurred()) SWIG_fail;
34285 }
34286 resultobj = SWIG_Py_Void();
34287 return resultobj;
34288fail:
34289 return NULL;
34290}
34291
34292
34293SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34294 PyObject *resultobj = 0;
34295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34296 wxImageList *arg2 = (wxImageList *) 0 ;
34297 void *argp1 = 0 ;
34298 int res1 = 0 ;
34299 void *argp2 = 0 ;
34300 int res2 = 0 ;
34301 PyObject * obj0 = 0 ;
34302 PyObject * obj1 = 0 ;
34303 char * kwnames[] = {
34304 (char *) "self",(char *) "imageList", NULL
34305 };
34306
34307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34309 if (!SWIG_IsOK(res1)) {
34310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34311 }
34312 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34314 if (!SWIG_IsOK(res2)) {
34315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34316 }
34317 arg2 = reinterpret_cast< wxImageList * >(argp2);
34318 {
34319 PyThreadState* __tstate = wxPyBeginAllowThreads();
34320 (arg1)->SetStateImageList(arg2);
34321 wxPyEndAllowThreads(__tstate);
34322 if (PyErr_Occurred()) SWIG_fail;
34323 }
34324 resultobj = SWIG_Py_Void();
34325 return resultobj;
34326fail:
34327 return NULL;
34328}
34329
34330
34331SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34332 PyObject *resultobj = 0;
34333 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34334 wxImageList *arg2 = (wxImageList *) 0 ;
34335 void *argp1 = 0 ;
34336 int res1 = 0 ;
34337 int res2 = 0 ;
34338 PyObject * obj0 = 0 ;
34339 PyObject * obj1 = 0 ;
34340 char * kwnames[] = {
34341 (char *) "self",(char *) "imageList", NULL
34342 };
34343
34344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34346 if (!SWIG_IsOK(res1)) {
34347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34348 }
34349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34350 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34351 if (!SWIG_IsOK(res2)) {
34352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34353 }
34354 {
34355 PyThreadState* __tstate = wxPyBeginAllowThreads();
34356 (arg1)->AssignImageList(arg2);
34357 wxPyEndAllowThreads(__tstate);
34358 if (PyErr_Occurred()) SWIG_fail;
34359 }
34360 resultobj = SWIG_Py_Void();
34361 return resultobj;
34362fail:
34363 return NULL;
34364}
34365
34366
34367SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34368 PyObject *resultobj = 0;
34369 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34370 wxImageList *arg2 = (wxImageList *) 0 ;
34371 void *argp1 = 0 ;
34372 int res1 = 0 ;
34373 int res2 = 0 ;
34374 PyObject * obj0 = 0 ;
34375 PyObject * obj1 = 0 ;
34376 char * kwnames[] = {
34377 (char *) "self",(char *) "imageList", NULL
34378 };
34379
34380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34384 }
34385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34386 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34387 if (!SWIG_IsOK(res2)) {
34388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34389 }
34390 {
34391 PyThreadState* __tstate = wxPyBeginAllowThreads();
34392 (arg1)->AssignStateImageList(arg2);
34393 wxPyEndAllowThreads(__tstate);
34394 if (PyErr_Occurred()) SWIG_fail;
34395 }
34396 resultobj = SWIG_Py_Void();
34397 return resultobj;
34398fail:
34399 return NULL;
34400}
34401
34402
34403SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34404 PyObject *resultobj = 0;
34405 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34406 wxTreeItemId *arg2 = 0 ;
34407 wxString result;
34408 void *argp1 = 0 ;
34409 int res1 = 0 ;
34410 void *argp2 = 0 ;
34411 int res2 = 0 ;
34412 PyObject * obj0 = 0 ;
34413 PyObject * obj1 = 0 ;
34414 char * kwnames[] = {
34415 (char *) "self",(char *) "item", NULL
34416 };
34417
34418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34420 if (!SWIG_IsOK(res1)) {
34421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34422 }
34423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34425 if (!SWIG_IsOK(res2)) {
34426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34427 }
34428 if (!argp2) {
34429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34430 }
34431 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34432 {
34433 PyThreadState* __tstate = wxPyBeginAllowThreads();
34434 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34435 wxPyEndAllowThreads(__tstate);
34436 if (PyErr_Occurred()) SWIG_fail;
34437 }
34438 {
34439#if wxUSE_UNICODE
34440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34441#else
34442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34443#endif
34444 }
34445 return resultobj;
34446fail:
34447 return NULL;
34448}
34449
34450
34451SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34452 PyObject *resultobj = 0;
34453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34454 wxTreeItemId *arg2 = 0 ;
34455 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34456 int result;
34457 void *argp1 = 0 ;
34458 int res1 = 0 ;
34459 void *argp2 = 0 ;
34460 int res2 = 0 ;
34461 int val3 ;
34462 int ecode3 = 0 ;
34463 PyObject * obj0 = 0 ;
34464 PyObject * obj1 = 0 ;
34465 PyObject * obj2 = 0 ;
34466 char * kwnames[] = {
34467 (char *) "self",(char *) "item",(char *) "which", NULL
34468 };
34469
34470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34472 if (!SWIG_IsOK(res1)) {
34473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34474 }
34475 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34477 if (!SWIG_IsOK(res2)) {
34478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34479 }
34480 if (!argp2) {
34481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34482 }
34483 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34484 if (obj2) {
34485 ecode3 = SWIG_AsVal_int(obj2, &val3);
34486 if (!SWIG_IsOK(ecode3)) {
34487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34488 }
34489 arg3 = static_cast< wxTreeItemIcon >(val3);
34490 }
34491 {
34492 PyThreadState* __tstate = wxPyBeginAllowThreads();
34493 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34494 wxPyEndAllowThreads(__tstate);
34495 if (PyErr_Occurred()) SWIG_fail;
34496 }
34497 resultobj = SWIG_From_int(static_cast< int >(result));
34498 return resultobj;
34499fail:
34500 return NULL;
34501}
34502
34503
34504SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34505 PyObject *resultobj = 0;
34506 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34507 wxTreeItemId *arg2 = 0 ;
34508 wxPyTreeItemData *result = 0 ;
34509 void *argp1 = 0 ;
34510 int res1 = 0 ;
34511 void *argp2 = 0 ;
34512 int res2 = 0 ;
34513 PyObject * obj0 = 0 ;
34514 PyObject * obj1 = 0 ;
34515 char * kwnames[] = {
34516 (char *) "self",(char *) "item", NULL
34517 };
34518
34519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34521 if (!SWIG_IsOK(res1)) {
34522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34523 }
34524 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34526 if (!SWIG_IsOK(res2)) {
34527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34528 }
34529 if (!argp2) {
34530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34531 }
34532 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34533 {
34534 PyThreadState* __tstate = wxPyBeginAllowThreads();
34535 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34536 wxPyEndAllowThreads(__tstate);
34537 if (PyErr_Occurred()) SWIG_fail;
34538 }
34539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34540 return resultobj;
34541fail:
34542 return NULL;
34543}
34544
34545
34546SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34547 PyObject *resultobj = 0;
34548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34549 wxTreeItemId *arg2 = 0 ;
34550 PyObject *result = 0 ;
34551 void *argp1 = 0 ;
34552 int res1 = 0 ;
34553 void *argp2 = 0 ;
34554 int res2 = 0 ;
34555 PyObject * obj0 = 0 ;
34556 PyObject * obj1 = 0 ;
34557 char * kwnames[] = {
34558 (char *) "self",(char *) "item", NULL
34559 };
34560
34561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34563 if (!SWIG_IsOK(res1)) {
34564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34565 }
34566 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34568 if (!SWIG_IsOK(res2)) {
34569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34570 }
34571 if (!argp2) {
34572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34573 }
34574 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34575 {
34576 PyThreadState* __tstate = wxPyBeginAllowThreads();
34577 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34578 wxPyEndAllowThreads(__tstate);
34579 if (PyErr_Occurred()) SWIG_fail;
34580 }
34581 resultobj = result;
34582 return resultobj;
34583fail:
34584 return NULL;
34585}
34586
34587
34588SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34589 PyObject *resultobj = 0;
34590 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34591 wxTreeItemId *arg2 = 0 ;
34592 wxColour result;
34593 void *argp1 = 0 ;
34594 int res1 = 0 ;
34595 void *argp2 = 0 ;
34596 int res2 = 0 ;
34597 PyObject * obj0 = 0 ;
34598 PyObject * obj1 = 0 ;
34599 char * kwnames[] = {
34600 (char *) "self",(char *) "item", NULL
34601 };
34602
34603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34605 if (!SWIG_IsOK(res1)) {
34606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34607 }
34608 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34610 if (!SWIG_IsOK(res2)) {
34611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34612 }
34613 if (!argp2) {
34614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34615 }
34616 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34617 {
34618 PyThreadState* __tstate = wxPyBeginAllowThreads();
34619 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34620 wxPyEndAllowThreads(__tstate);
34621 if (PyErr_Occurred()) SWIG_fail;
34622 }
34623 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34624 return resultobj;
34625fail:
34626 return NULL;
34627}
34628
34629
34630SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34631 PyObject *resultobj = 0;
34632 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34633 wxTreeItemId *arg2 = 0 ;
34634 wxColour result;
34635 void *argp1 = 0 ;
34636 int res1 = 0 ;
34637 void *argp2 = 0 ;
34638 int res2 = 0 ;
34639 PyObject * obj0 = 0 ;
34640 PyObject * obj1 = 0 ;
34641 char * kwnames[] = {
34642 (char *) "self",(char *) "item", NULL
34643 };
34644
34645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34647 if (!SWIG_IsOK(res1)) {
34648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34649 }
34650 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34652 if (!SWIG_IsOK(res2)) {
34653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34654 }
34655 if (!argp2) {
34656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34657 }
34658 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34659 {
34660 PyThreadState* __tstate = wxPyBeginAllowThreads();
34661 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34662 wxPyEndAllowThreads(__tstate);
34663 if (PyErr_Occurred()) SWIG_fail;
34664 }
34665 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34666 return resultobj;
34667fail:
34668 return NULL;
34669}
34670
34671
34672SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34673 PyObject *resultobj = 0;
34674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34675 wxTreeItemId *arg2 = 0 ;
34676 wxFont result;
34677 void *argp1 = 0 ;
34678 int res1 = 0 ;
34679 void *argp2 = 0 ;
34680 int res2 = 0 ;
34681 PyObject * obj0 = 0 ;
34682 PyObject * obj1 = 0 ;
34683 char * kwnames[] = {
34684 (char *) "self",(char *) "item", NULL
34685 };
34686
34687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34689 if (!SWIG_IsOK(res1)) {
34690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34691 }
34692 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34694 if (!SWIG_IsOK(res2)) {
34695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34696 }
34697 if (!argp2) {
34698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34699 }
34700 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34701 {
34702 PyThreadState* __tstate = wxPyBeginAllowThreads();
34703 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34704 wxPyEndAllowThreads(__tstate);
34705 if (PyErr_Occurred()) SWIG_fail;
34706 }
34707 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34708 return resultobj;
34709fail:
34710 return NULL;
34711}
34712
34713
34714SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34715 PyObject *resultobj = 0;
34716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34717 wxTreeItemId *arg2 = 0 ;
34718 wxString *arg3 = 0 ;
34719 void *argp1 = 0 ;
34720 int res1 = 0 ;
34721 void *argp2 = 0 ;
34722 int res2 = 0 ;
34723 bool temp3 = false ;
34724 PyObject * obj0 = 0 ;
34725 PyObject * obj1 = 0 ;
34726 PyObject * obj2 = 0 ;
34727 char * kwnames[] = {
34728 (char *) "self",(char *) "item",(char *) "text", NULL
34729 };
34730
34731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34733 if (!SWIG_IsOK(res1)) {
34734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34735 }
34736 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34737 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34738 if (!SWIG_IsOK(res2)) {
34739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34740 }
34741 if (!argp2) {
34742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34743 }
34744 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34745 {
34746 arg3 = wxString_in_helper(obj2);
34747 if (arg3 == NULL) SWIG_fail;
34748 temp3 = true;
34749 }
34750 {
34751 PyThreadState* __tstate = wxPyBeginAllowThreads();
34752 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34753 wxPyEndAllowThreads(__tstate);
34754 if (PyErr_Occurred()) SWIG_fail;
34755 }
34756 resultobj = SWIG_Py_Void();
34757 {
34758 if (temp3)
34759 delete arg3;
34760 }
34761 return resultobj;
34762fail:
34763 {
34764 if (temp3)
34765 delete arg3;
34766 }
34767 return NULL;
34768}
34769
34770
34771SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34772 PyObject *resultobj = 0;
34773 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34774 wxTreeItemId *arg2 = 0 ;
34775 int arg3 ;
34776 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34777 void *argp1 = 0 ;
34778 int res1 = 0 ;
34779 void *argp2 = 0 ;
34780 int res2 = 0 ;
34781 int val3 ;
34782 int ecode3 = 0 ;
34783 int val4 ;
34784 int ecode4 = 0 ;
34785 PyObject * obj0 = 0 ;
34786 PyObject * obj1 = 0 ;
34787 PyObject * obj2 = 0 ;
34788 PyObject * obj3 = 0 ;
34789 char * kwnames[] = {
34790 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34791 };
34792
34793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34795 if (!SWIG_IsOK(res1)) {
34796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34797 }
34798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34800 if (!SWIG_IsOK(res2)) {
34801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 if (!argp2) {
34804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34805 }
34806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34807 ecode3 = SWIG_AsVal_int(obj2, &val3);
34808 if (!SWIG_IsOK(ecode3)) {
34809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34810 }
34811 arg3 = static_cast< int >(val3);
34812 if (obj3) {
34813 ecode4 = SWIG_AsVal_int(obj3, &val4);
34814 if (!SWIG_IsOK(ecode4)) {
34815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34816 }
34817 arg4 = static_cast< wxTreeItemIcon >(val4);
34818 }
34819 {
34820 PyThreadState* __tstate = wxPyBeginAllowThreads();
34821 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34822 wxPyEndAllowThreads(__tstate);
34823 if (PyErr_Occurred()) SWIG_fail;
34824 }
34825 resultobj = SWIG_Py_Void();
34826 return resultobj;
34827fail:
34828 return NULL;
34829}
34830
34831
34832SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34833 PyObject *resultobj = 0;
34834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34835 wxTreeItemId *arg2 = 0 ;
34836 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34837 void *argp1 = 0 ;
34838 int res1 = 0 ;
34839 void *argp2 = 0 ;
34840 int res2 = 0 ;
34841 int res3 = 0 ;
34842 PyObject * obj0 = 0 ;
34843 PyObject * obj1 = 0 ;
34844 PyObject * obj2 = 0 ;
34845 char * kwnames[] = {
34846 (char *) "self",(char *) "item",(char *) "data", NULL
34847 };
34848
34849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34856 if (!SWIG_IsOK(res2)) {
34857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34858 }
34859 if (!argp2) {
34860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34861 }
34862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34863 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34864 if (!SWIG_IsOK(res3)) {
34865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34866 }
34867 {
34868 PyThreadState* __tstate = wxPyBeginAllowThreads();
34869 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34870 wxPyEndAllowThreads(__tstate);
34871 if (PyErr_Occurred()) SWIG_fail;
34872 }
34873 resultobj = SWIG_Py_Void();
34874 return resultobj;
34875fail:
34876 return NULL;
34877}
34878
34879
34880SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34881 PyObject *resultobj = 0;
34882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34883 wxTreeItemId *arg2 = 0 ;
34884 PyObject *arg3 = (PyObject *) 0 ;
34885 void *argp1 = 0 ;
34886 int res1 = 0 ;
34887 void *argp2 = 0 ;
34888 int res2 = 0 ;
34889 PyObject * obj0 = 0 ;
34890 PyObject * obj1 = 0 ;
34891 PyObject * obj2 = 0 ;
34892 char * kwnames[] = {
34893 (char *) "self",(char *) "item",(char *) "obj", NULL
34894 };
34895
34896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34900 }
34901 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34903 if (!SWIG_IsOK(res2)) {
34904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34905 }
34906 if (!argp2) {
34907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34908 }
34909 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34910 arg3 = obj2;
34911 {
34912 PyThreadState* __tstate = wxPyBeginAllowThreads();
34913 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34914 wxPyEndAllowThreads(__tstate);
34915 if (PyErr_Occurred()) SWIG_fail;
34916 }
34917 resultobj = SWIG_Py_Void();
34918 return resultobj;
34919fail:
34920 return NULL;
34921}
34922
34923
34924SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34925 PyObject *resultobj = 0;
34926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34927 wxTreeItemId *arg2 = 0 ;
34928 bool arg3 = (bool) true ;
34929 void *argp1 = 0 ;
34930 int res1 = 0 ;
34931 void *argp2 = 0 ;
34932 int res2 = 0 ;
34933 bool val3 ;
34934 int ecode3 = 0 ;
34935 PyObject * obj0 = 0 ;
34936 PyObject * obj1 = 0 ;
34937 PyObject * obj2 = 0 ;
34938 char * kwnames[] = {
34939 (char *) "self",(char *) "item",(char *) "has", NULL
34940 };
34941
34942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34944 if (!SWIG_IsOK(res1)) {
34945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34946 }
34947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34949 if (!SWIG_IsOK(res2)) {
34950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34951 }
34952 if (!argp2) {
34953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34956 if (obj2) {
34957 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34958 if (!SWIG_IsOK(ecode3)) {
34959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34960 }
34961 arg3 = static_cast< bool >(val3);
34962 }
34963 {
34964 PyThreadState* __tstate = wxPyBeginAllowThreads();
34965 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34966 wxPyEndAllowThreads(__tstate);
34967 if (PyErr_Occurred()) SWIG_fail;
34968 }
34969 resultobj = SWIG_Py_Void();
34970 return resultobj;
34971fail:
34972 return NULL;
34973}
34974
34975
34976SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34977 PyObject *resultobj = 0;
34978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34979 wxTreeItemId *arg2 = 0 ;
34980 bool arg3 = (bool) true ;
34981 void *argp1 = 0 ;
34982 int res1 = 0 ;
34983 void *argp2 = 0 ;
34984 int res2 = 0 ;
34985 bool val3 ;
34986 int ecode3 = 0 ;
34987 PyObject * obj0 = 0 ;
34988 PyObject * obj1 = 0 ;
34989 PyObject * obj2 = 0 ;
34990 char * kwnames[] = {
34991 (char *) "self",(char *) "item",(char *) "bold", NULL
34992 };
34993
34994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34996 if (!SWIG_IsOK(res1)) {
34997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34998 }
34999 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35001 if (!SWIG_IsOK(res2)) {
35002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35003 }
35004 if (!argp2) {
35005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35006 }
35007 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35008 if (obj2) {
35009 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35010 if (!SWIG_IsOK(ecode3)) {
35011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35012 }
35013 arg3 = static_cast< bool >(val3);
35014 }
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35018 wxPyEndAllowThreads(__tstate);
35019 if (PyErr_Occurred()) SWIG_fail;
35020 }
35021 resultobj = SWIG_Py_Void();
35022 return resultobj;
35023fail:
35024 return NULL;
35025}
35026
35027
35028SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35029 PyObject *resultobj = 0;
35030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35031 wxTreeItemId *arg2 = 0 ;
35032 bool arg3 = (bool) true ;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 void *argp2 = 0 ;
35036 int res2 = 0 ;
35037 bool val3 ;
35038 int ecode3 = 0 ;
35039 PyObject * obj0 = 0 ;
35040 PyObject * obj1 = 0 ;
35041 PyObject * obj2 = 0 ;
35042 char * kwnames[] = {
35043 (char *) "self",(char *) "item",(char *) "highlight", NULL
35044 };
35045
35046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35048 if (!SWIG_IsOK(res1)) {
35049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35050 }
35051 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35053 if (!SWIG_IsOK(res2)) {
35054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35055 }
35056 if (!argp2) {
35057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35058 }
35059 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35060 if (obj2) {
35061 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35062 if (!SWIG_IsOK(ecode3)) {
35063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35064 }
35065 arg3 = static_cast< bool >(val3);
35066 }
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_Py_Void();
35074 return resultobj;
35075fail:
35076 return NULL;
35077}
35078
35079
35080SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35081 PyObject *resultobj = 0;
35082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35083 wxTreeItemId *arg2 = 0 ;
35084 wxColour *arg3 = 0 ;
35085 void *argp1 = 0 ;
35086 int res1 = 0 ;
35087 void *argp2 = 0 ;
35088 int res2 = 0 ;
35089 wxColour temp3 ;
35090 PyObject * obj0 = 0 ;
35091 PyObject * obj1 = 0 ;
35092 PyObject * obj2 = 0 ;
35093 char * kwnames[] = {
35094 (char *) "self",(char *) "item",(char *) "col", NULL
35095 };
35096
35097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35099 if (!SWIG_IsOK(res1)) {
35100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35101 }
35102 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35104 if (!SWIG_IsOK(res2)) {
35105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35106 }
35107 if (!argp2) {
35108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35109 }
35110 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35111 {
35112 arg3 = &temp3;
35113 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35114 }
35115 {
35116 PyThreadState* __tstate = wxPyBeginAllowThreads();
35117 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35118 wxPyEndAllowThreads(__tstate);
35119 if (PyErr_Occurred()) SWIG_fail;
35120 }
35121 resultobj = SWIG_Py_Void();
35122 return resultobj;
35123fail:
35124 return NULL;
35125}
35126
35127
35128SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35129 PyObject *resultobj = 0;
35130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35131 wxTreeItemId *arg2 = 0 ;
35132 wxColour *arg3 = 0 ;
35133 void *argp1 = 0 ;
35134 int res1 = 0 ;
35135 void *argp2 = 0 ;
35136 int res2 = 0 ;
35137 wxColour temp3 ;
35138 PyObject * obj0 = 0 ;
35139 PyObject * obj1 = 0 ;
35140 PyObject * obj2 = 0 ;
35141 char * kwnames[] = {
35142 (char *) "self",(char *) "item",(char *) "col", NULL
35143 };
35144
35145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35147 if (!SWIG_IsOK(res1)) {
35148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35149 }
35150 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35152 if (!SWIG_IsOK(res2)) {
35153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 if (!argp2) {
35156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35157 }
35158 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35159 {
35160 arg3 = &temp3;
35161 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35162 }
35163 {
35164 PyThreadState* __tstate = wxPyBeginAllowThreads();
35165 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35166 wxPyEndAllowThreads(__tstate);
35167 if (PyErr_Occurred()) SWIG_fail;
35168 }
35169 resultobj = SWIG_Py_Void();
35170 return resultobj;
35171fail:
35172 return NULL;
35173}
35174
35175
35176SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35177 PyObject *resultobj = 0;
35178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35179 wxTreeItemId *arg2 = 0 ;
35180 wxFont *arg3 = 0 ;
35181 void *argp1 = 0 ;
35182 int res1 = 0 ;
35183 void *argp2 = 0 ;
35184 int res2 = 0 ;
35185 void *argp3 = 0 ;
35186 int res3 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 PyObject * obj2 = 0 ;
35190 char * kwnames[] = {
35191 (char *) "self",(char *) "item",(char *) "font", NULL
35192 };
35193
35194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35196 if (!SWIG_IsOK(res1)) {
35197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35198 }
35199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35201 if (!SWIG_IsOK(res2)) {
35202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35203 }
35204 if (!argp2) {
35205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35206 }
35207 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35209 if (!SWIG_IsOK(res3)) {
35210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35211 }
35212 if (!argp3) {
35213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35214 }
35215 arg3 = reinterpret_cast< wxFont * >(argp3);
35216 {
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
35218 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35219 wxPyEndAllowThreads(__tstate);
35220 if (PyErr_Occurred()) SWIG_fail;
35221 }
35222 resultobj = SWIG_Py_Void();
35223 return resultobj;
35224fail:
35225 return NULL;
35226}
35227
35228
35229SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35230 PyObject *resultobj = 0;
35231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35232 wxTreeItemId *arg2 = 0 ;
35233 bool result;
35234 void *argp1 = 0 ;
35235 int res1 = 0 ;
35236 void *argp2 = 0 ;
35237 int res2 = 0 ;
35238 PyObject * obj0 = 0 ;
35239 PyObject * obj1 = 0 ;
35240 char * kwnames[] = {
35241 (char *) "self",(char *) "item", NULL
35242 };
35243
35244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35246 if (!SWIG_IsOK(res1)) {
35247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35248 }
35249 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35251 if (!SWIG_IsOK(res2)) {
35252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35253 }
35254 if (!argp2) {
35255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35256 }
35257 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35258 {
35259 PyThreadState* __tstate = wxPyBeginAllowThreads();
35260 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35261 wxPyEndAllowThreads(__tstate);
35262 if (PyErr_Occurred()) SWIG_fail;
35263 }
35264 {
35265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35266 }
35267 return resultobj;
35268fail:
35269 return NULL;
35270}
35271
35272
35273SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35274 PyObject *resultobj = 0;
35275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35276 wxTreeItemId *arg2 = 0 ;
35277 bool result;
35278 void *argp1 = 0 ;
35279 int res1 = 0 ;
35280 void *argp2 = 0 ;
35281 int res2 = 0 ;
35282 PyObject * obj0 = 0 ;
35283 PyObject * obj1 = 0 ;
35284 char * kwnames[] = {
35285 (char *) "self",(char *) "item", NULL
35286 };
35287
35288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35290 if (!SWIG_IsOK(res1)) {
35291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35292 }
35293 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35295 if (!SWIG_IsOK(res2)) {
35296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35297 }
35298 if (!argp2) {
35299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35300 }
35301 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35302 {
35303 PyThreadState* __tstate = wxPyBeginAllowThreads();
35304 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35305 wxPyEndAllowThreads(__tstate);
35306 if (PyErr_Occurred()) SWIG_fail;
35307 }
35308 {
35309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35310 }
35311 return resultobj;
35312fail:
35313 return NULL;
35314}
35315
35316
35317SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35318 PyObject *resultobj = 0;
35319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35320 wxTreeItemId *arg2 = 0 ;
35321 bool result;
35322 void *argp1 = 0 ;
35323 int res1 = 0 ;
35324 void *argp2 = 0 ;
35325 int res2 = 0 ;
35326 PyObject * obj0 = 0 ;
35327 PyObject * obj1 = 0 ;
35328 char * kwnames[] = {
35329 (char *) "self",(char *) "item", NULL
35330 };
35331
35332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35334 if (!SWIG_IsOK(res1)) {
35335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35336 }
35337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35339 if (!SWIG_IsOK(res2)) {
35340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35341 }
35342 if (!argp2) {
35343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35344 }
35345 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35346 {
35347 PyThreadState* __tstate = wxPyBeginAllowThreads();
35348 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35349 wxPyEndAllowThreads(__tstate);
35350 if (PyErr_Occurred()) SWIG_fail;
35351 }
35352 {
35353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35354 }
35355 return resultobj;
35356fail:
35357 return NULL;
35358}
35359
35360
35361SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35362 PyObject *resultobj = 0;
35363 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35364 wxTreeItemId *arg2 = 0 ;
35365 bool result;
35366 void *argp1 = 0 ;
35367 int res1 = 0 ;
35368 void *argp2 = 0 ;
35369 int res2 = 0 ;
35370 PyObject * obj0 = 0 ;
35371 PyObject * obj1 = 0 ;
35372 char * kwnames[] = {
35373 (char *) "self",(char *) "item", NULL
35374 };
35375
35376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35378 if (!SWIG_IsOK(res1)) {
35379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35380 }
35381 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35383 if (!SWIG_IsOK(res2)) {
35384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35385 }
35386 if (!argp2) {
35387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35388 }
35389 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35390 {
35391 PyThreadState* __tstate = wxPyBeginAllowThreads();
35392 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35393 wxPyEndAllowThreads(__tstate);
35394 if (PyErr_Occurred()) SWIG_fail;
35395 }
35396 {
35397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35398 }
35399 return resultobj;
35400fail:
35401 return NULL;
35402}
35403
35404
35405SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35406 PyObject *resultobj = 0;
35407 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35408 wxTreeItemId *arg2 = 0 ;
35409 bool result;
35410 void *argp1 = 0 ;
35411 int res1 = 0 ;
35412 void *argp2 = 0 ;
35413 int res2 = 0 ;
35414 PyObject * obj0 = 0 ;
35415 PyObject * obj1 = 0 ;
35416 char * kwnames[] = {
35417 (char *) "self",(char *) "item", NULL
35418 };
35419
35420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35422 if (!SWIG_IsOK(res1)) {
35423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35424 }
35425 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35426 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35427 if (!SWIG_IsOK(res2)) {
35428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35429 }
35430 if (!argp2) {
35431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35432 }
35433 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35434 {
35435 PyThreadState* __tstate = wxPyBeginAllowThreads();
35436 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35437 wxPyEndAllowThreads(__tstate);
35438 if (PyErr_Occurred()) SWIG_fail;
35439 }
35440 {
35441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35442 }
35443 return resultobj;
35444fail:
35445 return NULL;
35446}
35447
35448
35449SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35450 PyObject *resultobj = 0;
35451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35452 wxTreeItemId *arg2 = 0 ;
35453 bool arg3 = (bool) true ;
35454 size_t result;
35455 void *argp1 = 0 ;
35456 int res1 = 0 ;
35457 void *argp2 = 0 ;
35458 int res2 = 0 ;
35459 bool val3 ;
35460 int ecode3 = 0 ;
35461 PyObject * obj0 = 0 ;
35462 PyObject * obj1 = 0 ;
35463 PyObject * obj2 = 0 ;
35464 char * kwnames[] = {
35465 (char *) "self",(char *) "item",(char *) "recursively", NULL
35466 };
35467
35468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35470 if (!SWIG_IsOK(res1)) {
35471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35472 }
35473 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35475 if (!SWIG_IsOK(res2)) {
35476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35477 }
35478 if (!argp2) {
35479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35480 }
35481 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35482 if (obj2) {
35483 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35484 if (!SWIG_IsOK(ecode3)) {
35485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35486 }
35487 arg3 = static_cast< bool >(val3);
35488 }
35489 {
35490 PyThreadState* __tstate = wxPyBeginAllowThreads();
35491 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35492 wxPyEndAllowThreads(__tstate);
35493 if (PyErr_Occurred()) SWIG_fail;
35494 }
35495 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35496 return resultobj;
35497fail:
35498 return NULL;
d55e5bfc
RD
35499}
35500
35501
1bd55598
RD
35502SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35503 PyObject *resultobj = 0;
35504 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35505 wxTreeItemId result;
35506 void *argp1 = 0 ;
35507 int res1 = 0 ;
35508 PyObject *swig_obj[1] ;
35509
35510 if (!args) SWIG_fail;
35511 swig_obj[0] = args;
35512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35513 if (!SWIG_IsOK(res1)) {
35514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35515 }
35516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35517 {
35518 PyThreadState* __tstate = wxPyBeginAllowThreads();
35519 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35520 wxPyEndAllowThreads(__tstate);
35521 if (PyErr_Occurred()) SWIG_fail;
35522 }
35523 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35524 return resultobj;
35525fail:
35526 return NULL;
d55e5bfc
RD
35527}
35528
35529
1bd55598
RD
35530SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35531 PyObject *resultobj = 0;
35532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35533 wxTreeItemId result;
35534 void *argp1 = 0 ;
35535 int res1 = 0 ;
35536 PyObject *swig_obj[1] ;
35537
35538 if (!args) SWIG_fail;
35539 swig_obj[0] = args;
35540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35541 if (!SWIG_IsOK(res1)) {
35542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35543 }
35544 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35552 return resultobj;
35553fail:
35554 return NULL;
d55e5bfc
RD
35555}
35556
35557
1bd55598
RD
35558SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35559 PyObject *resultobj = 0;
35560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35561 PyObject *result = 0 ;
35562 void *argp1 = 0 ;
35563 int res1 = 0 ;
35564 PyObject *swig_obj[1] ;
35565
35566 if (!args) SWIG_fail;
35567 swig_obj[0] = args;
35568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35569 if (!SWIG_IsOK(res1)) {
35570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35571 }
35572 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35573 {
35574 PyThreadState* __tstate = wxPyBeginAllowThreads();
35575 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35576 wxPyEndAllowThreads(__tstate);
35577 if (PyErr_Occurred()) SWIG_fail;
35578 }
35579 resultobj = result;
35580 return resultobj;
35581fail:
35582 return NULL;
35583}
35584
35585
35586SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35587 PyObject *resultobj = 0;
35588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35589 wxTreeItemId *arg2 = 0 ;
35590 wxTreeItemId result;
35591 void *argp1 = 0 ;
35592 int res1 = 0 ;
35593 void *argp2 = 0 ;
35594 int res2 = 0 ;
35595 PyObject * obj0 = 0 ;
35596 PyObject * obj1 = 0 ;
35597 char * kwnames[] = {
35598 (char *) "self",(char *) "item", NULL
35599 };
35600
35601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35603 if (!SWIG_IsOK(res1)) {
35604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35605 }
35606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35608 if (!SWIG_IsOK(res2)) {
35609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35610 }
35611 if (!argp2) {
35612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35613 }
35614 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35615 {
35616 PyThreadState* __tstate = wxPyBeginAllowThreads();
35617 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35618 wxPyEndAllowThreads(__tstate);
35619 if (PyErr_Occurred()) SWIG_fail;
35620 }
35621 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35622 return resultobj;
35623fail:
35624 return NULL;
35625}
35626
35627
35628SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35629 PyObject *resultobj = 0;
35630 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35631 wxTreeItemId *arg2 = 0 ;
35632 PyObject *result = 0 ;
35633 void *argp1 = 0 ;
35634 int res1 = 0 ;
35635 void *argp2 = 0 ;
35636 int res2 = 0 ;
35637 PyObject * obj0 = 0 ;
35638 PyObject * obj1 = 0 ;
35639 char * kwnames[] = {
35640 (char *) "self",(char *) "item", NULL
35641 };
35642
35643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35645 if (!SWIG_IsOK(res1)) {
35646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35647 }
35648 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35650 if (!SWIG_IsOK(res2)) {
35651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35652 }
35653 if (!argp2) {
35654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35655 }
35656 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35657 {
35658 PyThreadState* __tstate = wxPyBeginAllowThreads();
35659 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35660 wxPyEndAllowThreads(__tstate);
35661 if (PyErr_Occurred()) SWIG_fail;
35662 }
35663 resultobj = result;
35664 return resultobj;
35665fail:
35666 return NULL;
35667}
35668
35669
35670SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35671 PyObject *resultobj = 0;
35672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35673 wxTreeItemId *arg2 = 0 ;
35674 void *arg3 = (void *) 0 ;
35675 PyObject *result = 0 ;
35676 void *argp1 = 0 ;
35677 int res1 = 0 ;
35678 void *argp2 = 0 ;
35679 int res2 = 0 ;
35680 int res3 ;
35681 PyObject * obj0 = 0 ;
35682 PyObject * obj1 = 0 ;
35683 PyObject * obj2 = 0 ;
35684 char * kwnames[] = {
35685 (char *) "self",(char *) "item",(char *) "cookie", NULL
35686 };
35687
35688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35690 if (!SWIG_IsOK(res1)) {
35691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35692 }
35693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35695 if (!SWIG_IsOK(res2)) {
35696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35697 }
35698 if (!argp2) {
35699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35700 }
35701 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35702 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35703 if (!SWIG_IsOK(res3)) {
35704 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35705 }
35706 {
35707 PyThreadState* __tstate = wxPyBeginAllowThreads();
35708 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35709 wxPyEndAllowThreads(__tstate);
35710 if (PyErr_Occurred()) SWIG_fail;
35711 }
35712 resultobj = result;
35713 return resultobj;
35714fail:
35715 return NULL;
35716}
35717
35718
35719SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35720 PyObject *resultobj = 0;
35721 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35722 wxTreeItemId *arg2 = 0 ;
35723 wxTreeItemId result;
35724 void *argp1 = 0 ;
35725 int res1 = 0 ;
35726 void *argp2 = 0 ;
35727 int res2 = 0 ;
35728 PyObject * obj0 = 0 ;
35729 PyObject * obj1 = 0 ;
35730 char * kwnames[] = {
35731 (char *) "self",(char *) "item", NULL
35732 };
35733
35734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35736 if (!SWIG_IsOK(res1)) {
35737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35738 }
35739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35741 if (!SWIG_IsOK(res2)) {
35742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35743 }
35744 if (!argp2) {
35745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35746 }
35747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35748 {
35749 PyThreadState* __tstate = wxPyBeginAllowThreads();
35750 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35751 wxPyEndAllowThreads(__tstate);
35752 if (PyErr_Occurred()) SWIG_fail;
35753 }
35754 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35755 return resultobj;
35756fail:
35757 return NULL;
35758}
35759
35760
35761SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35762 PyObject *resultobj = 0;
35763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35764 wxTreeItemId *arg2 = 0 ;
35765 wxTreeItemId result;
35766 void *argp1 = 0 ;
35767 int res1 = 0 ;
35768 void *argp2 = 0 ;
35769 int res2 = 0 ;
35770 PyObject * obj0 = 0 ;
35771 PyObject * obj1 = 0 ;
35772 char * kwnames[] = {
35773 (char *) "self",(char *) "item", NULL
35774 };
35775
35776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35778 if (!SWIG_IsOK(res1)) {
35779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35780 }
35781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35783 if (!SWIG_IsOK(res2)) {
35784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35785 }
35786 if (!argp2) {
35787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35788 }
35789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35790 {
35791 PyThreadState* __tstate = wxPyBeginAllowThreads();
35792 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35793 wxPyEndAllowThreads(__tstate);
35794 if (PyErr_Occurred()) SWIG_fail;
35795 }
35796 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35797 return resultobj;
35798fail:
35799 return NULL;
35800}
35801
35802
35803SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35804 PyObject *resultobj = 0;
35805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35806 wxTreeItemId *arg2 = 0 ;
35807 wxTreeItemId result;
35808 void *argp1 = 0 ;
35809 int res1 = 0 ;
35810 void *argp2 = 0 ;
35811 int res2 = 0 ;
35812 PyObject * obj0 = 0 ;
35813 PyObject * obj1 = 0 ;
35814 char * kwnames[] = {
35815 (char *) "self",(char *) "item", NULL
35816 };
35817
35818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35820 if (!SWIG_IsOK(res1)) {
35821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35822 }
35823 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35825 if (!SWIG_IsOK(res2)) {
35826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35827 }
35828 if (!argp2) {
35829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35830 }
35831 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35832 {
35833 PyThreadState* __tstate = wxPyBeginAllowThreads();
35834 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35835 wxPyEndAllowThreads(__tstate);
35836 if (PyErr_Occurred()) SWIG_fail;
35837 }
35838 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35839 return resultobj;
35840fail:
35841 return NULL;
d55e5bfc
RD
35842}
35843
35844
1bd55598
RD
35845SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35846 PyObject *resultobj = 0;
35847 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35848 wxTreeItemId result;
35849 void *argp1 = 0 ;
35850 int res1 = 0 ;
35851 PyObject *swig_obj[1] ;
35852
35853 if (!args) SWIG_fail;
35854 swig_obj[0] = args;
35855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35856 if (!SWIG_IsOK(res1)) {
35857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35858 }
35859 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35860 {
35861 PyThreadState* __tstate = wxPyBeginAllowThreads();
35862 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35867 return resultobj;
35868fail:
35869 return NULL;
35870}
35871
35872
35873SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35874 PyObject *resultobj = 0;
35875 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35876 wxTreeItemId *arg2 = 0 ;
35877 wxTreeItemId result;
35878 void *argp1 = 0 ;
35879 int res1 = 0 ;
35880 void *argp2 = 0 ;
35881 int res2 = 0 ;
35882 PyObject * obj0 = 0 ;
35883 PyObject * obj1 = 0 ;
35884 char * kwnames[] = {
35885 (char *) "self",(char *) "item", NULL
35886 };
35887
35888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35890 if (!SWIG_IsOK(res1)) {
35891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35892 }
35893 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35895 if (!SWIG_IsOK(res2)) {
35896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35897 }
35898 if (!argp2) {
35899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35900 }
35901 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35902 {
35903 PyThreadState* __tstate = wxPyBeginAllowThreads();
35904 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35905 wxPyEndAllowThreads(__tstate);
35906 if (PyErr_Occurred()) SWIG_fail;
35907 }
35908 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35909 return resultobj;
35910fail:
35911 return NULL;
35912}
35913
35914
35915SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35916 PyObject *resultobj = 0;
35917 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35918 wxTreeItemId *arg2 = 0 ;
35919 wxTreeItemId result;
35920 void *argp1 = 0 ;
35921 int res1 = 0 ;
35922 void *argp2 = 0 ;
35923 int res2 = 0 ;
35924 PyObject * obj0 = 0 ;
35925 PyObject * obj1 = 0 ;
35926 char * kwnames[] = {
35927 (char *) "self",(char *) "item", NULL
35928 };
35929
35930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35932 if (!SWIG_IsOK(res1)) {
35933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35934 }
35935 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35937 if (!SWIG_IsOK(res2)) {
35938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35939 }
35940 if (!argp2) {
35941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35942 }
35943 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35944 {
35945 PyThreadState* __tstate = wxPyBeginAllowThreads();
35946 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35947 wxPyEndAllowThreads(__tstate);
35948 if (PyErr_Occurred()) SWIG_fail;
35949 }
35950 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35951 return resultobj;
35952fail:
35953 return NULL;
35954}
35955
35956
35957SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35958 PyObject *resultobj = 0;
35959 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35960 wxString *arg2 = 0 ;
35961 int arg3 = (int) -1 ;
35962 int arg4 = (int) -1 ;
35963 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35964 wxTreeItemId result;
35965 void *argp1 = 0 ;
35966 int res1 = 0 ;
35967 bool temp2 = false ;
35968 int val3 ;
35969 int ecode3 = 0 ;
35970 int val4 ;
35971 int ecode4 = 0 ;
35972 int res5 = 0 ;
35973 PyObject * obj0 = 0 ;
35974 PyObject * obj1 = 0 ;
35975 PyObject * obj2 = 0 ;
35976 PyObject * obj3 = 0 ;
35977 PyObject * obj4 = 0 ;
35978 char * kwnames[] = {
35979 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35980 };
35981
35982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35984 if (!SWIG_IsOK(res1)) {
35985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35986 }
35987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35988 {
35989 arg2 = wxString_in_helper(obj1);
35990 if (arg2 == NULL) SWIG_fail;
35991 temp2 = true;
35992 }
35993 if (obj2) {
35994 ecode3 = SWIG_AsVal_int(obj2, &val3);
35995 if (!SWIG_IsOK(ecode3)) {
35996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35997 }
35998 arg3 = static_cast< int >(val3);
35999 }
36000 if (obj3) {
36001 ecode4 = SWIG_AsVal_int(obj3, &val4);
36002 if (!SWIG_IsOK(ecode4)) {
36003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36004 }
36005 arg4 = static_cast< int >(val4);
36006 }
36007 if (obj4) {
36008 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36009 if (!SWIG_IsOK(res5)) {
36010 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 36011 }
1bd55598
RD
36012 }
36013 {
36014 PyThreadState* __tstate = wxPyBeginAllowThreads();
36015 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36016 wxPyEndAllowThreads(__tstate);
36017 if (PyErr_Occurred()) SWIG_fail;
36018 }
36019 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36020 {
36021 if (temp2)
36022 delete arg2;
36023 }
36024 return resultobj;
36025fail:
36026 {
36027 if (temp2)
36028 delete arg2;
36029 }
36030 return NULL;
36031}
36032
36033
36034SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36035 PyObject *resultobj = 0;
36036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36037 wxTreeItemId *arg2 = 0 ;
36038 wxString *arg3 = 0 ;
36039 int arg4 = (int) -1 ;
36040 int arg5 = (int) -1 ;
36041 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36042 wxTreeItemId result;
36043 void *argp1 = 0 ;
36044 int res1 = 0 ;
36045 void *argp2 = 0 ;
36046 int res2 = 0 ;
36047 bool temp3 = false ;
36048 int val4 ;
36049 int ecode4 = 0 ;
36050 int val5 ;
36051 int ecode5 = 0 ;
36052 int res6 = 0 ;
36053 PyObject * obj0 = 0 ;
36054 PyObject * obj1 = 0 ;
36055 PyObject * obj2 = 0 ;
36056 PyObject * obj3 = 0 ;
36057 PyObject * obj4 = 0 ;
36058 PyObject * obj5 = 0 ;
36059 char * kwnames[] = {
36060 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36061 };
36062
36063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36065 if (!SWIG_IsOK(res1)) {
36066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36067 }
36068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36070 if (!SWIG_IsOK(res2)) {
36071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36072 }
36073 if (!argp2) {
36074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36075 }
36076 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36077 {
36078 arg3 = wxString_in_helper(obj2);
36079 if (arg3 == NULL) SWIG_fail;
36080 temp3 = true;
36081 }
36082 if (obj3) {
36083 ecode4 = SWIG_AsVal_int(obj3, &val4);
36084 if (!SWIG_IsOK(ecode4)) {
36085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36086 }
36087 arg4 = static_cast< int >(val4);
36088 }
36089 if (obj4) {
36090 ecode5 = SWIG_AsVal_int(obj4, &val5);
36091 if (!SWIG_IsOK(ecode5)) {
36092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36093 }
36094 arg5 = static_cast< int >(val5);
36095 }
36096 if (obj5) {
36097 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36098 if (!SWIG_IsOK(res6)) {
36099 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36100 }
1bd55598
RD
36101 }
36102 {
36103 PyThreadState* __tstate = wxPyBeginAllowThreads();
36104 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36105 wxPyEndAllowThreads(__tstate);
36106 if (PyErr_Occurred()) SWIG_fail;
36107 }
36108 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36109 {
36110 if (temp3)
36111 delete arg3;
36112 }
36113 return resultobj;
36114fail:
36115 {
36116 if (temp3)
36117 delete arg3;
36118 }
36119 return NULL;
36120}
36121
36122
36123SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36124 PyObject *resultobj = 0;
36125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36126 wxTreeItemId *arg2 = 0 ;
36127 wxTreeItemId *arg3 = 0 ;
36128 wxString *arg4 = 0 ;
36129 int arg5 = (int) -1 ;
36130 int arg6 = (int) -1 ;
36131 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36132 wxTreeItemId result;
36133 void *argp1 = 0 ;
36134 int res1 = 0 ;
36135 void *argp2 = 0 ;
36136 int res2 = 0 ;
36137 void *argp3 = 0 ;
36138 int res3 = 0 ;
36139 bool temp4 = false ;
36140 int val5 ;
36141 int ecode5 = 0 ;
36142 int val6 ;
36143 int ecode6 = 0 ;
36144 int res7 = 0 ;
36145 PyObject * obj0 = 0 ;
36146 PyObject * obj1 = 0 ;
36147 PyObject * obj2 = 0 ;
36148 PyObject * obj3 = 0 ;
36149 PyObject * obj4 = 0 ;
36150 PyObject * obj5 = 0 ;
36151 PyObject * obj6 = 0 ;
36152 char * kwnames[] = {
36153 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36154 };
36155
36156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36158 if (!SWIG_IsOK(res1)) {
36159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36160 }
36161 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36163 if (!SWIG_IsOK(res2)) {
36164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36165 }
36166 if (!argp2) {
36167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36168 }
36169 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36170 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36171 if (!SWIG_IsOK(res3)) {
36172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36173 }
36174 if (!argp3) {
36175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36176 }
36177 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36178 {
36179 arg4 = wxString_in_helper(obj3);
36180 if (arg4 == NULL) SWIG_fail;
36181 temp4 = true;
36182 }
36183 if (obj4) {
36184 ecode5 = SWIG_AsVal_int(obj4, &val5);
36185 if (!SWIG_IsOK(ecode5)) {
36186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36187 }
36188 arg5 = static_cast< int >(val5);
36189 }
36190 if (obj5) {
36191 ecode6 = SWIG_AsVal_int(obj5, &val6);
36192 if (!SWIG_IsOK(ecode6)) {
36193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36194 }
36195 arg6 = static_cast< int >(val6);
36196 }
36197 if (obj6) {
36198 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36199 if (!SWIG_IsOK(res7)) {
36200 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36201 }
1bd55598
RD
36202 }
36203 {
36204 PyThreadState* __tstate = wxPyBeginAllowThreads();
36205 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36206 wxPyEndAllowThreads(__tstate);
36207 if (PyErr_Occurred()) SWIG_fail;
36208 }
36209 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36210 {
36211 if (temp4)
36212 delete arg4;
36213 }
36214 return resultobj;
36215fail:
36216 {
36217 if (temp4)
36218 delete arg4;
36219 }
36220 return NULL;
36221}
36222
36223
36224SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36225 PyObject *resultobj = 0;
36226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36227 wxTreeItemId *arg2 = 0 ;
36228 size_t arg3 ;
36229 wxString *arg4 = 0 ;
36230 int arg5 = (int) -1 ;
36231 int arg6 = (int) -1 ;
36232 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36233 wxTreeItemId result;
36234 void *argp1 = 0 ;
36235 int res1 = 0 ;
36236 void *argp2 = 0 ;
36237 int res2 = 0 ;
36238 size_t val3 ;
36239 int ecode3 = 0 ;
36240 bool temp4 = false ;
36241 int val5 ;
36242 int ecode5 = 0 ;
36243 int val6 ;
36244 int ecode6 = 0 ;
36245 int res7 = 0 ;
36246 PyObject * obj0 = 0 ;
36247 PyObject * obj1 = 0 ;
36248 PyObject * obj2 = 0 ;
36249 PyObject * obj3 = 0 ;
36250 PyObject * obj4 = 0 ;
36251 PyObject * obj5 = 0 ;
36252 PyObject * obj6 = 0 ;
36253 char * kwnames[] = {
36254 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36255 };
36256
36257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36259 if (!SWIG_IsOK(res1)) {
36260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36261 }
36262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36264 if (!SWIG_IsOK(res2)) {
36265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36266 }
36267 if (!argp2) {
36268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36269 }
36270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36271 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36272 if (!SWIG_IsOK(ecode3)) {
36273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36274 }
36275 arg3 = static_cast< size_t >(val3);
36276 {
36277 arg4 = wxString_in_helper(obj3);
36278 if (arg4 == NULL) SWIG_fail;
36279 temp4 = true;
36280 }
36281 if (obj4) {
36282 ecode5 = SWIG_AsVal_int(obj4, &val5);
36283 if (!SWIG_IsOK(ecode5)) {
36284 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36285 }
36286 arg5 = static_cast< int >(val5);
36287 }
36288 if (obj5) {
36289 ecode6 = SWIG_AsVal_int(obj5, &val6);
36290 if (!SWIG_IsOK(ecode6)) {
36291 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36292 }
36293 arg6 = static_cast< int >(val6);
36294 }
36295 if (obj6) {
36296 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36297 if (!SWIG_IsOK(res7)) {
36298 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36299 }
1bd55598
RD
36300 }
36301 {
36302 PyThreadState* __tstate = wxPyBeginAllowThreads();
36303 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36304 wxPyEndAllowThreads(__tstate);
36305 if (PyErr_Occurred()) SWIG_fail;
36306 }
36307 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36308 {
36309 if (temp4)
36310 delete arg4;
36311 }
36312 return resultobj;
36313fail:
36314 {
36315 if (temp4)
36316 delete arg4;
36317 }
36318 return NULL;
36319}
36320
36321
36322SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36323 PyObject *resultobj = 0;
36324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36325 wxTreeItemId *arg2 = 0 ;
36326 wxString *arg3 = 0 ;
36327 int arg4 = (int) -1 ;
36328 int arg5 = (int) -1 ;
36329 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36330 wxTreeItemId result;
36331 void *argp1 = 0 ;
36332 int res1 = 0 ;
36333 void *argp2 = 0 ;
36334 int res2 = 0 ;
36335 bool temp3 = false ;
36336 int val4 ;
36337 int ecode4 = 0 ;
36338 int val5 ;
36339 int ecode5 = 0 ;
36340 int res6 = 0 ;
36341 PyObject * obj0 = 0 ;
36342 PyObject * obj1 = 0 ;
36343 PyObject * obj2 = 0 ;
36344 PyObject * obj3 = 0 ;
36345 PyObject * obj4 = 0 ;
36346 PyObject * obj5 = 0 ;
36347 char * kwnames[] = {
36348 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36349 };
36350
36351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36353 if (!SWIG_IsOK(res1)) {
36354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36355 }
36356 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36358 if (!SWIG_IsOK(res2)) {
36359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36360 }
36361 if (!argp2) {
36362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36363 }
36364 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36365 {
36366 arg3 = wxString_in_helper(obj2);
36367 if (arg3 == NULL) SWIG_fail;
36368 temp3 = true;
36369 }
36370 if (obj3) {
36371 ecode4 = SWIG_AsVal_int(obj3, &val4);
36372 if (!SWIG_IsOK(ecode4)) {
36373 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36374 }
36375 arg4 = static_cast< int >(val4);
36376 }
36377 if (obj4) {
36378 ecode5 = SWIG_AsVal_int(obj4, &val5);
36379 if (!SWIG_IsOK(ecode5)) {
36380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36381 }
36382 arg5 = static_cast< int >(val5);
36383 }
36384 if (obj5) {
36385 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36386 if (!SWIG_IsOK(res6)) {
36387 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36388 }
1bd55598
RD
36389 }
36390 {
36391 PyThreadState* __tstate = wxPyBeginAllowThreads();
36392 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36393 wxPyEndAllowThreads(__tstate);
36394 if (PyErr_Occurred()) SWIG_fail;
36395 }
36396 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36397 {
36398 if (temp3)
36399 delete arg3;
36400 }
36401 return resultobj;
36402fail:
36403 {
36404 if (temp3)
36405 delete arg3;
36406 }
36407 return NULL;
36408}
36409
36410
36411SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36412 PyObject *resultobj = 0;
36413 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36414 wxTreeItemId *arg2 = 0 ;
36415 void *argp1 = 0 ;
36416 int res1 = 0 ;
36417 void *argp2 = 0 ;
36418 int res2 = 0 ;
36419 PyObject * obj0 = 0 ;
36420 PyObject * obj1 = 0 ;
36421 char * kwnames[] = {
36422 (char *) "self",(char *) "item", NULL
36423 };
36424
36425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36427 if (!SWIG_IsOK(res1)) {
36428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36429 }
36430 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36432 if (!SWIG_IsOK(res2)) {
36433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36434 }
36435 if (!argp2) {
36436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36437 }
36438 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36439 {
36440 PyThreadState* __tstate = wxPyBeginAllowThreads();
36441 (arg1)->Delete((wxTreeItemId const &)*arg2);
36442 wxPyEndAllowThreads(__tstate);
36443 if (PyErr_Occurred()) SWIG_fail;
36444 }
36445 resultobj = SWIG_Py_Void();
36446 return resultobj;
36447fail:
36448 return NULL;
36449}
36450
36451
36452SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36453 PyObject *resultobj = 0;
36454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36455 wxTreeItemId *arg2 = 0 ;
36456 void *argp1 = 0 ;
36457 int res1 = 0 ;
36458 void *argp2 = 0 ;
36459 int res2 = 0 ;
36460 PyObject * obj0 = 0 ;
36461 PyObject * obj1 = 0 ;
36462 char * kwnames[] = {
36463 (char *) "self",(char *) "item", NULL
36464 };
36465
36466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36468 if (!SWIG_IsOK(res1)) {
36469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36470 }
36471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36473 if (!SWIG_IsOK(res2)) {
36474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36475 }
36476 if (!argp2) {
36477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36478 }
36479 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36480 {
36481 PyThreadState* __tstate = wxPyBeginAllowThreads();
36482 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36483 wxPyEndAllowThreads(__tstate);
36484 if (PyErr_Occurred()) SWIG_fail;
36485 }
36486 resultobj = SWIG_Py_Void();
36487 return resultobj;
36488fail:
36489 return NULL;
d55e5bfc
RD
36490}
36491
36492
1bd55598
RD
36493SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36494 PyObject *resultobj = 0;
36495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36496 void *argp1 = 0 ;
36497 int res1 = 0 ;
36498 PyObject *swig_obj[1] ;
36499
36500 if (!args) SWIG_fail;
36501 swig_obj[0] = args;
36502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36503 if (!SWIG_IsOK(res1)) {
36504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36505 }
36506 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36507 {
36508 PyThreadState* __tstate = wxPyBeginAllowThreads();
36509 (arg1)->DeleteAllItems();
36510 wxPyEndAllowThreads(__tstate);
36511 if (PyErr_Occurred()) SWIG_fail;
36512 }
36513 resultobj = SWIG_Py_Void();
36514 return resultobj;
36515fail:
36516 return NULL;
36517}
36518
36519
36520SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36521 PyObject *resultobj = 0;
36522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36523 wxTreeItemId *arg2 = 0 ;
36524 void *argp1 = 0 ;
36525 int res1 = 0 ;
36526 void *argp2 = 0 ;
36527 int res2 = 0 ;
36528 PyObject * obj0 = 0 ;
36529 PyObject * obj1 = 0 ;
36530 char * kwnames[] = {
36531 (char *) "self",(char *) "item", NULL
36532 };
36533
36534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36536 if (!SWIG_IsOK(res1)) {
36537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36538 }
36539 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36541 if (!SWIG_IsOK(res2)) {
36542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36543 }
36544 if (!argp2) {
36545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36546 }
36547 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36548 {
36549 PyThreadState* __tstate = wxPyBeginAllowThreads();
36550 (arg1)->Expand((wxTreeItemId const &)*arg2);
36551 wxPyEndAllowThreads(__tstate);
36552 if (PyErr_Occurred()) SWIG_fail;
36553 }
36554 resultobj = SWIG_Py_Void();
36555 return resultobj;
36556fail:
36557 return NULL;
36558}
36559
36560
3d6c9062
RD
36561SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36562 PyObject *resultobj = 0;
36563 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36564 wxTreeItemId *arg2 = 0 ;
36565 void *argp1 = 0 ;
36566 int res1 = 0 ;
36567 void *argp2 = 0 ;
36568 int res2 = 0 ;
36569 PyObject * obj0 = 0 ;
36570 PyObject * obj1 = 0 ;
36571 char * kwnames[] = {
36572 (char *) "self",(char *) "item", NULL
36573 };
36574
36575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36577 if (!SWIG_IsOK(res1)) {
36578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36579 }
36580 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36582 if (!SWIG_IsOK(res2)) {
36583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36584 }
36585 if (!argp2) {
36586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36587 }
36588 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36589 {
36590 PyThreadState* __tstate = wxPyBeginAllowThreads();
36591 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36592 wxPyEndAllowThreads(__tstate);
36593 if (PyErr_Occurred()) SWIG_fail;
36594 }
36595 resultobj = SWIG_Py_Void();
36596 return resultobj;
36597fail:
36598 return NULL;
36599}
36600
36601
36602SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36603 PyObject *resultobj = 0;
36604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36605 void *argp1 = 0 ;
36606 int res1 = 0 ;
36607 PyObject *swig_obj[1] ;
36608
36609 if (!args) SWIG_fail;
36610 swig_obj[0] = args;
36611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36612 if (!SWIG_IsOK(res1)) {
36613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36614 }
36615 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36616 {
36617 PyThreadState* __tstate = wxPyBeginAllowThreads();
36618 (arg1)->ExpandAll();
36619 wxPyEndAllowThreads(__tstate);
36620 if (PyErr_Occurred()) SWIG_fail;
36621 }
36622 resultobj = SWIG_Py_Void();
36623 return resultobj;
36624fail:
36625 return NULL;
36626}
36627
36628
1bd55598
RD
36629SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36630 PyObject *resultobj = 0;
36631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36632 wxTreeItemId *arg2 = 0 ;
36633 void *argp1 = 0 ;
36634 int res1 = 0 ;
36635 void *argp2 = 0 ;
36636 int res2 = 0 ;
36637 PyObject * obj0 = 0 ;
36638 PyObject * obj1 = 0 ;
36639 char * kwnames[] = {
36640 (char *) "self",(char *) "item", NULL
36641 };
36642
36643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36645 if (!SWIG_IsOK(res1)) {
36646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36647 }
36648 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36650 if (!SWIG_IsOK(res2)) {
36651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36652 }
36653 if (!argp2) {
36654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36655 }
36656 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36657 {
36658 PyThreadState* __tstate = wxPyBeginAllowThreads();
36659 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36660 wxPyEndAllowThreads(__tstate);
36661 if (PyErr_Occurred()) SWIG_fail;
36662 }
36663 resultobj = SWIG_Py_Void();
36664 return resultobj;
36665fail:
36666 return NULL;
36667}
36668
36669
36670SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36671 PyObject *resultobj = 0;
36672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36673 wxTreeItemId *arg2 = 0 ;
36674 void *argp1 = 0 ;
36675 int res1 = 0 ;
36676 void *argp2 = 0 ;
36677 int res2 = 0 ;
36678 PyObject * obj0 = 0 ;
36679 PyObject * obj1 = 0 ;
36680 char * kwnames[] = {
36681 (char *) "self",(char *) "item", NULL
36682 };
36683
36684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36686 if (!SWIG_IsOK(res1)) {
36687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36688 }
36689 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36691 if (!SWIG_IsOK(res2)) {
36692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36693 }
36694 if (!argp2) {
36695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36696 }
36697 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36698 {
36699 PyThreadState* __tstate = wxPyBeginAllowThreads();
36700 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36701 wxPyEndAllowThreads(__tstate);
36702 if (PyErr_Occurred()) SWIG_fail;
36703 }
36704 resultobj = SWIG_Py_Void();
36705 return resultobj;
36706fail:
36707 return NULL;
36708}
36709
36710
36711SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36712 PyObject *resultobj = 0;
36713 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36714 wxTreeItemId *arg2 = 0 ;
36715 void *argp1 = 0 ;
36716 int res1 = 0 ;
36717 void *argp2 = 0 ;
36718 int res2 = 0 ;
36719 PyObject * obj0 = 0 ;
36720 PyObject * obj1 = 0 ;
36721 char * kwnames[] = {
36722 (char *) "self",(char *) "item", NULL
36723 };
36724
36725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36727 if (!SWIG_IsOK(res1)) {
36728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36729 }
36730 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36732 if (!SWIG_IsOK(res2)) {
36733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36734 }
36735 if (!argp2) {
36736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36737 }
36738 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36739 {
36740 PyThreadState* __tstate = wxPyBeginAllowThreads();
36741 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36742 wxPyEndAllowThreads(__tstate);
36743 if (PyErr_Occurred()) SWIG_fail;
36744 }
36745 resultobj = SWIG_Py_Void();
36746 return resultobj;
36747fail:
36748 return NULL;
d55e5bfc
RD
36749}
36750
36751
1bd55598
RD
36752SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36753 PyObject *resultobj = 0;
36754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36755 void *argp1 = 0 ;
36756 int res1 = 0 ;
36757 PyObject *swig_obj[1] ;
36758
36759 if (!args) SWIG_fail;
36760 swig_obj[0] = args;
36761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36762 if (!SWIG_IsOK(res1)) {
36763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36764 }
36765 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36766 {
36767 PyThreadState* __tstate = wxPyBeginAllowThreads();
36768 (arg1)->Unselect();
36769 wxPyEndAllowThreads(__tstate);
36770 if (PyErr_Occurred()) SWIG_fail;
36771 }
36772 resultobj = SWIG_Py_Void();
36773 return resultobj;
36774fail:
36775 return NULL;
36776}
36777
36778
36779SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36780 PyObject *resultobj = 0;
36781 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36782 wxTreeItemId *arg2 = 0 ;
36783 void *argp1 = 0 ;
36784 int res1 = 0 ;
36785 void *argp2 = 0 ;
36786 int res2 = 0 ;
36787 PyObject * obj0 = 0 ;
36788 PyObject * obj1 = 0 ;
36789 char * kwnames[] = {
36790 (char *) "self",(char *) "item", NULL
36791 };
36792
36793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36795 if (!SWIG_IsOK(res1)) {
36796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36797 }
36798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36800 if (!SWIG_IsOK(res2)) {
36801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36802 }
36803 if (!argp2) {
36804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36805 }
36806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36807 {
36808 PyThreadState* __tstate = wxPyBeginAllowThreads();
36809 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36810 wxPyEndAllowThreads(__tstate);
36811 if (PyErr_Occurred()) SWIG_fail;
36812 }
36813 resultobj = SWIG_Py_Void();
36814 return resultobj;
36815fail:
36816 return NULL;
d55e5bfc
RD
36817}
36818
36819
1bd55598
RD
36820SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36821 PyObject *resultobj = 0;
36822 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36823 void *argp1 = 0 ;
36824 int res1 = 0 ;
36825 PyObject *swig_obj[1] ;
36826
36827 if (!args) SWIG_fail;
36828 swig_obj[0] = args;
36829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36830 if (!SWIG_IsOK(res1)) {
36831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36832 }
36833 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36834 {
36835 PyThreadState* __tstate = wxPyBeginAllowThreads();
36836 (arg1)->UnselectAll();
36837 wxPyEndAllowThreads(__tstate);
36838 if (PyErr_Occurred()) SWIG_fail;
36839 }
36840 resultobj = SWIG_Py_Void();
36841 return resultobj;
36842fail:
36843 return NULL;
36844}
36845
36846
36847SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36848 PyObject *resultobj = 0;
36849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36850 wxTreeItemId *arg2 = 0 ;
36851 bool arg3 = (bool) true ;
36852 void *argp1 = 0 ;
36853 int res1 = 0 ;
36854 void *argp2 = 0 ;
36855 int res2 = 0 ;
36856 bool val3 ;
36857 int ecode3 = 0 ;
36858 PyObject * obj0 = 0 ;
36859 PyObject * obj1 = 0 ;
36860 PyObject * obj2 = 0 ;
36861 char * kwnames[] = {
36862 (char *) "self",(char *) "item",(char *) "select", NULL
36863 };
36864
36865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36867 if (!SWIG_IsOK(res1)) {
36868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36869 }
36870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36872 if (!SWIG_IsOK(res2)) {
36873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36874 }
36875 if (!argp2) {
36876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36877 }
36878 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36879 if (obj2) {
36880 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36881 if (!SWIG_IsOK(ecode3)) {
36882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36883 }
36884 arg3 = static_cast< bool >(val3);
36885 }
36886 {
36887 PyThreadState* __tstate = wxPyBeginAllowThreads();
36888 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36889 wxPyEndAllowThreads(__tstate);
36890 if (PyErr_Occurred()) SWIG_fail;
36891 }
36892 resultobj = SWIG_Py_Void();
36893 return resultobj;
36894fail:
36895 return NULL;
36896}
36897
36898
36899SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36900 PyObject *resultobj = 0;
36901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36902 wxTreeItemId *arg2 = 0 ;
36903 void *argp1 = 0 ;
36904 int res1 = 0 ;
36905 void *argp2 = 0 ;
36906 int res2 = 0 ;
36907 PyObject * obj0 = 0 ;
36908 PyObject * obj1 = 0 ;
36909 char * kwnames[] = {
36910 (char *) "self",(char *) "item", NULL
36911 };
36912
36913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36915 if (!SWIG_IsOK(res1)) {
36916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36917 }
36918 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36920 if (!SWIG_IsOK(res2)) {
36921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36922 }
36923 if (!argp2) {
36924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36925 }
36926 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36927 {
36928 PyThreadState* __tstate = wxPyBeginAllowThreads();
36929 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36930 wxPyEndAllowThreads(__tstate);
36931 if (PyErr_Occurred()) SWIG_fail;
36932 }
36933 resultobj = SWIG_Py_Void();
36934 return resultobj;
36935fail:
36936 return NULL;
36937}
36938
36939
36940SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36941 PyObject *resultobj = 0;
36942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36943 wxTreeItemId *arg2 = 0 ;
36944 void *argp1 = 0 ;
36945 int res1 = 0 ;
36946 void *argp2 = 0 ;
36947 int res2 = 0 ;
36948 PyObject * obj0 = 0 ;
36949 PyObject * obj1 = 0 ;
36950 char * kwnames[] = {
36951 (char *) "self",(char *) "item", NULL
36952 };
36953
36954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36961 if (!SWIG_IsOK(res2)) {
36962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 if (!argp2) {
36965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36966 }
36967 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36968 {
36969 PyThreadState* __tstate = wxPyBeginAllowThreads();
36970 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36971 wxPyEndAllowThreads(__tstate);
36972 if (PyErr_Occurred()) SWIG_fail;
36973 }
36974 resultobj = SWIG_Py_Void();
36975 return resultobj;
36976fail:
36977 return NULL;
36978}
36979
36980
36981SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36982 PyObject *resultobj = 0;
36983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36984 wxTreeItemId *arg2 = 0 ;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 void *argp2 = 0 ;
36988 int res2 = 0 ;
36989 PyObject * obj0 = 0 ;
36990 PyObject * obj1 = 0 ;
36991 char * kwnames[] = {
36992 (char *) "self",(char *) "item", NULL
36993 };
36994
36995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36997 if (!SWIG_IsOK(res1)) {
36998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36999 }
37000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37002 if (!SWIG_IsOK(res2)) {
37003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37004 }
37005 if (!argp2) {
37006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37007 }
37008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37009 {
37010 PyThreadState* __tstate = wxPyBeginAllowThreads();
37011 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37012 wxPyEndAllowThreads(__tstate);
37013 if (PyErr_Occurred()) SWIG_fail;
37014 }
37015 resultobj = SWIG_Py_Void();
37016 return resultobj;
37017fail:
37018 return NULL;
37019}
37020
37021
37022SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37023 PyObject *resultobj = 0;
37024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37025 wxTreeItemId *arg2 = 0 ;
37026 void *argp1 = 0 ;
37027 int res1 = 0 ;
37028 void *argp2 = 0 ;
37029 int res2 = 0 ;
37030 PyObject * obj0 = 0 ;
37031 PyObject * obj1 = 0 ;
37032 char * kwnames[] = {
37033 (char *) "self",(char *) "item", NULL
37034 };
37035
37036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37038 if (!SWIG_IsOK(res1)) {
37039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37040 }
37041 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37043 if (!SWIG_IsOK(res2)) {
37044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37045 }
37046 if (!argp2) {
37047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37048 }
37049 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37050 {
37051 PyThreadState* __tstate = wxPyBeginAllowThreads();
37052 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37053 wxPyEndAllowThreads(__tstate);
37054 if (PyErr_Occurred()) SWIG_fail;
37055 }
37056 resultobj = SWIG_Py_Void();
37057 return resultobj;
37058fail:
37059 return NULL;
d55e5bfc
RD
37060}
37061
37062
1bd55598
RD
37063SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37064 PyObject *resultobj = 0;
37065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37066 wxTextCtrl *result = 0 ;
37067 void *argp1 = 0 ;
37068 int res1 = 0 ;
37069 PyObject *swig_obj[1] ;
37070
37071 if (!args) SWIG_fail;
37072 swig_obj[0] = args;
37073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37074 if (!SWIG_IsOK(res1)) {
37075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37076 }
37077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37078 {
37079 PyThreadState* __tstate = wxPyBeginAllowThreads();
37080 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37081 wxPyEndAllowThreads(__tstate);
37082 if (PyErr_Occurred()) SWIG_fail;
37083 }
37084 {
37085 resultobj = wxPyMake_wxObject(result, 0);
37086 }
37087 return resultobj;
37088fail:
37089 return NULL;
37090}
37091
37092
37093SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37094 PyObject *resultobj = 0;
37095 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37096 wxTreeItemId *arg2 = 0 ;
37097 void *argp1 = 0 ;
37098 int res1 = 0 ;
37099 void *argp2 = 0 ;
37100 int res2 = 0 ;
37101 PyObject * obj0 = 0 ;
37102 PyObject * obj1 = 0 ;
37103 char * kwnames[] = {
37104 (char *) "self",(char *) "item", NULL
37105 };
37106
37107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37109 if (!SWIG_IsOK(res1)) {
37110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37111 }
37112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37114 if (!SWIG_IsOK(res2)) {
37115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37116 }
37117 if (!argp2) {
37118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37119 }
37120 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37121 {
37122 PyThreadState* __tstate = wxPyBeginAllowThreads();
37123 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37124 wxPyEndAllowThreads(__tstate);
37125 if (PyErr_Occurred()) SWIG_fail;
37126 }
37127 resultobj = SWIG_Py_Void();
37128 return resultobj;
37129fail:
37130 return NULL;
37131}
37132
37133
37134SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37135 PyObject *resultobj = 0;
37136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37137 wxPoint *arg2 = 0 ;
37138 int *arg3 = 0 ;
37139 wxTreeItemId result;
37140 void *argp1 = 0 ;
37141 int res1 = 0 ;
37142 wxPoint temp2 ;
37143 int temp3 ;
37144 int res3 = SWIG_TMPOBJ ;
37145 PyObject * obj0 = 0 ;
37146 PyObject * obj1 = 0 ;
37147 char * kwnames[] = {
37148 (char *) "self",(char *) "point", NULL
37149 };
37150
37151 arg3 = &temp3;
37152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37154 if (!SWIG_IsOK(res1)) {
37155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37156 }
37157 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37158 {
37159 arg2 = &temp2;
37160 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37161 }
37162 {
37163 PyThreadState* __tstate = wxPyBeginAllowThreads();
37164 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37165 wxPyEndAllowThreads(__tstate);
37166 if (PyErr_Occurred()) SWIG_fail;
37167 }
37168 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37169 if (SWIG_IsTmpObj(res3)) {
37170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37171 } else {
37172 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37174 }
37175 return resultobj;
37176fail:
37177 return NULL;
37178}
37179
37180
37181SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37182 PyObject *resultobj = 0;
37183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37184 wxTreeItemId *arg2 = 0 ;
37185 bool arg3 = (bool) false ;
37186 PyObject *result = 0 ;
37187 void *argp1 = 0 ;
37188 int res1 = 0 ;
37189 void *argp2 = 0 ;
37190 int res2 = 0 ;
37191 bool val3 ;
37192 int ecode3 = 0 ;
37193 PyObject * obj0 = 0 ;
37194 PyObject * obj1 = 0 ;
37195 PyObject * obj2 = 0 ;
37196 char * kwnames[] = {
37197 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37198 };
37199
37200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37202 if (!SWIG_IsOK(res1)) {
37203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37204 }
37205 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37207 if (!SWIG_IsOK(res2)) {
37208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37209 }
37210 if (!argp2) {
37211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37212 }
37213 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37214 if (obj2) {
37215 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37216 if (!SWIG_IsOK(ecode3)) {
37217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37218 }
37219 arg3 = static_cast< bool >(val3);
37220 }
37221 {
37222 PyThreadState* __tstate = wxPyBeginAllowThreads();
37223 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37224 wxPyEndAllowThreads(__tstate);
37225 if (PyErr_Occurred()) SWIG_fail;
37226 }
37227 resultobj = result;
37228 return resultobj;
37229fail:
37230 return NULL;
37231}
37232
37233
37234SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37235 PyObject *resultobj = 0;
37236 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37237 SwigValueWrapper<wxVisualAttributes > result;
37238 int val1 ;
37239 int ecode1 = 0 ;
37240 PyObject * obj0 = 0 ;
37241 char * kwnames[] = {
37242 (char *) "variant", NULL
37243 };
37244
37245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37246 if (obj0) {
37247 ecode1 = SWIG_AsVal_int(obj0, &val1);
37248 if (!SWIG_IsOK(ecode1)) {
37249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37250 }
37251 arg1 = static_cast< wxWindowVariant >(val1);
37252 }
37253 {
37254 if (!wxPyCheckForApp()) SWIG_fail;
37255 PyThreadState* __tstate = wxPyBeginAllowThreads();
37256 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37257 wxPyEndAllowThreads(__tstate);
37258 if (PyErr_Occurred()) SWIG_fail;
37259 }
37260 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37261 return resultobj;
37262fail:
37263 return NULL;
d55e5bfc
RD
37264}
37265
37266
2131d850
RD
37267SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37268 PyObject *resultobj = 0;
37269 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37270 bool arg2 ;
37271 void *argp1 = 0 ;
37272 int res1 = 0 ;
37273 bool val2 ;
37274 int ecode2 = 0 ;
37275 PyObject * obj0 = 0 ;
37276 PyObject * obj1 = 0 ;
37277 char * kwnames[] = {
37278 (char *) "self",(char *) "q", NULL
37279 };
37280
37281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37283 if (!SWIG_IsOK(res1)) {
37284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37285 }
37286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37288 if (!SWIG_IsOK(ecode2)) {
37289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37290 }
37291 arg2 = static_cast< bool >(val2);
37292 {
37293 PyThreadState* __tstate = wxPyBeginAllowThreads();
37294 (arg1)->SetQuickBestSize(arg2);
37295 wxPyEndAllowThreads(__tstate);
37296 if (PyErr_Occurred()) SWIG_fail;
37297 }
37298 resultobj = SWIG_Py_Void();
37299 return resultobj;
37300fail:
37301 return NULL;
37302}
37303
37304
37305SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37306 PyObject *resultobj = 0;
37307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37308 bool result;
37309 void *argp1 = 0 ;
37310 int res1 = 0 ;
37311 PyObject *swig_obj[1] ;
37312
37313 if (!args) SWIG_fail;
37314 swig_obj[0] = args;
37315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37316 if (!SWIG_IsOK(res1)) {
37317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37318 }
37319 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37320 {
37321 PyThreadState* __tstate = wxPyBeginAllowThreads();
37322 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37323 wxPyEndAllowThreads(__tstate);
37324 if (PyErr_Occurred()) SWIG_fail;
37325 }
37326 {
37327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37328 }
37329 return resultobj;
37330fail:
37331 return NULL;
37332}
37333
37334
1bd55598
RD
37335SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37336 PyObject *obj;
37337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37338 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37339 return SWIG_Py_Void();
d55e5bfc
RD
37340}
37341
1bd55598
RD
37342SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37343 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37344}
37345
1bd55598
RD
37346SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37347 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37348 return 1;
d55e5bfc
RD
37349}
37350
37351
1bd55598
RD
37352SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37353 PyObject *pyobj = 0;
37354
37355 {
37356#if wxUSE_UNICODE
37357 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37358#else
37359 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37360#endif
37361 }
37362 return pyobj;
37363}
37364
37365
37366SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37367 PyObject *resultobj = 0;
37368 wxWindow *arg1 = (wxWindow *) 0 ;
37369 int arg2 = (int) (int)-1 ;
37370 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37371 wxString *arg3 = (wxString *) &arg3_defvalue ;
37372 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37373 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37374 wxSize const &arg5_defvalue = wxDefaultSize ;
37375 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37376 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37377 wxString const &arg7_defvalue = wxPyEmptyString ;
37378 wxString *arg7 = (wxString *) &arg7_defvalue ;
37379 int arg8 = (int) 0 ;
37380 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37381 wxString *arg9 = (wxString *) &arg9_defvalue ;
37382 wxGenericDirCtrl *result = 0 ;
37383 void *argp1 = 0 ;
37384 int res1 = 0 ;
37385 int val2 ;
37386 int ecode2 = 0 ;
37387 bool temp3 = false ;
37388 wxPoint temp4 ;
37389 wxSize temp5 ;
37390 long val6 ;
37391 int ecode6 = 0 ;
37392 bool temp7 = false ;
37393 int val8 ;
37394 int ecode8 = 0 ;
37395 bool temp9 = false ;
37396 PyObject * obj0 = 0 ;
37397 PyObject * obj1 = 0 ;
37398 PyObject * obj2 = 0 ;
37399 PyObject * obj3 = 0 ;
37400 PyObject * obj4 = 0 ;
37401 PyObject * obj5 = 0 ;
37402 PyObject * obj6 = 0 ;
37403 PyObject * obj7 = 0 ;
37404 PyObject * obj8 = 0 ;
37405 char * kwnames[] = {
37406 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37407 };
37408
37409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37411 if (!SWIG_IsOK(res1)) {
37412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37413 }
37414 arg1 = reinterpret_cast< wxWindow * >(argp1);
37415 if (obj1) {
37416 ecode2 = SWIG_AsVal_int(obj1, &val2);
37417 if (!SWIG_IsOK(ecode2)) {
37418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37419 }
37420 arg2 = static_cast< int >(val2);
37421 }
37422 if (obj2) {
36ed4f51 37423 {
1bd55598
RD
37424 arg3 = wxString_in_helper(obj2);
37425 if (arg3 == NULL) SWIG_fail;
37426 temp3 = true;
36ed4f51 37427 }
1bd55598
RD
37428 }
37429 if (obj3) {
d55e5bfc 37430 {
1bd55598
RD
37431 arg4 = &temp4;
37432 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37433 }
1bd55598
RD
37434 }
37435 if (obj4) {
36ed4f51 37436 {
1bd55598
RD
37437 arg5 = &temp5;
37438 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37439 }
1bd55598
RD
37440 }
37441 if (obj5) {
37442 ecode6 = SWIG_AsVal_long(obj5, &val6);
37443 if (!SWIG_IsOK(ecode6)) {
37444 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37445 }
37446 arg6 = static_cast< long >(val6);
37447 }
37448 if (obj6) {
36ed4f51 37449 {
1bd55598
RD
37450 arg7 = wxString_in_helper(obj6);
37451 if (arg7 == NULL) SWIG_fail;
37452 temp7 = true;
36ed4f51 37453 }
1bd55598
RD
37454 }
37455 if (obj7) {
37456 ecode8 = SWIG_AsVal_int(obj7, &val8);
37457 if (!SWIG_IsOK(ecode8)) {
37458 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37459 }
37460 arg8 = static_cast< int >(val8);
37461 }
37462 if (obj8) {
d55e5bfc 37463 {
1bd55598
RD
37464 arg9 = wxString_in_helper(obj8);
37465 if (arg9 == NULL) SWIG_fail;
37466 temp9 = true;
d55e5bfc 37467 }
1bd55598
RD
37468 }
37469 {
37470 if (!wxPyCheckForApp()) SWIG_fail;
37471 PyThreadState* __tstate = wxPyBeginAllowThreads();
37472 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37473 wxPyEndAllowThreads(__tstate);
37474 if (PyErr_Occurred()) SWIG_fail;
37475 }
37476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37477 {
37478 if (temp3)
37479 delete arg3;
37480 }
37481 {
37482 if (temp7)
37483 delete arg7;
37484 }
37485 {
37486 if (temp9)
37487 delete arg9;
37488 }
37489 return resultobj;
37490fail:
37491 {
37492 if (temp3)
37493 delete arg3;
37494 }
37495 {
37496 if (temp7)
37497 delete arg7;
37498 }
37499 {
37500 if (temp9)
37501 delete arg9;
37502 }
37503 return NULL;
d55e5bfc
RD
37504}
37505
37506
1bd55598
RD
37507SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37508 PyObject *resultobj = 0;
37509 wxGenericDirCtrl *result = 0 ;
37510
37511 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37512 {
37513 if (!wxPyCheckForApp()) SWIG_fail;
37514 PyThreadState* __tstate = wxPyBeginAllowThreads();
37515 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37516 wxPyEndAllowThreads(__tstate);
37517 if (PyErr_Occurred()) SWIG_fail;
37518 }
37519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37520 return resultobj;
37521fail:
37522 return NULL;
37523}
37524
37525
37526SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37527 PyObject *resultobj = 0;
37528 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37529 wxWindow *arg2 = (wxWindow *) 0 ;
37530 int arg3 = (int) (int)-1 ;
37531 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37532 wxString *arg4 = (wxString *) &arg4_defvalue ;
37533 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37534 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37535 wxSize const &arg6_defvalue = wxDefaultSize ;
37536 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37537 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37538 wxString const &arg8_defvalue = wxPyEmptyString ;
37539 wxString *arg8 = (wxString *) &arg8_defvalue ;
37540 int arg9 = (int) 0 ;
37541 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37542 wxString *arg10 = (wxString *) &arg10_defvalue ;
37543 bool result;
37544 void *argp1 = 0 ;
37545 int res1 = 0 ;
37546 void *argp2 = 0 ;
37547 int res2 = 0 ;
37548 int val3 ;
37549 int ecode3 = 0 ;
37550 bool temp4 = false ;
37551 wxPoint temp5 ;
37552 wxSize temp6 ;
37553 long val7 ;
37554 int ecode7 = 0 ;
37555 bool temp8 = false ;
37556 int val9 ;
37557 int ecode9 = 0 ;
37558 bool temp10 = false ;
37559 PyObject * obj0 = 0 ;
37560 PyObject * obj1 = 0 ;
37561 PyObject * obj2 = 0 ;
37562 PyObject * obj3 = 0 ;
37563 PyObject * obj4 = 0 ;
37564 PyObject * obj5 = 0 ;
37565 PyObject * obj6 = 0 ;
37566 PyObject * obj7 = 0 ;
37567 PyObject * obj8 = 0 ;
37568 PyObject * obj9 = 0 ;
37569 char * kwnames[] = {
37570 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37571 };
37572
37573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37575 if (!SWIG_IsOK(res1)) {
37576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37577 }
37578 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37580 if (!SWIG_IsOK(res2)) {
37581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37582 }
37583 arg2 = reinterpret_cast< wxWindow * >(argp2);
37584 if (obj2) {
37585 ecode3 = SWIG_AsVal_int(obj2, &val3);
37586 if (!SWIG_IsOK(ecode3)) {
37587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37588 }
37589 arg3 = static_cast< int >(val3);
37590 }
37591 if (obj3) {
36ed4f51 37592 {
1bd55598
RD
37593 arg4 = wxString_in_helper(obj3);
37594 if (arg4 == NULL) SWIG_fail;
37595 temp4 = true;
36ed4f51 37596 }
1bd55598
RD
37597 }
37598 if (obj4) {
36ed4f51 37599 {
1bd55598
RD
37600 arg5 = &temp5;
37601 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37602 }
1bd55598
RD
37603 }
37604 if (obj5) {
d55e5bfc 37605 {
1bd55598
RD
37606 arg6 = &temp6;
37607 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37608 }
1bd55598
RD
37609 }
37610 if (obj6) {
37611 ecode7 = SWIG_AsVal_long(obj6, &val7);
37612 if (!SWIG_IsOK(ecode7)) {
37613 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37614 }
37615 arg7 = static_cast< long >(val7);
37616 }
37617 if (obj7) {
d55e5bfc 37618 {
1bd55598
RD
37619 arg8 = wxString_in_helper(obj7);
37620 if (arg8 == NULL) SWIG_fail;
37621 temp8 = true;
d55e5bfc 37622 }
1bd55598
RD
37623 }
37624 if (obj8) {
37625 ecode9 = SWIG_AsVal_int(obj8, &val9);
37626 if (!SWIG_IsOK(ecode9)) {
37627 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37628 }
37629 arg9 = static_cast< int >(val9);
37630 }
37631 if (obj9) {
36ed4f51 37632 {
1bd55598
RD
37633 arg10 = wxString_in_helper(obj9);
37634 if (arg10 == NULL) SWIG_fail;
37635 temp10 = true;
36ed4f51 37636 }
1bd55598
RD
37637 }
37638 {
37639 PyThreadState* __tstate = wxPyBeginAllowThreads();
37640 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37641 wxPyEndAllowThreads(__tstate);
37642 if (PyErr_Occurred()) SWIG_fail;
37643 }
37644 {
37645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37646 }
37647 {
37648 if (temp4)
37649 delete arg4;
37650 }
37651 {
37652 if (temp8)
37653 delete arg8;
37654 }
37655 {
37656 if (temp10)
37657 delete arg10;
37658 }
37659 return resultobj;
37660fail:
37661 {
37662 if (temp4)
37663 delete arg4;
37664 }
37665 {
37666 if (temp8)
37667 delete arg8;
37668 }
37669 {
37670 if (temp10)
37671 delete arg10;
37672 }
37673 return NULL;
37674}
37675
37676
37677SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37678 PyObject *resultobj = 0;
37679 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37680 wxString *arg2 = 0 ;
37681 bool result;
37682 void *argp1 = 0 ;
37683 int res1 = 0 ;
37684 bool temp2 = false ;
37685 PyObject * obj0 = 0 ;
37686 PyObject * obj1 = 0 ;
37687 char * kwnames[] = {
37688 (char *) "self",(char *) "path", NULL
37689 };
37690
37691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37693 if (!SWIG_IsOK(res1)) {
37694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37695 }
37696 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37697 {
37698 arg2 = wxString_in_helper(obj1);
37699 if (arg2 == NULL) SWIG_fail;
37700 temp2 = true;
37701 }
37702 {
37703 PyThreadState* __tstate = wxPyBeginAllowThreads();
37704 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37705 wxPyEndAllowThreads(__tstate);
37706 if (PyErr_Occurred()) SWIG_fail;
37707 }
37708 {
37709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37710 }
37711 {
37712 if (temp2)
37713 delete arg2;
37714 }
37715 return resultobj;
37716fail:
37717 {
37718 if (temp2)
37719 delete arg2;
37720 }
37721 return NULL;
d55e5bfc
RD
37722}
37723
37724
704eda0c
RD
37725SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37726 PyObject *resultobj = 0;
37727 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37728 wxString *arg2 = 0 ;
37729 bool result;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 bool temp2 = false ;
37733 PyObject * obj0 = 0 ;
37734 PyObject * obj1 = 0 ;
37735 char * kwnames[] = {
37736 (char *) "self",(char *) "path", NULL
37737 };
37738
37739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37741 if (!SWIG_IsOK(res1)) {
37742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37743 }
37744 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37745 {
37746 arg2 = wxString_in_helper(obj1);
37747 if (arg2 == NULL) SWIG_fail;
37748 temp2 = true;
37749 }
37750 {
37751 PyThreadState* __tstate = wxPyBeginAllowThreads();
37752 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37753 wxPyEndAllowThreads(__tstate);
37754 if (PyErr_Occurred()) SWIG_fail;
37755 }
37756 {
37757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37758 }
37759 {
37760 if (temp2)
37761 delete arg2;
37762 }
37763 return resultobj;
37764fail:
37765 {
37766 if (temp2)
37767 delete arg2;
37768 }
37769 return NULL;
37770}
37771
37772
1bd55598
RD
37773SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37774 PyObject *resultobj = 0;
37775 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37776 wxString result;
37777 void *argp1 = 0 ;
37778 int res1 = 0 ;
37779 PyObject *swig_obj[1] ;
37780
37781 if (!args) SWIG_fail;
37782 swig_obj[0] = args;
37783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37784 if (!SWIG_IsOK(res1)) {
37785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37786 }
37787 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37788 {
37789 PyThreadState* __tstate = wxPyBeginAllowThreads();
37790 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37791 wxPyEndAllowThreads(__tstate);
37792 if (PyErr_Occurred()) SWIG_fail;
37793 }
37794 {
37795#if wxUSE_UNICODE
37796 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37797#else
37798 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37799#endif
37800 }
37801 return resultobj;
37802fail:
37803 return NULL;
37804}
37805
37806
37807SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37808 PyObject *resultobj = 0;
37809 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37810 wxString *arg2 = 0 ;
37811 void *argp1 = 0 ;
37812 int res1 = 0 ;
37813 bool temp2 = false ;
37814 PyObject * obj0 = 0 ;
37815 PyObject * obj1 = 0 ;
37816 char * kwnames[] = {
37817 (char *) "self",(char *) "path", NULL
37818 };
37819
37820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37822 if (!SWIG_IsOK(res1)) {
37823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37824 }
37825 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37826 {
37827 arg2 = wxString_in_helper(obj1);
37828 if (arg2 == NULL) SWIG_fail;
37829 temp2 = true;
37830 }
37831 {
37832 PyThreadState* __tstate = wxPyBeginAllowThreads();
37833 (arg1)->SetDefaultPath((wxString const &)*arg2);
37834 wxPyEndAllowThreads(__tstate);
37835 if (PyErr_Occurred()) SWIG_fail;
37836 }
37837 resultobj = SWIG_Py_Void();
37838 {
37839 if (temp2)
37840 delete arg2;
37841 }
37842 return resultobj;
37843fail:
37844 {
37845 if (temp2)
37846 delete arg2;
37847 }
37848 return NULL;
d55e5bfc
RD
37849}
37850
37851
1bd55598
RD
37852SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37853 PyObject *resultobj = 0;
37854 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37855 wxString result;
37856 void *argp1 = 0 ;
37857 int res1 = 0 ;
37858 PyObject *swig_obj[1] ;
37859
37860 if (!args) SWIG_fail;
37861 swig_obj[0] = args;
37862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37863 if (!SWIG_IsOK(res1)) {
37864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37865 }
37866 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37870 wxPyEndAllowThreads(__tstate);
37871 if (PyErr_Occurred()) SWIG_fail;
37872 }
37873 {
37874#if wxUSE_UNICODE
37875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37876#else
37877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37878#endif
37879 }
37880 return resultobj;
37881fail:
37882 return NULL;
d55e5bfc
RD
37883}
37884
37885
1bd55598
RD
37886SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37887 PyObject *resultobj = 0;
37888 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37889 wxString result;
37890 void *argp1 = 0 ;
37891 int res1 = 0 ;
37892 PyObject *swig_obj[1] ;
37893
37894 if (!args) SWIG_fail;
37895 swig_obj[0] = args;
37896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37897 if (!SWIG_IsOK(res1)) {
37898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37899 }
37900 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37901 {
37902 PyThreadState* __tstate = wxPyBeginAllowThreads();
37903 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37904 wxPyEndAllowThreads(__tstate);
37905 if (PyErr_Occurred()) SWIG_fail;
37906 }
37907 {
37908#if wxUSE_UNICODE
37909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37910#else
37911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37912#endif
37913 }
37914 return resultobj;
37915fail:
37916 return NULL;
37917}
37918
37919
37920SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37921 PyObject *resultobj = 0;
37922 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37923 wxString *arg2 = 0 ;
37924 void *argp1 = 0 ;
37925 int res1 = 0 ;
37926 bool temp2 = false ;
37927 PyObject * obj0 = 0 ;
37928 PyObject * obj1 = 0 ;
37929 char * kwnames[] = {
37930 (char *) "self",(char *) "path", NULL
37931 };
37932
37933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37935 if (!SWIG_IsOK(res1)) {
37936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37937 }
37938 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37939 {
37940 arg2 = wxString_in_helper(obj1);
37941 if (arg2 == NULL) SWIG_fail;
37942 temp2 = true;
37943 }
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 (arg1)->SetPath((wxString const &)*arg2);
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 resultobj = SWIG_Py_Void();
37951 {
37952 if (temp2)
37953 delete arg2;
37954 }
37955 return resultobj;
37956fail:
37957 {
37958 if (temp2)
37959 delete arg2;
37960 }
37961 return NULL;
37962}
37963
37964
37965SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37966 PyObject *resultobj = 0;
37967 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37968 bool arg2 ;
37969 void *argp1 = 0 ;
37970 int res1 = 0 ;
37971 bool val2 ;
37972 int ecode2 = 0 ;
37973 PyObject * obj0 = 0 ;
37974 PyObject * obj1 = 0 ;
37975 char * kwnames[] = {
37976 (char *) "self",(char *) "show", NULL
37977 };
37978
37979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37981 if (!SWIG_IsOK(res1)) {
37982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37983 }
37984 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37985 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37986 if (!SWIG_IsOK(ecode2)) {
37987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37988 }
37989 arg2 = static_cast< bool >(val2);
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 (arg1)->ShowHidden(arg2);
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 resultobj = SWIG_Py_Void();
37997 return resultobj;
37998fail:
37999 return NULL;
d55e5bfc
RD
38000}
38001
38002
1bd55598
RD
38003SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38004 PyObject *resultobj = 0;
38005 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38006 bool result;
38007 void *argp1 = 0 ;
38008 int res1 = 0 ;
38009 PyObject *swig_obj[1] ;
38010
38011 if (!args) SWIG_fail;
38012 swig_obj[0] = args;
38013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38014 if (!SWIG_IsOK(res1)) {
38015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38016 }
38017 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38018 {
38019 PyThreadState* __tstate = wxPyBeginAllowThreads();
38020 result = (bool)(arg1)->GetShowHidden();
38021 wxPyEndAllowThreads(__tstate);
38022 if (PyErr_Occurred()) SWIG_fail;
38023 }
38024 {
38025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38026 }
38027 return resultobj;
38028fail:
38029 return NULL;
d55e5bfc
RD
38030}
38031
38032
1bd55598
RD
38033SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38034 PyObject *resultobj = 0;
38035 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38036 wxString result;
38037 void *argp1 = 0 ;
38038 int res1 = 0 ;
38039 PyObject *swig_obj[1] ;
38040
38041 if (!args) SWIG_fail;
38042 swig_obj[0] = args;
38043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38044 if (!SWIG_IsOK(res1)) {
38045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38046 }
38047 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38048 {
38049 PyThreadState* __tstate = wxPyBeginAllowThreads();
38050 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38051 wxPyEndAllowThreads(__tstate);
38052 if (PyErr_Occurred()) SWIG_fail;
38053 }
38054 {
38055#if wxUSE_UNICODE
38056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38057#else
38058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38059#endif
38060 }
38061 return resultobj;
38062fail:
38063 return NULL;
38064}
38065
38066
38067SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38068 PyObject *resultobj = 0;
38069 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38070 wxString *arg2 = 0 ;
38071 void *argp1 = 0 ;
38072 int res1 = 0 ;
38073 bool temp2 = false ;
38074 PyObject * obj0 = 0 ;
38075 PyObject * obj1 = 0 ;
38076 char * kwnames[] = {
38077 (char *) "self",(char *) "filter", NULL
38078 };
38079
38080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38082 if (!SWIG_IsOK(res1)) {
38083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38084 }
38085 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38086 {
38087 arg2 = wxString_in_helper(obj1);
38088 if (arg2 == NULL) SWIG_fail;
38089 temp2 = true;
38090 }
38091 {
38092 PyThreadState* __tstate = wxPyBeginAllowThreads();
38093 (arg1)->SetFilter((wxString const &)*arg2);
38094 wxPyEndAllowThreads(__tstate);
38095 if (PyErr_Occurred()) SWIG_fail;
38096 }
38097 resultobj = SWIG_Py_Void();
38098 {
38099 if (temp2)
38100 delete arg2;
38101 }
38102 return resultobj;
38103fail:
38104 {
38105 if (temp2)
38106 delete arg2;
38107 }
38108 return NULL;
d55e5bfc
RD
38109}
38110
38111
1bd55598
RD
38112SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38113 PyObject *resultobj = 0;
38114 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38115 int result;
38116 void *argp1 = 0 ;
38117 int res1 = 0 ;
38118 PyObject *swig_obj[1] ;
38119
38120 if (!args) SWIG_fail;
38121 swig_obj[0] = args;
38122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38123 if (!SWIG_IsOK(res1)) {
38124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38125 }
38126 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38127 {
38128 PyThreadState* __tstate = wxPyBeginAllowThreads();
38129 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38130 wxPyEndAllowThreads(__tstate);
38131 if (PyErr_Occurred()) SWIG_fail;
38132 }
38133 resultobj = SWIG_From_int(static_cast< int >(result));
38134 return resultobj;
38135fail:
38136 return NULL;
38137}
38138
38139
38140SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38141 PyObject *resultobj = 0;
38142 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38143 int arg2 ;
38144 void *argp1 = 0 ;
38145 int res1 = 0 ;
38146 int val2 ;
38147 int ecode2 = 0 ;
38148 PyObject * obj0 = 0 ;
38149 PyObject * obj1 = 0 ;
38150 char * kwnames[] = {
38151 (char *) "self",(char *) "n", NULL
38152 };
38153
38154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38156 if (!SWIG_IsOK(res1)) {
38157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38158 }
38159 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38160 ecode2 = SWIG_AsVal_int(obj1, &val2);
38161 if (!SWIG_IsOK(ecode2)) {
38162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38163 }
38164 arg2 = static_cast< int >(val2);
38165 {
38166 PyThreadState* __tstate = wxPyBeginAllowThreads();
38167 (arg1)->SetFilterIndex(arg2);
38168 wxPyEndAllowThreads(__tstate);
38169 if (PyErr_Occurred()) SWIG_fail;
38170 }
38171 resultobj = SWIG_Py_Void();
38172 return resultobj;
38173fail:
38174 return NULL;
d55e5bfc
RD
38175}
38176
38177
1bd55598
RD
38178SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38179 PyObject *resultobj = 0;
38180 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38181 wxTreeItemId result;
38182 void *argp1 = 0 ;
38183 int res1 = 0 ;
38184 PyObject *swig_obj[1] ;
38185
38186 if (!args) SWIG_fail;
38187 swig_obj[0] = args;
38188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38189 if (!SWIG_IsOK(res1)) {
38190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38191 }
38192 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38193 {
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 result = (arg1)->GetRootId();
38196 wxPyEndAllowThreads(__tstate);
38197 if (PyErr_Occurred()) SWIG_fail;
38198 }
38199 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38200 return resultobj;
38201fail:
38202 return NULL;
d55e5bfc
RD
38203}
38204
38205
1bd55598
RD
38206SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38207 PyObject *resultobj = 0;
38208 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38209 wxPyTreeCtrl *result = 0 ;
38210 void *argp1 = 0 ;
38211 int res1 = 0 ;
38212 PyObject *swig_obj[1] ;
38213
38214 if (!args) SWIG_fail;
38215 swig_obj[0] = args;
38216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38217 if (!SWIG_IsOK(res1)) {
38218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38219 }
38220 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38221 {
38222 PyThreadState* __tstate = wxPyBeginAllowThreads();
38223 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38224 wxPyEndAllowThreads(__tstate);
38225 if (PyErr_Occurred()) SWIG_fail;
38226 }
38227 {
38228 resultobj = wxPyMake_wxObject(result, 0);
38229 }
38230 return resultobj;
38231fail:
38232 return NULL;
d55e5bfc
RD
38233}
38234
38235
1bd55598
RD
38236SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38237 PyObject *resultobj = 0;
38238 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38239 wxDirFilterListCtrl *result = 0 ;
38240 void *argp1 = 0 ;
38241 int res1 = 0 ;
38242 PyObject *swig_obj[1] ;
38243
38244 if (!args) SWIG_fail;
38245 swig_obj[0] = args;
38246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38247 if (!SWIG_IsOK(res1)) {
38248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38249 }
38250 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38251 {
38252 PyThreadState* __tstate = wxPyBeginAllowThreads();
38253 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38254 wxPyEndAllowThreads(__tstate);
38255 if (PyErr_Occurred()) SWIG_fail;
38256 }
38257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38258 return resultobj;
38259fail:
38260 return NULL;
38261}
38262
38263
38264SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38265 PyObject *resultobj = 0;
38266 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38267 wxTreeItemId arg2 ;
38268 wxString *arg3 = 0 ;
38269 bool *arg4 = 0 ;
38270 wxTreeItemId result;
38271 void *argp1 = 0 ;
38272 int res1 = 0 ;
38273 void *argp2 ;
38274 int res2 = 0 ;
38275 bool temp3 = false ;
38276 bool temp4 ;
38277 int res4 = SWIG_TMPOBJ ;
38278 PyObject * obj0 = 0 ;
38279 PyObject * obj1 = 0 ;
38280 PyObject * obj2 = 0 ;
38281 char * kwnames[] = {
38282 (char *) "self",(char *) "parentId",(char *) "path", NULL
38283 };
38284
38285 arg4 = &temp4;
38286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38288 if (!SWIG_IsOK(res1)) {
38289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38290 }
38291 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38292 {
38293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38294 if (!SWIG_IsOK(res2)) {
38295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38296 }
38297 if (!argp2) {
38298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38299 } else {
38300 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38301 arg2 = *temp;
38302 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38303 }
1bd55598
RD
38304 }
38305 {
38306 arg3 = wxString_in_helper(obj2);
38307 if (arg3 == NULL) SWIG_fail;
38308 temp3 = true;
38309 }
38310 {
38311 PyThreadState* __tstate = wxPyBeginAllowThreads();
38312 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38313 wxPyEndAllowThreads(__tstate);
38314 if (PyErr_Occurred()) SWIG_fail;
38315 }
38316 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38317 if (SWIG_IsTmpObj(res4)) {
38318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38319 } else {
38320 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38322 }
38323 {
38324 if (temp3)
38325 delete arg3;
38326 }
38327 return resultobj;
38328fail:
38329 {
38330 if (temp3)
38331 delete arg3;
38332 }
38333 return NULL;
d55e5bfc
RD
38334}
38335
38336
1bd55598
RD
38337SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38338 PyObject *resultobj = 0;
38339 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38340 void *argp1 = 0 ;
38341 int res1 = 0 ;
38342 PyObject *swig_obj[1] ;
38343
38344 if (!args) SWIG_fail;
38345 swig_obj[0] = args;
38346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38347 if (!SWIG_IsOK(res1)) {
38348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38349 }
38350 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38351 {
38352 PyThreadState* __tstate = wxPyBeginAllowThreads();
38353 (arg1)->DoResize();
38354 wxPyEndAllowThreads(__tstate);
38355 if (PyErr_Occurred()) SWIG_fail;
38356 }
38357 resultobj = SWIG_Py_Void();
38358 return resultobj;
38359fail:
38360 return NULL;
38361}
38362
38363
38364SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38365 PyObject *resultobj = 0;
38366 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38367 void *argp1 = 0 ;
38368 int res1 = 0 ;
38369 PyObject *swig_obj[1] ;
38370
38371 if (!args) SWIG_fail;
38372 swig_obj[0] = args;
38373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38374 if (!SWIG_IsOK(res1)) {
38375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38376 }
38377 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38378 {
38379 PyThreadState* __tstate = wxPyBeginAllowThreads();
38380 (arg1)->ReCreateTree();
38381 wxPyEndAllowThreads(__tstate);
38382 if (PyErr_Occurred()) SWIG_fail;
38383 }
38384 resultobj = SWIG_Py_Void();
38385 return resultobj;
38386fail:
38387 return NULL;
38388}
38389
38390
38391SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38392 PyObject *obj;
38393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38394 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38395 return SWIG_Py_Void();
38396}
38397
38398SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38399 return SWIG_Python_InitShadowInstance(args);
38400}
38401
38402SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38403 PyObject *resultobj = 0;
38404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38405 int arg2 = (int) (int)-1 ;
38406 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38407 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38408 wxSize const &arg4_defvalue = wxDefaultSize ;
38409 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38410 long arg5 = (long) 0 ;
38411 wxDirFilterListCtrl *result = 0 ;
38412 void *argp1 = 0 ;
38413 int res1 = 0 ;
38414 int val2 ;
38415 int ecode2 = 0 ;
38416 wxPoint temp3 ;
38417 wxSize temp4 ;
38418 long val5 ;
38419 int ecode5 = 0 ;
38420 PyObject * obj0 = 0 ;
38421 PyObject * obj1 = 0 ;
38422 PyObject * obj2 = 0 ;
38423 PyObject * obj3 = 0 ;
38424 PyObject * obj4 = 0 ;
38425 char * kwnames[] = {
38426 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38427 };
38428
38429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38431 if (!SWIG_IsOK(res1)) {
38432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38433 }
38434 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38435 if (obj1) {
38436 ecode2 = SWIG_AsVal_int(obj1, &val2);
38437 if (!SWIG_IsOK(ecode2)) {
38438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38439 }
38440 arg2 = static_cast< int >(val2);
38441 }
38442 if (obj2) {
d55e5bfc 38443 {
1bd55598
RD
38444 arg3 = &temp3;
38445 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38446 }
1bd55598
RD
38447 }
38448 if (obj3) {
d55e5bfc 38449 {
1bd55598
RD
38450 arg4 = &temp4;
38451 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38452 }
1bd55598
RD
38453 }
38454 if (obj4) {
38455 ecode5 = SWIG_AsVal_long(obj4, &val5);
38456 if (!SWIG_IsOK(ecode5)) {
38457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38458 }
38459 arg5 = static_cast< long >(val5);
38460 }
38461 {
38462 if (!wxPyCheckForApp()) SWIG_fail;
38463 PyThreadState* __tstate = wxPyBeginAllowThreads();
38464 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38465 wxPyEndAllowThreads(__tstate);
38466 if (PyErr_Occurred()) SWIG_fail;
38467 }
38468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38469 return resultobj;
38470fail:
38471 return NULL;
d55e5bfc
RD
38472}
38473
38474
1bd55598
RD
38475SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38476 PyObject *resultobj = 0;
38477 wxDirFilterListCtrl *result = 0 ;
38478
38479 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38480 {
38481 if (!wxPyCheckForApp()) SWIG_fail;
38482 PyThreadState* __tstate = wxPyBeginAllowThreads();
38483 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38484 wxPyEndAllowThreads(__tstate);
38485 if (PyErr_Occurred()) SWIG_fail;
38486 }
38487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38488 return resultobj;
38489fail:
38490 return NULL;
38491}
38492
38493
38494SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38495 PyObject *resultobj = 0;
38496 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38497 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38498 int arg3 = (int) (int)-1 ;
38499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38501 wxSize const &arg5_defvalue = wxDefaultSize ;
38502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38503 long arg6 = (long) 0 ;
38504 bool result;
38505 void *argp1 = 0 ;
38506 int res1 = 0 ;
38507 void *argp2 = 0 ;
38508 int res2 = 0 ;
38509 int val3 ;
38510 int ecode3 = 0 ;
38511 wxPoint temp4 ;
38512 wxSize temp5 ;
38513 long val6 ;
38514 int ecode6 = 0 ;
38515 PyObject * obj0 = 0 ;
38516 PyObject * obj1 = 0 ;
38517 PyObject * obj2 = 0 ;
38518 PyObject * obj3 = 0 ;
38519 PyObject * obj4 = 0 ;
38520 PyObject * obj5 = 0 ;
38521 char * kwnames[] = {
38522 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38523 };
38524
38525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38527 if (!SWIG_IsOK(res1)) {
38528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38529 }
38530 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38532 if (!SWIG_IsOK(res2)) {
38533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38534 }
38535 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38536 if (obj2) {
38537 ecode3 = SWIG_AsVal_int(obj2, &val3);
38538 if (!SWIG_IsOK(ecode3)) {
38539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38540 }
38541 arg3 = static_cast< int >(val3);
38542 }
38543 if (obj3) {
36ed4f51 38544 {
1bd55598
RD
38545 arg4 = &temp4;
38546 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38547 }
1bd55598
RD
38548 }
38549 if (obj4) {
36ed4f51 38550 {
1bd55598
RD
38551 arg5 = &temp5;
38552 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38553 }
1bd55598
RD
38554 }
38555 if (obj5) {
38556 ecode6 = SWIG_AsVal_long(obj5, &val6);
38557 if (!SWIG_IsOK(ecode6)) {
38558 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38559 }
38560 arg6 = static_cast< long >(val6);
38561 }
38562 {
38563 PyThreadState* __tstate = wxPyBeginAllowThreads();
38564 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38565 wxPyEndAllowThreads(__tstate);
38566 if (PyErr_Occurred()) SWIG_fail;
38567 }
38568 {
38569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38570 }
38571 return resultobj;
38572fail:
38573 return NULL;
38574}
38575
38576
38577SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38578 PyObject *resultobj = 0;
38579 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38580 wxString *arg2 = 0 ;
38581 int arg3 ;
38582 void *argp1 = 0 ;
38583 int res1 = 0 ;
38584 bool temp2 = false ;
38585 int val3 ;
38586 int ecode3 = 0 ;
38587 PyObject * obj0 = 0 ;
38588 PyObject * obj1 = 0 ;
38589 PyObject * obj2 = 0 ;
38590 char * kwnames[] = {
38591 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38592 };
38593
38594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38596 if (!SWIG_IsOK(res1)) {
38597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38598 }
38599 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38600 {
38601 arg2 = wxString_in_helper(obj1);
38602 if (arg2 == NULL) SWIG_fail;
38603 temp2 = true;
38604 }
38605 ecode3 = SWIG_AsVal_int(obj2, &val3);
38606 if (!SWIG_IsOK(ecode3)) {
38607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38608 }
38609 arg3 = static_cast< int >(val3);
38610 {
38611 PyThreadState* __tstate = wxPyBeginAllowThreads();
38612 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38613 wxPyEndAllowThreads(__tstate);
38614 if (PyErr_Occurred()) SWIG_fail;
38615 }
38616 resultobj = SWIG_Py_Void();
38617 {
38618 if (temp2)
38619 delete arg2;
38620 }
38621 return resultobj;
38622fail:
38623 {
38624 if (temp2)
38625 delete arg2;
38626 }
38627 return NULL;
38628}
38629
38630
38631SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38632 PyObject *obj;
38633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38634 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38635 return SWIG_Py_Void();
38636}
38637
38638SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38639 return SWIG_Python_InitShadowInstance(args);
38640}
38641
38642SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38643 PyObject *resultobj = 0;
38644 wxWindow *arg1 = (wxWindow *) 0 ;
38645 int arg2 = (int) (int)-1 ;
38646 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38647 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38648 wxSize const &arg4_defvalue = wxDefaultSize ;
38649 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38650 long arg5 = (long) 0 ;
38651 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38652 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38653 wxString const &arg7_defvalue = wxPyControlNameStr ;
38654 wxString *arg7 = (wxString *) &arg7_defvalue ;
38655 wxPyControl *result = 0 ;
38656 void *argp1 = 0 ;
38657 int res1 = 0 ;
38658 int val2 ;
38659 int ecode2 = 0 ;
38660 wxPoint temp3 ;
38661 wxSize temp4 ;
38662 long val5 ;
38663 int ecode5 = 0 ;
38664 void *argp6 = 0 ;
38665 int res6 = 0 ;
38666 bool temp7 = false ;
38667 PyObject * obj0 = 0 ;
38668 PyObject * obj1 = 0 ;
38669 PyObject * obj2 = 0 ;
38670 PyObject * obj3 = 0 ;
38671 PyObject * obj4 = 0 ;
38672 PyObject * obj5 = 0 ;
38673 PyObject * obj6 = 0 ;
38674 char * kwnames[] = {
38675 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38676 };
38677
38678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38680 if (!SWIG_IsOK(res1)) {
38681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38682 }
38683 arg1 = reinterpret_cast< wxWindow * >(argp1);
38684 if (obj1) {
38685 ecode2 = SWIG_AsVal_int(obj1, &val2);
38686 if (!SWIG_IsOK(ecode2)) {
38687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38688 }
38689 arg2 = static_cast< int >(val2);
38690 }
38691 if (obj2) {
d55e5bfc 38692 {
1bd55598
RD
38693 arg3 = &temp3;
38694 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38695 }
1bd55598
RD
38696 }
38697 if (obj3) {
d55e5bfc 38698 {
1bd55598
RD
38699 arg4 = &temp4;
38700 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38701 }
1bd55598
RD
38702 }
38703 if (obj4) {
38704 ecode5 = SWIG_AsVal_long(obj4, &val5);
38705 if (!SWIG_IsOK(ecode5)) {
38706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38707 }
38708 arg5 = static_cast< long >(val5);
38709 }
38710 if (obj5) {
38711 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38712 if (!SWIG_IsOK(res6)) {
38713 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38714 }
1bd55598
RD
38715 if (!argp6) {
38716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38717 }
1bd55598
RD
38718 arg6 = reinterpret_cast< wxValidator * >(argp6);
38719 }
38720 if (obj6) {
f20a2e1f 38721 {
1bd55598
RD
38722 arg7 = wxString_in_helper(obj6);
38723 if (arg7 == NULL) SWIG_fail;
38724 temp7 = true;
f20a2e1f 38725 }
1bd55598
RD
38726 }
38727 {
38728 if (!wxPyCheckForApp()) SWIG_fail;
38729 PyThreadState* __tstate = wxPyBeginAllowThreads();
38730 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38731 wxPyEndAllowThreads(__tstate);
38732 if (PyErr_Occurred()) SWIG_fail;
38733 }
38734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38735 {
38736 if (temp7)
38737 delete arg7;
38738 }
38739 return resultobj;
38740fail:
38741 {
38742 if (temp7)
38743 delete arg7;
38744 }
38745 return NULL;
d55e5bfc
RD
38746}
38747
38748
1bd55598
RD
38749SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38750 PyObject *resultobj = 0;
38751 wxPyControl *result = 0 ;
38752
38753 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38754 {
38755 if (!wxPyCheckForApp()) SWIG_fail;
38756 PyThreadState* __tstate = wxPyBeginAllowThreads();
38757 result = (wxPyControl *)new wxPyControl();
38758 wxPyEndAllowThreads(__tstate);
38759 if (PyErr_Occurred()) SWIG_fail;
38760 }
38761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38762 return resultobj;
38763fail:
38764 return NULL;
38765}
38766
38767
38768SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38769 PyObject *resultobj = 0;
38770 wxPyControl *arg1 = (wxPyControl *) 0 ;
38771 PyObject *arg2 = (PyObject *) 0 ;
38772 PyObject *arg3 = (PyObject *) 0 ;
38773 void *argp1 = 0 ;
38774 int res1 = 0 ;
38775 PyObject * obj0 = 0 ;
38776 PyObject * obj1 = 0 ;
38777 PyObject * obj2 = 0 ;
38778 char * kwnames[] = {
38779 (char *) "self",(char *) "self",(char *) "_class", NULL
38780 };
38781
38782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38784 if (!SWIG_IsOK(res1)) {
38785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38786 }
38787 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38788 arg2 = obj1;
38789 arg3 = obj2;
38790 {
38791 PyThreadState* __tstate = wxPyBeginAllowThreads();
38792 (arg1)->_setCallbackInfo(arg2,arg3);
38793 wxPyEndAllowThreads(__tstate);
38794 if (PyErr_Occurred()) SWIG_fail;
38795 }
38796 resultobj = SWIG_Py_Void();
38797 return resultobj;
38798fail:
38799 return NULL;
38800}
38801
38802
1bd55598
RD
38803SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38804 PyObject *resultobj = 0;
38805 wxPyControl *arg1 = (wxPyControl *) 0 ;
38806 wxDC *arg2 = (wxDC *) 0 ;
38807 bool result;
38808 void *argp1 = 0 ;
38809 int res1 = 0 ;
38810 void *argp2 = 0 ;
38811 int res2 = 0 ;
38812 PyObject * obj0 = 0 ;
38813 PyObject * obj1 = 0 ;
38814 char * kwnames[] = {
38815 (char *) "self",(char *) "dc", NULL
38816 };
38817
38818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38820 if (!SWIG_IsOK(res1)) {
38821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38822 }
38823 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38825 if (!SWIG_IsOK(res2)) {
38826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38827 }
38828 arg2 = reinterpret_cast< wxDC * >(argp2);
38829 {
38830 PyThreadState* __tstate = wxPyBeginAllowThreads();
38831 result = (bool)(arg1)->DoEraseBackground(arg2);
38832 wxPyEndAllowThreads(__tstate);
38833 if (PyErr_Occurred()) SWIG_fail;
38834 }
38835 {
38836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38837 }
38838 return resultobj;
38839fail:
38840 return NULL;
38841}
38842
38843
38844SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38845 PyObject *resultobj = 0;
38846 wxPyControl *arg1 = (wxPyControl *) 0 ;
38847 int arg2 ;
38848 int arg3 ;
38849 int arg4 ;
38850 int arg5 ;
38851 void *argp1 = 0 ;
38852 int res1 = 0 ;
38853 int val2 ;
38854 int ecode2 = 0 ;
38855 int val3 ;
38856 int ecode3 = 0 ;
38857 int val4 ;
38858 int ecode4 = 0 ;
38859 int val5 ;
38860 int ecode5 = 0 ;
38861 PyObject * obj0 = 0 ;
38862 PyObject * obj1 = 0 ;
38863 PyObject * obj2 = 0 ;
38864 PyObject * obj3 = 0 ;
38865 PyObject * obj4 = 0 ;
38866 char * kwnames[] = {
38867 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38868 };
38869
38870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38872 if (!SWIG_IsOK(res1)) {
38873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38874 }
38875 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38876 ecode2 = SWIG_AsVal_int(obj1, &val2);
38877 if (!SWIG_IsOK(ecode2)) {
38878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38879 }
38880 arg2 = static_cast< int >(val2);
38881 ecode3 = SWIG_AsVal_int(obj2, &val3);
38882 if (!SWIG_IsOK(ecode3)) {
38883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38884 }
38885 arg3 = static_cast< int >(val3);
38886 ecode4 = SWIG_AsVal_int(obj3, &val4);
38887 if (!SWIG_IsOK(ecode4)) {
38888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38889 }
38890 arg4 = static_cast< int >(val4);
38891 ecode5 = SWIG_AsVal_int(obj4, &val5);
38892 if (!SWIG_IsOK(ecode5)) {
38893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38894 }
38895 arg5 = static_cast< int >(val5);
38896 {
38897 PyThreadState* __tstate = wxPyBeginAllowThreads();
38898 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38899 wxPyEndAllowThreads(__tstate);
38900 if (PyErr_Occurred()) SWIG_fail;
38901 }
38902 resultobj = SWIG_Py_Void();
38903 return resultobj;
38904fail:
38905 return NULL;
38906}
38907
38908
38909SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38910 PyObject *resultobj = 0;
38911 wxPyControl *arg1 = (wxPyControl *) 0 ;
38912 int arg2 ;
38913 int arg3 ;
38914 int arg4 ;
38915 int arg5 ;
38916 int arg6 = (int) wxSIZE_AUTO ;
38917 void *argp1 = 0 ;
38918 int res1 = 0 ;
38919 int val2 ;
38920 int ecode2 = 0 ;
38921 int val3 ;
38922 int ecode3 = 0 ;
38923 int val4 ;
38924 int ecode4 = 0 ;
38925 int val5 ;
38926 int ecode5 = 0 ;
38927 int val6 ;
38928 int ecode6 = 0 ;
38929 PyObject * obj0 = 0 ;
38930 PyObject * obj1 = 0 ;
38931 PyObject * obj2 = 0 ;
38932 PyObject * obj3 = 0 ;
38933 PyObject * obj4 = 0 ;
38934 PyObject * obj5 = 0 ;
38935 char * kwnames[] = {
38936 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38937 };
38938
38939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38941 if (!SWIG_IsOK(res1)) {
38942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38943 }
38944 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38945 ecode2 = SWIG_AsVal_int(obj1, &val2);
38946 if (!SWIG_IsOK(ecode2)) {
38947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38948 }
38949 arg2 = static_cast< int >(val2);
38950 ecode3 = SWIG_AsVal_int(obj2, &val3);
38951 if (!SWIG_IsOK(ecode3)) {
38952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38953 }
38954 arg3 = static_cast< int >(val3);
38955 ecode4 = SWIG_AsVal_int(obj3, &val4);
38956 if (!SWIG_IsOK(ecode4)) {
38957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38958 }
38959 arg4 = static_cast< int >(val4);
38960 ecode5 = SWIG_AsVal_int(obj4, &val5);
38961 if (!SWIG_IsOK(ecode5)) {
38962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38963 }
38964 arg5 = static_cast< int >(val5);
38965 if (obj5) {
38966 ecode6 = SWIG_AsVal_int(obj5, &val6);
38967 if (!SWIG_IsOK(ecode6)) {
38968 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38969 }
38970 arg6 = static_cast< int >(val6);
38971 }
38972 {
38973 PyThreadState* __tstate = wxPyBeginAllowThreads();
38974 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38975 wxPyEndAllowThreads(__tstate);
38976 if (PyErr_Occurred()) SWIG_fail;
38977 }
38978 resultobj = SWIG_Py_Void();
38979 return resultobj;
38980fail:
38981 return NULL;
38982}
38983
38984
38985SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38986 PyObject *resultobj = 0;
38987 wxPyControl *arg1 = (wxPyControl *) 0 ;
38988 int arg2 ;
38989 int arg3 ;
38990 void *argp1 = 0 ;
38991 int res1 = 0 ;
38992 int val2 ;
38993 int ecode2 = 0 ;
38994 int val3 ;
38995 int ecode3 = 0 ;
38996 PyObject * obj0 = 0 ;
38997 PyObject * obj1 = 0 ;
38998 PyObject * obj2 = 0 ;
38999 char * kwnames[] = {
39000 (char *) "self",(char *) "width",(char *) "height", NULL
39001 };
39002
39003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39005 if (!SWIG_IsOK(res1)) {
39006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39007 }
39008 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39009 ecode2 = SWIG_AsVal_int(obj1, &val2);
39010 if (!SWIG_IsOK(ecode2)) {
39011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39012 }
39013 arg2 = static_cast< int >(val2);
39014 ecode3 = SWIG_AsVal_int(obj2, &val3);
39015 if (!SWIG_IsOK(ecode3)) {
39016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39017 }
39018 arg3 = static_cast< int >(val3);
39019 {
39020 PyThreadState* __tstate = wxPyBeginAllowThreads();
39021 (arg1)->DoSetClientSize(arg2,arg3);
39022 wxPyEndAllowThreads(__tstate);
39023 if (PyErr_Occurred()) SWIG_fail;
39024 }
39025 resultobj = SWIG_Py_Void();
39026 return resultobj;
39027fail:
39028 return NULL;
39029}
39030
39031
39032SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39033 PyObject *resultobj = 0;
39034 wxPyControl *arg1 = (wxPyControl *) 0 ;
39035 int arg2 ;
39036 int arg3 ;
39037 void *argp1 = 0 ;
39038 int res1 = 0 ;
39039 int val2 ;
39040 int ecode2 = 0 ;
39041 int val3 ;
39042 int ecode3 = 0 ;
39043 PyObject * obj0 = 0 ;
39044 PyObject * obj1 = 0 ;
39045 PyObject * obj2 = 0 ;
39046 char * kwnames[] = {
39047 (char *) "self",(char *) "x",(char *) "y", NULL
39048 };
39049
39050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39052 if (!SWIG_IsOK(res1)) {
39053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39054 }
39055 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39056 ecode2 = SWIG_AsVal_int(obj1, &val2);
39057 if (!SWIG_IsOK(ecode2)) {
39058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39059 }
39060 arg2 = static_cast< int >(val2);
39061 ecode3 = SWIG_AsVal_int(obj2, &val3);
39062 if (!SWIG_IsOK(ecode3)) {
39063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39064 }
39065 arg3 = static_cast< int >(val3);
39066 {
39067 PyThreadState* __tstate = wxPyBeginAllowThreads();
39068 (arg1)->DoSetVirtualSize(arg2,arg3);
39069 wxPyEndAllowThreads(__tstate);
39070 if (PyErr_Occurred()) SWIG_fail;
39071 }
39072 resultobj = SWIG_Py_Void();
39073 return resultobj;
39074fail:
39075 return NULL;
39076}
39077
39078
39079SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39080 PyObject *resultobj = 0;
39081 wxPyControl *arg1 = (wxPyControl *) 0 ;
39082 int *arg2 = (int *) 0 ;
39083 int *arg3 = (int *) 0 ;
39084 void *argp1 = 0 ;
39085 int res1 = 0 ;
39086 int temp2 ;
39087 int res2 = SWIG_TMPOBJ ;
39088 int temp3 ;
39089 int res3 = SWIG_TMPOBJ ;
39090 PyObject *swig_obj[1] ;
39091
39092 arg2 = &temp2;
39093 arg3 = &temp3;
39094 if (!args) SWIG_fail;
39095 swig_obj[0] = args;
39096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39097 if (!SWIG_IsOK(res1)) {
39098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39099 }
39100 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39101 {
39102 PyThreadState* __tstate = wxPyBeginAllowThreads();
39103 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39104 wxPyEndAllowThreads(__tstate);
39105 if (PyErr_Occurred()) SWIG_fail;
39106 }
39107 resultobj = SWIG_Py_Void();
39108 if (SWIG_IsTmpObj(res2)) {
39109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39110 } else {
39111 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39113 }
39114 if (SWIG_IsTmpObj(res3)) {
39115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39116 } else {
39117 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39119 }
39120 return resultobj;
39121fail:
39122 return NULL;
39123}
39124
39125
39126SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39127 PyObject *resultobj = 0;
39128 wxPyControl *arg1 = (wxPyControl *) 0 ;
39129 int *arg2 = (int *) 0 ;
39130 int *arg3 = (int *) 0 ;
39131 void *argp1 = 0 ;
39132 int res1 = 0 ;
39133 int temp2 ;
39134 int res2 = SWIG_TMPOBJ ;
39135 int temp3 ;
39136 int res3 = SWIG_TMPOBJ ;
39137 PyObject *swig_obj[1] ;
39138
39139 arg2 = &temp2;
39140 arg3 = &temp3;
39141 if (!args) SWIG_fail;
39142 swig_obj[0] = args;
39143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39144 if (!SWIG_IsOK(res1)) {
39145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39146 }
39147 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39148 {
39149 PyThreadState* __tstate = wxPyBeginAllowThreads();
39150 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39151 wxPyEndAllowThreads(__tstate);
39152 if (PyErr_Occurred()) SWIG_fail;
39153 }
39154 resultobj = SWIG_Py_Void();
39155 if (SWIG_IsTmpObj(res2)) {
39156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39157 } else {
39158 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39160 }
39161 if (SWIG_IsTmpObj(res3)) {
39162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39163 } else {
39164 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39166 }
39167 return resultobj;
39168fail:
39169 return NULL;
39170}
39171
39172
39173SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39174 PyObject *resultobj = 0;
39175 wxPyControl *arg1 = (wxPyControl *) 0 ;
39176 int *arg2 = (int *) 0 ;
39177 int *arg3 = (int *) 0 ;
39178 void *argp1 = 0 ;
39179 int res1 = 0 ;
39180 int temp2 ;
39181 int res2 = SWIG_TMPOBJ ;
39182 int temp3 ;
39183 int res3 = SWIG_TMPOBJ ;
39184 PyObject *swig_obj[1] ;
39185
39186 arg2 = &temp2;
39187 arg3 = &temp3;
39188 if (!args) SWIG_fail;
39189 swig_obj[0] = args;
39190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39191 if (!SWIG_IsOK(res1)) {
39192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39193 }
39194 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39195 {
39196 PyThreadState* __tstate = wxPyBeginAllowThreads();
39197 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39198 wxPyEndAllowThreads(__tstate);
39199 if (PyErr_Occurred()) SWIG_fail;
39200 }
39201 resultobj = SWIG_Py_Void();
39202 if (SWIG_IsTmpObj(res2)) {
39203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39204 } else {
39205 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39207 }
39208 if (SWIG_IsTmpObj(res3)) {
39209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39210 } else {
39211 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39213 }
39214 return resultobj;
39215fail:
39216 return NULL;
d55e5bfc
RD
39217}
39218
39219
1bd55598
RD
39220SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39221 PyObject *resultobj = 0;
39222 wxPyControl *arg1 = (wxPyControl *) 0 ;
39223 wxSize result;
39224 void *argp1 = 0 ;
39225 int res1 = 0 ;
39226 PyObject *swig_obj[1] ;
39227
39228 if (!args) SWIG_fail;
39229 swig_obj[0] = args;
39230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39231 if (!SWIG_IsOK(res1)) {
39232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39233 }
39234 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39235 {
39236 PyThreadState* __tstate = wxPyBeginAllowThreads();
39237 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39238 wxPyEndAllowThreads(__tstate);
39239 if (PyErr_Occurred()) SWIG_fail;
39240 }
39241 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39242 return resultobj;
39243fail:
39244 return NULL;
7e08d4ef
RD
39245}
39246
39247
1bd55598
RD
39248SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39249 PyObject *resultobj = 0;
39250 wxPyControl *arg1 = (wxPyControl *) 0 ;
39251 wxSize result;
39252 void *argp1 = 0 ;
39253 int res1 = 0 ;
39254 PyObject *swig_obj[1] ;
39255
39256 if (!args) SWIG_fail;
39257 swig_obj[0] = args;
39258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39259 if (!SWIG_IsOK(res1)) {
39260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39261 }
39262 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39263 {
39264 PyThreadState* __tstate = wxPyBeginAllowThreads();
39265 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39266 wxPyEndAllowThreads(__tstate);
39267 if (PyErr_Occurred()) SWIG_fail;
39268 }
39269 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39270 return resultobj;
39271fail:
39272 return NULL;
d55e5bfc
RD
39273}
39274
39275
1bd55598
RD
39276SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39277 PyObject *resultobj = 0;
39278 wxPyControl *arg1 = (wxPyControl *) 0 ;
39279 SwigValueWrapper<wxVisualAttributes > result;
39280 void *argp1 = 0 ;
39281 int res1 = 0 ;
39282 PyObject *swig_obj[1] ;
39283
39284 if (!args) SWIG_fail;
39285 swig_obj[0] = args;
39286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39287 if (!SWIG_IsOK(res1)) {
39288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39289 }
39290 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39291 {
39292 PyThreadState* __tstate = wxPyBeginAllowThreads();
39293 result = (arg1)->GetDefaultAttributes();
39294 wxPyEndAllowThreads(__tstate);
39295 if (PyErr_Occurred()) SWIG_fail;
39296 }
39297 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39298 return resultobj;
39299fail:
39300 return NULL;
d55e5bfc
RD
39301}
39302
39303
1bd55598
RD
39304SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39305 PyObject *resultobj = 0;
39306 wxPyControl *arg1 = (wxPyControl *) 0 ;
39307 void *argp1 = 0 ;
39308 int res1 = 0 ;
39309 PyObject *swig_obj[1] ;
39310
39311 if (!args) SWIG_fail;
39312 swig_obj[0] = args;
39313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39314 if (!SWIG_IsOK(res1)) {
39315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39316 }
39317 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39318 {
39319 PyThreadState* __tstate = wxPyBeginAllowThreads();
39320 (arg1)->OnInternalIdle();
39321 wxPyEndAllowThreads(__tstate);
39322 if (PyErr_Occurred()) SWIG_fail;
39323 }
39324 resultobj = SWIG_Py_Void();
39325 return resultobj;
39326fail:
39327 return NULL;
39328}
39329
39330
39331SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39332 PyObject *obj;
39333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39334 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39335 return SWIG_Py_Void();
39336}
39337
39338SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39339 return SWIG_Python_InitShadowInstance(args);
39340}
39341
39342SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39343 PyObject *resultobj = 0;
39344 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39345 int arg2 = (int) 0 ;
39346 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39347 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39348 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39349 wxHelpEvent *result = 0 ;
39350 int val1 ;
39351 int ecode1 = 0 ;
39352 int val2 ;
39353 int ecode2 = 0 ;
39354 wxPoint temp3 ;
704eda0c
RD
39355 int val4 ;
39356 int ecode4 = 0 ;
1bd55598
RD
39357 PyObject * obj0 = 0 ;
39358 PyObject * obj1 = 0 ;
39359 PyObject * obj2 = 0 ;
704eda0c 39360 PyObject * obj3 = 0 ;
1bd55598 39361 char * kwnames[] = {
704eda0c 39362 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39363 };
39364
704eda0c 39365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39366 if (obj0) {
39367 ecode1 = SWIG_AsVal_int(obj0, &val1);
39368 if (!SWIG_IsOK(ecode1)) {
39369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39370 }
39371 arg1 = static_cast< wxEventType >(val1);
39372 }
39373 if (obj1) {
39374 ecode2 = SWIG_AsVal_int(obj1, &val2);
39375 if (!SWIG_IsOK(ecode2)) {
39376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39377 }
39378 arg2 = static_cast< int >(val2);
39379 }
39380 if (obj2) {
d55e5bfc 39381 {
1bd55598
RD
39382 arg3 = &temp3;
39383 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39384 }
1bd55598 39385 }
704eda0c
RD
39386 if (obj3) {
39387 ecode4 = SWIG_AsVal_int(obj3, &val4);
39388 if (!SWIG_IsOK(ecode4)) {
39389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39390 }
39391 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39392 }
1bd55598
RD
39393 {
39394 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39395 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39396 wxPyEndAllowThreads(__tstate);
39397 if (PyErr_Occurred()) SWIG_fail;
39398 }
39399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39400 return resultobj;
39401fail:
39402 return NULL;
d55e5bfc
RD
39403}
39404
39405
1bd55598
RD
39406SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39407 PyObject *resultobj = 0;
39408 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39409 wxPoint result;
39410 void *argp1 = 0 ;
39411 int res1 = 0 ;
39412 PyObject *swig_obj[1] ;
39413
39414 if (!args) SWIG_fail;
39415 swig_obj[0] = args;
39416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39417 if (!SWIG_IsOK(res1)) {
39418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39419 }
39420 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39421 {
39422 PyThreadState* __tstate = wxPyBeginAllowThreads();
39423 result = ((wxHelpEvent const *)arg1)->GetPosition();
39424 wxPyEndAllowThreads(__tstate);
39425 if (PyErr_Occurred()) SWIG_fail;
39426 }
39427 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39428 return resultobj;
39429fail:
39430 return NULL;
39431}
39432
39433
39434SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39435 PyObject *resultobj = 0;
39436 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39437 wxPoint *arg2 = 0 ;
39438 void *argp1 = 0 ;
39439 int res1 = 0 ;
39440 wxPoint temp2 ;
39441 PyObject * obj0 = 0 ;
39442 PyObject * obj1 = 0 ;
39443 char * kwnames[] = {
39444 (char *) "self",(char *) "pos", NULL
39445 };
39446
39447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39449 if (!SWIG_IsOK(res1)) {
39450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39451 }
39452 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39453 {
39454 arg2 = &temp2;
39455 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39456 }
39457 {
39458 PyThreadState* __tstate = wxPyBeginAllowThreads();
39459 (arg1)->SetPosition((wxPoint const &)*arg2);
39460 wxPyEndAllowThreads(__tstate);
39461 if (PyErr_Occurred()) SWIG_fail;
39462 }
39463 resultobj = SWIG_Py_Void();
39464 return resultobj;
39465fail:
39466 return NULL;
d55e5bfc
RD
39467}
39468
39469
1bd55598
RD
39470SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39471 PyObject *resultobj = 0;
39472 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39473 wxString *result = 0 ;
39474 void *argp1 = 0 ;
39475 int res1 = 0 ;
39476 PyObject *swig_obj[1] ;
39477
39478 if (!args) SWIG_fail;
39479 swig_obj[0] = args;
39480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39481 if (!SWIG_IsOK(res1)) {
39482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39483 }
39484 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39485 {
39486 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39487 {
1bd55598
RD
39488 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39489 result = (wxString *) &_result_ref;
d55e5bfc 39490 }
1bd55598
RD
39491 wxPyEndAllowThreads(__tstate);
39492 if (PyErr_Occurred()) SWIG_fail;
39493 }
39494 {
39495#if wxUSE_UNICODE
39496 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39497#else
39498 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39499#endif
39500 }
39501 return resultobj;
39502fail:
39503 return NULL;
39504}
39505
39506
39507SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39508 PyObject *resultobj = 0;
39509 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39510 wxString *arg2 = 0 ;
39511 void *argp1 = 0 ;
39512 int res1 = 0 ;
39513 bool temp2 = false ;
39514 PyObject * obj0 = 0 ;
39515 PyObject * obj1 = 0 ;
39516 char * kwnames[] = {
39517 (char *) "self",(char *) "link", NULL
39518 };
39519
39520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39522 if (!SWIG_IsOK(res1)) {
39523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39524 }
39525 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39526 {
39527 arg2 = wxString_in_helper(obj1);
39528 if (arg2 == NULL) SWIG_fail;
39529 temp2 = true;
39530 }
39531 {
39532 PyThreadState* __tstate = wxPyBeginAllowThreads();
39533 (arg1)->SetLink((wxString const &)*arg2);
39534 wxPyEndAllowThreads(__tstate);
39535 if (PyErr_Occurred()) SWIG_fail;
39536 }
39537 resultobj = SWIG_Py_Void();
39538 {
39539 if (temp2)
39540 delete arg2;
39541 }
39542 return resultobj;
39543fail:
39544 {
39545 if (temp2)
39546 delete arg2;
39547 }
39548 return NULL;
d55e5bfc
RD
39549}
39550
39551
1bd55598
RD
39552SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39553 PyObject *resultobj = 0;
39554 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39555 wxString *result = 0 ;
39556 void *argp1 = 0 ;
39557 int res1 = 0 ;
39558 PyObject *swig_obj[1] ;
39559
39560 if (!args) SWIG_fail;
39561 swig_obj[0] = args;
39562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39563 if (!SWIG_IsOK(res1)) {
39564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39565 }
39566 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39567 {
39568 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39569 {
1bd55598
RD
39570 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39571 result = (wxString *) &_result_ref;
d55e5bfc 39572 }
1bd55598
RD
39573 wxPyEndAllowThreads(__tstate);
39574 if (PyErr_Occurred()) SWIG_fail;
39575 }
39576 {
39577#if wxUSE_UNICODE
39578 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39579#else
39580 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39581#endif
39582 }
39583 return resultobj;
39584fail:
39585 return NULL;
39586}
39587
39588
39589SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39590 PyObject *resultobj = 0;
39591 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39592 wxString *arg2 = 0 ;
39593 void *argp1 = 0 ;
39594 int res1 = 0 ;
39595 bool temp2 = false ;
39596 PyObject * obj0 = 0 ;
39597 PyObject * obj1 = 0 ;
39598 char * kwnames[] = {
39599 (char *) "self",(char *) "target", NULL
39600 };
39601
39602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39604 if (!SWIG_IsOK(res1)) {
39605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39606 }
39607 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39608 {
39609 arg2 = wxString_in_helper(obj1);
39610 if (arg2 == NULL) SWIG_fail;
39611 temp2 = true;
39612 }
39613 {
39614 PyThreadState* __tstate = wxPyBeginAllowThreads();
39615 (arg1)->SetTarget((wxString const &)*arg2);
39616 wxPyEndAllowThreads(__tstate);
39617 if (PyErr_Occurred()) SWIG_fail;
39618 }
39619 resultobj = SWIG_Py_Void();
39620 {
39621 if (temp2)
39622 delete arg2;
39623 }
39624 return resultobj;
39625fail:
39626 {
39627 if (temp2)
39628 delete arg2;
39629 }
39630 return NULL;
d55e5bfc
RD
39631}
39632
39633
704eda0c
RD
39634SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39635 PyObject *resultobj = 0;
39636 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39637 wxHelpEvent::Origin result;
39638 void *argp1 = 0 ;
39639 int res1 = 0 ;
39640 PyObject *swig_obj[1] ;
39641
39642 if (!args) SWIG_fail;
39643 swig_obj[0] = args;
39644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39645 if (!SWIG_IsOK(res1)) {
39646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39647 }
39648 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39649 {
39650 PyThreadState* __tstate = wxPyBeginAllowThreads();
39651 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39652 wxPyEndAllowThreads(__tstate);
39653 if (PyErr_Occurred()) SWIG_fail;
39654 }
39655 resultobj = SWIG_From_int(static_cast< int >(result));
39656 return resultobj;
39657fail:
39658 return NULL;
39659}
39660
39661
39662SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39663 PyObject *resultobj = 0;
39664 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39665 wxHelpEvent::Origin arg2 ;
39666 void *argp1 = 0 ;
39667 int res1 = 0 ;
39668 int val2 ;
39669 int ecode2 = 0 ;
39670 PyObject * obj0 = 0 ;
39671 PyObject * obj1 = 0 ;
39672 char * kwnames[] = {
39673 (char *) "self",(char *) "origin", NULL
39674 };
39675
39676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39678 if (!SWIG_IsOK(res1)) {
39679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39680 }
39681 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39682 ecode2 = SWIG_AsVal_int(obj1, &val2);
39683 if (!SWIG_IsOK(ecode2)) {
39684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39685 }
39686 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39687 {
39688 PyThreadState* __tstate = wxPyBeginAllowThreads();
39689 (arg1)->SetOrigin(arg2);
39690 wxPyEndAllowThreads(__tstate);
39691 if (PyErr_Occurred()) SWIG_fail;
39692 }
39693 resultobj = SWIG_Py_Void();
39694 return resultobj;
39695fail:
39696 return NULL;
39697}
39698
39699
1bd55598
RD
39700SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39701 PyObject *obj;
39702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39703 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39704 return SWIG_Py_Void();
39705}
39706
39707SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39708 return SWIG_Python_InitShadowInstance(args);
39709}
39710
39711SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39712 PyObject *resultobj = 0;
39713 wxWindow *arg1 = (wxWindow *) NULL ;
39714 bool arg2 = (bool) true ;
39715 wxContextHelp *result = 0 ;
39716 void *argp1 = 0 ;
39717 int res1 = 0 ;
39718 bool val2 ;
39719 int ecode2 = 0 ;
39720 PyObject * obj0 = 0 ;
39721 PyObject * obj1 = 0 ;
39722 char * kwnames[] = {
39723 (char *) "window",(char *) "doNow", NULL
39724 };
39725
39726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39727 if (obj0) {
39728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39729 if (!SWIG_IsOK(res1)) {
39730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39731 }
1bd55598
RD
39732 arg1 = reinterpret_cast< wxWindow * >(argp1);
39733 }
39734 if (obj1) {
39735 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39736 if (!SWIG_IsOK(ecode2)) {
39737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39738 }
39739 arg2 = static_cast< bool >(val2);
39740 }
39741 {
39742 if (!wxPyCheckForApp()) SWIG_fail;
39743 PyThreadState* __tstate = wxPyBeginAllowThreads();
39744 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39745 wxPyEndAllowThreads(__tstate);
39746 if (PyErr_Occurred()) SWIG_fail;
39747 }
39748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39749 return resultobj;
39750fail:
39751 return NULL;
d55e5bfc
RD
39752}
39753
39754
1bd55598
RD
39755SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39756 PyObject *resultobj = 0;
39757 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39758 void *argp1 = 0 ;
39759 int res1 = 0 ;
39760 PyObject *swig_obj[1] ;
39761
39762 if (!args) SWIG_fail;
39763 swig_obj[0] = args;
39764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39765 if (!SWIG_IsOK(res1)) {
39766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39767 }
39768 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39769 {
39770 PyThreadState* __tstate = wxPyBeginAllowThreads();
39771 delete arg1;
d55e5bfc 39772
1bd55598
RD
39773 wxPyEndAllowThreads(__tstate);
39774 if (PyErr_Occurred()) SWIG_fail;
39775 }
39776 resultobj = SWIG_Py_Void();
39777 return resultobj;
39778fail:
39779 return NULL;
39780}
39781
39782
39783SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39784 PyObject *resultobj = 0;
39785 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39786 wxWindow *arg2 = (wxWindow *) NULL ;
39787 bool result;
39788 void *argp1 = 0 ;
39789 int res1 = 0 ;
39790 void *argp2 = 0 ;
39791 int res2 = 0 ;
39792 PyObject * obj0 = 0 ;
39793 PyObject * obj1 = 0 ;
39794 char * kwnames[] = {
39795 (char *) "self",(char *) "window", NULL
39796 };
39797
39798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39800 if (!SWIG_IsOK(res1)) {
39801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39802 }
39803 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39804 if (obj1) {
39805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39806 if (!SWIG_IsOK(res2)) {
39807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39808 }
1bd55598
RD
39809 arg2 = reinterpret_cast< wxWindow * >(argp2);
39810 }
39811 {
39812 PyThreadState* __tstate = wxPyBeginAllowThreads();
39813 result = (bool)(arg1)->BeginContextHelp(arg2);
39814 wxPyEndAllowThreads(__tstate);
39815 if (PyErr_Occurred()) SWIG_fail;
39816 }
39817 {
39818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39819 }
39820 return resultobj;
39821fail:
39822 return NULL;
d55e5bfc
RD
39823}
39824
39825
1bd55598
RD
39826SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39827 PyObject *resultobj = 0;
39828 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39829 bool result;
39830 void *argp1 = 0 ;
39831 int res1 = 0 ;
39832 PyObject *swig_obj[1] ;
39833
39834 if (!args) SWIG_fail;
39835 swig_obj[0] = args;
39836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39837 if (!SWIG_IsOK(res1)) {
39838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39839 }
39840 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39841 {
39842 PyThreadState* __tstate = wxPyBeginAllowThreads();
39843 result = (bool)(arg1)->EndContextHelp();
39844 wxPyEndAllowThreads(__tstate);
39845 if (PyErr_Occurred()) SWIG_fail;
39846 }
39847 {
39848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39849 }
39850 return resultobj;
39851fail:
39852 return NULL;
39853}
39854
39855
39856SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39857 PyObject *obj;
39858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39859 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39860 return SWIG_Py_Void();
39861}
39862
39863SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39864 return SWIG_Python_InitShadowInstance(args);
39865}
39866
39867SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39868 PyObject *resultobj = 0;
39869 wxWindow *arg1 = (wxWindow *) 0 ;
39870 int arg2 = (int) wxID_CONTEXT_HELP ;
39871 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39872 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39873 wxSize const &arg4_defvalue = wxDefaultSize ;
39874 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39875 long arg5 = (long) wxBU_AUTODRAW ;
39876 wxContextHelpButton *result = 0 ;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 int val2 ;
39880 int ecode2 = 0 ;
39881 wxPoint temp3 ;
39882 wxSize temp4 ;
39883 long val5 ;
39884 int ecode5 = 0 ;
39885 PyObject * obj0 = 0 ;
39886 PyObject * obj1 = 0 ;
39887 PyObject * obj2 = 0 ;
39888 PyObject * obj3 = 0 ;
39889 PyObject * obj4 = 0 ;
39890 char * kwnames[] = {
39891 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39892 };
39893
39894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39896 if (!SWIG_IsOK(res1)) {
39897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39898 }
39899 arg1 = reinterpret_cast< wxWindow * >(argp1);
39900 if (obj1) {
39901 ecode2 = SWIG_AsVal_int(obj1, &val2);
39902 if (!SWIG_IsOK(ecode2)) {
39903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39904 }
39905 arg2 = static_cast< int >(val2);
39906 }
39907 if (obj2) {
d55e5bfc 39908 {
1bd55598
RD
39909 arg3 = &temp3;
39910 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39911 }
1bd55598
RD
39912 }
39913 if (obj3) {
d55e5bfc 39914 {
1bd55598
RD
39915 arg4 = &temp4;
39916 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39917 }
1bd55598
RD
39918 }
39919 if (obj4) {
39920 ecode5 = SWIG_AsVal_long(obj4, &val5);
39921 if (!SWIG_IsOK(ecode5)) {
39922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39923 }
39924 arg5 = static_cast< long >(val5);
39925 }
39926 {
39927 if (!wxPyCheckForApp()) SWIG_fail;
39928 PyThreadState* __tstate = wxPyBeginAllowThreads();
39929 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39930 wxPyEndAllowThreads(__tstate);
39931 if (PyErr_Occurred()) SWIG_fail;
39932 }
39933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39934 return resultobj;
39935fail:
39936 return NULL;
d55e5bfc
RD
39937}
39938
39939
1bd55598
RD
39940SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39941 PyObject *obj;
39942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39943 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39944 return SWIG_Py_Void();
d55e5bfc
RD
39945}
39946
1bd55598
RD
39947SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39948 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39949}
39950
f52cbe90
RD
39951SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39952 PyObject *resultobj = 0;
39953 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39954 void *argp1 = 0 ;
39955 int res1 = 0 ;
39956 PyObject *swig_obj[1] ;
39957
39958 if (!args) SWIG_fail;
39959 swig_obj[0] = args;
39960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39961 if (!SWIG_IsOK(res1)) {
39962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39963 }
39964 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39965 {
39966 PyThreadState* __tstate = wxPyBeginAllowThreads();
39967 delete arg1;
39968
39969 wxPyEndAllowThreads(__tstate);
39970 if (PyErr_Occurred()) SWIG_fail;
39971 }
39972 resultobj = SWIG_Py_Void();
39973 return resultobj;
39974fail:
39975 return NULL;
39976}
39977
39978
1bd55598
RD
39979SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39980 PyObject *resultobj = 0;
39981 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39982 wxHelpProvider *result = 0 ;
39983 int res1 = 0 ;
39984 PyObject * obj0 = 0 ;
39985 char * kwnames[] = {
39986 (char *) "helpProvider", NULL
39987 };
39988
39989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39990 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39991 if (!SWIG_IsOK(res1)) {
39992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39993 }
39994 {
39995 PyThreadState* __tstate = wxPyBeginAllowThreads();
39996 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39997 wxPyEndAllowThreads(__tstate);
39998 if (PyErr_Occurred()) SWIG_fail;
39999 }
40000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40001 return resultobj;
40002fail:
40003 return NULL;
d55e5bfc
RD
40004}
40005
40006
1bd55598
RD
40007SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40008 PyObject *resultobj = 0;
40009 wxHelpProvider *result = 0 ;
40010
40011 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40012 {
40013 PyThreadState* __tstate = wxPyBeginAllowThreads();
40014 result = (wxHelpProvider *)wxHelpProvider::Get();
40015 wxPyEndAllowThreads(__tstate);
40016 if (PyErr_Occurred()) SWIG_fail;
40017 }
40018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40019 return resultobj;
40020fail:
40021 return NULL;
40022}
40023
40024
40025SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40026 PyObject *resultobj = 0;
40027 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40028 wxWindow *arg2 = (wxWindow *) 0 ;
40029 wxString result;
40030 void *argp1 = 0 ;
40031 int res1 = 0 ;
40032 void *argp2 = 0 ;
40033 int res2 = 0 ;
40034 PyObject * obj0 = 0 ;
40035 PyObject * obj1 = 0 ;
40036 char * kwnames[] = {
40037 (char *) "self",(char *) "window", NULL
40038 };
40039
40040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40042 if (!SWIG_IsOK(res1)) {
40043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40044 }
40045 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40047 if (!SWIG_IsOK(res2)) {
40048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40049 }
40050 arg2 = reinterpret_cast< wxWindow * >(argp2);
40051 {
40052 PyThreadState* __tstate = wxPyBeginAllowThreads();
40053 result = (arg1)->GetHelp((wxWindow const *)arg2);
40054 wxPyEndAllowThreads(__tstate);
40055 if (PyErr_Occurred()) SWIG_fail;
40056 }
40057 {
40058#if wxUSE_UNICODE
40059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40060#else
40061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40062#endif
40063 }
40064 return resultobj;
40065fail:
40066 return NULL;
40067}
40068
40069
40070SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40071 PyObject *resultobj = 0;
40072 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40073 wxWindow *arg2 = (wxWindow *) 0 ;
40074 bool result;
40075 void *argp1 = 0 ;
40076 int res1 = 0 ;
40077 void *argp2 = 0 ;
40078 int res2 = 0 ;
40079 PyObject * obj0 = 0 ;
40080 PyObject * obj1 = 0 ;
40081 char * kwnames[] = {
40082 (char *) "self",(char *) "window", NULL
40083 };
40084
40085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40087 if (!SWIG_IsOK(res1)) {
40088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40089 }
40090 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40091 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40092 if (!SWIG_IsOK(res2)) {
40093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40094 }
40095 arg2 = reinterpret_cast< wxWindow * >(argp2);
40096 {
40097 PyThreadState* __tstate = wxPyBeginAllowThreads();
40098 result = (bool)(arg1)->ShowHelp(arg2);
40099 wxPyEndAllowThreads(__tstate);
40100 if (PyErr_Occurred()) SWIG_fail;
40101 }
40102 {
40103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40104 }
40105 return resultobj;
40106fail:
40107 return NULL;
40108}
40109
40110
b850e7f3
RD
40111SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40112 PyObject *resultobj = 0;
40113 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40114 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40115 wxPoint *arg3 = 0 ;
40116 wxHelpEvent::Origin arg4 ;
40117 bool result;
40118 void *argp1 = 0 ;
40119 int res1 = 0 ;
40120 void *argp2 = 0 ;
40121 int res2 = 0 ;
40122 wxPoint temp3 ;
40123 int val4 ;
40124 int ecode4 = 0 ;
40125 PyObject * obj0 = 0 ;
40126 PyObject * obj1 = 0 ;
40127 PyObject * obj2 = 0 ;
40128 PyObject * obj3 = 0 ;
40129 char * kwnames[] = {
40130 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40131 };
40132
40133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40135 if (!SWIG_IsOK(res1)) {
40136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40137 }
40138 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40140 if (!SWIG_IsOK(res2)) {
40141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40142 }
40143 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40144 {
40145 arg3 = &temp3;
40146 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40147 }
40148 ecode4 = SWIG_AsVal_int(obj3, &val4);
40149 if (!SWIG_IsOK(ecode4)) {
40150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40151 }
40152 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40153 {
40154 PyThreadState* __tstate = wxPyBeginAllowThreads();
40155 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40156 wxPyEndAllowThreads(__tstate);
40157 if (PyErr_Occurred()) SWIG_fail;
40158 }
40159 {
40160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40161 }
40162 return resultobj;
40163fail:
40164 return NULL;
40165}
40166
40167
1bd55598
RD
40168SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40169 PyObject *resultobj = 0;
40170 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40171 wxWindow *arg2 = (wxWindow *) 0 ;
40172 wxString *arg3 = 0 ;
40173 void *argp1 = 0 ;
40174 int res1 = 0 ;
40175 void *argp2 = 0 ;
40176 int res2 = 0 ;
40177 bool temp3 = false ;
40178 PyObject * obj0 = 0 ;
40179 PyObject * obj1 = 0 ;
40180 PyObject * obj2 = 0 ;
40181 char * kwnames[] = {
40182 (char *) "self",(char *) "window",(char *) "text", NULL
40183 };
40184
40185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40187 if (!SWIG_IsOK(res1)) {
40188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40189 }
40190 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40192 if (!SWIG_IsOK(res2)) {
40193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40194 }
40195 arg2 = reinterpret_cast< wxWindow * >(argp2);
40196 {
40197 arg3 = wxString_in_helper(obj2);
40198 if (arg3 == NULL) SWIG_fail;
40199 temp3 = true;
40200 }
40201 {
40202 PyThreadState* __tstate = wxPyBeginAllowThreads();
40203 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40204 wxPyEndAllowThreads(__tstate);
40205 if (PyErr_Occurred()) SWIG_fail;
40206 }
40207 resultobj = SWIG_Py_Void();
40208 {
40209 if (temp3)
40210 delete arg3;
40211 }
40212 return resultobj;
40213fail:
40214 {
40215 if (temp3)
40216 delete arg3;
40217 }
40218 return NULL;
40219}
40220
40221
40222SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40223 PyObject *resultobj = 0;
40224 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40225 int arg2 ;
40226 wxString *arg3 = 0 ;
40227 void *argp1 = 0 ;
40228 int res1 = 0 ;
40229 int val2 ;
40230 int ecode2 = 0 ;
40231 bool temp3 = false ;
40232 PyObject * obj0 = 0 ;
40233 PyObject * obj1 = 0 ;
40234 PyObject * obj2 = 0 ;
40235 char * kwnames[] = {
40236 (char *) "self",(char *) "id",(char *) "text", NULL
40237 };
40238
40239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40241 if (!SWIG_IsOK(res1)) {
40242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40243 }
40244 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40245 ecode2 = SWIG_AsVal_int(obj1, &val2);
40246 if (!SWIG_IsOK(ecode2)) {
40247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40248 }
40249 arg2 = static_cast< int >(val2);
40250 {
40251 arg3 = wxString_in_helper(obj2);
40252 if (arg3 == NULL) SWIG_fail;
40253 temp3 = true;
40254 }
40255 {
40256 PyThreadState* __tstate = wxPyBeginAllowThreads();
40257 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40258 wxPyEndAllowThreads(__tstate);
40259 if (PyErr_Occurred()) SWIG_fail;
40260 }
40261 resultobj = SWIG_Py_Void();
40262 {
40263 if (temp3)
40264 delete arg3;
40265 }
40266 return resultobj;
40267fail:
40268 {
40269 if (temp3)
40270 delete arg3;
40271 }
40272 return NULL;
40273}
40274
40275
40276SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40277 PyObject *resultobj = 0;
40278 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40279 wxWindow *arg2 = (wxWindow *) 0 ;
40280 void *argp1 = 0 ;
40281 int res1 = 0 ;
40282 void *argp2 = 0 ;
40283 int res2 = 0 ;
40284 PyObject * obj0 = 0 ;
40285 PyObject * obj1 = 0 ;
40286 char * kwnames[] = {
40287 (char *) "self",(char *) "window", NULL
40288 };
40289
40290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40292 if (!SWIG_IsOK(res1)) {
40293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40294 }
40295 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40296 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40297 if (!SWIG_IsOK(res2)) {
40298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40299 }
40300 arg2 = reinterpret_cast< wxWindow * >(argp2);
40301 {
40302 PyThreadState* __tstate = wxPyBeginAllowThreads();
40303 (arg1)->RemoveHelp(arg2);
40304 wxPyEndAllowThreads(__tstate);
40305 if (PyErr_Occurred()) SWIG_fail;
40306 }
40307 resultobj = SWIG_Py_Void();
40308 return resultobj;
40309fail:
40310 return NULL;
d55e5bfc
RD
40311}
40312
40313
1bd55598
RD
40314SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40315 PyObject *resultobj = 0;
40316 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40317 void *argp1 = 0 ;
40318 int res1 = 0 ;
40319 PyObject *swig_obj[1] ;
40320
40321 if (!args) SWIG_fail;
40322 swig_obj[0] = args;
40323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40324 if (!SWIG_IsOK(res1)) {
40325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40326 }
40327 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40328 {
40329 PyThreadState* __tstate = wxPyBeginAllowThreads();
40330 wxHelpProvider_Destroy(arg1);
40331 wxPyEndAllowThreads(__tstate);
40332 if (PyErr_Occurred()) SWIG_fail;
40333 }
40334 resultobj = SWIG_Py_Void();
40335 return resultobj;
40336fail:
40337 return NULL;
d55e5bfc
RD
40338}
40339
40340
1bd55598
RD
40341SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40342 PyObject *obj;
40343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40344 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40345 return SWIG_Py_Void();
d55e5bfc
RD
40346}
40347
1bd55598
RD
40348SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40349 PyObject *resultobj = 0;
40350 wxSimpleHelpProvider *result = 0 ;
40351
40352 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40353 {
40354 PyThreadState* __tstate = wxPyBeginAllowThreads();
40355 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40356 wxPyEndAllowThreads(__tstate);
40357 if (PyErr_Occurred()) SWIG_fail;
40358 }
40359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40360 return resultobj;
40361fail:
40362 return NULL;
40363}
40364
40365
40366SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40367 PyObject *obj;
40368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40369 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40370 return SWIG_Py_Void();
40371}
40372
40373SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40374 return SWIG_Python_InitShadowInstance(args);
40375}
40376
40377SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40378 PyObject *resultobj = 0;
40379 wxBitmap *arg1 = 0 ;
40380 wxCursor const &arg2_defvalue = wxNullCursor ;
40381 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40382 wxGenericDragImage *result = 0 ;
40383 void *argp1 = 0 ;
40384 int res1 = 0 ;
40385 void *argp2 = 0 ;
40386 int res2 = 0 ;
40387 PyObject * obj0 = 0 ;
40388 PyObject * obj1 = 0 ;
40389 char * kwnames[] = {
40390 (char *) "image",(char *) "cursor", NULL
40391 };
40392
40393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40394 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40395 if (!SWIG_IsOK(res1)) {
40396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40397 }
40398 if (!argp1) {
40399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40400 }
40401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40402 if (obj1) {
40403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40404 if (!SWIG_IsOK(res2)) {
40405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40406 }
1bd55598
RD
40407 if (!argp2) {
40408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40409 }
1bd55598
RD
40410 arg2 = reinterpret_cast< wxCursor * >(argp2);
40411 }
40412 {
40413 if (!wxPyCheckForApp()) SWIG_fail;
40414 PyThreadState* __tstate = wxPyBeginAllowThreads();
40415 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40416 wxPyEndAllowThreads(__tstate);
40417 if (PyErr_Occurred()) SWIG_fail;
40418 }
40419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40420 return resultobj;
40421fail:
40422 return NULL;
40423}
40424
40425
40426SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40427 PyObject *resultobj = 0;
40428 wxIcon *arg1 = 0 ;
40429 wxCursor const &arg2_defvalue = wxNullCursor ;
40430 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40431 wxGenericDragImage *result = 0 ;
40432 void *argp1 = 0 ;
40433 int res1 = 0 ;
40434 void *argp2 = 0 ;
40435 int res2 = 0 ;
40436 PyObject * obj0 = 0 ;
40437 PyObject * obj1 = 0 ;
40438 char * kwnames[] = {
40439 (char *) "image",(char *) "cursor", NULL
40440 };
40441
40442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40443 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40444 if (!SWIG_IsOK(res1)) {
40445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40446 }
40447 if (!argp1) {
40448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40449 }
40450 arg1 = reinterpret_cast< wxIcon * >(argp1);
40451 if (obj1) {
40452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40453 if (!SWIG_IsOK(res2)) {
40454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40455 }
1bd55598
RD
40456 if (!argp2) {
40457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40458 }
1bd55598
RD
40459 arg2 = reinterpret_cast< wxCursor * >(argp2);
40460 }
40461 {
40462 if (!wxPyCheckForApp()) SWIG_fail;
40463 PyThreadState* __tstate = wxPyBeginAllowThreads();
40464 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40465 wxPyEndAllowThreads(__tstate);
40466 if (PyErr_Occurred()) SWIG_fail;
40467 }
40468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40469 return resultobj;
40470fail:
40471 return NULL;
40472}
40473
40474
40475SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40476 PyObject *resultobj = 0;
40477 wxString *arg1 = 0 ;
40478 wxCursor const &arg2_defvalue = wxNullCursor ;
40479 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40480 wxGenericDragImage *result = 0 ;
40481 bool temp1 = false ;
40482 void *argp2 = 0 ;
40483 int res2 = 0 ;
40484 PyObject * obj0 = 0 ;
40485 PyObject * obj1 = 0 ;
40486 char * kwnames[] = {
40487 (char *) "str",(char *) "cursor", NULL
40488 };
40489
40490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40491 {
40492 arg1 = wxString_in_helper(obj0);
40493 if (arg1 == NULL) SWIG_fail;
40494 temp1 = true;
40495 }
40496 if (obj1) {
40497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40498 if (!SWIG_IsOK(res2)) {
40499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40500 }
1bd55598
RD
40501 if (!argp2) {
40502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40503 }
1bd55598
RD
40504 arg2 = reinterpret_cast< wxCursor * >(argp2);
40505 }
40506 {
40507 if (!wxPyCheckForApp()) SWIG_fail;
40508 PyThreadState* __tstate = wxPyBeginAllowThreads();
40509 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40510 wxPyEndAllowThreads(__tstate);
40511 if (PyErr_Occurred()) SWIG_fail;
40512 }
40513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40514 {
40515 if (temp1)
40516 delete arg1;
40517 }
40518 return resultobj;
40519fail:
40520 {
40521 if (temp1)
40522 delete arg1;
40523 }
40524 return NULL;
40525}
40526
40527
40528SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40529 PyObject *resultobj = 0;
40530 wxPyTreeCtrl *arg1 = 0 ;
40531 wxTreeItemId *arg2 = 0 ;
40532 wxGenericDragImage *result = 0 ;
40533 void *argp1 = 0 ;
40534 int res1 = 0 ;
40535 void *argp2 = 0 ;
40536 int res2 = 0 ;
40537 PyObject * obj0 = 0 ;
40538 PyObject * obj1 = 0 ;
40539 char * kwnames[] = {
40540 (char *) "treeCtrl",(char *) "id", NULL
40541 };
40542
40543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40544 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40545 if (!SWIG_IsOK(res1)) {
40546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40547 }
40548 if (!argp1) {
40549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40550 }
40551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40553 if (!SWIG_IsOK(res2)) {
40554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40555 }
40556 if (!argp2) {
40557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40558 }
40559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40560 {
40561 if (!wxPyCheckForApp()) SWIG_fail;
40562 PyThreadState* __tstate = wxPyBeginAllowThreads();
40563 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40564 wxPyEndAllowThreads(__tstate);
40565 if (PyErr_Occurred()) SWIG_fail;
40566 }
40567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40568 return resultobj;
40569fail:
40570 return NULL;
40571}
40572
40573
40574SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40575 PyObject *resultobj = 0;
40576 wxPyListCtrl *arg1 = 0 ;
40577 long arg2 ;
40578 wxGenericDragImage *result = 0 ;
40579 void *argp1 = 0 ;
40580 int res1 = 0 ;
40581 long val2 ;
40582 int ecode2 = 0 ;
40583 PyObject * obj0 = 0 ;
40584 PyObject * obj1 = 0 ;
40585 char * kwnames[] = {
40586 (char *) "listCtrl",(char *) "id", NULL
40587 };
40588
40589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40590 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40591 if (!SWIG_IsOK(res1)) {
40592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40593 }
40594 if (!argp1) {
40595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40596 }
40597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40598 ecode2 = SWIG_AsVal_long(obj1, &val2);
40599 if (!SWIG_IsOK(ecode2)) {
40600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40601 }
40602 arg2 = static_cast< long >(val2);
40603 {
40604 if (!wxPyCheckForApp()) SWIG_fail;
40605 PyThreadState* __tstate = wxPyBeginAllowThreads();
40606 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40607 wxPyEndAllowThreads(__tstate);
40608 if (PyErr_Occurred()) SWIG_fail;
40609 }
40610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40611 return resultobj;
40612fail:
40613 return NULL;
d55e5bfc
RD
40614}
40615
40616
1bd55598
RD
40617SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40618 PyObject *resultobj = 0;
40619 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40620 void *argp1 = 0 ;
40621 int res1 = 0 ;
40622 PyObject *swig_obj[1] ;
40623
40624 if (!args) SWIG_fail;
40625 swig_obj[0] = args;
40626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40627 if (!SWIG_IsOK(res1)) {
40628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40629 }
40630 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40631 {
40632 PyThreadState* __tstate = wxPyBeginAllowThreads();
40633 delete arg1;
d55e5bfc 40634
1bd55598
RD
40635 wxPyEndAllowThreads(__tstate);
40636 if (PyErr_Occurred()) SWIG_fail;
40637 }
40638 resultobj = SWIG_Py_Void();
40639 return resultobj;
40640fail:
40641 return NULL;
40642}
40643
40644
40645SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40646 PyObject *resultobj = 0;
40647 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40648 wxBitmap *arg2 = (wxBitmap *) 0 ;
40649 void *argp1 = 0 ;
40650 int res1 = 0 ;
40651 void *argp2 = 0 ;
40652 int res2 = 0 ;
40653 PyObject * obj0 = 0 ;
40654 PyObject * obj1 = 0 ;
40655 char * kwnames[] = {
40656 (char *) "self",(char *) "bitmap", NULL
40657 };
40658
40659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40661 if (!SWIG_IsOK(res1)) {
40662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40663 }
40664 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40666 if (!SWIG_IsOK(res2)) {
40667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40668 }
40669 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40670 {
40671 PyThreadState* __tstate = wxPyBeginAllowThreads();
40672 (arg1)->SetBackingBitmap(arg2);
40673 wxPyEndAllowThreads(__tstate);
40674 if (PyErr_Occurred()) SWIG_fail;
40675 }
40676 resultobj = SWIG_Py_Void();
40677 return resultobj;
40678fail:
40679 return NULL;
40680}
40681
40682
40683SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40684 PyObject *resultobj = 0;
40685 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40686 wxPoint *arg2 = 0 ;
40687 wxWindow *arg3 = (wxWindow *) 0 ;
40688 bool arg4 = (bool) false ;
40689 wxRect *arg5 = (wxRect *) NULL ;
40690 bool result;
40691 void *argp1 = 0 ;
40692 int res1 = 0 ;
40693 wxPoint temp2 ;
40694 void *argp3 = 0 ;
40695 int res3 = 0 ;
40696 bool val4 ;
40697 int ecode4 = 0 ;
40698 void *argp5 = 0 ;
40699 int res5 = 0 ;
40700 PyObject * obj0 = 0 ;
40701 PyObject * obj1 = 0 ;
40702 PyObject * obj2 = 0 ;
40703 PyObject * obj3 = 0 ;
40704 PyObject * obj4 = 0 ;
40705 char * kwnames[] = {
40706 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40707 };
40708
40709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40711 if (!SWIG_IsOK(res1)) {
40712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40713 }
40714 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40715 {
40716 arg2 = &temp2;
40717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40718 }
40719 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40720 if (!SWIG_IsOK(res3)) {
40721 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40722 }
40723 arg3 = reinterpret_cast< wxWindow * >(argp3);
40724 if (obj3) {
40725 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40726 if (!SWIG_IsOK(ecode4)) {
40727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40728 }
40729 arg4 = static_cast< bool >(val4);
40730 }
40731 if (obj4) {
40732 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40733 if (!SWIG_IsOK(res5)) {
40734 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40735 }
1bd55598
RD
40736 arg5 = reinterpret_cast< wxRect * >(argp5);
40737 }
40738 {
40739 PyThreadState* __tstate = wxPyBeginAllowThreads();
40740 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40741 wxPyEndAllowThreads(__tstate);
40742 if (PyErr_Occurred()) SWIG_fail;
40743 }
40744 {
40745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40746 }
40747 return resultobj;
40748fail:
40749 return NULL;
40750}
40751
40752
40753SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40754 PyObject *resultobj = 0;
40755 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40756 wxPoint *arg2 = 0 ;
40757 wxWindow *arg3 = (wxWindow *) 0 ;
40758 wxWindow *arg4 = (wxWindow *) 0 ;
40759 bool result;
40760 void *argp1 = 0 ;
40761 int res1 = 0 ;
40762 wxPoint temp2 ;
40763 void *argp3 = 0 ;
40764 int res3 = 0 ;
40765 void *argp4 = 0 ;
40766 int res4 = 0 ;
40767 PyObject * obj0 = 0 ;
40768 PyObject * obj1 = 0 ;
40769 PyObject * obj2 = 0 ;
40770 PyObject * obj3 = 0 ;
40771 char * kwnames[] = {
40772 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40773 };
40774
40775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40777 if (!SWIG_IsOK(res1)) {
40778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40779 }
40780 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40781 {
40782 arg2 = &temp2;
40783 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40784 }
40785 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40786 if (!SWIG_IsOK(res3)) {
40787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40788 }
40789 arg3 = reinterpret_cast< wxWindow * >(argp3);
40790 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40791 if (!SWIG_IsOK(res4)) {
40792 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40793 }
40794 arg4 = reinterpret_cast< wxWindow * >(argp4);
40795 {
40796 PyThreadState* __tstate = wxPyBeginAllowThreads();
40797 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40798 wxPyEndAllowThreads(__tstate);
40799 if (PyErr_Occurred()) SWIG_fail;
40800 }
40801 {
40802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40803 }
40804 return resultobj;
40805fail:
40806 return NULL;
d55e5bfc
RD
40807}
40808
40809
1bd55598
RD
40810SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40811 PyObject *resultobj = 0;
40812 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40813 bool result;
40814 void *argp1 = 0 ;
40815 int res1 = 0 ;
40816 PyObject *swig_obj[1] ;
40817
40818 if (!args) SWIG_fail;
40819 swig_obj[0] = args;
40820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40821 if (!SWIG_IsOK(res1)) {
40822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40823 }
40824 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40825 {
40826 PyThreadState* __tstate = wxPyBeginAllowThreads();
40827 result = (bool)(arg1)->EndDrag();
40828 wxPyEndAllowThreads(__tstate);
40829 if (PyErr_Occurred()) SWIG_fail;
40830 }
40831 {
40832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40833 }
40834 return resultobj;
40835fail:
40836 return NULL;
40837}
40838
40839
40840SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40841 PyObject *resultobj = 0;
40842 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40843 wxPoint *arg2 = 0 ;
40844 bool result;
40845 void *argp1 = 0 ;
40846 int res1 = 0 ;
40847 wxPoint temp2 ;
40848 PyObject * obj0 = 0 ;
40849 PyObject * obj1 = 0 ;
40850 char * kwnames[] = {
40851 (char *) "self",(char *) "pt", NULL
40852 };
40853
40854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40856 if (!SWIG_IsOK(res1)) {
40857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40858 }
40859 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40860 {
40861 arg2 = &temp2;
40862 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40863 }
40864 {
40865 PyThreadState* __tstate = wxPyBeginAllowThreads();
40866 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40867 wxPyEndAllowThreads(__tstate);
40868 if (PyErr_Occurred()) SWIG_fail;
40869 }
40870 {
40871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40872 }
40873 return resultobj;
40874fail:
40875 return NULL;
d55e5bfc
RD
40876}
40877
40878
1bd55598
RD
40879SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40880 PyObject *resultobj = 0;
40881 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40882 bool result;
40883 void *argp1 = 0 ;
40884 int res1 = 0 ;
40885 PyObject *swig_obj[1] ;
40886
40887 if (!args) SWIG_fail;
40888 swig_obj[0] = args;
40889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40890 if (!SWIG_IsOK(res1)) {
40891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40892 }
40893 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40894 {
40895 PyThreadState* __tstate = wxPyBeginAllowThreads();
40896 result = (bool)(arg1)->Show();
40897 wxPyEndAllowThreads(__tstate);
40898 if (PyErr_Occurred()) SWIG_fail;
40899 }
40900 {
40901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40902 }
40903 return resultobj;
40904fail:
40905 return NULL;
d55e5bfc
RD
40906}
40907
40908
1bd55598
RD
40909SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40910 PyObject *resultobj = 0;
40911 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40912 bool result;
40913 void *argp1 = 0 ;
40914 int res1 = 0 ;
40915 PyObject *swig_obj[1] ;
40916
40917 if (!args) SWIG_fail;
40918 swig_obj[0] = args;
40919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40920 if (!SWIG_IsOK(res1)) {
40921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40922 }
40923 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40924 {
40925 PyThreadState* __tstate = wxPyBeginAllowThreads();
40926 result = (bool)(arg1)->Hide();
40927 wxPyEndAllowThreads(__tstate);
40928 if (PyErr_Occurred()) SWIG_fail;
40929 }
40930 {
40931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40932 }
40933 return resultobj;
40934fail:
40935 return NULL;
40936}
40937
40938
40939SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40940 PyObject *resultobj = 0;
40941 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40942 wxPoint *arg2 = 0 ;
40943 wxRect result;
40944 void *argp1 = 0 ;
40945 int res1 = 0 ;
40946 wxPoint temp2 ;
40947 PyObject * obj0 = 0 ;
40948 PyObject * obj1 = 0 ;
40949 char * kwnames[] = {
40950 (char *) "self",(char *) "pos", NULL
40951 };
40952
40953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40955 if (!SWIG_IsOK(res1)) {
40956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40957 }
40958 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40959 {
40960 arg2 = &temp2;
40961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40962 }
40963 {
40964 PyThreadState* __tstate = wxPyBeginAllowThreads();
40965 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40966 wxPyEndAllowThreads(__tstate);
40967 if (PyErr_Occurred()) SWIG_fail;
40968 }
40969 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40970 return resultobj;
40971fail:
40972 return NULL;
40973}
40974
40975
40976SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40977 PyObject *resultobj = 0;
40978 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40979 wxDC *arg2 = 0 ;
40980 wxPoint *arg3 = 0 ;
40981 bool result;
40982 void *argp1 = 0 ;
40983 int res1 = 0 ;
40984 void *argp2 = 0 ;
40985 int res2 = 0 ;
40986 wxPoint temp3 ;
40987 PyObject * obj0 = 0 ;
40988 PyObject * obj1 = 0 ;
40989 PyObject * obj2 = 0 ;
40990 char * kwnames[] = {
40991 (char *) "self",(char *) "dc",(char *) "pos", NULL
40992 };
40993
40994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40996 if (!SWIG_IsOK(res1)) {
40997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40998 }
40999 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41001 if (!SWIG_IsOK(res2)) {
41002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41003 }
41004 if (!argp2) {
41005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41006 }
41007 arg2 = reinterpret_cast< wxDC * >(argp2);
41008 {
41009 arg3 = &temp3;
41010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41011 }
41012 {
41013 PyThreadState* __tstate = wxPyBeginAllowThreads();
41014 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41015 wxPyEndAllowThreads(__tstate);
41016 if (PyErr_Occurred()) SWIG_fail;
41017 }
41018 {
41019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41020 }
41021 return resultobj;
41022fail:
41023 return NULL;
41024}
41025
41026
41027SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41028 PyObject *resultobj = 0;
41029 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41030 wxDC *arg2 = 0 ;
41031 wxMemoryDC *arg3 = 0 ;
41032 wxRect *arg4 = 0 ;
41033 wxRect *arg5 = 0 ;
41034 bool result;
41035 void *argp1 = 0 ;
41036 int res1 = 0 ;
41037 void *argp2 = 0 ;
41038 int res2 = 0 ;
41039 void *argp3 = 0 ;
41040 int res3 = 0 ;
41041 wxRect temp4 ;
41042 wxRect temp5 ;
41043 PyObject * obj0 = 0 ;
41044 PyObject * obj1 = 0 ;
41045 PyObject * obj2 = 0 ;
41046 PyObject * obj3 = 0 ;
41047 PyObject * obj4 = 0 ;
41048 char * kwnames[] = {
41049 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41050 };
41051
41052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41054 if (!SWIG_IsOK(res1)) {
41055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41056 }
41057 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41059 if (!SWIG_IsOK(res2)) {
41060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41061 }
41062 if (!argp2) {
41063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41064 }
41065 arg2 = reinterpret_cast< wxDC * >(argp2);
41066 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41067 if (!SWIG_IsOK(res3)) {
41068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41069 }
41070 if (!argp3) {
41071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41072 }
41073 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41074 {
41075 arg4 = &temp4;
41076 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41077 }
41078 {
41079 arg5 = &temp5;
41080 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41081 }
41082 {
41083 PyThreadState* __tstate = wxPyBeginAllowThreads();
41084 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41085 wxPyEndAllowThreads(__tstate);
41086 if (PyErr_Occurred()) SWIG_fail;
41087 }
41088 {
41089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41090 }
41091 return resultobj;
41092fail:
41093 return NULL;
41094}
41095
41096
41097SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41098 PyObject *resultobj = 0;
41099 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41100 wxPoint *arg2 = 0 ;
41101 wxPoint *arg3 = 0 ;
41102 bool arg4 ;
41103 bool arg5 ;
41104 bool result;
41105 void *argp1 = 0 ;
41106 int res1 = 0 ;
41107 wxPoint temp2 ;
41108 wxPoint temp3 ;
41109 bool val4 ;
41110 int ecode4 = 0 ;
41111 bool val5 ;
41112 int ecode5 = 0 ;
41113 PyObject * obj0 = 0 ;
41114 PyObject * obj1 = 0 ;
41115 PyObject * obj2 = 0 ;
41116 PyObject * obj3 = 0 ;
41117 PyObject * obj4 = 0 ;
41118 char * kwnames[] = {
41119 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41120 };
41121
41122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41124 if (!SWIG_IsOK(res1)) {
41125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41126 }
41127 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41128 {
41129 arg2 = &temp2;
41130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41131 }
41132 {
41133 arg3 = &temp3;
41134 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41135 }
41136 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41137 if (!SWIG_IsOK(ecode4)) {
41138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41139 }
41140 arg4 = static_cast< bool >(val4);
41141 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41142 if (!SWIG_IsOK(ecode5)) {
41143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41144 }
41145 arg5 = static_cast< bool >(val5);
41146 {
41147 PyThreadState* __tstate = wxPyBeginAllowThreads();
41148 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41149 wxPyEndAllowThreads(__tstate);
41150 if (PyErr_Occurred()) SWIG_fail;
41151 }
41152 {
41153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41154 }
41155 return resultobj;
41156fail:
41157 return NULL;
d55e5bfc
RD
41158}
41159
41160
1bd55598
RD
41161SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41162 PyObject *obj;
41163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41164 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41165 return SWIG_Py_Void();
d55e5bfc
RD
41166}
41167
1bd55598
RD
41168SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41169 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41170}
41171
1bd55598
RD
41172SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41173 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41174 return 1;
d55e5bfc
RD
41175}
41176
41177
1bd55598
RD
41178SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41179 PyObject *pyobj = 0;
41180
41181 {
41182#if wxUSE_UNICODE
41183 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41184#else
41185 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41186#endif
41187 }
41188 return pyobj;
41189}
41190
41191
41192SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41193 PyObject *resultobj = 0;
41194 wxWindow *arg1 = (wxWindow *) 0 ;
41195 int arg2 = (int) -1 ;
41196 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41197 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41200 wxSize const &arg5_defvalue = wxDefaultSize ;
41201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41202 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41203 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41204 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41205 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41206 wxString *arg8 = (wxString *) &arg8_defvalue ;
41207 wxDatePickerCtrl *result = 0 ;
41208 void *argp1 = 0 ;
41209 int res1 = 0 ;
41210 int val2 ;
41211 int ecode2 = 0 ;
41212 void *argp3 = 0 ;
41213 int res3 = 0 ;
41214 wxPoint temp4 ;
41215 wxSize temp5 ;
41216 long val6 ;
41217 int ecode6 = 0 ;
41218 void *argp7 = 0 ;
41219 int res7 = 0 ;
41220 bool temp8 = false ;
41221 PyObject * obj0 = 0 ;
41222 PyObject * obj1 = 0 ;
41223 PyObject * obj2 = 0 ;
41224 PyObject * obj3 = 0 ;
41225 PyObject * obj4 = 0 ;
41226 PyObject * obj5 = 0 ;
41227 PyObject * obj6 = 0 ;
41228 PyObject * obj7 = 0 ;
41229 char * kwnames[] = {
41230 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41231 };
41232
41233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41235 if (!SWIG_IsOK(res1)) {
41236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41237 }
41238 arg1 = reinterpret_cast< wxWindow * >(argp1);
41239 if (obj1) {
41240 ecode2 = SWIG_AsVal_int(obj1, &val2);
41241 if (!SWIG_IsOK(ecode2)) {
41242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41243 }
41244 arg2 = static_cast< int >(val2);
41245 }
41246 if (obj2) {
41247 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41248 if (!SWIG_IsOK(res3)) {
41249 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41250 }
1bd55598
RD
41251 if (!argp3) {
41252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41253 }
1bd55598
RD
41254 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41255 }
41256 if (obj3) {
36ed4f51 41257 {
1bd55598
RD
41258 arg4 = &temp4;
41259 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41260 }
1bd55598
RD
41261 }
41262 if (obj4) {
d55e5bfc 41263 {
1bd55598
RD
41264 arg5 = &temp5;
41265 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41266 }
1bd55598
RD
41267 }
41268 if (obj5) {
41269 ecode6 = SWIG_AsVal_long(obj5, &val6);
41270 if (!SWIG_IsOK(ecode6)) {
41271 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41272 }
41273 arg6 = static_cast< long >(val6);
41274 }
41275 if (obj6) {
41276 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41277 if (!SWIG_IsOK(res7)) {
41278 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41279 }
1bd55598
RD
41280 if (!argp7) {
41281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41282 }
1bd55598
RD
41283 arg7 = reinterpret_cast< wxValidator * >(argp7);
41284 }
41285 if (obj7) {
36ed4f51 41286 {
1bd55598
RD
41287 arg8 = wxString_in_helper(obj7);
41288 if (arg8 == NULL) SWIG_fail;
41289 temp8 = true;
36ed4f51 41290 }
1bd55598
RD
41291 }
41292 {
41293 if (!wxPyCheckForApp()) SWIG_fail;
41294 PyThreadState* __tstate = wxPyBeginAllowThreads();
41295 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41296 wxPyEndAllowThreads(__tstate);
41297 if (PyErr_Occurred()) SWIG_fail;
41298 }
41299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41300 {
41301 if (temp8)
41302 delete arg8;
41303 }
41304 return resultobj;
41305fail:
41306 {
41307 if (temp8)
41308 delete arg8;
41309 }
41310 return NULL;
d55e5bfc
RD
41311}
41312
41313
1bd55598
RD
41314SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41315 PyObject *resultobj = 0;
41316 wxDatePickerCtrl *result = 0 ;
41317
41318 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41319 {
41320 if (!wxPyCheckForApp()) SWIG_fail;
41321 PyThreadState* __tstate = wxPyBeginAllowThreads();
41322 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41323 wxPyEndAllowThreads(__tstate);
41324 if (PyErr_Occurred()) SWIG_fail;
41325 }
41326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41327 return resultobj;
41328fail:
41329 return NULL;
41330}
41331
41332
41333SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41334 PyObject *resultobj = 0;
41335 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41336 wxWindow *arg2 = (wxWindow *) 0 ;
41337 int arg3 = (int) -1 ;
41338 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41339 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41340 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41341 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41342 wxSize const &arg6_defvalue = wxDefaultSize ;
41343 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41344 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41345 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41346 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41347 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41348 wxString *arg9 = (wxString *) &arg9_defvalue ;
41349 bool result;
41350 void *argp1 = 0 ;
41351 int res1 = 0 ;
41352 void *argp2 = 0 ;
41353 int res2 = 0 ;
41354 int val3 ;
41355 int ecode3 = 0 ;
41356 void *argp4 = 0 ;
41357 int res4 = 0 ;
41358 wxPoint temp5 ;
41359 wxSize temp6 ;
41360 long val7 ;
41361 int ecode7 = 0 ;
41362 void *argp8 = 0 ;
41363 int res8 = 0 ;
41364 bool temp9 = false ;
41365 PyObject * obj0 = 0 ;
41366 PyObject * obj1 = 0 ;
41367 PyObject * obj2 = 0 ;
41368 PyObject * obj3 = 0 ;
41369 PyObject * obj4 = 0 ;
41370 PyObject * obj5 = 0 ;
41371 PyObject * obj6 = 0 ;
41372 PyObject * obj7 = 0 ;
41373 PyObject * obj8 = 0 ;
41374 char * kwnames[] = {
41375 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41376 };
41377
41378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41380 if (!SWIG_IsOK(res1)) {
41381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41382 }
41383 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41385 if (!SWIG_IsOK(res2)) {
41386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41387 }
41388 arg2 = reinterpret_cast< wxWindow * >(argp2);
41389 if (obj2) {
41390 ecode3 = SWIG_AsVal_int(obj2, &val3);
41391 if (!SWIG_IsOK(ecode3)) {
41392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41393 }
41394 arg3 = static_cast< int >(val3);
41395 }
41396 if (obj3) {
41397 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41398 if (!SWIG_IsOK(res4)) {
41399 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41400 }
1bd55598
RD
41401 if (!argp4) {
41402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41403 }
1bd55598
RD
41404 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41405 }
41406 if (obj4) {
d55e5bfc 41407 {
1bd55598
RD
41408 arg5 = &temp5;
41409 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41410 }
1bd55598
RD
41411 }
41412 if (obj5) {
d55e5bfc 41413 {
1bd55598
RD
41414 arg6 = &temp6;
41415 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41416 }
1bd55598
RD
41417 }
41418 if (obj6) {
41419 ecode7 = SWIG_AsVal_long(obj6, &val7);
41420 if (!SWIG_IsOK(ecode7)) {
41421 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41422 }
41423 arg7 = static_cast< long >(val7);
41424 }
41425 if (obj7) {
41426 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41427 if (!SWIG_IsOK(res8)) {
41428 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41429 }
1bd55598
RD
41430 if (!argp8) {
41431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41432 }
1bd55598
RD
41433 arg8 = reinterpret_cast< wxValidator * >(argp8);
41434 }
41435 if (obj8) {
36ed4f51 41436 {
1bd55598
RD
41437 arg9 = wxString_in_helper(obj8);
41438 if (arg9 == NULL) SWIG_fail;
41439 temp9 = true;
36ed4f51 41440 }
1bd55598
RD
41441 }
41442 {
41443 PyThreadState* __tstate = wxPyBeginAllowThreads();
41444 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41445 wxPyEndAllowThreads(__tstate);
41446 if (PyErr_Occurred()) SWIG_fail;
41447 }
41448 {
41449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41450 }
41451 {
41452 if (temp9)
41453 delete arg9;
41454 }
41455 return resultobj;
41456fail:
41457 {
41458 if (temp9)
41459 delete arg9;
41460 }
41461 return NULL;
41462}
41463
41464
41465SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41466 PyObject *resultobj = 0;
41467 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41468 wxDateTime *arg2 = 0 ;
41469 void *argp1 = 0 ;
41470 int res1 = 0 ;
41471 void *argp2 = 0 ;
41472 int res2 = 0 ;
41473 PyObject * obj0 = 0 ;
41474 PyObject * obj1 = 0 ;
41475 char * kwnames[] = {
41476 (char *) "self",(char *) "dt", NULL
41477 };
41478
41479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41481 if (!SWIG_IsOK(res1)) {
41482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41483 }
41484 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41486 if (!SWIG_IsOK(res2)) {
41487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41488 }
41489 if (!argp2) {
41490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41491 }
41492 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41493 {
41494 PyThreadState* __tstate = wxPyBeginAllowThreads();
41495 (arg1)->SetValue((wxDateTime const &)*arg2);
41496 wxPyEndAllowThreads(__tstate);
41497 if (PyErr_Occurred()) SWIG_fail;
41498 }
41499 resultobj = SWIG_Py_Void();
41500 return resultobj;
41501fail:
41502 return NULL;
d55e5bfc
RD
41503}
41504
41505
1bd55598
RD
41506SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41507 PyObject *resultobj = 0;
41508 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41509 wxDateTime result;
41510 void *argp1 = 0 ;
41511 int res1 = 0 ;
41512 PyObject *swig_obj[1] ;
41513
41514 if (!args) SWIG_fail;
41515 swig_obj[0] = args;
41516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41517 if (!SWIG_IsOK(res1)) {
41518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41519 }
41520 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41521 {
41522 PyThreadState* __tstate = wxPyBeginAllowThreads();
41523 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41524 wxPyEndAllowThreads(__tstate);
41525 if (PyErr_Occurred()) SWIG_fail;
41526 }
41527 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41528 return resultobj;
41529fail:
41530 return NULL;
41531}
41532
41533
41534SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41535 PyObject *resultobj = 0;
41536 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41537 wxDateTime *arg2 = 0 ;
41538 wxDateTime *arg3 = 0 ;
41539 void *argp1 = 0 ;
41540 int res1 = 0 ;
41541 void *argp2 = 0 ;
41542 int res2 = 0 ;
41543 void *argp3 = 0 ;
41544 int res3 = 0 ;
41545 PyObject * obj0 = 0 ;
41546 PyObject * obj1 = 0 ;
41547 PyObject * obj2 = 0 ;
41548 char * kwnames[] = {
41549 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41550 };
41551
41552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41554 if (!SWIG_IsOK(res1)) {
41555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41556 }
41557 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41559 if (!SWIG_IsOK(res2)) {
41560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41561 }
41562 if (!argp2) {
41563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41564 }
41565 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41567 if (!SWIG_IsOK(res3)) {
41568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41569 }
41570 if (!argp3) {
41571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41572 }
41573 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41574 {
41575 PyThreadState* __tstate = wxPyBeginAllowThreads();
41576 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41577 wxPyEndAllowThreads(__tstate);
41578 if (PyErr_Occurred()) SWIG_fail;
41579 }
41580 resultobj = SWIG_Py_Void();
41581 return resultobj;
41582fail:
41583 return NULL;
d55e5bfc
RD
41584}
41585
41586
1bd55598
RD
41587SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41588 PyObject *resultobj = 0;
41589 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41590 wxDateTime result;
41591 void *argp1 = 0 ;
41592 int res1 = 0 ;
41593 PyObject *swig_obj[1] ;
41594
41595 if (!args) SWIG_fail;
41596 swig_obj[0] = args;
41597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41598 if (!SWIG_IsOK(res1)) {
41599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41600 }
41601 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41602 {
41603 PyThreadState* __tstate = wxPyBeginAllowThreads();
41604 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41605 wxPyEndAllowThreads(__tstate);
41606 if (PyErr_Occurred()) SWIG_fail;
41607 }
41608 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41609 return resultobj;
41610fail:
41611 return NULL;
d55e5bfc
RD
41612}
41613
41614
1bd55598
RD
41615SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41616 PyObject *resultobj = 0;
41617 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41618 wxDateTime result;
41619 void *argp1 = 0 ;
41620 int res1 = 0 ;
41621 PyObject *swig_obj[1] ;
41622
41623 if (!args) SWIG_fail;
41624 swig_obj[0] = args;
41625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41626 if (!SWIG_IsOK(res1)) {
41627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41628 }
41629 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41630 {
41631 PyThreadState* __tstate = wxPyBeginAllowThreads();
41632 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41633 wxPyEndAllowThreads(__tstate);
41634 if (PyErr_Occurred()) SWIG_fail;
41635 }
41636 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41637 return resultobj;
41638fail:
41639 return NULL;
d55e5bfc
RD
41640}
41641
41642
1bd55598
RD
41643SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41644 PyObject *obj;
41645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41646 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41647 return SWIG_Py_Void();
d55e5bfc
RD
41648}
41649
1bd55598
RD
41650SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41651 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41652}
41653
704eda0c
RD
41654SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41655 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41656 return 1;
41657}
41658
41659
41660SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41661 PyObject *pyobj = 0;
41662
41663 {
41664#if wxUSE_UNICODE
41665 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41666#else
41667 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41668#endif
41669 }
41670 return pyobj;
41671}
41672
41673
41674SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41675 PyObject *resultobj = 0;
41676 wxWindow *arg1 = (wxWindow *) 0 ;
41677 int arg2 ;
41678 wxString *arg3 = 0 ;
41679 wxString *arg4 = 0 ;
41680 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41681 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41682 wxSize const &arg6_defvalue = wxDefaultSize ;
41683 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41684 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41685 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41686 wxString *arg8 = (wxString *) &arg8_defvalue ;
41687 wxHyperlinkCtrl *result = 0 ;
41688 void *argp1 = 0 ;
41689 int res1 = 0 ;
41690 int val2 ;
41691 int ecode2 = 0 ;
41692 bool temp3 = false ;
41693 bool temp4 = false ;
41694 wxPoint temp5 ;
41695 wxSize temp6 ;
41696 long val7 ;
41697 int ecode7 = 0 ;
41698 bool temp8 = false ;
41699 PyObject * obj0 = 0 ;
41700 PyObject * obj1 = 0 ;
41701 PyObject * obj2 = 0 ;
41702 PyObject * obj3 = 0 ;
41703 PyObject * obj4 = 0 ;
41704 PyObject * obj5 = 0 ;
41705 PyObject * obj6 = 0 ;
41706 PyObject * obj7 = 0 ;
41707 char * kwnames[] = {
41708 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41709 };
41710
41711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41713 if (!SWIG_IsOK(res1)) {
41714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41715 }
41716 arg1 = reinterpret_cast< wxWindow * >(argp1);
41717 ecode2 = SWIG_AsVal_int(obj1, &val2);
41718 if (!SWIG_IsOK(ecode2)) {
41719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41720 }
41721 arg2 = static_cast< int >(val2);
41722 {
41723 arg3 = wxString_in_helper(obj2);
41724 if (arg3 == NULL) SWIG_fail;
41725 temp3 = true;
41726 }
41727 {
41728 arg4 = wxString_in_helper(obj3);
41729 if (arg4 == NULL) SWIG_fail;
41730 temp4 = true;
41731 }
41732 if (obj4) {
41733 {
41734 arg5 = &temp5;
41735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41736 }
41737 }
41738 if (obj5) {
41739 {
41740 arg6 = &temp6;
41741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41742 }
41743 }
41744 if (obj6) {
41745 ecode7 = SWIG_AsVal_long(obj6, &val7);
41746 if (!SWIG_IsOK(ecode7)) {
41747 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41748 }
41749 arg7 = static_cast< long >(val7);
41750 }
41751 if (obj7) {
41752 {
41753 arg8 = wxString_in_helper(obj7);
41754 if (arg8 == NULL) SWIG_fail;
41755 temp8 = true;
41756 }
41757 }
41758 {
41759 if (!wxPyCheckForApp()) SWIG_fail;
41760 PyThreadState* __tstate = wxPyBeginAllowThreads();
41761 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41762 wxPyEndAllowThreads(__tstate);
41763 if (PyErr_Occurred()) SWIG_fail;
41764 }
41765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41766 {
41767 if (temp3)
41768 delete arg3;
41769 }
41770 {
41771 if (temp4)
41772 delete arg4;
41773 }
41774 {
41775 if (temp8)
41776 delete arg8;
41777 }
41778 return resultobj;
41779fail:
41780 {
41781 if (temp3)
41782 delete arg3;
41783 }
41784 {
41785 if (temp4)
41786 delete arg4;
41787 }
41788 {
41789 if (temp8)
41790 delete arg8;
41791 }
41792 return NULL;
41793}
41794
41795
41796SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41797 PyObject *resultobj = 0;
41798 wxHyperlinkCtrl *result = 0 ;
41799
41800 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41801 {
41802 if (!wxPyCheckForApp()) SWIG_fail;
41803 PyThreadState* __tstate = wxPyBeginAllowThreads();
41804 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41805 wxPyEndAllowThreads(__tstate);
41806 if (PyErr_Occurred()) SWIG_fail;
41807 }
41808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41809 return resultobj;
41810fail:
41811 return NULL;
41812}
41813
41814
41815SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41816 PyObject *resultobj = 0;
41817 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41818 wxWindow *arg2 = (wxWindow *) 0 ;
41819 int arg3 ;
41820 wxString *arg4 = 0 ;
41821 wxString *arg5 = 0 ;
41822 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41823 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41824 wxSize const &arg7_defvalue = wxDefaultSize ;
41825 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41826 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41827 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41828 wxString *arg9 = (wxString *) &arg9_defvalue ;
41829 bool result;
41830 void *argp1 = 0 ;
41831 int res1 = 0 ;
41832 void *argp2 = 0 ;
41833 int res2 = 0 ;
41834 int val3 ;
41835 int ecode3 = 0 ;
41836 bool temp4 = false ;
41837 bool temp5 = false ;
41838 wxPoint temp6 ;
41839 wxSize temp7 ;
41840 long val8 ;
41841 int ecode8 = 0 ;
41842 bool temp9 = false ;
41843 PyObject * obj0 = 0 ;
41844 PyObject * obj1 = 0 ;
41845 PyObject * obj2 = 0 ;
41846 PyObject * obj3 = 0 ;
41847 PyObject * obj4 = 0 ;
41848 PyObject * obj5 = 0 ;
41849 PyObject * obj6 = 0 ;
41850 PyObject * obj7 = 0 ;
41851 PyObject * obj8 = 0 ;
41852 char * kwnames[] = {
41853 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41854 };
41855
41856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41858 if (!SWIG_IsOK(res1)) {
41859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41860 }
41861 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41863 if (!SWIG_IsOK(res2)) {
41864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41865 }
41866 arg2 = reinterpret_cast< wxWindow * >(argp2);
41867 ecode3 = SWIG_AsVal_int(obj2, &val3);
41868 if (!SWIG_IsOK(ecode3)) {
41869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41870 }
41871 arg3 = static_cast< int >(val3);
41872 {
41873 arg4 = wxString_in_helper(obj3);
41874 if (arg4 == NULL) SWIG_fail;
41875 temp4 = true;
41876 }
41877 {
41878 arg5 = wxString_in_helper(obj4);
41879 if (arg5 == NULL) SWIG_fail;
41880 temp5 = true;
41881 }
41882 if (obj5) {
41883 {
41884 arg6 = &temp6;
41885 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41886 }
41887 }
41888 if (obj6) {
41889 {
41890 arg7 = &temp7;
41891 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41892 }
41893 }
41894 if (obj7) {
41895 ecode8 = SWIG_AsVal_long(obj7, &val8);
41896 if (!SWIG_IsOK(ecode8)) {
41897 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41898 }
41899 arg8 = static_cast< long >(val8);
41900 }
41901 if (obj8) {
41902 {
41903 arg9 = wxString_in_helper(obj8);
41904 if (arg9 == NULL) SWIG_fail;
41905 temp9 = true;
41906 }
41907 }
41908 {
41909 PyThreadState* __tstate = wxPyBeginAllowThreads();
41910 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41911 wxPyEndAllowThreads(__tstate);
41912 if (PyErr_Occurred()) SWIG_fail;
41913 }
41914 {
41915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41916 }
41917 {
41918 if (temp4)
41919 delete arg4;
41920 }
41921 {
41922 if (temp5)
41923 delete arg5;
41924 }
41925 {
41926 if (temp9)
41927 delete arg9;
41928 }
41929 return resultobj;
41930fail:
41931 {
41932 if (temp4)
41933 delete arg4;
41934 }
41935 {
41936 if (temp5)
41937 delete arg5;
41938 }
41939 {
41940 if (temp9)
41941 delete arg9;
41942 }
41943 return NULL;
41944}
41945
41946
41947SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41948 PyObject *resultobj = 0;
41949 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41950 wxColour result;
41951 void *argp1 = 0 ;
41952 int res1 = 0 ;
41953 PyObject *swig_obj[1] ;
41954
41955 if (!args) SWIG_fail;
41956 swig_obj[0] = args;
41957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41958 if (!SWIG_IsOK(res1)) {
41959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41960 }
41961 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41962 {
41963 PyThreadState* __tstate = wxPyBeginAllowThreads();
41964 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41965 wxPyEndAllowThreads(__tstate);
41966 if (PyErr_Occurred()) SWIG_fail;
41967 }
41968 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41969 return resultobj;
41970fail:
41971 return NULL;
41972}
41973
41974
41975SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41976 PyObject *resultobj = 0;
41977 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41978 wxColour *arg2 = 0 ;
41979 void *argp1 = 0 ;
41980 int res1 = 0 ;
41981 wxColour temp2 ;
41982 PyObject * obj0 = 0 ;
41983 PyObject * obj1 = 0 ;
41984 char * kwnames[] = {
41985 (char *) "self",(char *) "colour", NULL
41986 };
41987
41988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41990 if (!SWIG_IsOK(res1)) {
41991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41992 }
41993 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41994 {
41995 arg2 = &temp2;
41996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41997 }
41998 {
41999 PyThreadState* __tstate = wxPyBeginAllowThreads();
42000 (arg1)->SetHoverColour((wxColour const &)*arg2);
42001 wxPyEndAllowThreads(__tstate);
42002 if (PyErr_Occurred()) SWIG_fail;
42003 }
42004 resultobj = SWIG_Py_Void();
42005 return resultobj;
42006fail:
42007 return NULL;
42008}
42009
42010
42011SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42012 PyObject *resultobj = 0;
42013 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42014 wxColour result;
42015 void *argp1 = 0 ;
42016 int res1 = 0 ;
42017 PyObject *swig_obj[1] ;
42018
42019 if (!args) SWIG_fail;
42020 swig_obj[0] = args;
42021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42022 if (!SWIG_IsOK(res1)) {
42023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42024 }
42025 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42026 {
42027 PyThreadState* __tstate = wxPyBeginAllowThreads();
42028 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42029 wxPyEndAllowThreads(__tstate);
42030 if (PyErr_Occurred()) SWIG_fail;
42031 }
42032 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42033 return resultobj;
42034fail:
42035 return NULL;
42036}
42037
42038
42039SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42040 PyObject *resultobj = 0;
42041 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42042 wxColour *arg2 = 0 ;
42043 void *argp1 = 0 ;
42044 int res1 = 0 ;
42045 wxColour temp2 ;
42046 PyObject * obj0 = 0 ;
42047 PyObject * obj1 = 0 ;
42048 char * kwnames[] = {
42049 (char *) "self",(char *) "colour", NULL
42050 };
42051
42052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42054 if (!SWIG_IsOK(res1)) {
42055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42056 }
42057 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42058 {
42059 arg2 = &temp2;
42060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42061 }
42062 {
42063 PyThreadState* __tstate = wxPyBeginAllowThreads();
42064 (arg1)->SetNormalColour((wxColour const &)*arg2);
42065 wxPyEndAllowThreads(__tstate);
42066 if (PyErr_Occurred()) SWIG_fail;
42067 }
42068 resultobj = SWIG_Py_Void();
42069 return resultobj;
42070fail:
42071 return NULL;
42072}
42073
42074
42075SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42076 PyObject *resultobj = 0;
42077 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42078 wxColour result;
42079 void *argp1 = 0 ;
42080 int res1 = 0 ;
42081 PyObject *swig_obj[1] ;
42082
42083 if (!args) SWIG_fail;
42084 swig_obj[0] = args;
42085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42086 if (!SWIG_IsOK(res1)) {
42087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42088 }
42089 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42090 {
42091 PyThreadState* __tstate = wxPyBeginAllowThreads();
42092 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42093 wxPyEndAllowThreads(__tstate);
42094 if (PyErr_Occurred()) SWIG_fail;
42095 }
42096 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42097 return resultobj;
42098fail:
42099 return NULL;
42100}
42101
42102
42103SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42104 PyObject *resultobj = 0;
42105 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42106 wxColour *arg2 = 0 ;
42107 void *argp1 = 0 ;
42108 int res1 = 0 ;
42109 wxColour temp2 ;
42110 PyObject * obj0 = 0 ;
42111 PyObject * obj1 = 0 ;
42112 char * kwnames[] = {
42113 (char *) "self",(char *) "colour", NULL
42114 };
42115
42116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42118 if (!SWIG_IsOK(res1)) {
42119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42120 }
42121 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42122 {
42123 arg2 = &temp2;
42124 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42125 }
42126 {
42127 PyThreadState* __tstate = wxPyBeginAllowThreads();
42128 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42129 wxPyEndAllowThreads(__tstate);
42130 if (PyErr_Occurred()) SWIG_fail;
42131 }
42132 resultobj = SWIG_Py_Void();
42133 return resultobj;
42134fail:
42135 return NULL;
42136}
42137
42138
42139SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42140 PyObject *resultobj = 0;
42141 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42142 wxString result;
42143 void *argp1 = 0 ;
42144 int res1 = 0 ;
42145 PyObject *swig_obj[1] ;
42146
42147 if (!args) SWIG_fail;
42148 swig_obj[0] = args;
42149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42150 if (!SWIG_IsOK(res1)) {
42151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42152 }
42153 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42154 {
42155 PyThreadState* __tstate = wxPyBeginAllowThreads();
42156 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42157 wxPyEndAllowThreads(__tstate);
42158 if (PyErr_Occurred()) SWIG_fail;
42159 }
42160 {
42161#if wxUSE_UNICODE
42162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42163#else
42164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42165#endif
42166 }
42167 return resultobj;
42168fail:
42169 return NULL;
42170}
42171
42172
42173SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42174 PyObject *resultobj = 0;
42175 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42176 wxString *arg2 = 0 ;
42177 void *argp1 = 0 ;
42178 int res1 = 0 ;
42179 bool temp2 = false ;
42180 PyObject * obj0 = 0 ;
42181 PyObject * obj1 = 0 ;
42182 char * kwnames[] = {
42183 (char *) "self",(char *) "url", NULL
42184 };
42185
42186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42188 if (!SWIG_IsOK(res1)) {
42189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42190 }
42191 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42192 {
42193 arg2 = wxString_in_helper(obj1);
42194 if (arg2 == NULL) SWIG_fail;
42195 temp2 = true;
42196 }
42197 {
42198 PyThreadState* __tstate = wxPyBeginAllowThreads();
42199 (arg1)->SetURL((wxString const &)*arg2);
42200 wxPyEndAllowThreads(__tstate);
42201 if (PyErr_Occurred()) SWIG_fail;
42202 }
42203 resultobj = SWIG_Py_Void();
42204 {
42205 if (temp2)
42206 delete arg2;
42207 }
42208 return resultobj;
42209fail:
42210 {
42211 if (temp2)
42212 delete arg2;
42213 }
42214 return NULL;
42215}
42216
42217
42218SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42219 PyObject *resultobj = 0;
42220 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42221 bool arg2 = (bool) true ;
42222 void *argp1 = 0 ;
42223 int res1 = 0 ;
42224 bool val2 ;
42225 int ecode2 = 0 ;
42226 PyObject * obj0 = 0 ;
42227 PyObject * obj1 = 0 ;
42228 char * kwnames[] = {
42229 (char *) "self",(char *) "visited", NULL
42230 };
42231
42232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42234 if (!SWIG_IsOK(res1)) {
42235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42236 }
42237 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42238 if (obj1) {
42239 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42240 if (!SWIG_IsOK(ecode2)) {
42241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42242 }
42243 arg2 = static_cast< bool >(val2);
42244 }
42245 {
42246 PyThreadState* __tstate = wxPyBeginAllowThreads();
42247 (arg1)->SetVisited(arg2);
42248 wxPyEndAllowThreads(__tstate);
42249 if (PyErr_Occurred()) SWIG_fail;
42250 }
42251 resultobj = SWIG_Py_Void();
42252 return resultobj;
42253fail:
42254 return NULL;
42255}
42256
42257
42258SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42259 PyObject *resultobj = 0;
42260 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42261 bool result;
42262 void *argp1 = 0 ;
42263 int res1 = 0 ;
42264 PyObject *swig_obj[1] ;
42265
42266 if (!args) SWIG_fail;
42267 swig_obj[0] = args;
42268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42269 if (!SWIG_IsOK(res1)) {
42270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42271 }
42272 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42273 {
42274 PyThreadState* __tstate = wxPyBeginAllowThreads();
42275 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42276 wxPyEndAllowThreads(__tstate);
42277 if (PyErr_Occurred()) SWIG_fail;
42278 }
42279 {
42280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42281 }
42282 return resultobj;
42283fail:
42284 return NULL;
42285}
42286
42287
42288SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42289 PyObject *obj;
42290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42291 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42292 return SWIG_Py_Void();
42293}
42294
42295SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42296 return SWIG_Python_InitShadowInstance(args);
42297}
42298
42299SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42300 PyObject *resultobj = 0;
42301 wxObject *arg1 = (wxObject *) 0 ;
42302 int arg2 ;
42303 wxString *arg3 = 0 ;
42304 wxHyperlinkEvent *result = 0 ;
42305 void *argp1 = 0 ;
42306 int res1 = 0 ;
42307 int val2 ;
42308 int ecode2 = 0 ;
42309 bool temp3 = false ;
42310 PyObject * obj0 = 0 ;
42311 PyObject * obj1 = 0 ;
42312 PyObject * obj2 = 0 ;
42313 char * kwnames[] = {
42314 (char *) "generator",(char *) "id",(char *) "url", NULL
42315 };
42316
42317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42319 if (!SWIG_IsOK(res1)) {
42320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42321 }
42322 arg1 = reinterpret_cast< wxObject * >(argp1);
42323 ecode2 = SWIG_AsVal_int(obj1, &val2);
42324 if (!SWIG_IsOK(ecode2)) {
42325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42326 }
42327 arg2 = static_cast< int >(val2);
42328 {
42329 arg3 = wxString_in_helper(obj2);
42330 if (arg3 == NULL) SWIG_fail;
42331 temp3 = true;
42332 }
42333 {
42334 PyThreadState* __tstate = wxPyBeginAllowThreads();
42335 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42336 wxPyEndAllowThreads(__tstate);
42337 if (PyErr_Occurred()) SWIG_fail;
42338 }
42339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42340 {
42341 if (temp3)
42342 delete arg3;
42343 }
42344 return resultobj;
42345fail:
42346 {
42347 if (temp3)
42348 delete arg3;
42349 }
42350 return NULL;
42351}
42352
42353
42354SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42355 PyObject *resultobj = 0;
42356 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42357 wxString result;
42358 void *argp1 = 0 ;
42359 int res1 = 0 ;
42360 PyObject *swig_obj[1] ;
42361
42362 if (!args) SWIG_fail;
42363 swig_obj[0] = args;
42364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42365 if (!SWIG_IsOK(res1)) {
42366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42367 }
42368 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42369 {
42370 PyThreadState* __tstate = wxPyBeginAllowThreads();
42371 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42372 wxPyEndAllowThreads(__tstate);
42373 if (PyErr_Occurred()) SWIG_fail;
42374 }
42375 {
42376#if wxUSE_UNICODE
42377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42378#else
42379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42380#endif
42381 }
42382 return resultobj;
42383fail:
42384 return NULL;
42385}
42386
42387
42388SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42389 PyObject *resultobj = 0;
42390 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42391 wxString *arg2 = 0 ;
42392 void *argp1 = 0 ;
42393 int res1 = 0 ;
42394 bool temp2 = false ;
42395 PyObject * obj0 = 0 ;
42396 PyObject * obj1 = 0 ;
42397 char * kwnames[] = {
42398 (char *) "self",(char *) "url", NULL
42399 };
42400
42401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42403 if (!SWIG_IsOK(res1)) {
42404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42405 }
42406 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42407 {
42408 arg2 = wxString_in_helper(obj1);
42409 if (arg2 == NULL) SWIG_fail;
42410 temp2 = true;
42411 }
42412 {
42413 PyThreadState* __tstate = wxPyBeginAllowThreads();
42414 (arg1)->SetURL((wxString const &)*arg2);
42415 wxPyEndAllowThreads(__tstate);
42416 if (PyErr_Occurred()) SWIG_fail;
42417 }
42418 resultobj = SWIG_Py_Void();
42419 {
42420 if (temp2)
42421 delete arg2;
42422 }
42423 return resultobj;
42424fail:
42425 {
42426 if (temp2)
42427 delete arg2;
42428 }
42429 return NULL;
42430}
42431
42432
42433SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42434 PyObject *obj;
42435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42436 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42437 return SWIG_Py_Void();
42438}
42439
42440SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42441 return SWIG_Python_InitShadowInstance(args);
42442}
42443
b850e7f3
RD
42444SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42445 PyObject *resultobj = 0;
42446 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42447 wxWindow *arg2 = (wxWindow *) 0 ;
42448 int arg3 ;
42449 wxString const &arg4_defvalue = wxEmptyString ;
42450 wxString *arg4 = (wxString *) &arg4_defvalue ;
42451 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42452 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42453 wxSize const &arg6_defvalue = wxDefaultSize ;
42454 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42455 long arg7 = (long) 0 ;
42456 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42457 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42458 wxString const &arg9_defvalue = wxButtonNameStr ;
42459 wxString *arg9 = (wxString *) &arg9_defvalue ;
42460 bool result;
42461 void *argp1 = 0 ;
42462 int res1 = 0 ;
42463 void *argp2 = 0 ;
42464 int res2 = 0 ;
42465 int val3 ;
42466 int ecode3 = 0 ;
42467 bool temp4 = false ;
42468 wxPoint temp5 ;
42469 wxSize temp6 ;
42470 long val7 ;
42471 int ecode7 = 0 ;
42472 void *argp8 = 0 ;
42473 int res8 = 0 ;
42474 bool temp9 = false ;
42475 PyObject * obj0 = 0 ;
42476 PyObject * obj1 = 0 ;
42477 PyObject * obj2 = 0 ;
42478 PyObject * obj3 = 0 ;
42479 PyObject * obj4 = 0 ;
42480 PyObject * obj5 = 0 ;
42481 PyObject * obj6 = 0 ;
42482 PyObject * obj7 = 0 ;
42483 PyObject * obj8 = 0 ;
42484 char * kwnames[] = {
42485 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42486 };
42487
42488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42490 if (!SWIG_IsOK(res1)) {
42491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42492 }
42493 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42495 if (!SWIG_IsOK(res2)) {
42496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42497 }
42498 arg2 = reinterpret_cast< wxWindow * >(argp2);
42499 ecode3 = SWIG_AsVal_int(obj2, &val3);
42500 if (!SWIG_IsOK(ecode3)) {
42501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42502 }
42503 arg3 = static_cast< int >(val3);
42504 if (obj3) {
42505 {
42506 arg4 = wxString_in_helper(obj3);
42507 if (arg4 == NULL) SWIG_fail;
42508 temp4 = true;
42509 }
42510 }
42511 if (obj4) {
42512 {
42513 arg5 = &temp5;
42514 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42515 }
42516 }
42517 if (obj5) {
42518 {
42519 arg6 = &temp6;
42520 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42521 }
42522 }
42523 if (obj6) {
42524 ecode7 = SWIG_AsVal_long(obj6, &val7);
42525 if (!SWIG_IsOK(ecode7)) {
42526 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42527 }
42528 arg7 = static_cast< long >(val7);
42529 }
42530 if (obj7) {
42531 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42532 if (!SWIG_IsOK(res8)) {
42533 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42534 }
42535 if (!argp8) {
42536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42537 }
42538 arg8 = reinterpret_cast< wxValidator * >(argp8);
42539 }
42540 if (obj8) {
42541 {
42542 arg9 = wxString_in_helper(obj8);
42543 if (arg9 == NULL) SWIG_fail;
42544 temp9 = true;
42545 }
42546 }
42547 {
42548 PyThreadState* __tstate = wxPyBeginAllowThreads();
42549 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42550 wxPyEndAllowThreads(__tstate);
42551 if (PyErr_Occurred()) SWIG_fail;
42552 }
42553 {
42554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42555 }
42556 {
42557 if (temp4)
42558 delete arg4;
42559 }
42560 {
42561 if (temp9)
42562 delete arg9;
42563 }
42564 return resultobj;
42565fail:
42566 {
42567 if (temp4)
42568 delete arg4;
42569 }
42570 {
42571 if (temp9)
42572 delete arg9;
42573 }
42574 return NULL;
42575}
42576
42577
42578SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42579 PyObject *resultobj = 0;
42580 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42581 int arg2 ;
42582 void *argp1 = 0 ;
42583 int res1 = 0 ;
42584 int val2 ;
42585 int ecode2 = 0 ;
42586 PyObject * obj0 = 0 ;
42587 PyObject * obj1 = 0 ;
42588 char * kwnames[] = {
42589 (char *) "self",(char *) "newmargin", NULL
42590 };
42591
42592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42594 if (!SWIG_IsOK(res1)) {
42595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42596 }
42597 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42598 ecode2 = SWIG_AsVal_int(obj1, &val2);
42599 if (!SWIG_IsOK(ecode2)) {
42600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42601 }
42602 arg2 = static_cast< int >(val2);
42603 {
42604 PyThreadState* __tstate = wxPyBeginAllowThreads();
42605 (arg1)->SetInternalMargin(arg2);
42606 wxPyEndAllowThreads(__tstate);
42607 if (PyErr_Occurred()) SWIG_fail;
42608 }
42609 resultobj = SWIG_Py_Void();
42610 return resultobj;
42611fail:
42612 return NULL;
42613}
42614
42615
42616SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42617 PyObject *resultobj = 0;
42618 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42619 int result;
42620 void *argp1 = 0 ;
42621 int res1 = 0 ;
42622 PyObject *swig_obj[1] ;
42623
42624 if (!args) SWIG_fail;
42625 swig_obj[0] = args;
42626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42627 if (!SWIG_IsOK(res1)) {
42628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42629 }
42630 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42631 {
42632 PyThreadState* __tstate = wxPyBeginAllowThreads();
42633 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42634 wxPyEndAllowThreads(__tstate);
42635 if (PyErr_Occurred()) SWIG_fail;
42636 }
42637 resultobj = SWIG_From_int(static_cast< int >(result));
42638 return resultobj;
42639fail:
42640 return NULL;
42641}
42642
42643
42644SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42645 PyObject *resultobj = 0;
42646 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42647 int arg2 ;
42648 void *argp1 = 0 ;
42649 int res1 = 0 ;
42650 int val2 ;
42651 int ecode2 = 0 ;
42652 PyObject * obj0 = 0 ;
42653 PyObject * obj1 = 0 ;
42654 char * kwnames[] = {
42655 (char *) "self",(char *) "prop", NULL
42656 };
42657
42658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42660 if (!SWIG_IsOK(res1)) {
42661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42662 }
42663 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42664 ecode2 = SWIG_AsVal_int(obj1, &val2);
42665 if (!SWIG_IsOK(ecode2)) {
42666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42667 }
42668 arg2 = static_cast< int >(val2);
42669 {
42670 PyThreadState* __tstate = wxPyBeginAllowThreads();
42671 (arg1)->SetTextCtrlProportion(arg2);
42672 wxPyEndAllowThreads(__tstate);
42673 if (PyErr_Occurred()) SWIG_fail;
42674 }
42675 resultobj = SWIG_Py_Void();
42676 return resultobj;
42677fail:
42678 return NULL;
42679}
42680
42681
42682SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42683 PyObject *resultobj = 0;
42684 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42685 int result;
42686 void *argp1 = 0 ;
42687 int res1 = 0 ;
42688 PyObject *swig_obj[1] ;
42689
42690 if (!args) SWIG_fail;
42691 swig_obj[0] = args;
42692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42693 if (!SWIG_IsOK(res1)) {
42694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42695 }
42696 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42697 {
42698 PyThreadState* __tstate = wxPyBeginAllowThreads();
42699 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42700 wxPyEndAllowThreads(__tstate);
42701 if (PyErr_Occurred()) SWIG_fail;
42702 }
42703 resultobj = SWIG_From_int(static_cast< int >(result));
42704 return resultobj;
42705fail:
42706 return NULL;
42707}
42708
42709
1eeb270e
RD
42710SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42711 PyObject *resultobj = 0;
42712 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42713 int arg2 ;
42714 void *argp1 = 0 ;
42715 int res1 = 0 ;
42716 int val2 ;
42717 int ecode2 = 0 ;
42718 PyObject * obj0 = 0 ;
42719 PyObject * obj1 = 0 ;
42720 char * kwnames[] = {
42721 (char *) "self",(char *) "prop", NULL
42722 };
42723
42724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42726 if (!SWIG_IsOK(res1)) {
42727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42728 }
42729 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42730 ecode2 = SWIG_AsVal_int(obj1, &val2);
42731 if (!SWIG_IsOK(ecode2)) {
42732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42733 }
42734 arg2 = static_cast< int >(val2);
42735 {
42736 PyThreadState* __tstate = wxPyBeginAllowThreads();
42737 (arg1)->SetPickerCtrlProportion(arg2);
42738 wxPyEndAllowThreads(__tstate);
42739 if (PyErr_Occurred()) SWIG_fail;
42740 }
42741 resultobj = SWIG_Py_Void();
42742 return resultobj;
42743fail:
42744 return NULL;
42745}
42746
42747
42748SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42749 PyObject *resultobj = 0;
42750 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42751 int result;
42752 void *argp1 = 0 ;
42753 int res1 = 0 ;
42754 PyObject *swig_obj[1] ;
42755
42756 if (!args) SWIG_fail;
42757 swig_obj[0] = args;
42758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42759 if (!SWIG_IsOK(res1)) {
42760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42761 }
42762 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42763 {
42764 PyThreadState* __tstate = wxPyBeginAllowThreads();
42765 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42766 wxPyEndAllowThreads(__tstate);
42767 if (PyErr_Occurred()) SWIG_fail;
42768 }
42769 resultobj = SWIG_From_int(static_cast< int >(result));
42770 return resultobj;
42771fail:
42772 return NULL;
42773}
42774
42775
b02396e8
RD
42776SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42777 PyObject *resultobj = 0;
42778 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42779 bool result;
42780 void *argp1 = 0 ;
42781 int res1 = 0 ;
42782 PyObject *swig_obj[1] ;
42783
42784 if (!args) SWIG_fail;
42785 swig_obj[0] = args;
42786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42787 if (!SWIG_IsOK(res1)) {
42788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42789 }
42790 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42791 {
42792 PyThreadState* __tstate = wxPyBeginAllowThreads();
42793 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42794 wxPyEndAllowThreads(__tstate);
42795 if (PyErr_Occurred()) SWIG_fail;
42796 }
42797 {
42798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42799 }
42800 return resultobj;
42801fail:
42802 return NULL;
42803}
42804
42805
42806SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42807 PyObject *resultobj = 0;
42808 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42809 bool arg2 = (bool) true ;
42810 void *argp1 = 0 ;
42811 int res1 = 0 ;
42812 bool val2 ;
42813 int ecode2 = 0 ;
42814 PyObject * obj0 = 0 ;
42815 PyObject * obj1 = 0 ;
42816 char * kwnames[] = {
42817 (char *) "self",(char *) "grow", NULL
42818 };
42819
42820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42822 if (!SWIG_IsOK(res1)) {
42823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42824 }
42825 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42826 if (obj1) {
42827 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42828 if (!SWIG_IsOK(ecode2)) {
42829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42830 }
42831 arg2 = static_cast< bool >(val2);
42832 }
42833 {
42834 PyThreadState* __tstate = wxPyBeginAllowThreads();
42835 (arg1)->SetTextCtrlGrowable(arg2);
42836 wxPyEndAllowThreads(__tstate);
42837 if (PyErr_Occurred()) SWIG_fail;
42838 }
42839 resultobj = SWIG_Py_Void();
42840 return resultobj;
42841fail:
42842 return NULL;
42843}
42844
42845
42846SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42847 PyObject *resultobj = 0;
42848 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42849 bool result;
42850 void *argp1 = 0 ;
42851 int res1 = 0 ;
42852 PyObject *swig_obj[1] ;
42853
42854 if (!args) SWIG_fail;
42855 swig_obj[0] = args;
42856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42857 if (!SWIG_IsOK(res1)) {
42858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42859 }
42860 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42861 {
42862 PyThreadState* __tstate = wxPyBeginAllowThreads();
42863 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42864 wxPyEndAllowThreads(__tstate);
42865 if (PyErr_Occurred()) SWIG_fail;
42866 }
42867 {
42868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42869 }
42870 return resultobj;
42871fail:
42872 return NULL;
42873}
42874
42875
42876SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42877 PyObject *resultobj = 0;
42878 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42879 bool arg2 = (bool) true ;
42880 void *argp1 = 0 ;
42881 int res1 = 0 ;
42882 bool val2 ;
42883 int ecode2 = 0 ;
42884 PyObject * obj0 = 0 ;
42885 PyObject * obj1 = 0 ;
42886 char * kwnames[] = {
42887 (char *) "self",(char *) "grow", NULL
42888 };
42889
42890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42892 if (!SWIG_IsOK(res1)) {
42893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42894 }
42895 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42896 if (obj1) {
42897 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42898 if (!SWIG_IsOK(ecode2)) {
42899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42900 }
42901 arg2 = static_cast< bool >(val2);
42902 }
42903 {
42904 PyThreadState* __tstate = wxPyBeginAllowThreads();
42905 (arg1)->SetPickerCtrlGrowable(arg2);
42906 wxPyEndAllowThreads(__tstate);
42907 if (PyErr_Occurred()) SWIG_fail;
42908 }
42909 resultobj = SWIG_Py_Void();
42910 return resultobj;
42911fail:
42912 return NULL;
42913}
42914
42915
b850e7f3
RD
42916SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42917 PyObject *resultobj = 0;
42918 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42919 bool result;
42920 void *argp1 = 0 ;
42921 int res1 = 0 ;
42922 PyObject *swig_obj[1] ;
42923
42924 if (!args) SWIG_fail;
42925 swig_obj[0] = args;
42926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42927 if (!SWIG_IsOK(res1)) {
42928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42929 }
42930 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42931 {
42932 PyThreadState* __tstate = wxPyBeginAllowThreads();
42933 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42934 wxPyEndAllowThreads(__tstate);
42935 if (PyErr_Occurred()) SWIG_fail;
42936 }
42937 {
42938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42939 }
42940 return resultobj;
42941fail:
42942 return NULL;
42943}
42944
42945
42946SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42947 PyObject *resultobj = 0;
42948 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42949 wxTextCtrl *result = 0 ;
42950 void *argp1 = 0 ;
42951 int res1 = 0 ;
42952 PyObject *swig_obj[1] ;
42953
42954 if (!args) SWIG_fail;
42955 swig_obj[0] = args;
42956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42957 if (!SWIG_IsOK(res1)) {
42958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42959 }
42960 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42961 {
42962 PyThreadState* __tstate = wxPyBeginAllowThreads();
42963 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42964 wxPyEndAllowThreads(__tstate);
42965 if (PyErr_Occurred()) SWIG_fail;
42966 }
42967 {
42968 resultobj = wxPyMake_wxObject(result, 0);
42969 }
42970 return resultobj;
42971fail:
42972 return NULL;
42973}
42974
42975
42976SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42977 PyObject *resultobj = 0;
42978 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42979 wxControl *result = 0 ;
42980 void *argp1 = 0 ;
42981 int res1 = 0 ;
42982 PyObject *swig_obj[1] ;
42983
42984 if (!args) SWIG_fail;
42985 swig_obj[0] = args;
42986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42987 if (!SWIG_IsOK(res1)) {
42988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42989 }
42990 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42991 {
42992 PyThreadState* __tstate = wxPyBeginAllowThreads();
42993 result = (wxControl *)(arg1)->GetPickerCtrl();
42994 wxPyEndAllowThreads(__tstate);
42995 if (PyErr_Occurred()) SWIG_fail;
42996 }
42997 {
42998 resultobj = wxPyMake_wxObject(result, 0);
42999 }
43000 return resultobj;
43001fail:
43002 return NULL;
43003}
43004
43005
43006SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43007 PyObject *obj;
43008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43009 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43010 return SWIG_Py_Void();
43011}
43012
43013SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43014 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43015 return 1;
43016}
43017
43018
43019SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43020 PyObject *pyobj = 0;
43021
43022 {
43023#if wxUSE_UNICODE
43024 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43025#else
43026 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43027#endif
43028 }
43029 return pyobj;
43030}
43031
43032
43033SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43034 PyObject *resultobj = 0;
43035 wxWindow *arg1 = (wxWindow *) 0 ;
43036 int arg2 = (int) -1 ;
43037 wxColour const &arg3_defvalue = *wxBLACK ;
43038 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43039 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43040 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43041 wxSize const &arg5_defvalue = wxDefaultSize ;
43042 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43043 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43044 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43045 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43046 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43047 wxString *arg8 = (wxString *) &arg8_defvalue ;
43048 wxColourPickerCtrl *result = 0 ;
43049 void *argp1 = 0 ;
43050 int res1 = 0 ;
43051 int val2 ;
43052 int ecode2 = 0 ;
43053 wxColour temp3 ;
43054 wxPoint temp4 ;
43055 wxSize temp5 ;
43056 long val6 ;
43057 int ecode6 = 0 ;
43058 void *argp7 = 0 ;
43059 int res7 = 0 ;
43060 bool temp8 = false ;
43061 PyObject * obj0 = 0 ;
43062 PyObject * obj1 = 0 ;
43063 PyObject * obj2 = 0 ;
43064 PyObject * obj3 = 0 ;
43065 PyObject * obj4 = 0 ;
43066 PyObject * obj5 = 0 ;
43067 PyObject * obj6 = 0 ;
43068 PyObject * obj7 = 0 ;
43069 char * kwnames[] = {
43070 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43071 };
43072
43073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43075 if (!SWIG_IsOK(res1)) {
43076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43077 }
43078 arg1 = reinterpret_cast< wxWindow * >(argp1);
43079 if (obj1) {
43080 ecode2 = SWIG_AsVal_int(obj1, &val2);
43081 if (!SWIG_IsOK(ecode2)) {
43082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43083 }
43084 arg2 = static_cast< int >(val2);
43085 }
43086 if (obj2) {
43087 {
43088 arg3 = &temp3;
43089 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43090 }
43091 }
43092 if (obj3) {
43093 {
43094 arg4 = &temp4;
43095 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43096 }
43097 }
43098 if (obj4) {
43099 {
43100 arg5 = &temp5;
43101 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43102 }
43103 }
43104 if (obj5) {
43105 ecode6 = SWIG_AsVal_long(obj5, &val6);
43106 if (!SWIG_IsOK(ecode6)) {
43107 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43108 }
43109 arg6 = static_cast< long >(val6);
43110 }
43111 if (obj6) {
43112 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43113 if (!SWIG_IsOK(res7)) {
43114 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43115 }
43116 if (!argp7) {
43117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43118 }
43119 arg7 = reinterpret_cast< wxValidator * >(argp7);
43120 }
43121 if (obj7) {
43122 {
43123 arg8 = wxString_in_helper(obj7);
43124 if (arg8 == NULL) SWIG_fail;
43125 temp8 = true;
43126 }
43127 }
43128 {
43129 if (!wxPyCheckForApp()) SWIG_fail;
43130 PyThreadState* __tstate = wxPyBeginAllowThreads();
43131 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43132 wxPyEndAllowThreads(__tstate);
43133 if (PyErr_Occurred()) SWIG_fail;
43134 }
43135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43136 {
43137 if (temp8)
43138 delete arg8;
43139 }
43140 return resultobj;
43141fail:
43142 {
43143 if (temp8)
43144 delete arg8;
43145 }
43146 return NULL;
43147}
43148
43149
43150SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43151 PyObject *resultobj = 0;
43152 wxColourPickerCtrl *result = 0 ;
43153
43154 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43155 {
43156 if (!wxPyCheckForApp()) SWIG_fail;
43157 PyThreadState* __tstate = wxPyBeginAllowThreads();
43158 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43159 wxPyEndAllowThreads(__tstate);
43160 if (PyErr_Occurred()) SWIG_fail;
43161 }
43162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43163 return resultobj;
43164fail:
43165 return NULL;
43166}
43167
43168
43169SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43170 PyObject *resultobj = 0;
43171 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43172 wxWindow *arg2 = (wxWindow *) 0 ;
43173 int arg3 ;
43174 wxColour const &arg4_defvalue = *wxBLACK ;
43175 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43176 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43177 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43178 wxSize const &arg6_defvalue = wxDefaultSize ;
43179 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43180 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43181 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43182 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43183 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43184 wxString *arg9 = (wxString *) &arg9_defvalue ;
43185 bool result;
43186 void *argp1 = 0 ;
43187 int res1 = 0 ;
43188 void *argp2 = 0 ;
43189 int res2 = 0 ;
43190 int val3 ;
43191 int ecode3 = 0 ;
43192 wxColour temp4 ;
43193 wxPoint temp5 ;
43194 wxSize temp6 ;
43195 long val7 ;
43196 int ecode7 = 0 ;
43197 void *argp8 = 0 ;
43198 int res8 = 0 ;
43199 bool temp9 = false ;
43200 PyObject * obj0 = 0 ;
43201 PyObject * obj1 = 0 ;
43202 PyObject * obj2 = 0 ;
43203 PyObject * obj3 = 0 ;
43204 PyObject * obj4 = 0 ;
43205 PyObject * obj5 = 0 ;
43206 PyObject * obj6 = 0 ;
43207 PyObject * obj7 = 0 ;
43208 PyObject * obj8 = 0 ;
43209 char * kwnames[] = {
43210 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43211 };
43212
43213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43215 if (!SWIG_IsOK(res1)) {
43216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43217 }
43218 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43220 if (!SWIG_IsOK(res2)) {
43221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43222 }
43223 arg2 = reinterpret_cast< wxWindow * >(argp2);
43224 ecode3 = SWIG_AsVal_int(obj2, &val3);
43225 if (!SWIG_IsOK(ecode3)) {
43226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43227 }
43228 arg3 = static_cast< int >(val3);
43229 if (obj3) {
43230 {
43231 arg4 = &temp4;
43232 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43233 }
43234 }
43235 if (obj4) {
43236 {
43237 arg5 = &temp5;
43238 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43239 }
43240 }
43241 if (obj5) {
43242 {
43243 arg6 = &temp6;
43244 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43245 }
43246 }
43247 if (obj6) {
43248 ecode7 = SWIG_AsVal_long(obj6, &val7);
43249 if (!SWIG_IsOK(ecode7)) {
43250 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43251 }
43252 arg7 = static_cast< long >(val7);
43253 }
43254 if (obj7) {
43255 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43256 if (!SWIG_IsOK(res8)) {
43257 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43258 }
43259 if (!argp8) {
43260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43261 }
43262 arg8 = reinterpret_cast< wxValidator * >(argp8);
43263 }
43264 if (obj8) {
43265 {
43266 arg9 = wxString_in_helper(obj8);
43267 if (arg9 == NULL) SWIG_fail;
43268 temp9 = true;
43269 }
43270 }
43271 {
43272 PyThreadState* __tstate = wxPyBeginAllowThreads();
43273 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43274 wxPyEndAllowThreads(__tstate);
43275 if (PyErr_Occurred()) SWIG_fail;
43276 }
43277 {
43278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43279 }
43280 {
43281 if (temp9)
43282 delete arg9;
43283 }
43284 return resultobj;
43285fail:
43286 {
43287 if (temp9)
43288 delete arg9;
43289 }
43290 return NULL;
43291}
43292
43293
43294SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43295 PyObject *resultobj = 0;
43296 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43297 wxColour result;
43298 void *argp1 = 0 ;
43299 int res1 = 0 ;
43300 PyObject *swig_obj[1] ;
43301
43302 if (!args) SWIG_fail;
43303 swig_obj[0] = args;
43304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43305 if (!SWIG_IsOK(res1)) {
43306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43307 }
43308 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43309 {
43310 PyThreadState* __tstate = wxPyBeginAllowThreads();
43311 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43312 wxPyEndAllowThreads(__tstate);
43313 if (PyErr_Occurred()) SWIG_fail;
43314 }
43315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43316 return resultobj;
43317fail:
43318 return NULL;
43319}
43320
43321
43322SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43323 PyObject *resultobj = 0;
43324 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43325 wxColour *arg2 = 0 ;
43326 void *argp1 = 0 ;
43327 int res1 = 0 ;
43328 wxColour temp2 ;
43329 PyObject * obj0 = 0 ;
43330 PyObject * obj1 = 0 ;
43331 char * kwnames[] = {
43332 (char *) "self",(char *) "col", NULL
43333 };
43334
43335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43337 if (!SWIG_IsOK(res1)) {
43338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43339 }
43340 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43341 {
43342 arg2 = &temp2;
43343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43344 }
43345 {
43346 PyThreadState* __tstate = wxPyBeginAllowThreads();
43347 (arg1)->SetColour((wxColour const &)*arg2);
43348 wxPyEndAllowThreads(__tstate);
43349 if (PyErr_Occurred()) SWIG_fail;
43350 }
43351 resultobj = SWIG_Py_Void();
43352 return resultobj;
43353fail:
43354 return NULL;
43355}
43356
43357
43358SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43359 PyObject *obj;
43360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43361 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43362 return SWIG_Py_Void();
43363}
43364
43365SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43366 return SWIG_Python_InitShadowInstance(args);
43367}
43368
43369SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43370 PyObject *resultobj = 0;
43371 wxObject *arg1 = (wxObject *) 0 ;
43372 int arg2 ;
43373 wxColour *arg3 = 0 ;
43374 wxColourPickerEvent *result = 0 ;
43375 void *argp1 = 0 ;
43376 int res1 = 0 ;
43377 int val2 ;
43378 int ecode2 = 0 ;
43379 wxColour temp3 ;
43380 PyObject * obj0 = 0 ;
43381 PyObject * obj1 = 0 ;
43382 PyObject * obj2 = 0 ;
43383 char * kwnames[] = {
43384 (char *) "generator",(char *) "id",(char *) "col", NULL
43385 };
43386
43387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43389 if (!SWIG_IsOK(res1)) {
43390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43391 }
43392 arg1 = reinterpret_cast< wxObject * >(argp1);
43393 ecode2 = SWIG_AsVal_int(obj1, &val2);
43394 if (!SWIG_IsOK(ecode2)) {
43395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43396 }
43397 arg2 = static_cast< int >(val2);
43398 {
43399 arg3 = &temp3;
43400 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43401 }
43402 {
43403 PyThreadState* __tstate = wxPyBeginAllowThreads();
43404 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43405 wxPyEndAllowThreads(__tstate);
43406 if (PyErr_Occurred()) SWIG_fail;
43407 }
43408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43409 return resultobj;
43410fail:
43411 return NULL;
43412}
43413
43414
43415SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43416 PyObject *resultobj = 0;
43417 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43418 wxColour result;
43419 void *argp1 = 0 ;
43420 int res1 = 0 ;
43421 PyObject *swig_obj[1] ;
43422
43423 if (!args) SWIG_fail;
43424 swig_obj[0] = args;
43425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43426 if (!SWIG_IsOK(res1)) {
43427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43428 }
43429 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43430 {
43431 PyThreadState* __tstate = wxPyBeginAllowThreads();
43432 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43433 wxPyEndAllowThreads(__tstate);
43434 if (PyErr_Occurred()) SWIG_fail;
43435 }
43436 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43437 return resultobj;
43438fail:
43439 return NULL;
43440}
43441
43442
43443SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43444 PyObject *resultobj = 0;
43445 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43446 wxColour *arg2 = 0 ;
43447 void *argp1 = 0 ;
43448 int res1 = 0 ;
43449 wxColour temp2 ;
43450 PyObject * obj0 = 0 ;
43451 PyObject * obj1 = 0 ;
43452 char * kwnames[] = {
43453 (char *) "self",(char *) "c", NULL
43454 };
43455
43456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43458 if (!SWIG_IsOK(res1)) {
43459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43460 }
43461 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43462 {
43463 arg2 = &temp2;
43464 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43465 }
43466 {
43467 PyThreadState* __tstate = wxPyBeginAllowThreads();
43468 (arg1)->SetColour((wxColour const &)*arg2);
43469 wxPyEndAllowThreads(__tstate);
43470 if (PyErr_Occurred()) SWIG_fail;
43471 }
43472 resultobj = SWIG_Py_Void();
43473 return resultobj;
43474fail:
43475 return NULL;
43476}
43477
43478
43479SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43480 PyObject *obj;
43481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43482 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43483 return SWIG_Py_Void();
43484}
43485
43486SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43487 return SWIG_Python_InitShadowInstance(args);
43488}
43489
43490SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43491 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43492 return 1;
43493}
43494
43495
43496SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43497 PyObject *pyobj = 0;
43498
43499 {
43500#if wxUSE_UNICODE
43501 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43502#else
43503 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43504#endif
43505 }
43506 return pyobj;
43507}
43508
43509
43510SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43511 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43512 return 1;
43513}
43514
43515
43516SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43517 PyObject *pyobj = 0;
43518
43519 {
43520#if wxUSE_UNICODE
43521 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43522#else
43523 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43524#endif
43525 }
43526 return pyobj;
43527}
43528
43529
43530SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43531 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43532 return 1;
43533}
43534
43535
43536SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43537 PyObject *pyobj = 0;
43538
43539 {
43540#if wxUSE_UNICODE
43541 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43542#else
43543 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43544#endif
43545 }
43546 return pyobj;
43547}
43548
43549
43550SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43551 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43552 return 1;
43553}
43554
43555
43556SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43557 PyObject *pyobj = 0;
43558
43559 {
43560#if wxUSE_UNICODE
43561 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43562#else
43563 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43564#endif
43565 }
43566 return pyobj;
43567}
43568
43569
43570SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43571 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43572 return 1;
43573}
43574
43575
43576SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43577 PyObject *pyobj = 0;
43578
43579 {
43580#if wxUSE_UNICODE
43581 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43582#else
43583 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43584#endif
43585 }
43586 return pyobj;
43587}
43588
43589
43590SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43591 PyObject *resultobj = 0;
43592 wxWindow *arg1 = (wxWindow *) 0 ;
43593 int arg2 = (int) -1 ;
43594 wxString const &arg3_defvalue = wxPyEmptyString ;
43595 wxString *arg3 = (wxString *) &arg3_defvalue ;
43596 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43597 wxString *arg4 = (wxString *) &arg4_defvalue ;
43598 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43599 wxString *arg5 = (wxString *) &arg5_defvalue ;
43600 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43601 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43602 wxSize const &arg7_defvalue = wxDefaultSize ;
43603 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43604 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43605 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43606 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43607 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43608 wxString *arg10 = (wxString *) &arg10_defvalue ;
43609 wxFilePickerCtrl *result = 0 ;
43610 void *argp1 = 0 ;
43611 int res1 = 0 ;
43612 int val2 ;
43613 int ecode2 = 0 ;
43614 bool temp3 = false ;
43615 bool temp4 = false ;
43616 bool temp5 = false ;
43617 wxPoint temp6 ;
43618 wxSize temp7 ;
43619 long val8 ;
43620 int ecode8 = 0 ;
43621 void *argp9 = 0 ;
43622 int res9 = 0 ;
43623 bool temp10 = false ;
43624 PyObject * obj0 = 0 ;
43625 PyObject * obj1 = 0 ;
43626 PyObject * obj2 = 0 ;
43627 PyObject * obj3 = 0 ;
43628 PyObject * obj4 = 0 ;
43629 PyObject * obj5 = 0 ;
43630 PyObject * obj6 = 0 ;
43631 PyObject * obj7 = 0 ;
43632 PyObject * obj8 = 0 ;
43633 PyObject * obj9 = 0 ;
43634 char * kwnames[] = {
43635 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43636 };
43637
43638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43640 if (!SWIG_IsOK(res1)) {
43641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43642 }
43643 arg1 = reinterpret_cast< wxWindow * >(argp1);
43644 if (obj1) {
43645 ecode2 = SWIG_AsVal_int(obj1, &val2);
43646 if (!SWIG_IsOK(ecode2)) {
43647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43648 }
43649 arg2 = static_cast< int >(val2);
43650 }
43651 if (obj2) {
43652 {
43653 arg3 = wxString_in_helper(obj2);
43654 if (arg3 == NULL) SWIG_fail;
43655 temp3 = true;
43656 }
43657 }
43658 if (obj3) {
43659 {
43660 arg4 = wxString_in_helper(obj3);
43661 if (arg4 == NULL) SWIG_fail;
43662 temp4 = true;
43663 }
43664 }
43665 if (obj4) {
43666 {
43667 arg5 = wxString_in_helper(obj4);
43668 if (arg5 == NULL) SWIG_fail;
43669 temp5 = true;
43670 }
43671 }
43672 if (obj5) {
43673 {
43674 arg6 = &temp6;
43675 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43676 }
43677 }
43678 if (obj6) {
43679 {
43680 arg7 = &temp7;
43681 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43682 }
43683 }
43684 if (obj7) {
43685 ecode8 = SWIG_AsVal_long(obj7, &val8);
43686 if (!SWIG_IsOK(ecode8)) {
43687 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43688 }
43689 arg8 = static_cast< long >(val8);
43690 }
43691 if (obj8) {
43692 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43693 if (!SWIG_IsOK(res9)) {
43694 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43695 }
43696 if (!argp9) {
43697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43698 }
43699 arg9 = reinterpret_cast< wxValidator * >(argp9);
43700 }
43701 if (obj9) {
43702 {
43703 arg10 = wxString_in_helper(obj9);
43704 if (arg10 == NULL) SWIG_fail;
43705 temp10 = true;
43706 }
43707 }
43708 {
43709 if (!wxPyCheckForApp()) SWIG_fail;
43710 PyThreadState* __tstate = wxPyBeginAllowThreads();
43711 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);
43712 wxPyEndAllowThreads(__tstate);
43713 if (PyErr_Occurred()) SWIG_fail;
43714 }
43715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43716 {
43717 if (temp3)
43718 delete arg3;
43719 }
43720 {
43721 if (temp4)
43722 delete arg4;
43723 }
43724 {
43725 if (temp5)
43726 delete arg5;
43727 }
43728 {
43729 if (temp10)
43730 delete arg10;
43731 }
43732 return resultobj;
43733fail:
43734 {
43735 if (temp3)
43736 delete arg3;
43737 }
43738 {
43739 if (temp4)
43740 delete arg4;
43741 }
43742 {
43743 if (temp5)
43744 delete arg5;
43745 }
43746 {
43747 if (temp10)
43748 delete arg10;
43749 }
43750 return NULL;
43751}
43752
43753
43754SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43755 PyObject *resultobj = 0;
43756 wxFilePickerCtrl *result = 0 ;
43757
43758 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43759 {
43760 if (!wxPyCheckForApp()) SWIG_fail;
43761 PyThreadState* __tstate = wxPyBeginAllowThreads();
43762 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43763 wxPyEndAllowThreads(__tstate);
43764 if (PyErr_Occurred()) SWIG_fail;
43765 }
43766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43767 return resultobj;
43768fail:
43769 return NULL;
43770}
43771
43772
43773SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43774 PyObject *resultobj = 0;
43775 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43776 wxWindow *arg2 = (wxWindow *) 0 ;
43777 int arg3 = (int) -1 ;
43778 wxString const &arg4_defvalue = wxPyEmptyString ;
43779 wxString *arg4 = (wxString *) &arg4_defvalue ;
43780 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43781 wxString *arg5 = (wxString *) &arg5_defvalue ;
43782 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43783 wxString *arg6 = (wxString *) &arg6_defvalue ;
43784 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43785 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43786 wxSize const &arg8_defvalue = wxDefaultSize ;
43787 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43788 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43789 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43790 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43791 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43792 wxString *arg11 = (wxString *) &arg11_defvalue ;
43793 bool result;
43794 void *argp1 = 0 ;
43795 int res1 = 0 ;
43796 void *argp2 = 0 ;
43797 int res2 = 0 ;
43798 int val3 ;
43799 int ecode3 = 0 ;
43800 bool temp4 = false ;
43801 bool temp5 = false ;
43802 bool temp6 = false ;
43803 wxPoint temp7 ;
43804 wxSize temp8 ;
43805 long val9 ;
43806 int ecode9 = 0 ;
43807 void *argp10 = 0 ;
43808 int res10 = 0 ;
43809 bool temp11 = false ;
43810 PyObject * obj0 = 0 ;
43811 PyObject * obj1 = 0 ;
43812 PyObject * obj2 = 0 ;
43813 PyObject * obj3 = 0 ;
43814 PyObject * obj4 = 0 ;
43815 PyObject * obj5 = 0 ;
43816 PyObject * obj6 = 0 ;
43817 PyObject * obj7 = 0 ;
43818 PyObject * obj8 = 0 ;
43819 PyObject * obj9 = 0 ;
43820 PyObject * obj10 = 0 ;
43821 char * kwnames[] = {
43822 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43823 };
43824
43825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43827 if (!SWIG_IsOK(res1)) {
43828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43829 }
43830 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43832 if (!SWIG_IsOK(res2)) {
43833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43834 }
43835 arg2 = reinterpret_cast< wxWindow * >(argp2);
43836 if (obj2) {
43837 ecode3 = SWIG_AsVal_int(obj2, &val3);
43838 if (!SWIG_IsOK(ecode3)) {
43839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43840 }
43841 arg3 = static_cast< int >(val3);
43842 }
43843 if (obj3) {
43844 {
43845 arg4 = wxString_in_helper(obj3);
43846 if (arg4 == NULL) SWIG_fail;
43847 temp4 = true;
43848 }
43849 }
43850 if (obj4) {
43851 {
43852 arg5 = wxString_in_helper(obj4);
43853 if (arg5 == NULL) SWIG_fail;
43854 temp5 = true;
43855 }
43856 }
43857 if (obj5) {
43858 {
43859 arg6 = wxString_in_helper(obj5);
43860 if (arg6 == NULL) SWIG_fail;
43861 temp6 = true;
43862 }
43863 }
43864 if (obj6) {
43865 {
43866 arg7 = &temp7;
43867 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43868 }
43869 }
43870 if (obj7) {
43871 {
43872 arg8 = &temp8;
43873 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43874 }
43875 }
43876 if (obj8) {
43877 ecode9 = SWIG_AsVal_long(obj8, &val9);
43878 if (!SWIG_IsOK(ecode9)) {
43879 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43880 }
43881 arg9 = static_cast< long >(val9);
43882 }
43883 if (obj9) {
43884 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43885 if (!SWIG_IsOK(res10)) {
43886 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43887 }
43888 if (!argp10) {
43889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43890 }
43891 arg10 = reinterpret_cast< wxValidator * >(argp10);
43892 }
43893 if (obj10) {
43894 {
43895 arg11 = wxString_in_helper(obj10);
43896 if (arg11 == NULL) SWIG_fail;
43897 temp11 = true;
43898 }
43899 }
43900 {
43901 PyThreadState* __tstate = wxPyBeginAllowThreads();
43902 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);
43903 wxPyEndAllowThreads(__tstate);
43904 if (PyErr_Occurred()) SWIG_fail;
43905 }
43906 {
43907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43908 }
43909 {
43910 if (temp4)
43911 delete arg4;
43912 }
43913 {
43914 if (temp5)
43915 delete arg5;
43916 }
43917 {
43918 if (temp6)
43919 delete arg6;
43920 }
43921 {
43922 if (temp11)
43923 delete arg11;
43924 }
43925 return resultobj;
43926fail:
43927 {
43928 if (temp4)
43929 delete arg4;
43930 }
43931 {
43932 if (temp5)
43933 delete arg5;
43934 }
43935 {
43936 if (temp6)
43937 delete arg6;
43938 }
43939 {
43940 if (temp11)
43941 delete arg11;
43942 }
43943 return NULL;
43944}
43945
43946
43947SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43948 PyObject *resultobj = 0;
43949 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43950 wxString result;
43951 void *argp1 = 0 ;
43952 int res1 = 0 ;
43953 PyObject *swig_obj[1] ;
43954
43955 if (!args) SWIG_fail;
43956 swig_obj[0] = args;
43957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43958 if (!SWIG_IsOK(res1)) {
43959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43960 }
43961 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43962 {
43963 PyThreadState* __tstate = wxPyBeginAllowThreads();
43964 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43965 wxPyEndAllowThreads(__tstate);
43966 if (PyErr_Occurred()) SWIG_fail;
43967 }
43968 {
43969#if wxUSE_UNICODE
43970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43971#else
43972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43973#endif
43974 }
43975 return resultobj;
43976fail:
43977 return NULL;
43978}
43979
43980
43981SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43982 PyObject *resultobj = 0;
43983 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43984 wxString *arg2 = 0 ;
43985 void *argp1 = 0 ;
43986 int res1 = 0 ;
43987 bool temp2 = false ;
43988 PyObject * obj0 = 0 ;
43989 PyObject * obj1 = 0 ;
43990 char * kwnames[] = {
43991 (char *) "self",(char *) "str", NULL
43992 };
43993
43994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43996 if (!SWIG_IsOK(res1)) {
43997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43998 }
43999 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44000 {
44001 arg2 = wxString_in_helper(obj1);
44002 if (arg2 == NULL) SWIG_fail;
44003 temp2 = true;
44004 }
44005 {
44006 PyThreadState* __tstate = wxPyBeginAllowThreads();
44007 (arg1)->SetPath((wxString const &)*arg2);
44008 wxPyEndAllowThreads(__tstate);
44009 if (PyErr_Occurred()) SWIG_fail;
44010 }
44011 resultobj = SWIG_Py_Void();
44012 {
44013 if (temp2)
44014 delete arg2;
44015 }
44016 return resultobj;
44017fail:
44018 {
44019 if (temp2)
44020 delete arg2;
44021 }
44022 return NULL;
44023}
44024
44025
b02396e8
RD
44026SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44027 PyObject *resultobj = 0;
44028 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44029 wxString *arg2 = 0 ;
44030 bool result;
44031 void *argp1 = 0 ;
44032 int res1 = 0 ;
44033 bool temp2 = false ;
44034 PyObject * obj0 = 0 ;
44035 PyObject * obj1 = 0 ;
44036 char * kwnames[] = {
44037 (char *) "self",(char *) "path", NULL
44038 };
44039
44040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44042 if (!SWIG_IsOK(res1)) {
44043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44044 }
44045 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44046 {
44047 arg2 = wxString_in_helper(obj1);
44048 if (arg2 == NULL) SWIG_fail;
44049 temp2 = true;
44050 }
44051 {
44052 PyThreadState* __tstate = wxPyBeginAllowThreads();
44053 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44054 wxPyEndAllowThreads(__tstate);
44055 if (PyErr_Occurred()) SWIG_fail;
44056 }
44057 {
44058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44059 }
44060 {
44061 if (temp2)
44062 delete arg2;
44063 }
44064 return resultobj;
44065fail:
44066 {
44067 if (temp2)
44068 delete arg2;
44069 }
44070 return NULL;
44071}
44072
44073
44074SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44075 PyObject *resultobj = 0;
44076 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44077 wxString result;
44078 void *argp1 = 0 ;
44079 int res1 = 0 ;
44080 PyObject *swig_obj[1] ;
44081
44082 if (!args) SWIG_fail;
44083 swig_obj[0] = args;
44084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44085 if (!SWIG_IsOK(res1)) {
44086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44087 }
44088 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44089 {
44090 PyThreadState* __tstate = wxPyBeginAllowThreads();
44091 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44092 wxPyEndAllowThreads(__tstate);
44093 if (PyErr_Occurred()) SWIG_fail;
44094 }
44095 {
44096#if wxUSE_UNICODE
44097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44098#else
44099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44100#endif
44101 }
44102 return resultobj;
44103fail:
44104 return NULL;
44105}
44106
44107
b850e7f3
RD
44108SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44109 PyObject *obj;
44110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44111 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44112 return SWIG_Py_Void();
44113}
44114
44115SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44116 return SWIG_Python_InitShadowInstance(args);
44117}
44118
44119SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44120 PyObject *resultobj = 0;
44121 wxWindow *arg1 = (wxWindow *) 0 ;
44122 int arg2 = (int) -1 ;
44123 wxString const &arg3_defvalue = wxPyEmptyString ;
44124 wxString *arg3 = (wxString *) &arg3_defvalue ;
44125 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44126 wxString *arg4 = (wxString *) &arg4_defvalue ;
44127 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44128 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44129 wxSize const &arg6_defvalue = wxDefaultSize ;
44130 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44131 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44132 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44133 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44134 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44135 wxString *arg9 = (wxString *) &arg9_defvalue ;
44136 wxDirPickerCtrl *result = 0 ;
44137 void *argp1 = 0 ;
44138 int res1 = 0 ;
44139 int val2 ;
44140 int ecode2 = 0 ;
44141 bool temp3 = false ;
44142 bool temp4 = false ;
44143 wxPoint temp5 ;
44144 wxSize temp6 ;
44145 long val7 ;
44146 int ecode7 = 0 ;
44147 void *argp8 = 0 ;
44148 int res8 = 0 ;
44149 bool temp9 = false ;
44150 PyObject * obj0 = 0 ;
44151 PyObject * obj1 = 0 ;
44152 PyObject * obj2 = 0 ;
44153 PyObject * obj3 = 0 ;
44154 PyObject * obj4 = 0 ;
44155 PyObject * obj5 = 0 ;
44156 PyObject * obj6 = 0 ;
44157 PyObject * obj7 = 0 ;
44158 PyObject * obj8 = 0 ;
44159 char * kwnames[] = {
44160 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44161 };
44162
44163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44165 if (!SWIG_IsOK(res1)) {
44166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44167 }
44168 arg1 = reinterpret_cast< wxWindow * >(argp1);
44169 if (obj1) {
44170 ecode2 = SWIG_AsVal_int(obj1, &val2);
44171 if (!SWIG_IsOK(ecode2)) {
44172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44173 }
44174 arg2 = static_cast< int >(val2);
44175 }
44176 if (obj2) {
44177 {
44178 arg3 = wxString_in_helper(obj2);
44179 if (arg3 == NULL) SWIG_fail;
44180 temp3 = true;
44181 }
44182 }
44183 if (obj3) {
44184 {
44185 arg4 = wxString_in_helper(obj3);
44186 if (arg4 == NULL) SWIG_fail;
44187 temp4 = true;
44188 }
44189 }
44190 if (obj4) {
44191 {
44192 arg5 = &temp5;
44193 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44194 }
44195 }
44196 if (obj5) {
44197 {
44198 arg6 = &temp6;
44199 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44200 }
44201 }
44202 if (obj6) {
44203 ecode7 = SWIG_AsVal_long(obj6, &val7);
44204 if (!SWIG_IsOK(ecode7)) {
44205 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44206 }
44207 arg7 = static_cast< long >(val7);
44208 }
44209 if (obj7) {
44210 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44211 if (!SWIG_IsOK(res8)) {
44212 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44213 }
44214 if (!argp8) {
44215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44216 }
44217 arg8 = reinterpret_cast< wxValidator * >(argp8);
44218 }
44219 if (obj8) {
44220 {
44221 arg9 = wxString_in_helper(obj8);
44222 if (arg9 == NULL) SWIG_fail;
44223 temp9 = true;
44224 }
44225 }
44226 {
44227 if (!wxPyCheckForApp()) SWIG_fail;
44228 PyThreadState* __tstate = wxPyBeginAllowThreads();
44229 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);
44230 wxPyEndAllowThreads(__tstate);
44231 if (PyErr_Occurred()) SWIG_fail;
44232 }
44233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44234 {
44235 if (temp3)
44236 delete arg3;
44237 }
44238 {
44239 if (temp4)
44240 delete arg4;
44241 }
44242 {
44243 if (temp9)
44244 delete arg9;
44245 }
44246 return resultobj;
44247fail:
44248 {
44249 if (temp3)
44250 delete arg3;
44251 }
44252 {
44253 if (temp4)
44254 delete arg4;
44255 }
44256 {
44257 if (temp9)
44258 delete arg9;
44259 }
44260 return NULL;
44261}
44262
44263
44264SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44265 PyObject *resultobj = 0;
44266 wxDirPickerCtrl *result = 0 ;
44267
44268 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44269 {
44270 if (!wxPyCheckForApp()) SWIG_fail;
44271 PyThreadState* __tstate = wxPyBeginAllowThreads();
44272 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44273 wxPyEndAllowThreads(__tstate);
44274 if (PyErr_Occurred()) SWIG_fail;
44275 }
44276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44277 return resultobj;
44278fail:
44279 return NULL;
44280}
44281
44282
44283SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44284 PyObject *resultobj = 0;
44285 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44286 wxWindow *arg2 = (wxWindow *) 0 ;
44287 int arg3 = (int) -1 ;
44288 wxString const &arg4_defvalue = wxPyEmptyString ;
44289 wxString *arg4 = (wxString *) &arg4_defvalue ;
44290 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44291 wxString *arg5 = (wxString *) &arg5_defvalue ;
44292 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44293 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44294 wxSize const &arg7_defvalue = wxDefaultSize ;
44295 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44296 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44297 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44298 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44299 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44300 wxString *arg10 = (wxString *) &arg10_defvalue ;
44301 bool result;
44302 void *argp1 = 0 ;
44303 int res1 = 0 ;
44304 void *argp2 = 0 ;
44305 int res2 = 0 ;
44306 int val3 ;
44307 int ecode3 = 0 ;
44308 bool temp4 = false ;
44309 bool temp5 = false ;
44310 wxPoint temp6 ;
44311 wxSize temp7 ;
44312 long val8 ;
44313 int ecode8 = 0 ;
44314 void *argp9 = 0 ;
44315 int res9 = 0 ;
44316 bool temp10 = false ;
44317 PyObject * obj0 = 0 ;
44318 PyObject * obj1 = 0 ;
44319 PyObject * obj2 = 0 ;
44320 PyObject * obj3 = 0 ;
44321 PyObject * obj4 = 0 ;
44322 PyObject * obj5 = 0 ;
44323 PyObject * obj6 = 0 ;
44324 PyObject * obj7 = 0 ;
44325 PyObject * obj8 = 0 ;
44326 PyObject * obj9 = 0 ;
44327 char * kwnames[] = {
44328 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44329 };
44330
44331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44333 if (!SWIG_IsOK(res1)) {
44334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44335 }
44336 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44338 if (!SWIG_IsOK(res2)) {
44339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44340 }
44341 arg2 = reinterpret_cast< wxWindow * >(argp2);
44342 if (obj2) {
44343 ecode3 = SWIG_AsVal_int(obj2, &val3);
44344 if (!SWIG_IsOK(ecode3)) {
44345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44346 }
44347 arg3 = static_cast< int >(val3);
44348 }
44349 if (obj3) {
44350 {
44351 arg4 = wxString_in_helper(obj3);
44352 if (arg4 == NULL) SWIG_fail;
44353 temp4 = true;
44354 }
44355 }
44356 if (obj4) {
44357 {
44358 arg5 = wxString_in_helper(obj4);
44359 if (arg5 == NULL) SWIG_fail;
44360 temp5 = true;
44361 }
44362 }
44363 if (obj5) {
44364 {
44365 arg6 = &temp6;
44366 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44367 }
44368 }
44369 if (obj6) {
44370 {
44371 arg7 = &temp7;
44372 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44373 }
44374 }
44375 if (obj7) {
44376 ecode8 = SWIG_AsVal_long(obj7, &val8);
44377 if (!SWIG_IsOK(ecode8)) {
44378 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44379 }
44380 arg8 = static_cast< long >(val8);
44381 }
44382 if (obj8) {
44383 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44384 if (!SWIG_IsOK(res9)) {
44385 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44386 }
44387 if (!argp9) {
44388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44389 }
44390 arg9 = reinterpret_cast< wxValidator * >(argp9);
44391 }
44392 if (obj9) {
44393 {
44394 arg10 = wxString_in_helper(obj9);
44395 if (arg10 == NULL) SWIG_fail;
44396 temp10 = true;
44397 }
44398 }
44399 {
44400 PyThreadState* __tstate = wxPyBeginAllowThreads();
44401 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);
44402 wxPyEndAllowThreads(__tstate);
44403 if (PyErr_Occurred()) SWIG_fail;
44404 }
44405 {
44406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44407 }
44408 {
44409 if (temp4)
44410 delete arg4;
44411 }
44412 {
44413 if (temp5)
44414 delete arg5;
44415 }
44416 {
44417 if (temp10)
44418 delete arg10;
44419 }
44420 return resultobj;
44421fail:
44422 {
44423 if (temp4)
44424 delete arg4;
44425 }
44426 {
44427 if (temp5)
44428 delete arg5;
44429 }
44430 {
44431 if (temp10)
44432 delete arg10;
44433 }
44434 return NULL;
44435}
44436
44437
44438SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44439 PyObject *resultobj = 0;
44440 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44441 wxString result;
44442 void *argp1 = 0 ;
44443 int res1 = 0 ;
44444 PyObject *swig_obj[1] ;
44445
44446 if (!args) SWIG_fail;
44447 swig_obj[0] = args;
44448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44449 if (!SWIG_IsOK(res1)) {
44450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44451 }
44452 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44453 {
44454 PyThreadState* __tstate = wxPyBeginAllowThreads();
44455 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44456 wxPyEndAllowThreads(__tstate);
44457 if (PyErr_Occurred()) SWIG_fail;
44458 }
44459 {
44460#if wxUSE_UNICODE
44461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44462#else
44463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44464#endif
44465 }
44466 return resultobj;
44467fail:
44468 return NULL;
44469}
44470
44471
44472SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44473 PyObject *resultobj = 0;
44474 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44475 wxString *arg2 = 0 ;
44476 void *argp1 = 0 ;
44477 int res1 = 0 ;
44478 bool temp2 = false ;
44479 PyObject * obj0 = 0 ;
44480 PyObject * obj1 = 0 ;
44481 char * kwnames[] = {
44482 (char *) "self",(char *) "str", NULL
44483 };
44484
44485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44487 if (!SWIG_IsOK(res1)) {
44488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44489 }
44490 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44491 {
44492 arg2 = wxString_in_helper(obj1);
44493 if (arg2 == NULL) SWIG_fail;
44494 temp2 = true;
44495 }
44496 {
44497 PyThreadState* __tstate = wxPyBeginAllowThreads();
44498 (arg1)->SetPath((wxString const &)*arg2);
44499 wxPyEndAllowThreads(__tstate);
44500 if (PyErr_Occurred()) SWIG_fail;
44501 }
44502 resultobj = SWIG_Py_Void();
44503 {
44504 if (temp2)
44505 delete arg2;
44506 }
44507 return resultobj;
44508fail:
44509 {
44510 if (temp2)
44511 delete arg2;
44512 }
44513 return NULL;
44514}
44515
44516
b02396e8
RD
44517SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44518 PyObject *resultobj = 0;
44519 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44520 wxString *arg2 = 0 ;
44521 bool result;
44522 void *argp1 = 0 ;
44523 int res1 = 0 ;
44524 bool temp2 = false ;
44525 PyObject * obj0 = 0 ;
44526 PyObject * obj1 = 0 ;
44527 char * kwnames[] = {
44528 (char *) "self",(char *) "path", NULL
44529 };
44530
44531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44533 if (!SWIG_IsOK(res1)) {
44534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44535 }
44536 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44537 {
44538 arg2 = wxString_in_helper(obj1);
44539 if (arg2 == NULL) SWIG_fail;
44540 temp2 = true;
44541 }
44542 {
44543 PyThreadState* __tstate = wxPyBeginAllowThreads();
44544 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44545 wxPyEndAllowThreads(__tstate);
44546 if (PyErr_Occurred()) SWIG_fail;
44547 }
44548 {
44549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44550 }
44551 {
44552 if (temp2)
44553 delete arg2;
44554 }
44555 return resultobj;
44556fail:
44557 {
44558 if (temp2)
44559 delete arg2;
44560 }
44561 return NULL;
44562}
44563
44564
44565SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44566 PyObject *resultobj = 0;
44567 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44568 wxString result;
44569 void *argp1 = 0 ;
44570 int res1 = 0 ;
44571 PyObject *swig_obj[1] ;
44572
44573 if (!args) SWIG_fail;
44574 swig_obj[0] = args;
44575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44576 if (!SWIG_IsOK(res1)) {
44577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44578 }
44579 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44580 {
44581 PyThreadState* __tstate = wxPyBeginAllowThreads();
44582 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44583 wxPyEndAllowThreads(__tstate);
44584 if (PyErr_Occurred()) SWIG_fail;
44585 }
44586 {
44587#if wxUSE_UNICODE
44588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44589#else
44590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44591#endif
44592 }
44593 return resultobj;
44594fail:
44595 return NULL;
44596}
44597
44598
b850e7f3
RD
44599SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44600 PyObject *obj;
44601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44602 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44603 return SWIG_Py_Void();
44604}
44605
44606SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44607 return SWIG_Python_InitShadowInstance(args);
44608}
44609
44610SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44611 PyObject *resultobj = 0;
44612 wxEventType arg1 ;
44613 wxObject *arg2 = (wxObject *) 0 ;
44614 int arg3 ;
44615 wxString *arg4 = 0 ;
44616 wxFileDirPickerEvent *result = 0 ;
44617 int val1 ;
44618 int ecode1 = 0 ;
44619 void *argp2 = 0 ;
44620 int res2 = 0 ;
44621 int val3 ;
44622 int ecode3 = 0 ;
44623 bool temp4 = false ;
44624 PyObject * obj0 = 0 ;
44625 PyObject * obj1 = 0 ;
44626 PyObject * obj2 = 0 ;
44627 PyObject * obj3 = 0 ;
44628 char * kwnames[] = {
44629 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44630 };
44631
44632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44633 ecode1 = SWIG_AsVal_int(obj0, &val1);
44634 if (!SWIG_IsOK(ecode1)) {
44635 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44636 }
44637 arg1 = static_cast< wxEventType >(val1);
44638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44639 if (!SWIG_IsOK(res2)) {
44640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44641 }
44642 arg2 = reinterpret_cast< wxObject * >(argp2);
44643 ecode3 = SWIG_AsVal_int(obj2, &val3);
44644 if (!SWIG_IsOK(ecode3)) {
44645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44646 }
44647 arg3 = static_cast< int >(val3);
44648 {
44649 arg4 = wxString_in_helper(obj3);
44650 if (arg4 == NULL) SWIG_fail;
44651 temp4 = true;
44652 }
44653 {
44654 PyThreadState* __tstate = wxPyBeginAllowThreads();
44655 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44656 wxPyEndAllowThreads(__tstate);
44657 if (PyErr_Occurred()) SWIG_fail;
44658 }
44659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44660 {
44661 if (temp4)
44662 delete arg4;
44663 }
44664 return resultobj;
44665fail:
44666 {
44667 if (temp4)
44668 delete arg4;
44669 }
44670 return NULL;
44671}
44672
44673
44674SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44675 PyObject *resultobj = 0;
44676 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44677 wxString result;
44678 void *argp1 = 0 ;
44679 int res1 = 0 ;
44680 PyObject *swig_obj[1] ;
44681
44682 if (!args) SWIG_fail;
44683 swig_obj[0] = args;
44684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44685 if (!SWIG_IsOK(res1)) {
44686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44687 }
44688 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44689 {
44690 PyThreadState* __tstate = wxPyBeginAllowThreads();
44691 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44692 wxPyEndAllowThreads(__tstate);
44693 if (PyErr_Occurred()) SWIG_fail;
44694 }
44695 {
44696#if wxUSE_UNICODE
44697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44698#else
44699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44700#endif
44701 }
44702 return resultobj;
44703fail:
44704 return NULL;
44705}
44706
44707
44708SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44709 PyObject *resultobj = 0;
44710 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44711 wxString *arg2 = 0 ;
44712 void *argp1 = 0 ;
44713 int res1 = 0 ;
44714 bool temp2 = false ;
44715 PyObject * obj0 = 0 ;
44716 PyObject * obj1 = 0 ;
44717 char * kwnames[] = {
44718 (char *) "self",(char *) "p", NULL
44719 };
44720
44721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44723 if (!SWIG_IsOK(res1)) {
44724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44725 }
44726 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44727 {
44728 arg2 = wxString_in_helper(obj1);
44729 if (arg2 == NULL) SWIG_fail;
44730 temp2 = true;
44731 }
44732 {
44733 PyThreadState* __tstate = wxPyBeginAllowThreads();
44734 (arg1)->SetPath((wxString const &)*arg2);
44735 wxPyEndAllowThreads(__tstate);
44736 if (PyErr_Occurred()) SWIG_fail;
44737 }
44738 resultobj = SWIG_Py_Void();
44739 {
44740 if (temp2)
44741 delete arg2;
44742 }
44743 return resultobj;
44744fail:
44745 {
44746 if (temp2)
44747 delete arg2;
44748 }
44749 return NULL;
44750}
44751
44752
44753SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44754 PyObject *obj;
44755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44756 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44757 return SWIG_Py_Void();
44758}
44759
44760SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44761 return SWIG_Python_InitShadowInstance(args);
44762}
44763
44764SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44765 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44766 return 1;
44767}
44768
44769
44770SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44771 PyObject *pyobj = 0;
44772
44773 {
44774#if wxUSE_UNICODE
44775 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44776#else
44777 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44778#endif
44779 }
44780 return pyobj;
44781}
44782
44783
44784SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44785 PyObject *resultobj = 0;
44786 wxWindow *arg1 = (wxWindow *) 0 ;
44787 int arg2 = (int) -1 ;
f89238b9 44788 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
44789 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44790 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44791 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44792 wxSize const &arg5_defvalue = wxDefaultSize ;
44793 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44794 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44795 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44796 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44797 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44798 wxString *arg8 = (wxString *) &arg8_defvalue ;
44799 wxFontPickerCtrl *result = 0 ;
44800 void *argp1 = 0 ;
44801 int res1 = 0 ;
44802 int val2 ;
44803 int ecode2 = 0 ;
44804 void *argp3 = 0 ;
44805 int res3 = 0 ;
44806 wxPoint temp4 ;
44807 wxSize temp5 ;
44808 long val6 ;
44809 int ecode6 = 0 ;
44810 void *argp7 = 0 ;
44811 int res7 = 0 ;
44812 bool temp8 = false ;
44813 PyObject * obj0 = 0 ;
44814 PyObject * obj1 = 0 ;
44815 PyObject * obj2 = 0 ;
44816 PyObject * obj3 = 0 ;
44817 PyObject * obj4 = 0 ;
44818 PyObject * obj5 = 0 ;
44819 PyObject * obj6 = 0 ;
44820 PyObject * obj7 = 0 ;
44821 char * kwnames[] = {
44822 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44823 };
44824
44825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44827 if (!SWIG_IsOK(res1)) {
44828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44829 }
44830 arg1 = reinterpret_cast< wxWindow * >(argp1);
44831 if (obj1) {
44832 ecode2 = SWIG_AsVal_int(obj1, &val2);
44833 if (!SWIG_IsOK(ecode2)) {
44834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44835 }
44836 arg2 = static_cast< int >(val2);
44837 }
44838 if (obj2) {
44839 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44840 if (!SWIG_IsOK(res3)) {
44841 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44842 }
44843 if (!argp3) {
44844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44845 }
44846 arg3 = reinterpret_cast< wxFont * >(argp3);
44847 }
44848 if (obj3) {
44849 {
44850 arg4 = &temp4;
44851 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44852 }
44853 }
44854 if (obj4) {
44855 {
44856 arg5 = &temp5;
44857 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44858 }
44859 }
44860 if (obj5) {
44861 ecode6 = SWIG_AsVal_long(obj5, &val6);
44862 if (!SWIG_IsOK(ecode6)) {
44863 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44864 }
44865 arg6 = static_cast< long >(val6);
44866 }
44867 if (obj6) {
44868 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44869 if (!SWIG_IsOK(res7)) {
44870 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44871 }
44872 if (!argp7) {
44873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44874 }
44875 arg7 = reinterpret_cast< wxValidator * >(argp7);
44876 }
44877 if (obj7) {
44878 {
44879 arg8 = wxString_in_helper(obj7);
44880 if (arg8 == NULL) SWIG_fail;
44881 temp8 = true;
44882 }
44883 }
44884 {
44885 if (!wxPyCheckForApp()) SWIG_fail;
44886 PyThreadState* __tstate = wxPyBeginAllowThreads();
44887 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44888 wxPyEndAllowThreads(__tstate);
44889 if (PyErr_Occurred()) SWIG_fail;
44890 }
44891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44892 {
44893 if (temp8)
44894 delete arg8;
44895 }
44896 return resultobj;
44897fail:
44898 {
44899 if (temp8)
44900 delete arg8;
44901 }
44902 return NULL;
44903}
44904
44905
44906SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44907 PyObject *resultobj = 0;
44908 wxFontPickerCtrl *result = 0 ;
44909
44910 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44911 {
44912 if (!wxPyCheckForApp()) SWIG_fail;
44913 PyThreadState* __tstate = wxPyBeginAllowThreads();
44914 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44915 wxPyEndAllowThreads(__tstate);
44916 if (PyErr_Occurred()) SWIG_fail;
44917 }
44918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44919 return resultobj;
44920fail:
44921 return NULL;
44922}
44923
44924
44925SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44926 PyObject *resultobj = 0;
44927 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44928 wxWindow *arg2 = (wxWindow *) 0 ;
44929 int arg3 = (int) -1 ;
f89238b9 44930 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
44931 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44932 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44933 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44934 wxSize const &arg6_defvalue = wxDefaultSize ;
44935 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44936 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44937 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44938 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44939 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44940 wxString *arg9 = (wxString *) &arg9_defvalue ;
44941 bool result;
44942 void *argp1 = 0 ;
44943 int res1 = 0 ;
44944 void *argp2 = 0 ;
44945 int res2 = 0 ;
44946 int val3 ;
44947 int ecode3 = 0 ;
44948 void *argp4 = 0 ;
44949 int res4 = 0 ;
44950 wxPoint temp5 ;
44951 wxSize temp6 ;
44952 long val7 ;
44953 int ecode7 = 0 ;
44954 void *argp8 = 0 ;
44955 int res8 = 0 ;
44956 bool temp9 = false ;
44957 PyObject * obj0 = 0 ;
44958 PyObject * obj1 = 0 ;
44959 PyObject * obj2 = 0 ;
44960 PyObject * obj3 = 0 ;
44961 PyObject * obj4 = 0 ;
44962 PyObject * obj5 = 0 ;
44963 PyObject * obj6 = 0 ;
44964 PyObject * obj7 = 0 ;
44965 PyObject * obj8 = 0 ;
44966 char * kwnames[] = {
44967 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44968 };
44969
44970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44972 if (!SWIG_IsOK(res1)) {
44973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44974 }
44975 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44976 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44977 if (!SWIG_IsOK(res2)) {
44978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44979 }
44980 arg2 = reinterpret_cast< wxWindow * >(argp2);
44981 if (obj2) {
44982 ecode3 = SWIG_AsVal_int(obj2, &val3);
44983 if (!SWIG_IsOK(ecode3)) {
44984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44985 }
44986 arg3 = static_cast< int >(val3);
44987 }
44988 if (obj3) {
44989 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44990 if (!SWIG_IsOK(res4)) {
44991 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44992 }
44993 if (!argp4) {
44994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44995 }
44996 arg4 = reinterpret_cast< wxFont * >(argp4);
44997 }
44998 if (obj4) {
44999 {
45000 arg5 = &temp5;
45001 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45002 }
45003 }
45004 if (obj5) {
45005 {
45006 arg6 = &temp6;
45007 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45008 }
45009 }
45010 if (obj6) {
45011 ecode7 = SWIG_AsVal_long(obj6, &val7);
45012 if (!SWIG_IsOK(ecode7)) {
45013 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45014 }
45015 arg7 = static_cast< long >(val7);
45016 }
45017 if (obj7) {
45018 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45019 if (!SWIG_IsOK(res8)) {
45020 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45021 }
45022 if (!argp8) {
45023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45024 }
45025 arg8 = reinterpret_cast< wxValidator * >(argp8);
45026 }
45027 if (obj8) {
45028 {
45029 arg9 = wxString_in_helper(obj8);
45030 if (arg9 == NULL) SWIG_fail;
45031 temp9 = true;
45032 }
45033 }
45034 {
45035 PyThreadState* __tstate = wxPyBeginAllowThreads();
45036 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45037 wxPyEndAllowThreads(__tstate);
45038 if (PyErr_Occurred()) SWIG_fail;
45039 }
45040 {
45041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45042 }
45043 {
45044 if (temp9)
45045 delete arg9;
45046 }
45047 return resultobj;
45048fail:
45049 {
45050 if (temp9)
45051 delete arg9;
45052 }
45053 return NULL;
45054}
45055
45056
45057SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45058 PyObject *resultobj = 0;
45059 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45060 wxFont result;
45061 void *argp1 = 0 ;
45062 int res1 = 0 ;
45063 PyObject *swig_obj[1] ;
45064
45065 if (!args) SWIG_fail;
45066 swig_obj[0] = args;
45067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45068 if (!SWIG_IsOK(res1)) {
45069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45070 }
45071 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45072 {
45073 PyThreadState* __tstate = wxPyBeginAllowThreads();
45074 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45075 wxPyEndAllowThreads(__tstate);
45076 if (PyErr_Occurred()) SWIG_fail;
45077 }
45078 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45079 return resultobj;
45080fail:
45081 return NULL;
45082}
45083
45084
45085SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45086 PyObject *resultobj = 0;
45087 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45088 wxFont *arg2 = 0 ;
45089 void *argp1 = 0 ;
45090 int res1 = 0 ;
45091 void *argp2 = 0 ;
45092 int res2 = 0 ;
45093 PyObject * obj0 = 0 ;
45094 PyObject * obj1 = 0 ;
45095 char * kwnames[] = {
45096 (char *) "self",(char *) "f", NULL
45097 };
45098
45099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45101 if (!SWIG_IsOK(res1)) {
45102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45103 }
45104 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45106 if (!SWIG_IsOK(res2)) {
45107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45108 }
45109 if (!argp2) {
45110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45111 }
45112 arg2 = reinterpret_cast< wxFont * >(argp2);
45113 {
45114 PyThreadState* __tstate = wxPyBeginAllowThreads();
45115 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45116 wxPyEndAllowThreads(__tstate);
45117 if (PyErr_Occurred()) SWIG_fail;
45118 }
45119 resultobj = SWIG_Py_Void();
45120 return resultobj;
45121fail:
45122 return NULL;
45123}
45124
45125
45126SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45127 PyObject *resultobj = 0;
45128 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45129 unsigned int arg2 ;
45130 void *argp1 = 0 ;
45131 int res1 = 0 ;
45132 unsigned int val2 ;
45133 int ecode2 = 0 ;
45134 PyObject * obj0 = 0 ;
45135 PyObject * obj1 = 0 ;
45136 char * kwnames[] = {
45137 (char *) "self",(char *) "max", NULL
45138 };
45139
45140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45142 if (!SWIG_IsOK(res1)) {
45143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45144 }
45145 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45146 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45147 if (!SWIG_IsOK(ecode2)) {
45148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45149 }
45150 arg2 = static_cast< unsigned int >(val2);
45151 {
45152 PyThreadState* __tstate = wxPyBeginAllowThreads();
45153 (arg1)->SetMaxPointSize(arg2);
45154 wxPyEndAllowThreads(__tstate);
45155 if (PyErr_Occurred()) SWIG_fail;
45156 }
45157 resultobj = SWIG_Py_Void();
45158 return resultobj;
45159fail:
45160 return NULL;
45161}
45162
45163
45164SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45165 PyObject *resultobj = 0;
45166 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45167 unsigned int result;
45168 void *argp1 = 0 ;
45169 int res1 = 0 ;
45170 PyObject *swig_obj[1] ;
45171
45172 if (!args) SWIG_fail;
45173 swig_obj[0] = args;
45174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45175 if (!SWIG_IsOK(res1)) {
45176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45177 }
45178 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45179 {
45180 PyThreadState* __tstate = wxPyBeginAllowThreads();
45181 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45182 wxPyEndAllowThreads(__tstate);
45183 if (PyErr_Occurred()) SWIG_fail;
45184 }
45185 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45186 return resultobj;
45187fail:
45188 return NULL;
45189}
45190
45191
45192SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45193 PyObject *obj;
45194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45195 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45196 return SWIG_Py_Void();
45197}
45198
45199SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45200 return SWIG_Python_InitShadowInstance(args);
45201}
45202
45203SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45204 PyObject *resultobj = 0;
45205 wxObject *arg1 = (wxObject *) 0 ;
45206 int arg2 ;
45207 wxFont *arg3 = 0 ;
45208 wxFontPickerEvent *result = 0 ;
45209 void *argp1 = 0 ;
45210 int res1 = 0 ;
45211 int val2 ;
45212 int ecode2 = 0 ;
45213 void *argp3 = 0 ;
45214 int res3 = 0 ;
45215 PyObject * obj0 = 0 ;
45216 PyObject * obj1 = 0 ;
45217 PyObject * obj2 = 0 ;
45218 char * kwnames[] = {
45219 (char *) "generator",(char *) "id",(char *) "f", NULL
45220 };
45221
45222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45224 if (!SWIG_IsOK(res1)) {
45225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45226 }
45227 arg1 = reinterpret_cast< wxObject * >(argp1);
45228 ecode2 = SWIG_AsVal_int(obj1, &val2);
45229 if (!SWIG_IsOK(ecode2)) {
45230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45231 }
45232 arg2 = static_cast< int >(val2);
45233 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45234 if (!SWIG_IsOK(res3)) {
45235 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45236 }
45237 if (!argp3) {
45238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45239 }
45240 arg3 = reinterpret_cast< wxFont * >(argp3);
45241 {
45242 PyThreadState* __tstate = wxPyBeginAllowThreads();
45243 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45244 wxPyEndAllowThreads(__tstate);
45245 if (PyErr_Occurred()) SWIG_fail;
45246 }
45247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45248 return resultobj;
45249fail:
45250 return NULL;
45251}
45252
45253
45254SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45255 PyObject *resultobj = 0;
45256 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45257 wxFont result;
45258 void *argp1 = 0 ;
45259 int res1 = 0 ;
45260 PyObject *swig_obj[1] ;
45261
45262 if (!args) SWIG_fail;
45263 swig_obj[0] = args;
45264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45265 if (!SWIG_IsOK(res1)) {
45266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45267 }
45268 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45269 {
45270 PyThreadState* __tstate = wxPyBeginAllowThreads();
45271 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45272 wxPyEndAllowThreads(__tstate);
45273 if (PyErr_Occurred()) SWIG_fail;
45274 }
45275 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45276 return resultobj;
45277fail:
45278 return NULL;
45279}
45280
45281
45282SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45283 PyObject *resultobj = 0;
45284 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45285 wxFont *arg2 = 0 ;
45286 void *argp1 = 0 ;
45287 int res1 = 0 ;
45288 void *argp2 = 0 ;
45289 int res2 = 0 ;
45290 PyObject * obj0 = 0 ;
45291 PyObject * obj1 = 0 ;
45292 char * kwnames[] = {
45293 (char *) "self",(char *) "c", NULL
45294 };
45295
45296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45298 if (!SWIG_IsOK(res1)) {
45299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45300 }
45301 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45303 if (!SWIG_IsOK(res2)) {
45304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45305 }
45306 if (!argp2) {
45307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45308 }
45309 arg2 = reinterpret_cast< wxFont * >(argp2);
45310 {
45311 PyThreadState* __tstate = wxPyBeginAllowThreads();
45312 (arg1)->SetFont((wxFont const &)*arg2);
45313 wxPyEndAllowThreads(__tstate);
45314 if (PyErr_Occurred()) SWIG_fail;
45315 }
45316 resultobj = SWIG_Py_Void();
45317 return resultobj;
45318fail:
45319 return NULL;
45320}
45321
45322
45323SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45324 PyObject *obj;
45325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45326 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45327 return SWIG_Py_Void();
45328}
45329
45330SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45331 return SWIG_Python_InitShadowInstance(args);
45332}
45333
45334static PyMethodDef SwigMethods[] = {
45335 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45337 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45339 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45340 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45342 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45343 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45345 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45347 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45348 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45349 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45350 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45351 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45358 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45359 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45360 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45361 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45363 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45365 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45366 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45368 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45370 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45371 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45373 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45374 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45376 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45378 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45380 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45381 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45383 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45385 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45387 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45388 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45389 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45391 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45392 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45395 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45399 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45401 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45402 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45403 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45404 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45405 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45406 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45407 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45408 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45409 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45411 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45412 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45414 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45417 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 45419 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
45420 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45421 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45423 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45425 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45427 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45428 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45430 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45433 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45434 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45436 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45438 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45439 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45441 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45442 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45444 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45448 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45449 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45451 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45453 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45457 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45458 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45460 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45471 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45476 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45482 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45483 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45485 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45489 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45490 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45492 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45493 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45495 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45496 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45503 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45504 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45505 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45506 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45507 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45508 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45509 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45511 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45512 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45513 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45514 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45515 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45516 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45517 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45518 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45519 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45520 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45522 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45523 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45525 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45527 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
45528 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
45529 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45530 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45534 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45535 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45536 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45537 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45538 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45539 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45540 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45541 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45546 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45547 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45548 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45556 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45562 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45563 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45564 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45565 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45566 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45567 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45568 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45569 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45570 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45571 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45573 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45574 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45575 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45577 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 45578 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
45579 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45583 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45584 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45586 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45587 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45588 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45589 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45590 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45592 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45594 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45595 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45596 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45597 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45598 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45601 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45602 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45604 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45606 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45607 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45608 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45613 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45614 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45615 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45616 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45618 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45620 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45624 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45625 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45628 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45629 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45631 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45633 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45634 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45636 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45639 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45640 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45642 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45650 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45651 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45658 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45659 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45661 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45663 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45666 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45667 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45669 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45671 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45674 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45675 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45680 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45681 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45683 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45685 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45686 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45688 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45689 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45690 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45693 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45694 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45696 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45699 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45701 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45702 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45703 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45705 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45706 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45711 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45716 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45718 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 45719 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
45720 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45722 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
45723 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45726 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 45729 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 45730 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45731 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45732 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45734 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45736 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45738 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45740 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45741 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45743 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45745 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45747 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45748 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
45749 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45751 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45752 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45753 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45755 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45756 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45758 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45760 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45761 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45762 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45764 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45765 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45767 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45769 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45770 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45771 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45773 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45774 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45776 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45784 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45785 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45786 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45788 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45789 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45791 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45793 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45794 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45795 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45796 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45798 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45799 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45800 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45801 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45802 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45803 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45804 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45805 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45806 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45807 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45808 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45809 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45810 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45811 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45812 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45813 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45814 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45815 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45816 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45818 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45825 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45827 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45829 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45837 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45842 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45843 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45860 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45861 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45862 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45863 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45866 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45867 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45869 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45870 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45873 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45874 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45875 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45877 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45878 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45880 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45881 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45883 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45887 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45888 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45889 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45890 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45891 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45892 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45894 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45895 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45896 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45897 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45898 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45899 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45900 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45914 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45915 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45916 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45917 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45918 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45919 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45920 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45921 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45922 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45923 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45924 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45925 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45926 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45927 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45928 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45929 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45930 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45931 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45932 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45933 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45934 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45935 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45936 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45937 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45938 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45939 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45940 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45941 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45942 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45943 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45944 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45945 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45946 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45947 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45948 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45949 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45951 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45952 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45953 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45954 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45955 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45956 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45957 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45958 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45959 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45960 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45961 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45962 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45963 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45964 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45965 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45966 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45967 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45968 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45969 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45970 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45971 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45972 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45973 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45974 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45976 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45977 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45979 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45986 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45987 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45988 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46003 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46004 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46005 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46007 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46008 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46010 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46016 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46017 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46022 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46024 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46025 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46031 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46032 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46048 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46050 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46051 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46053 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46057 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46059 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46063 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46064 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46065 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46066 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46067 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46070 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46071 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46072 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46073 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46075 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46076 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46078 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46080 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46081 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46082 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
46083 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46084 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46086 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46088 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46090 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46091 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46093 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46095 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46098 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46099 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46100 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46102 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46105 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46106 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46108 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46110 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46111 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46139 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46140 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46141 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46148 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46158 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
46159 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
46161 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46165 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46167 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46173 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46177 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
46179 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46180 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46181 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46183 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46185 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46186 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46187 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46189 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46190 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46193 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46194 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46196 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46198 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46199 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46200 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46202 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46203 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46204 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46205 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46207 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46210 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46211 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46213 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46214 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46217 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46220 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46221 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46222 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46223 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46224 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46225 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46226 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46227 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46228 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46230 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46232 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46234 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46235 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46236 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46237 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46238 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46239 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46241 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46243 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46244 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46245 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46247 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46248 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
46249 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46250 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46251 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46253 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46254 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46258 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46259 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46260 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46261 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46262 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46268 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46269 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46271 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46272 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46274 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46275 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46280 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46281 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46282 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46283 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46286 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46288 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46289 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46290 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46291 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46293 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46295 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46296 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46297 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46299 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46301 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46304 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46305 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46306 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46308 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46310 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46311 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46314 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46316 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46318 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46319 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46320 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46321 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46322 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46323 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46324 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46325 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46326 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46328 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46330 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46332 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46333 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46335 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46337 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46338 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46340 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46342 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46343 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46345 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46346 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46347 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46349 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46351 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46352 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46354 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46355 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46356 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46358 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46360 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46361 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46363 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46365 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46366 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46368 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46369 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46370 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46372 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46374 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46375 { NULL, NULL, 0, NULL }
46376};
46377
46378
46379/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46380
46381static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46382 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46383}
46384static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46385 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46386}
46387static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46388 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46389}
46390static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46391 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46392}
46393static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46394 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46395}
46396static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46397 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46398}
46399static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46400 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46401}
46402static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46403 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46404}
b850e7f3
RD
46405static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46406 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46407}
46408static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46409 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46410}
46411static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46412 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46413}
1bd55598
RD
46414static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46415 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46416}
46417static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46418 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46419}
46420static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46421 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46422}
1bd55598
RD
46423static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46424 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46425}
34e0a3bb
RD
46426static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46427 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46428}
2131d850
RD
46429static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46430 return (void *)((wxEvent *) ((wxPyEvent *) x));
46431}
1bd55598
RD
46432static void *_p_wxListEventTo_p_wxEvent(void *x) {
46433 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46434}
46435static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46436 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46437}
46438static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46439 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46440}
46441static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46442 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46443}
46444static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46445 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46446}
46447static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46448 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46449}
46450static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46451 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46452}
46453static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46454 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46455}
46456static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46457 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46458}
46459static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46460 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46461}
46462static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46463 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46464}
46465static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46466 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46467}
46468static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46469 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46470}
46471static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46472 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46473}
46474static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46475 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46476}
46477static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46478 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46479}
46480static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46481 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46482}
46483static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46484 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46485}
34e0a3bb
RD
46486static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46487 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46488}
1bd55598
RD
46489static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46490 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46491}
46492static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46493 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46494}
46495static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46496 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46497}
46498static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46499 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46500}
46501static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46502 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46503}
704eda0c
RD
46504static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46505 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46506}
1bd55598
RD
46507static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46508 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46509}
46510static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46511 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46512}
46513static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46514 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46515}
46516static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46517 return (void *)((wxEvent *) ((wxShowEvent *) x));
46518}
46519static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46520 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46521}
46522static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46523 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46524}
46525static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46526 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46527}
46528static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46529 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46530}
46531static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46532 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46533}
46534static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46535 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46536}
46537static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46538 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46539}
b850e7f3
RD
46540static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46541 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46542}
46543static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46544 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46545}
46546static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46547 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46548}
46549static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46550 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46551}
1bd55598
RD
46552static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46553 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46554}
46555static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46556 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46557}
46558static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46559 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46560}
46561static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46562 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46563}
46564static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46565 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46566}
46567static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46568 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46569}
46570static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46571 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46572}
46573static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46574 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46575}
46576static void *_p_wxToolBarTo_p_wxControl(void *x) {
46577 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46578}
b850e7f3
RD
46579static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46580 return (void *)((wxControl *) ((wxPickerBase *) x));
46581}
1bd55598
RD
46582static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46583 return (void *)((wxControl *) ((wxToggleButton *) x));
46584}
46585static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46586 return (void *)((wxControl *) ((wxRadioButton *) x));
46587}
46588static void *_p_wxToolbookTo_p_wxControl(void *x) {
46589 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46590}
46591static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46592 return (void *)((wxControl *) ((wxToolBarBase *) x));
46593}
46594static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46595 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46596}
46597static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46598 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46599}
46600static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46601 return (void *)((wxControl *) ((wxComboBox *) x));
46602}
46603static void *_p_wxPyControlTo_p_wxControl(void *x) {
46604 return (void *)((wxControl *) ((wxPyControl *) x));
46605}
46606static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46607 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46608}
46609static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46610 return (void *)((wxControl *) ((wxScrollBar *) x));
46611}
46612static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46613 return (void *)((wxControl *) ((wxControlWithItems *) x));
46614}
46615static void *_p_wxGaugeTo_p_wxControl(void *x) {
46616 return (void *)((wxControl *) ((wxGauge *) x));
46617}
46618static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46619 return (void *)((wxControl *) ((wxStaticLine *) x));
46620}
46621static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46622 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46623}
46624static void *_p_wxListbookTo_p_wxControl(void *x) {
46625 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46626}
704eda0c
RD
46627static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46628 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46629}
1bd55598
RD
46630static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46631 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46632}
46633static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46634 return (void *)((wxControl *) ((wxCheckBox *) x));
46635}
46636static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46637 return (void *)((wxControl *) ((wxRadioBox *) x));
46638}
46639static void *_p_wxChoiceTo_p_wxControl(void *x) {
46640 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46641}
46642static void *_p_wxListBoxTo_p_wxControl(void *x) {
46643 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46644}
46645static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46646 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46647}
46648static void *_p_wxListViewTo_p_wxControl(void *x) {
46649 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46650}
46651static void *_p_wxNotebookTo_p_wxControl(void *x) {
46652 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46653}
46654static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46655 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46656}
46657static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46658 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46659}
46660static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46661 return (void *)((wxControl *) ((wxStaticText *) x));
46662}
46663static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46664 return (void *)((wxControl *) ((wxStaticBox *) x));
46665}
46666static void *_p_wxSliderTo_p_wxControl(void *x) {
46667 return (void *)((wxControl *) ((wxSlider *) x));
46668}
46669static void *_p_wxTreebookTo_p_wxControl(void *x) {
46670 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46671}
46672static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46673 return (void *)((wxControl *) ((wxSpinButton *) x));
46674}
46675static void *_p_wxButtonTo_p_wxControl(void *x) {
46676 return (void *)((wxControl *) ((wxButton *) x));
46677}
46678static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46679 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46680}
46681static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46682 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46683}
46684static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46685 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46686}
b850e7f3
RD
46687static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46688 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46689}
46690static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46691 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46692}
46693static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46694 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46695}
46696static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46697 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46698}
1bd55598
RD
46699static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46700 return (void *)((wxControl *) ((wxTextCtrl *) x));
46701}
46702static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46703 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46704}
46705static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46706 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46707}
46708static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46709 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46710}
46711static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46712 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46713}
46714static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46715 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46716}
46717static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46718 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46719}
46720static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46721 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46722}
46723static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46724 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46725}
46726static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46727 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46728}
46729static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46730 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46731}
46732static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46733 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46734}
46735static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46736 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46737}
46738static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46739 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46740}
46741static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46742 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46743}
46744static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46745 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46746}
46747static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46748 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46749}
46750static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46751 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46752}
46753static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46754 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46755}
46756static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46757 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46758}
46759static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46760 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46761}
46762static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46763 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46764}
b850e7f3
RD
46765static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46766 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46767}
1bd55598
RD
46768static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46769 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46770}
46771static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46772 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46773}
46774static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46775 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46776}
46777static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46778 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46779}
46780static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46781 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46782}
46783static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46784 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46785}
46786static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46787 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46788}
46789static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46790 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46791}
46792static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46793 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46794}
46795static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46796 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46797}
46798static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46799 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46800}
46801static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46802 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46803}
46804static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46805 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46806}
46807static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46808 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46809}
46810static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46811 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46812}
46813static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46814 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46815}
46816static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46817 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46818}
46819static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46820 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46821}
46822static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46823 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46824}
704eda0c
RD
46825static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46826 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46827}
1bd55598
RD
46828static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46829 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46830}
46831static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46832 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46833}
46834static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46835 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46836}
46837static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46838 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46839}
46840static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46841 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46842}
46843static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46844 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46845}
46846static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46847 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46848}
46849static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46850 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46851}
46852static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46853 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46854}
46855static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46856 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46857}
46858static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46859 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46860}
46861static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46862 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46863}
46864static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46865 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46866}
46867static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46868 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46869}
46870static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46871 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46872}
46873static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46874 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46875}
46876static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46877 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46878}
46879static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46880 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46881}
46882static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46883 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46884}
b850e7f3
RD
46885static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46886 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46887}
46888static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46889 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46890}
46891static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46892 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46893}
46894static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46895 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46896}
1bd55598
RD
46897static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46898 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46899}
46900static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46901 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46902}
46903static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46904 return (void *)((wxButton *) ((wxBitmapButton *) x));
46905}
46906static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46907 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46908}
46909static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46910 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46911}
46912static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46913 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46914}
46915static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46916 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46917}
46918static void *_p_wxToolbookTo_p_wxObject(void *x) {
46919 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46920}
1bd55598
RD
46921static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46922 return (void *)((wxObject *) ((wxSizerItem *) x));
46923}
34e0a3bb
RD
46924static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46925 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46926}
1bd55598
RD
46927static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46928 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46929}
46930static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46931 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46932}
46933static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46934 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46935}
46936static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46937 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46938}
46939static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46940 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46941}
46942static void *_p_wxSizerTo_p_wxObject(void *x) {
46943 return (void *)((wxObject *) ((wxSizer *) x));
46944}
46945static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46946 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46947}
46948static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46950}
46951static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46952 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46953}
46954static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46955 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46956}
46957static void *_p_wxEventTo_p_wxObject(void *x) {
46958 return (void *)((wxObject *) ((wxEvent *) x));
46959}
46960static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46961 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46962}
46963static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46964 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46965}
46966static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46968}
46969static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46971}
b850e7f3
RD
46972static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46974}
1bd55598
RD
46975static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46977}
46978static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46980}
2131d850
RD
46981static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46983}
1bd55598
RD
46984static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46986}
46987static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46989}
46990static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46992}
46993static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46995}
46996static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46998}
46999static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47001}
47002static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47004}
47005static void *_p_wxControlTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47007}
47008static void *_p_wxPyControlTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47010}
47011static void *_p_wxGaugeTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47013}
47014static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47016}
47017static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47019}
47020static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47022}
47023static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47025}
b850e7f3
RD
47026static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47028}
47029static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47031}
47032static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47034}
1bd55598
RD
47035static void *_p_wxChoiceTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47037}
47038static void *_p_wxFSFileTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) ((wxFSFile *) x));
47040}
47041static void *_p_wxPySizerTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47043}
47044static void *_p_wxTreebookTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47046}
47047static void *_p_wxListViewTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47049}
704eda0c
RD
47050static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47052}
1bd55598
RD
47053static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47055}
47056static void *_p_wxNotebookTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47058}
47059static void *_p_wxPyEventTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47061}
47062static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47064}
47065static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47067}
47068static void *_p_wxListbookTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47070}
47071static void *_p_wxShowEventTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47073}
47074static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47076}
47077static void *_p_wxSliderTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47079}
47080static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) ((wxMenuItem *) x));
47082}
47083static void *_p_wxDateEventTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47085}
47086static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47087 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47088}
47089static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47090 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47091}
47092static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47093 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47094}
47095static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47096 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47097}
47098static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47099 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47100}
47101static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47102 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47103}
47104static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47105 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47106}
47107static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47108 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47109}
47110static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47111 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47112}
47113static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47114 return (void *)((wxObject *) ((wxContextHelp *) x));
47115}
47116static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47117 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47118}
47119static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47120 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47121}
47122static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47123 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47124}
47125static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47126 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47127}
47128static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47129 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47130}
47131static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47132 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47133}
47134static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47135 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47136}
47137static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47138 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47139}
47140static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47141 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47142}
47143static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47144 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47145}
47146static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47147 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47148}
47149static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47150 return (void *)((wxObject *) ((wxImageHandler *) x));
47151}
47152static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47153 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47154}
47155static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47156 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47157}
580080c5
RD
47158static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47159 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47160}
1bd55598
RD
47161static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47162 return (void *)((wxObject *) ((wxEvtHandler *) x));
47163}
34e0a3bb
RD
47164static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47165 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47166}
1bd55598
RD
47167static void *_p_wxListEventTo_p_wxObject(void *x) {
47168 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47169}
47170static void *_p_wxListBoxTo_p_wxObject(void *x) {
47171 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47172}
47173static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47175}
47176static void *_p_wxButtonTo_p_wxObject(void *x) {
47177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47178}
47179static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47180 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47181}
47182static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47183 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47184}
47185static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47186 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47187}
1bd55598
RD
47188static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47189 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47190}
580080c5
RD
47191static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47192 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47193}
1bd55598
RD
47194static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47195 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47196}
47197static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47198 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47199}
47200static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47202}
47203static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47204 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47205}
47206static void *_p_wxListItemTo_p_wxObject(void *x) {
47207 return (void *)((wxObject *) ((wxListItem *) x));
47208}
47209static void *_p_wxImageTo_p_wxObject(void *x) {
47210 return (void *)((wxObject *) ((wxImage *) x));
47211}
47212static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47213 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47214}
47215static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47216 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47217}
47218static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47219 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47220}
47221static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47223}
47224static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47225 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47226}
47227static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47228 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47229}
47230static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47231 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47232}
47233static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47234 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47235}
47236static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47237 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47238}
47239static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47240 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47241}
47242static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47243 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47244}
47245static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47246 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47247}
47248static void *_p_wxWindowTo_p_wxObject(void *x) {
47249 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47250}
47251static void *_p_wxMenuTo_p_wxObject(void *x) {
47252 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47253}
47254static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47255 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47256}
47257static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47258 return (void *)((wxObject *) ((wxFileSystem *) x));
47259}
47260static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47261 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47262}
47263static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47264 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47265}
47266static void *_p_wxPyAppTo_p_wxObject(void *x) {
47267 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47268}
47269static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47270 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47271}
47272static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47273 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47274}
47275static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47276 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47277}
47278static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47280}
47281static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47282 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47283}
47284static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47285 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47286}
47287static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47288 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47289}
47290static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47291 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47292}
47293static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47294 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47295}
47296static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47297 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47298}
47299static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47301}
47302static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47303 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47304}
b850e7f3
RD
47305static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47306 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47307}
47308static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47309 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47310}
47311static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47312 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47313}
47314static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47315 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47316}
1bd55598
RD
47317static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47319}
704eda0c
RD
47320static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47321 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47322}
1bd55598
RD
47323static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47324 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47325}
47326static void *_p_wxToolBarTo_p_wxObject(void *x) {
47327 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47328}
47329static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47330 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47331}
47332static void *_p_wxValidatorTo_p_wxObject(void *x) {
47333 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47334}
47335static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47336 return (void *)((wxWindow *) ((wxMenuBar *) x));
47337}
47338static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47339 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47340}
47341static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47342 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47343}
b850e7f3
RD
47344static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47345 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47346}
1bd55598
RD
47347static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47348 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47349}
47350static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47351 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47352}
47353static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47354 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47355}
47356static void *_p_wxControlTo_p_wxWindow(void *x) {
47357 return (void *)((wxWindow *) ((wxControl *) x));
47358}
47359static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47360 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47361}
47362static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47363 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47364}
47365static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47366 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47367}
47368static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47369 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47370}
47371static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47372 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47373}
47374static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47375 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47376}
47377static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47378 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47379}
47380static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47381 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47382}
47383static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47384 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47385}
47386static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47387 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47388}
47389static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47390 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47391}
47392static void *_p_wxListbookTo_p_wxWindow(void *x) {
47393 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47394}
704eda0c
RD
47395static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47396 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47397}
1bd55598
RD
47398static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47399 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47400}
47401static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47402 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47403}
47404static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47405 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47406}
47407static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47408 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47409}
47410static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47411 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47412}
47413static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47414 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47415}
47416static void *_p_wxListViewTo_p_wxWindow(void *x) {
47417 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47418}
47419static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47420 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47421}
47422static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47423 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47424}
47425static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47426 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47427}
47428static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47429 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47430}
47431static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47432 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47433}
47434static void *_p_wxSliderTo_p_wxWindow(void *x) {
47435 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47436}
47437static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47438 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47439}
47440static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47441 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47442}
47443static void *_p_wxButtonTo_p_wxWindow(void *x) {
47444 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47445}
47446static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47447 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47448}
47449static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47450 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47451}
47452static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47453 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47454}
b850e7f3
RD
47455static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47456 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47457}
47458static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47459 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47460}
47461static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47462 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47463}
47464static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47465 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47466}
1bd55598
RD
47467static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47468 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47469}
47470static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47471 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47472}
47473static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47474 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47475}
47476static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47477 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47478}
47479static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47480 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47481}
47482static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47483 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47484}
47485static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47486 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47487}
704eda0c
RD
47488static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47489 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47490}
2131d850
RD
47491static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47492 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47493}
b850e7f3
RD
47494static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47495 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47496}
47497static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47498 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47499}
47500static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47501 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47502}
1bd55598
RD
47503static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47504 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47505}
47506static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47507 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47508}
47509static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47510 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47511}
47512static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47513 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47514}
47515static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47516 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47517}
1bd55598
RD
47518static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47519 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47520}
2131d850
RD
47521static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47522 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47523}
1bd55598
RD
47524static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47525 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47526}
47527static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47528 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47529}
47530static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47531 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47532}
47533static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47534 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47535}
47536static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47537 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47538}
47539static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47540 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47541}
47542static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47543 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47544}
47545static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47546 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47547}
47548static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47549 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47550}
47551static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47552 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47553}
47554static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47555 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47556}
47557static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47558 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47559}
47560static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47561 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47562}
47563static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47564 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47565}
47566static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47567 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47568}
47569static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47570 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47571}
47572static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47573 return (void *)((wxValidator *) ((wxPyValidator *) x));
47574}
47575static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47576static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47577static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47578static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47579static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47580static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47581static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47582static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47583static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47584static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47585static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47586static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47587static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47588static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47589static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47590static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47591static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47592static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47593static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47594static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47595static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47596static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47597static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47598static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47599static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47600static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47601static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47602static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47603static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47604static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47605static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47606static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47607static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47608static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47609static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47610static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47611static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47612static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47613static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47614static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47615static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47616static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47617static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47618static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47619static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
47620static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47621static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47622static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47623static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47624static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47625static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47626static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47627static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47628static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47629static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47630static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47631static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47632static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47633static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47634static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47635static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47636static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47637static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47638static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47639static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47640static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47641static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47642static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47643static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47644static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47645static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47646static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47647static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47648static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47649static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47650static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47651static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47652static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47653static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 47654static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47655static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47656static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47657static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47658static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47659static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47660static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47661static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47662static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47663static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47664static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47665static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47666static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47667static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47668static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47669static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47670static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47671static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47672static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47673static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47674static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47675static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47676static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47677static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47678static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47679static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47680static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47681static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 47682static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47683static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
47684static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47685static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47686static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47687static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47688static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47689static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47690static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47691static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47692static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47693static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
47694static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47695static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47696static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47697static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47698static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47699static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47700static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47701static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47702static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47703static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47704static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
47705static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47706static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 47707static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
1bd55598 47708static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 47709static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
47710static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47711static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47712static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47713static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47714static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47715static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47716static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47717static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47718static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47719static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47720static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47721static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47722static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47723static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47724static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47725static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47726static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47727static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47728static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47729static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47730static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47731static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47732static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47733static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47734static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47735static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47736static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47737static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47738static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47739static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47740static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47741static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47742static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47743static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47744static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47745static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47746static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47747static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47748static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47749static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47750static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47751
47752static swig_type_info *swig_type_initial[] = {
47753 &_swigt__p_bool,
47754 &_swigt__p_char,
47755 &_swigt__p_form_ops_t,
47756 &_swigt__p_int,
47757 &_swigt__p_long,
47758 &_swigt__p_unsigned_char,
47759 &_swigt__p_unsigned_int,
47760 &_swigt__p_unsigned_long,
47761 &_swigt__p_void,
47762 &_swigt__p_wxANIHandler,
47763 &_swigt__p_wxAcceleratorTable,
47764 &_swigt__p_wxActivateEvent,
47765 &_swigt__p_wxArrayInt,
47766 &_swigt__p_wxArrayString,
47767 &_swigt__p_wxBMPHandler,
47768 &_swigt__p_wxBitmap,
47769 &_swigt__p_wxBitmapButton,
47770 &_swigt__p_wxBookCtrlBase,
47771 &_swigt__p_wxBookCtrlBaseEvent,
47772 &_swigt__p_wxBoxSizer,
47773 &_swigt__p_wxButton,
47774 &_swigt__p_wxCURHandler,
47775 &_swigt__p_wxCheckBox,
47776 &_swigt__p_wxCheckListBox,
47777 &_swigt__p_wxChildFocusEvent,
47778 &_swigt__p_wxChoice,
47779 &_swigt__p_wxChoicebook,
47780 &_swigt__p_wxChoicebookEvent,
2131d850 47781 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
47782 &_swigt__p_wxCloseEvent,
47783 &_swigt__p_wxColour,
b850e7f3
RD
47784 &_swigt__p_wxColourPickerCtrl,
47785 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
47786 &_swigt__p_wxComboBox,
47787 &_swigt__p_wxCommandEvent,
47788 &_swigt__p_wxContextHelp,
47789 &_swigt__p_wxContextHelpButton,
47790 &_swigt__p_wxContextMenuEvent,
47791 &_swigt__p_wxControl,
47792 &_swigt__p_wxControlWithItems,
47793 &_swigt__p_wxCursor,
47794 &_swigt__p_wxDC,
47795 &_swigt__p_wxDateEvent,
47796 &_swigt__p_wxDatePickerCtrl,
47797 &_swigt__p_wxDateTime,
47798 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47799 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
47800 &_swigt__p_wxDisplayChangedEvent,
47801 &_swigt__p_wxDropFilesEvent,
47802 &_swigt__p_wxDuplexMode,
47803 &_swigt__p_wxEraseEvent,
47804 &_swigt__p_wxEvent,
47805 &_swigt__p_wxEvtHandler,
47806 &_swigt__p_wxFSFile,
b850e7f3
RD
47807 &_swigt__p_wxFileDirPickerEvent,
47808 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
47809 &_swigt__p_wxFileSystem,
47810 &_swigt__p_wxFlexGridSizer,
47811 &_swigt__p_wxFocusEvent,
47812 &_swigt__p_wxFont,
b850e7f3
RD
47813 &_swigt__p_wxFontPickerCtrl,
47814 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
47815 &_swigt__p_wxGBSizerItem,
47816 &_swigt__p_wxGIFHandler,
47817 &_swigt__p_wxGauge,
47818 &_swigt__p_wxGenericDirCtrl,
47819 &_swigt__p_wxGenericDragImage,
47820 &_swigt__p_wxGridBagSizer,
47821 &_swigt__p_wxGridSizer,
47822 &_swigt__p_wxHelpEvent,
47823 &_swigt__p_wxHelpProvider,
704eda0c
RD
47824 &_swigt__p_wxHyperlinkCtrl,
47825 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
47826 &_swigt__p_wxICOHandler,
47827 &_swigt__p_wxIcon,
47828 &_swigt__p_wxIconizeEvent,
47829 &_swigt__p_wxIdleEvent,
47830 &_swigt__p_wxImage,
47831 &_swigt__p_wxImageHandler,
47832 &_swigt__p_wxImageList,
47833 &_swigt__p_wxIndividualLayoutConstraint,
47834 &_swigt__p_wxInitDialogEvent,
47835 &_swigt__p_wxItemContainer,
47836 &_swigt__p_wxJPEGHandler,
47837 &_swigt__p_wxKeyEvent,
47838 &_swigt__p_wxLayoutConstraints,
47839 &_swigt__p_wxListBox,
47840 &_swigt__p_wxListEvent,
47841 &_swigt__p_wxListItem,
47842 &_swigt__p_wxListItemAttr,
47843 &_swigt__p_wxListView,
47844 &_swigt__p_wxListbook,
47845 &_swigt__p_wxListbookEvent,
47846 &_swigt__p_wxMaximizeEvent,
47847 &_swigt__p_wxMemoryDC,
47848 &_swigt__p_wxMenu,
47849 &_swigt__p_wxMenuBar,
47850 &_swigt__p_wxMenuEvent,
47851 &_swigt__p_wxMenuItem,
47852 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47853 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
47854 &_swigt__p_wxMouseEvent,
47855 &_swigt__p_wxMoveEvent,
47856 &_swigt__p_wxNavigationKeyEvent,
47857 &_swigt__p_wxNcPaintEvent,
47858 &_swigt__p_wxNotebook,
47859 &_swigt__p_wxNotebookEvent,
47860 &_swigt__p_wxNotifyEvent,
47861 &_swigt__p_wxObject,
47862 &_swigt__p_wxPCXHandler,
47863 &_swigt__p_wxPNGHandler,
47864 &_swigt__p_wxPNMHandler,
47865 &_swigt__p_wxPaintEvent,
47866 &_swigt__p_wxPaletteChangedEvent,
47867 &_swigt__p_wxPaperSize,
b850e7f3 47868 &_swigt__p_wxPickerBase,
1bd55598
RD
47869 &_swigt__p_wxPoint,
47870 &_swigt__p_wxPyApp,
47871 &_swigt__p_wxPyCommandEvent,
47872 &_swigt__p_wxPyControl,
47873 &_swigt__p_wxPyEvent,
47874 &_swigt__p_wxPyImageHandler,
47875 &_swigt__p_wxPyListCtrl,
47876 &_swigt__p_wxPySizer,
47877 &_swigt__p_wxPyTreeCtrl,
47878 &_swigt__p_wxPyTreeItemData,
47879 &_swigt__p_wxPyValidator,
47880 &_swigt__p_wxQueryNewPaletteEvent,
47881 &_swigt__p_wxRadioBox,
47882 &_swigt__p_wxRadioButton,
47883 &_swigt__p_wxRect,
47884 &_swigt__p_wxScrollBar,
47885 &_swigt__p_wxScrollEvent,
47886 &_swigt__p_wxScrollWinEvent,
47887 &_swigt__p_wxSetCursorEvent,
47888 &_swigt__p_wxShowEvent,
47889 &_swigt__p_wxSimpleHelpProvider,
47890 &_swigt__p_wxSize,
47891 &_swigt__p_wxSizeEvent,
47892 &_swigt__p_wxSizer,
47893 &_swigt__p_wxSizerItem,
47894 &_swigt__p_wxSlider,
47895 &_swigt__p_wxSpinButton,
47896 &_swigt__p_wxSpinCtrl,
47897 &_swigt__p_wxSpinEvent,
47898 &_swigt__p_wxStaticBitmap,
47899 &_swigt__p_wxStaticBox,
47900 &_swigt__p_wxStaticBoxSizer,
47901 &_swigt__p_wxStaticLine,
47902 &_swigt__p_wxStaticText,
47903 &_swigt__p_wxStdDialogButtonSizer,
47904 &_swigt__p_wxString,
47905 &_swigt__p_wxSysColourChangedEvent,
580080c5 47906 &_swigt__p_wxTGAHandler,
1bd55598
RD
47907 &_swigt__p_wxTIFFHandler,
47908 &_swigt__p_wxTextAttr,
47909 &_swigt__p_wxTextCtrl,
47910 &_swigt__p_wxTextUrlEvent,
47911 &_swigt__p_wxToggleButton,
47912 &_swigt__p_wxToolBar,
47913 &_swigt__p_wxToolBarBase,
47914 &_swigt__p_wxToolBarToolBase,
47915 &_swigt__p_wxToolbook,
47916 &_swigt__p_wxToolbookEvent,
1bd55598
RD
47917 &_swigt__p_wxTreeEvent,
47918 &_swigt__p_wxTreeItemId,
47919 &_swigt__p_wxTreebook,
47920 &_swigt__p_wxTreebookEvent,
47921 &_swigt__p_wxUpdateUIEvent,
47922 &_swigt__p_wxValidator,
47923 &_swigt__p_wxVisualAttributes,
47924 &_swigt__p_wxWindow,
b850e7f3 47925 &_swigt__p_wxWindowBase,
1bd55598
RD
47926 &_swigt__p_wxWindowCreateEvent,
47927 &_swigt__p_wxWindowDestroyEvent,
47928 &_swigt__p_wxXPMHandler,
47929};
47930
47931static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47932static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47933static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47934static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47935static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47936static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47937static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47938static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47939static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47940static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47941static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47942static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47943static 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}};
47944static 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}};
47945static 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}};
47946static 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}};
47947static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47948static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47949static 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}};
47950static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47951static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47952static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47953static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47954static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47955static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47956static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47957static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47958static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47959static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47960static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47961static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47962static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47963static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47964static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47965static 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
47966static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47967static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47968static 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
47969static 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}};
47970static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47971static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47972static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47973static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47974static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47975static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47976static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47977static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47978static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47979static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47980static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47981static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47982static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47983static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47984static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47985static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47986static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47987static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47988static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47989static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47990static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47991static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47992static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47993static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47994static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47995static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47996static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47997static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47998static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47999static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48000static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48001static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48002static 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
48003static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48004static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48005static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48006static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48007static 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}};
48008static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48009static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48010static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48011static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48012static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48013static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48014static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48015static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48016static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48017static 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
48018static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48019static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48020static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48021static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48022static 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}};
48023static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48024static 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}};
48025static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48026static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48027static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48028static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48029static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48030static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48031static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48032static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48033static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48034static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48035static 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}};
48036static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48037static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48038static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48039static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48040static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48041static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48042static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48043static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48044static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48045static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48046static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48047static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48048static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48049static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48050static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48051static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48052static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48053static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48054static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48055static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48056static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48057static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48058static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48059static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48060static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48061static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48062static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48063static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48064static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48065static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48066static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48067static 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 48068static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48069static 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
48070static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48071static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48072static 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}};
48073static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48074static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48075static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48076static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48077static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48078static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48079static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48080static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48081static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48082static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48083static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48084static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48085static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48086static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48087static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48088static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48089static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48090static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48091static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48092static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48093static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48094static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48095static 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}};
48096static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48097static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48098static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48099static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48100static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48101static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48102static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48103static 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}};
48104static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48105static 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}};
48106static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48107
48108static swig_cast_info *swig_cast_initial[] = {
48109 _swigc__p_bool,
48110 _swigc__p_char,
48111 _swigc__p_form_ops_t,
48112 _swigc__p_int,
48113 _swigc__p_long,
48114 _swigc__p_unsigned_char,
48115 _swigc__p_unsigned_int,
48116 _swigc__p_unsigned_long,
48117 _swigc__p_void,
48118 _swigc__p_wxANIHandler,
48119 _swigc__p_wxAcceleratorTable,
48120 _swigc__p_wxActivateEvent,
48121 _swigc__p_wxArrayInt,
48122 _swigc__p_wxArrayString,
48123 _swigc__p_wxBMPHandler,
48124 _swigc__p_wxBitmap,
48125 _swigc__p_wxBitmapButton,
48126 _swigc__p_wxBookCtrlBase,
48127 _swigc__p_wxBookCtrlBaseEvent,
48128 _swigc__p_wxBoxSizer,
48129 _swigc__p_wxButton,
48130 _swigc__p_wxCURHandler,
48131 _swigc__p_wxCheckBox,
48132 _swigc__p_wxCheckListBox,
48133 _swigc__p_wxChildFocusEvent,
48134 _swigc__p_wxChoice,
48135 _swigc__p_wxChoicebook,
48136 _swigc__p_wxChoicebookEvent,
2131d850 48137 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
48138 _swigc__p_wxCloseEvent,
48139 _swigc__p_wxColour,
b850e7f3
RD
48140 _swigc__p_wxColourPickerCtrl,
48141 _swigc__p_wxColourPickerEvent,
1bd55598
RD
48142 _swigc__p_wxComboBox,
48143 _swigc__p_wxCommandEvent,
48144 _swigc__p_wxContextHelp,
48145 _swigc__p_wxContextHelpButton,
48146 _swigc__p_wxContextMenuEvent,
48147 _swigc__p_wxControl,
48148 _swigc__p_wxControlWithItems,
48149 _swigc__p_wxCursor,
48150 _swigc__p_wxDC,
48151 _swigc__p_wxDateEvent,
48152 _swigc__p_wxDatePickerCtrl,
48153 _swigc__p_wxDateTime,
48154 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48155 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
48156 _swigc__p_wxDisplayChangedEvent,
48157 _swigc__p_wxDropFilesEvent,
48158 _swigc__p_wxDuplexMode,
48159 _swigc__p_wxEraseEvent,
48160 _swigc__p_wxEvent,
48161 _swigc__p_wxEvtHandler,
48162 _swigc__p_wxFSFile,
b850e7f3
RD
48163 _swigc__p_wxFileDirPickerEvent,
48164 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
48165 _swigc__p_wxFileSystem,
48166 _swigc__p_wxFlexGridSizer,
48167 _swigc__p_wxFocusEvent,
48168 _swigc__p_wxFont,
b850e7f3
RD
48169 _swigc__p_wxFontPickerCtrl,
48170 _swigc__p_wxFontPickerEvent,
1bd55598
RD
48171 _swigc__p_wxGBSizerItem,
48172 _swigc__p_wxGIFHandler,
48173 _swigc__p_wxGauge,
48174 _swigc__p_wxGenericDirCtrl,
48175 _swigc__p_wxGenericDragImage,
48176 _swigc__p_wxGridBagSizer,
48177 _swigc__p_wxGridSizer,
48178 _swigc__p_wxHelpEvent,
48179 _swigc__p_wxHelpProvider,
704eda0c
RD
48180 _swigc__p_wxHyperlinkCtrl,
48181 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
48182 _swigc__p_wxICOHandler,
48183 _swigc__p_wxIcon,
48184 _swigc__p_wxIconizeEvent,
48185 _swigc__p_wxIdleEvent,
48186 _swigc__p_wxImage,
48187 _swigc__p_wxImageHandler,
48188 _swigc__p_wxImageList,
48189 _swigc__p_wxIndividualLayoutConstraint,
48190 _swigc__p_wxInitDialogEvent,
48191 _swigc__p_wxItemContainer,
48192 _swigc__p_wxJPEGHandler,
48193 _swigc__p_wxKeyEvent,
48194 _swigc__p_wxLayoutConstraints,
48195 _swigc__p_wxListBox,
48196 _swigc__p_wxListEvent,
48197 _swigc__p_wxListItem,
48198 _swigc__p_wxListItemAttr,
48199 _swigc__p_wxListView,
48200 _swigc__p_wxListbook,
48201 _swigc__p_wxListbookEvent,
48202 _swigc__p_wxMaximizeEvent,
48203 _swigc__p_wxMemoryDC,
48204 _swigc__p_wxMenu,
48205 _swigc__p_wxMenuBar,
48206 _swigc__p_wxMenuEvent,
48207 _swigc__p_wxMenuItem,
48208 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48209 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
48210 _swigc__p_wxMouseEvent,
48211 _swigc__p_wxMoveEvent,
48212 _swigc__p_wxNavigationKeyEvent,
48213 _swigc__p_wxNcPaintEvent,
48214 _swigc__p_wxNotebook,
48215 _swigc__p_wxNotebookEvent,
48216 _swigc__p_wxNotifyEvent,
48217 _swigc__p_wxObject,
48218 _swigc__p_wxPCXHandler,
48219 _swigc__p_wxPNGHandler,
48220 _swigc__p_wxPNMHandler,
48221 _swigc__p_wxPaintEvent,
48222 _swigc__p_wxPaletteChangedEvent,
48223 _swigc__p_wxPaperSize,
b850e7f3 48224 _swigc__p_wxPickerBase,
1bd55598
RD
48225 _swigc__p_wxPoint,
48226 _swigc__p_wxPyApp,
48227 _swigc__p_wxPyCommandEvent,
48228 _swigc__p_wxPyControl,
48229 _swigc__p_wxPyEvent,
48230 _swigc__p_wxPyImageHandler,
48231 _swigc__p_wxPyListCtrl,
48232 _swigc__p_wxPySizer,
48233 _swigc__p_wxPyTreeCtrl,
48234 _swigc__p_wxPyTreeItemData,
48235 _swigc__p_wxPyValidator,
48236 _swigc__p_wxQueryNewPaletteEvent,
48237 _swigc__p_wxRadioBox,
48238 _swigc__p_wxRadioButton,
48239 _swigc__p_wxRect,
48240 _swigc__p_wxScrollBar,
48241 _swigc__p_wxScrollEvent,
48242 _swigc__p_wxScrollWinEvent,
48243 _swigc__p_wxSetCursorEvent,
48244 _swigc__p_wxShowEvent,
48245 _swigc__p_wxSimpleHelpProvider,
48246 _swigc__p_wxSize,
48247 _swigc__p_wxSizeEvent,
48248 _swigc__p_wxSizer,
48249 _swigc__p_wxSizerItem,
48250 _swigc__p_wxSlider,
48251 _swigc__p_wxSpinButton,
48252 _swigc__p_wxSpinCtrl,
48253 _swigc__p_wxSpinEvent,
48254 _swigc__p_wxStaticBitmap,
48255 _swigc__p_wxStaticBox,
48256 _swigc__p_wxStaticBoxSizer,
48257 _swigc__p_wxStaticLine,
48258 _swigc__p_wxStaticText,
48259 _swigc__p_wxStdDialogButtonSizer,
48260 _swigc__p_wxString,
48261 _swigc__p_wxSysColourChangedEvent,
580080c5 48262 _swigc__p_wxTGAHandler,
1bd55598
RD
48263 _swigc__p_wxTIFFHandler,
48264 _swigc__p_wxTextAttr,
48265 _swigc__p_wxTextCtrl,
48266 _swigc__p_wxTextUrlEvent,
48267 _swigc__p_wxToggleButton,
48268 _swigc__p_wxToolBar,
48269 _swigc__p_wxToolBarBase,
48270 _swigc__p_wxToolBarToolBase,
48271 _swigc__p_wxToolbook,
48272 _swigc__p_wxToolbookEvent,
1bd55598
RD
48273 _swigc__p_wxTreeEvent,
48274 _swigc__p_wxTreeItemId,
48275 _swigc__p_wxTreebook,
48276 _swigc__p_wxTreebookEvent,
48277 _swigc__p_wxUpdateUIEvent,
48278 _swigc__p_wxValidator,
48279 _swigc__p_wxVisualAttributes,
48280 _swigc__p_wxWindow,
b850e7f3 48281 _swigc__p_wxWindowBase,
1bd55598
RD
48282 _swigc__p_wxWindowCreateEvent,
48283 _swigc__p_wxWindowDestroyEvent,
48284 _swigc__p_wxXPMHandler,
48285};
48286
48287
48288/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48289
48290static swig_const_info swig_const_table[] = {
48291{0, 0, 0, 0.0, 0, 0}};
48292
48293#ifdef __cplusplus
48294}
48295#endif
48296/* -----------------------------------------------------------------------------
48297 * Type initialization:
48298 * This problem is tough by the requirement that no dynamic
48299 * memory is used. Also, since swig_type_info structures store pointers to
48300 * swig_cast_info structures and swig_cast_info structures store pointers back
48301 * to swig_type_info structures, we need some lookup code at initialization.
48302 * The idea is that swig generates all the structures that are needed.
48303 * The runtime then collects these partially filled structures.
48304 * The SWIG_InitializeModule function takes these initial arrays out of
48305 * swig_module, and does all the lookup, filling in the swig_module.types
48306 * array with the correct data and linking the correct swig_cast_info
48307 * structures together.
48308 *
48309 * The generated swig_type_info structures are assigned staticly to an initial
48310 * array. We just loop though that array, and handle each type individually.
48311 * First we lookup if this type has been already loaded, and if so, use the
48312 * loaded structure instead of the generated one. Then we have to fill in the
48313 * cast linked list. The cast data is initially stored in something like a
48314 * two-dimensional array. Each row corresponds to a type (there are the same
48315 * number of rows as there are in the swig_type_initial array). Each entry in
48316 * a column is one of the swig_cast_info structures for that type.
48317 * The cast_initial array is actually an array of arrays, because each row has
48318 * a variable number of columns. So to actually build the cast linked list,
48319 * we find the array of casts associated with the type, and loop through it
48320 * adding the casts to the list. The one last trick we need to do is making
48321 * sure the type pointer in the swig_cast_info struct is correct.
48322 *
48323 * First off, we lookup the cast->type name to see if it is already loaded.
48324 * There are three cases to handle:
48325 * 1) If the cast->type has already been loaded AND the type we are adding
48326 * casting info to has not been loaded (it is in this module), THEN we
48327 * replace the cast->type pointer with the type pointer that has already
48328 * been loaded.
48329 * 2) If BOTH types (the one we are adding casting info to, and the
48330 * cast->type) are loaded, THEN the cast info has already been loaded by
48331 * the previous module so we just ignore it.
48332 * 3) Finally, if cast->type has not already been loaded, then we add that
48333 * swig_cast_info to the linked list (because the cast->type) pointer will
48334 * be correct.
48335 * ----------------------------------------------------------------------------- */
48336
48337#ifdef __cplusplus
48338extern "C" {
48339#if 0
48340} /* c-mode */
48341#endif
48342#endif
48343
48344#if 0
48345#define SWIGRUNTIME_DEBUG
48346#endif
48347
48348SWIGRUNTIME void
48349SWIG_InitializeModule(void *clientdata) {
48350 size_t i;
48351 swig_module_info *module_head;
48352 static int init_run = 0;
48353
48354 clientdata = clientdata;
48355
48356 if (init_run) return;
48357 init_run = 1;
48358
48359 /* Initialize the swig_module */
48360 swig_module.type_initial = swig_type_initial;
48361 swig_module.cast_initial = swig_cast_initial;
48362
48363 /* Try and load any already created modules */
48364 module_head = SWIG_GetModule(clientdata);
48365 if (module_head) {
48366 swig_module.next = module_head->next;
48367 module_head->next = &swig_module;
48368 } else {
48369 /* This is the first module loaded */
48370 swig_module.next = &swig_module;
48371 SWIG_SetModule(clientdata, &swig_module);
48372 }
48373
48374 /* Now work on filling in swig_module.types */
48375#ifdef SWIGRUNTIME_DEBUG
48376 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48377#endif
48378 for (i = 0; i < swig_module.size; ++i) {
48379 swig_type_info *type = 0;
48380 swig_type_info *ret;
48381 swig_cast_info *cast;
d55e5bfc 48382
1bd55598
RD
48383#ifdef SWIGRUNTIME_DEBUG
48384 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48385#endif
d55e5bfc 48386
1bd55598
RD
48387 /* if there is another module already loaded */
48388 if (swig_module.next != &swig_module) {
48389 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 48390 }
1bd55598
RD
48391 if (type) {
48392 /* Overwrite clientdata field */
48393#ifdef SWIGRUNTIME_DEBUG
48394 printf("SWIG_InitializeModule: found type %s\n", type->name);
48395#endif
48396 if (swig_module.type_initial[i]->clientdata) {
48397 type->clientdata = swig_module.type_initial[i]->clientdata;
48398#ifdef SWIGRUNTIME_DEBUG
48399 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48400#endif
48401 }
48402 } else {
48403 type = swig_module.type_initial[i];
36ed4f51 48404 }
d55e5bfc 48405
1bd55598
RD
48406 /* Insert casting types */
48407 cast = swig_module.cast_initial[i];
48408 while (cast->type) {
48409 /* Don't need to add information already in the list */
48410 ret = 0;
48411#ifdef SWIGRUNTIME_DEBUG
48412 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48413#endif
48414 if (swig_module.next != &swig_module) {
48415 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48416#ifdef SWIGRUNTIME_DEBUG
48417 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48418#endif
48419 }
48420 if (ret) {
48421 if (type == swig_module.type_initial[i]) {
48422#ifdef SWIGRUNTIME_DEBUG
48423 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48424#endif
48425 cast->type = ret;
48426 ret = 0;
48427 } else {
48428 /* Check for casting already in the list */
48429 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48430#ifdef SWIGRUNTIME_DEBUG
48431 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48432#endif
48433 if (!ocast) ret = 0;
48434 }
48435 }
48436
48437 if (!ret) {
48438#ifdef SWIGRUNTIME_DEBUG
48439 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48440#endif
48441 if (type->cast) {
48442 type->cast->prev = cast;
48443 cast->next = type->cast;
48444 }
48445 type->cast = cast;
48446 }
48447 cast++;
36ed4f51 48448 }
1bd55598
RD
48449 /* Set entry in modules->types array equal to the type */
48450 swig_module.types[i] = type;
48451 }
48452 swig_module.types[i] = 0;
48453
48454#ifdef SWIGRUNTIME_DEBUG
48455 printf("**** SWIG_InitializeModule: Cast List ******\n");
48456 for (i = 0; i < swig_module.size; ++i) {
48457 int j = 0;
48458 swig_cast_info *cast = swig_module.cast_initial[i];
48459 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48460 while (cast->type) {
48461 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48462 cast++;
48463 ++j;
48464 }
48465 printf("---- Total casts: %d\n",j);
48466 }
48467 printf("**** SWIG_InitializeModule: Cast List ******\n");
48468#endif
48469}
48470
48471/* This function will propagate the clientdata field of type to
48472* any new swig_type_info structures that have been added into the list
48473* of equivalent types. It is like calling
48474* SWIG_TypeClientData(type, clientdata) a second time.
48475*/
48476SWIGRUNTIME void
48477SWIG_PropagateClientData(void) {
48478 size_t i;
48479 swig_cast_info *equiv;
48480 static int init_run = 0;
48481
48482 if (init_run) return;
48483 init_run = 1;
48484
48485 for (i = 0; i < swig_module.size; i++) {
48486 if (swig_module.types[i]->clientdata) {
48487 equiv = swig_module.types[i]->cast;
48488 while (equiv) {
48489 if (!equiv->converter) {
48490 if (equiv->type && !equiv->type->clientdata)
48491 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48492 }
48493 equiv = equiv->next;
48494 }
36ed4f51 48495 }
1bd55598
RD
48496 }
48497}
48498
48499#ifdef __cplusplus
48500#if 0
48501{
48502 /* c-mode */
48503#endif
48504}
48505#endif
48506
48507
48508
48509#ifdef __cplusplus
48510extern "C" {
48511#endif
48512
48513 /* Python-specific SWIG API */
48514#define SWIG_newvarlink() SWIG_Python_newvarlink()
48515#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48516#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48517
48518 /* -----------------------------------------------------------------------------
48519 * global variable support code.
48520 * ----------------------------------------------------------------------------- */
48521
48522 typedef struct swig_globalvar {
48523 char *name; /* Name of global variable */
48524 PyObject *(*get_attr)(void); /* Return the current value */
48525 int (*set_attr)(PyObject *); /* Set the value */
48526 struct swig_globalvar *next;
48527 } swig_globalvar;
48528
48529 typedef struct swig_varlinkobject {
48530 PyObject_HEAD
48531 swig_globalvar *vars;
48532 } swig_varlinkobject;
48533
48534 SWIGINTERN PyObject *
48535 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48536 return PyString_FromString("<Swig global variables>");
48537 }
48538
48539 SWIGINTERN PyObject *
48540 swig_varlink_str(swig_varlinkobject *v) {
48541 PyObject *str = PyString_FromString("(");
48542 swig_globalvar *var;
48543 for (var = v->vars; var; var=var->next) {
48544 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48545 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48546 }
48547 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48548 return str;
48549 }
48550
48551 SWIGINTERN int
48552 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48553 PyObject *str = swig_varlink_str(v);
48554 fprintf(fp,"Swig global variables ");
48555 fprintf(fp,"%s\n", PyString_AsString(str));
48556 Py_DECREF(str);
48557 return 0;
48558 }
48559
48560 SWIGINTERN void
48561 swig_varlink_dealloc(swig_varlinkobject *v) {
48562 swig_globalvar *var = v->vars;
48563 while (var) {
48564 swig_globalvar *n = var->next;
48565 free(var->name);
48566 free(var);
48567 var = n;
36ed4f51 48568 }
1bd55598
RD
48569 }
48570
48571 SWIGINTERN PyObject *
48572 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48573 PyObject *res = NULL;
48574 swig_globalvar *var = v->vars;
48575 while (var) {
48576 if (strcmp(var->name,n) == 0) {
48577 res = (*var->get_attr)();
48578 break;
48579 }
48580 var = var->next;
36ed4f51 48581 }
1bd55598
RD
48582 if (res == NULL && !PyErr_Occurred()) {
48583 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 48584 }
1bd55598
RD
48585 return res;
48586 }
48587
48588 SWIGINTERN int
48589 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48590 int res = 1;
48591 swig_globalvar *var = v->vars;
48592 while (var) {
48593 if (strcmp(var->name,n) == 0) {
48594 res = (*var->set_attr)(p);
48595 break;
48596 }
48597 var = var->next;
36ed4f51 48598 }
1bd55598
RD
48599 if (res == 1 && !PyErr_Occurred()) {
48600 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48601 }
1bd55598
RD
48602 return res;
48603 }
48604
48605 SWIGINTERN PyTypeObject*
48606 swig_varlink_type(void) {
48607 static char varlink__doc__[] = "Swig var link object";
48608 static PyTypeObject varlink_type;
48609 static int type_init = 0;
48610 if (!type_init) {
48611 const PyTypeObject tmp
48612 = {
48613 PyObject_HEAD_INIT(NULL)
48614 0, /* Number of items in variable part (ob_size) */
48615 (char *)"swigvarlink", /* Type name (tp_name) */
48616 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48617 0, /* Itemsize (tp_itemsize) */
48618 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48619 (printfunc) swig_varlink_print, /* Print (tp_print) */
48620 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48621 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48622 0, /* tp_compare */
48623 (reprfunc) swig_varlink_repr, /* tp_repr */
48624 0, /* tp_as_number */
48625 0, /* tp_as_sequence */
48626 0, /* tp_as_mapping */
48627 0, /* tp_hash */
48628 0, /* tp_call */
48629 (reprfunc)swig_varlink_str, /* tp_str */
48630 0, /* tp_getattro */
48631 0, /* tp_setattro */
48632 0, /* tp_as_buffer */
48633 0, /* tp_flags */
48634 varlink__doc__, /* tp_doc */
48635 0, /* tp_traverse */
48636 0, /* tp_clear */
48637 0, /* tp_richcompare */
48638 0, /* tp_weaklistoffset */
48639#if PY_VERSION_HEX >= 0x02020000
48640 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48641#endif
48642#if PY_VERSION_HEX >= 0x02030000
48643 0, /* tp_del */
48644#endif
48645#ifdef COUNT_ALLOCS
48646 0,0,0,0 /* tp_alloc -> tp_next */
48647#endif
48648 };
48649 varlink_type = tmp;
48650 varlink_type.ob_type = &PyType_Type;
48651 type_init = 1;
53aa7709 48652 }
1bd55598
RD
48653 return &varlink_type;
48654 }
48655
48656 /* Create a variable linking object for use later */
48657 SWIGINTERN PyObject *
48658 SWIG_Python_newvarlink(void) {
48659 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48660 if (result) {
48661 result->vars = 0;
48662 }
48663 return ((PyObject*) result);
48664 }
48665
48666 SWIGINTERN void
48667 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48668 swig_varlinkobject *v = (swig_varlinkobject *) p;
48669 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48670 if (gv) {
48671 size_t size = strlen(name)+1;
48672 gv->name = (char *)malloc(size);
48673 if (gv->name) {
48674 strncpy(gv->name,name,size);
48675 gv->get_attr = get_attr;
48676 gv->set_attr = set_attr;
48677 gv->next = v->vars;
48678 }
53aa7709 48679 }
1bd55598
RD
48680 v->vars = gv;
48681 }
48682
48683 SWIGINTERN PyObject *
48684 SWIG_globals() {
48685 static PyObject *_SWIG_globals = 0;
48686 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48687 return _SWIG_globals;
48688 }
48689
48690 /* -----------------------------------------------------------------------------
48691 * constants/methods manipulation
48692 * ----------------------------------------------------------------------------- */
48693
48694 /* Install Constants */
48695 SWIGINTERN void
48696 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48697 PyObject *obj = 0;
48698 size_t i;
48699 for (i = 0; constants[i].type; ++i) {
48700 switch(constants[i].type) {
48701 case SWIG_PY_POINTER:
48702 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48703 break;
48704 case SWIG_PY_BINARY:
48705 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48706 break;
48707 default:
48708 obj = 0;
48709 break;
48710 }
48711 if (obj) {
48712 PyDict_SetItemString(d, constants[i].name, obj);
48713 Py_DECREF(obj);
48714 }
53aa7709 48715 }
1bd55598
RD
48716 }
48717
48718 /* -----------------------------------------------------------------------------*/
48719 /* Fix SwigMethods to carry the callback ptrs when needed */
48720 /* -----------------------------------------------------------------------------*/
48721
48722 SWIGINTERN void
48723 SWIG_Python_FixMethods(PyMethodDef *methods,
48724 swig_const_info *const_table,
48725 swig_type_info **types,
48726 swig_type_info **types_initial) {
48727 size_t i;
48728 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 48729 const char *c = methods[i].ml_doc;
1bd55598
RD
48730 if (c && (c = strstr(c, "swig_ptr: "))) {
48731 int j;
48732 swig_const_info *ci = 0;
3d6c9062 48733 const char *name = c + 10;
1bd55598
RD
48734 for (j = 0; const_table[j].type; ++j) {
48735 if (strncmp(const_table[j].name, name,
48736 strlen(const_table[j].name)) == 0) {
48737 ci = &(const_table[j]);
48738 break;
48739 }
48740 }
48741 if (ci) {
48742 size_t shift = (ci->ptype) - types;
48743 swig_type_info *ty = types_initial[shift];
48744 size_t ldoc = (c - methods[i].ml_doc);
48745 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48746 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48747 if (ndoc) {
48748 char *buff = ndoc;
48749 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48750 if (ptr) {
48751 strncpy(buff, methods[i].ml_doc, ldoc);
48752 buff += ldoc;
48753 strncpy(buff, "swig_ptr: ", 10);
48754 buff += 10;
48755 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48756 methods[i].ml_doc = ndoc;
48757 }
48758 }
48759 }
48760 }
53aa7709 48761 }
1bd55598
RD
48762 }
48763
48764#ifdef __cplusplus
48765}
48766#endif
48767
48768/* -----------------------------------------------------------------------------*
48769 * Partial Init method
48770 * -----------------------------------------------------------------------------*/
48771
48772#ifdef __cplusplus
48773extern "C"
48774#endif
48775SWIGEXPORT void SWIG_init(void) {
48776 PyObject *m, *d;
48777
48778 /* Fix SwigMethods to carry the callback ptrs when needed */
48779 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48780
48781 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48782 d = PyModule_GetDict(m);
48783
48784 SWIG_InitializeModule(0);
48785 SWIG_InstallConstants(d,swig_const_table);
48786
48787
48788 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48789 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48790 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48791 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48792 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48793 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48794 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48795 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48796 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48797 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48798 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48799 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48800 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48801 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48802 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48803 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48804 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48805 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48806 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48807 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48808 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48809 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
48810 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48811 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48812 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48813 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48814 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48815 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48816 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48817 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48818 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48819 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48820 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48821 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48822 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48823 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48824 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48825 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48826 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48827 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48828 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48829 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48830 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48831 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48832 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
48833 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48834 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48835 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48836 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48837 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48838 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48839 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48840 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48841 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48842 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48843 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48844 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48845 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48846 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48847 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48848 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48849 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48850 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48851 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48852 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48853 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48854 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48855 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48856 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48857 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48858 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48859 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 48860 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
1bd55598
RD
48861 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48862 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48863 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48864 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48865 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48866 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48867 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48868 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48869 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48870 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48871 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48872 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48873 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48874 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48875 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48876 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48877 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48878 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48879 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48880 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48881 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48882 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48883 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48884 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48885 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48886 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48887 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48888 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48889 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48890 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48891 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48892 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48893 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48894 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48895 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48896 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48897 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48898 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48899 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48900 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48901 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48902 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
48903 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48904 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48905 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48906 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48907 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48908 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48909 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48910 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48911 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48912 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48913 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48914 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
48915 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48916 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48917 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48918 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48919 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48920 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48921 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48922 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48923 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48924 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48925 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48926 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48927 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48928 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48929 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48930 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48931 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48932 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48933 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48937 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48938 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48939 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48940 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48941 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48942 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48943 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
48944 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
48945 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
48946 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
48947 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
1bd55598
RD
48948 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48949 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48950 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48951 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48952 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48953 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48954 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48955 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48956 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48957 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
48958 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48959 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48960 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48961 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48962 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48963 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48964 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48965 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48966 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48967 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48968 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48969 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48970 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48971 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48972 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48973 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48974 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48975 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48976 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48977 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48978 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48979 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48980 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48981 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48982 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48983 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48984 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48985 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48986 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48987 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48988 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48989 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48990 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48991 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48992 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48993 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48994 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48995 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48996 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48997 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48998 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48999 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49000 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49001 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49002 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49003 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49004 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49005 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
49006 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49007 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49008 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49009 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49010 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49011 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49012 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49013 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49014 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49015 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49016 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49017 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49018 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49019 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49020 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49021 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49022 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49023 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49024 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49025 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49026 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49027 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49028 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49029 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49030 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49031 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49032 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49033 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49034 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49035 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49036 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49037 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49038 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49039 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49040 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49041 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49042 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49043 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49044 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49045 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49046 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49047 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49048
49049 // Map renamed classes back to their common name for OOR
49050 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49051
49052 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49053 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49054 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49055 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49056 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49057 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49058 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49059 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49060 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49061 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49062 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49063 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49064 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49065 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49066 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
49067 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49068 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49069 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49070 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49071 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49072 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49073 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49074 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49075 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49076 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49077 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49078 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49079 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49080 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49081 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49082 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49083 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49084 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49085 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49086 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49087 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49088 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49089 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49090 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49091 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49092 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49093 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49094 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49095 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49096 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49097 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49098 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49099 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49100 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49101 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49102 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49103 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49104 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49105 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49106 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49107 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
49108
49109 // Map renamed classes back to their common name for OOR
49110 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49111 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49112
49113 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49114 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49115 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49116 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49117 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49118 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
1bd55598
RD
49119 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49120 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49121 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49122 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49123 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
49124
49125 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49126
49127 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49128 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49129 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49130 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49131 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49132 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49133 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49134 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49135 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49136 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49137 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49138 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49139 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49140 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49141 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49142 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49143 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49144 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49145 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49146 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49147 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49148 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49149 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49150 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49151 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49152 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49153 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49154 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49155 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49156 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49157 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49158 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49159 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49160 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49161 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49162 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49163 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49164 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49165 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49166 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49167 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49168 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49169 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
49170}
49171